@vite-hub/ui 0.6.0 → 0.7.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.
- package/README.md +106 -46
- package/dist/AttachmentTitle-BWw0ck0T.js +110 -0
- package/dist/BubbleContent-B1a4e3vE.js +45 -0
- package/dist/Chat-BZxkf3Tt.js +112 -0
- package/dist/ChatMessage-Blr5F-zi.js +94 -0
- package/dist/CodeBlockContent-BjXJm8lO.js +92 -0
- package/dist/CodeBlockTitle-DYrYpc1U.js +99 -0
- package/dist/CommentRow-ViZ7r8nr.js +86 -0
- package/dist/CopyButton-Dtg_Oc9_.js +115 -0
- package/dist/Markdown-_w7feFzl.js +70 -0
- package/dist/MarkdownCodeBlock-B4j7x0H6.js +127 -0
- package/dist/MarkdownImage-CJN3myt4.js +111 -0
- package/dist/MessageHeader-CJ9eBHSS.js +61 -0
- package/dist/MessageParts-FVyYZNsn.js +57 -0
- package/dist/MessageScrollerViewport-BaTlWLki.js +142 -0
- package/dist/MorphText-CYTndbyp.js +36 -0
- package/dist/RollNumber-Bo2tzfAp.js +49 -0
- package/dist/TraceTitle-Cp0y7RRD.js +133 -0
- package/dist/agent-session-BwZSMi4S.d.ts +312 -0
- package/dist/agent-session-DhlTKCQG.js +875 -0
- package/dist/{announce-B0DLwflT.js → announce-CJNXaYbT.js} +1 -3
- package/dist/appendItems-hQ4aBd9Q.js +4047 -0
- package/dist/attachment-BllgHx9Q.d.ts +124 -0
- package/dist/attachment-DQMJNfj0.js +35 -0
- package/dist/avatar-stack-Bj1xUkzY.d.ts +4 -0
- package/dist/avatar-stack-nQErr0qn.js +72 -0
- package/dist/bubble-D3M2_InY.js +32 -0
- package/dist/bubble-DmplVxLr.d.ts +64 -0
- package/dist/chat-DWdyMSuj.d.ts +13 -0
- package/dist/chat-message-QLHnX_ED.d.ts +11 -0
- package/dist/chat-session-BOj5L3Ey.d.ts +29 -0
- package/dist/chat-session-hjZRL6jY.js +43 -0
- package/dist/choices-input-DqgXl5a-.d.ts +97 -0
- package/dist/client-BG-oCUtv-5i4sRwXP.js +6587 -0
- package/dist/code-block-Bp8y-XJp.d.ts +182 -0
- package/dist/code-block-CMERLfew.js +14 -0
- package/dist/code-view-26RY6dX8.js +137 -0
- package/dist/code-view-D8yYdFUc.d.ts +184 -0
- package/dist/{colors-BghReA9C-DEq4bhEP.js → colors-BghReA9C-A4M9YE0s.js} +1 -1
- package/dist/{comment-composer-BP-CJx7f.js → comment-composer-BUt6vbnr.js} +176 -38
- package/dist/{comment-composer-BI6CNJyO.d.ts → comment-composer-CIsbz-78.d.ts} +7 -7
- package/dist/comment-layer-BlVNORgj.d.ts +139 -0
- package/dist/comment-layer-Ck2H24oJ.js +1206 -0
- package/dist/comment-panel-Djx-KxVa.d.ts +173 -0
- package/dist/comment-selection-bar-CbOEI98x.d.ts +33 -0
- package/dist/comment-selection-bar-CxPkJxVl.js +145 -0
- package/dist/comment-send.css +2 -2
- package/dist/{comment-thread-5h93DXds.js → comment-thread-C_Q4UDaV.js} +78 -53
- package/dist/{comment-thread-DSkWODKG.d.ts → comment-thread-X6gYMNay.d.ts} +11 -14
- package/dist/comments-B1itauwb.d.ts +52 -0
- package/dist/{comments-D9dONfs9.js → comments-BaSrroRV.js} +65 -44
- package/dist/comments-BtD28xEn.js +390 -0
- package/dist/{comments-CnG_c-_c.d.ts → comments-ZfV6IZs8.d.ts} +15 -7
- package/dist/{comments-context-CrjhleVA.js → comments-context-3js2YFl2.js} +2 -2
- package/dist/components-CM5mZe0a.js +269 -0
- package/dist/{config-BDvnaVUn.js → config-CFwvNt4Y.js} +16 -29
- package/dist/{config-xL4EBeXw.d.ts → config-JmsTI7gs.d.ts} +21 -33
- package/dist/connection-status-BVSH2ZVo.js +72 -0
- package/dist/connection-status-g62BTn44.d.ts +37 -0
- package/dist/copy-button-CRiXUFsl.d.ts +17 -0
- package/dist/device-frame-BW6IjB6P.d.ts +78 -0
- package/dist/device-frame-DDWoyB-G.js +515 -0
- package/dist/diffs-BTKaVnsb.d.ts +272 -0
- package/dist/diffs.d.ts +3 -0
- package/dist/{pierre-code-view-C49BVDrc.js → diffs.js} +147 -4223
- package/dist/{draw-DzSmD7uo-Cb7s9kxJ.js → draw-DzSmD7uo-BvtKi0oE.js} +2 -2
- package/dist/drop-field-C0bXv1J-.d.ts +35 -0
- package/dist/drop-field-DKpYQ3tO.js +77 -0
- package/dist/editor-BsOTjnnN.d.ts +540 -0
- package/dist/{markdown-editor-3gY9MLvy.js → editor-DJPUs1nt.js} +877 -116
- package/dist/editor.d.ts +2 -0
- package/dist/editor.js +3 -0
- package/dist/element-BpjNQvZ0.js +6 -0
- package/dist/{file-tree-CRFIdtzw.js → file-tree-B4JKbp4r.js} +19 -18
- package/dist/{file-tree-DOtkeBaq.d.ts → file-tree-BdnKA6UA.d.ts} +33 -8
- package/dist/file-tree-DDSIafDn.d.ts +22 -0
- package/dist/file-tree-DS5shGSL.js +46 -0
- package/dist/file-tree.d.ts +2 -0
- package/dist/file-tree.js +1 -0
- package/dist/files-cuVXzWlx.js +30 -0
- package/dist/filter-search-C9e6sGij.d.ts +28 -0
- package/dist/filter-search-COZsoRiR.js +73 -0
- package/dist/formatCSSVariablePrefix-DLS1Ed1_.js +5 -0
- package/dist/headless-2IcUWHMq.d.ts +51 -0
- package/dist/headless.d.ts +7 -4
- package/dist/headless.js +5 -3
- package/dist/highlight.d.ts +2 -0
- package/dist/highlight.js +1 -0
- package/dist/{highlights-C2AbEdDI.js → highlights-8Al0-h-v.js} +3 -2
- package/dist/{hold-to-delete-BSMrpE-i.d.ts → hold-to-delete-CQc1JaG_.d.ts} +7 -0
- package/dist/{hold-to-delete-Cludb56v.js → hold-to-delete-CcQbfiQx.js} +111 -20
- package/dist/hold-to-delete-cOPqQ9FJ.js +85 -0
- package/dist/hold-to-delete-ksBE7wxc.d.ts +58 -0
- package/dist/index-9Z6Gwtnf.d.ts +77 -0
- package/dist/{index-B2cbt3py.d.ts → index-D3-uYBqH.d.ts} +1 -1
- package/dist/index.d.ts +165 -52
- package/dist/index.js +127 -670
- package/dist/markdown-BLALLOc0.d.ts +45 -0
- package/dist/{markdown-renderer-BgsmNqv7.js → markdown-DDyOdYq_.js} +13044 -12356
- package/dist/{parts/components/markdown-renderer.d.ts → markdown-DkDxdpMU.d.ts} +10 -7
- package/dist/markdown-editor.d.ts +51 -98
- package/dist/markdown-editor.js +70 -3
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.js +1 -0
- package/dist/marker-CvcWZ3Zp.d.ts +59 -0
- package/dist/marker-DNL6QR3L.js +63 -0
- package/dist/message-BwivYIEl.js +13 -0
- package/dist/message-DEq4K5cQ.d.ts +72 -0
- package/dist/message-parts-B1BZFVKe.d.ts +3 -0
- package/dist/message-parts-CG3gNWn8.d.ts +11 -0
- package/dist/message-parts.d.ts +2 -0
- package/dist/message-parts.js +1 -0
- package/dist/message-scroller-D7AvM31v.d.ts +41 -0
- package/dist/motion/core.d.ts +4 -4
- package/dist/motion/core.js +5 -11
- package/dist/motion-BH6ShUam.d.ts +12 -0
- package/dist/{effects-DEoFFycD.js → motion-core-BdTfxAhY.js} +1779 -55
- package/dist/{motion-core-DNl7TR1T.d.ts → motion-core-BfIefToe.d.ts} +32 -74
- package/dist/motion-dPwxx3Wk.js +76 -0
- package/dist/{install-qNaj4OY4.js → motion-itHFtXwA.js} +1 -1
- package/dist/motion-list-BBbz93WT.js +49 -0
- package/dist/motion.d.ts +5 -14
- package/dist/motion.js +6 -13
- package/dist/nuxt-ui-CPdiTwwD.js +22 -0
- package/dist/nuxt.d.ts +9 -5
- package/dist/nuxt.js +28 -32
- package/dist/parts/components/agent-session.d.ts +2 -252
- package/dist/parts/components/agent-session.js +1 -639
- package/dist/parts/components/attachment.d.ts +2 -85
- package/dist/parts/components/attachment.js +3 -72
- package/dist/parts/components/avatar-stack.d.ts +3 -2
- package/dist/parts/components/avatar-stack.js +1 -60
- package/dist/parts/components/bubble.d.ts +2 -69
- package/dist/parts/components/bubble.js +3 -52
- package/dist/parts/components/chat-message.d.ts +3 -25
- package/dist/parts/components/chat-message.js +1 -50
- package/dist/parts/components/chat-session.d.ts +2 -26
- package/dist/parts/components/chat-session.js +1 -37
- package/dist/parts/components/chat.d.ts +3 -52
- package/dist/parts/components/chat.js +1 -105
- package/dist/parts/components/code-block.d.ts +2 -102
- package/dist/parts/components/code-block.js +4 -109
- package/dist/parts/components/code-view.d.ts +3 -268
- package/dist/parts/components/code-view.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +1 -645
- package/dist/parts/components/comment-panel.d.ts +2 -2
- package/dist/parts/components/comment-panel.js +49 -40
- package/dist/parts/components/comment-selection-bar.d.ts +2 -2
- package/dist/parts/components/comment-selection-bar.js +1 -116
- package/dist/parts/components/comment-thread.d.ts +2 -2
- package/dist/parts/components/comment-thread.js +1 -3
- package/dist/parts/components/comments.d.ts +8 -9
- package/dist/parts/components/comments.js +6 -9
- package/dist/parts/components/connection-status.d.ts +2 -36
- package/dist/parts/components/connection-status.js +1 -64
- package/dist/parts/components/copy-button.d.ts +3 -126
- package/dist/parts/components/copy-button.js +3 -226
- package/dist/parts/components/device-frame.d.ts +2 -128
- package/dist/parts/components/device-frame.js +1 -470
- package/dist/parts/components/drop-field.d.ts +2 -67
- package/dist/parts/components/drop-field.js +1 -76
- package/dist/parts/components/file-tree.d.ts +3 -2
- package/dist/parts/components/file-tree.js +3 -1
- package/dist/parts/components/filter-search.d.ts +2 -45
- package/dist/parts/components/filter-search.js +1 -57
- package/dist/parts/components/hold-to-delete.d.ts +2 -80
- package/dist/parts/components/hold-to-delete.js +1 -75
- package/dist/parts/components/markdown.d.ts +3 -45
- package/dist/parts/components/markdown.js +1 -46
- package/dist/parts/components/marker.d.ts +2 -32
- package/dist/parts/components/marker.js +1 -22
- package/dist/parts/components/message-parts.d.ts +3 -25
- package/dist/parts/components/message-parts.js +1 -45
- package/dist/parts/components/message.d.ts +2 -32
- package/dist/parts/components/message.js +3 -22
- package/dist/parts/components/motion-list.d.ts +2 -40
- package/dist/parts/components/motion-list.js +1 -41
- package/dist/parts/components/motion.d.ts +5 -118
- package/dist/parts/components/motion.js +4 -171
- package/dist/parts/components/patch-parsers.d.ts +1 -1
- package/dist/parts/components/progress.d.ts +2 -39
- package/dist/parts/components/progress.js +1 -53
- package/dist/parts/components/prompt-input.d.ts +2 -134
- package/dist/parts/components/prompt-input.js +1 -253
- package/dist/parts/components/relative-time.d.ts +2 -71
- package/dist/parts/components/relative-time.js +1 -1
- package/dist/parts/components/status.d.ts +2 -58
- package/dist/parts/components/status.js +1 -47
- package/dist/parts/components/sync-status.d.ts +2 -22
- package/dist/parts/components/sync-status.js +1 -48
- package/dist/parts/components/tool-list.d.ts +2 -28
- package/dist/parts/components/tool-list.js +1 -118
- package/dist/parts/components/trace-run.d.ts +2 -25
- package/dist/parts/components/trace-run.js +1 -89
- package/dist/parts/components/trace.d.ts +2 -59
- package/dist/parts/components/trace.js +1 -76
- package/dist/parts/composables/attachments.js +75 -1
- package/dist/parts/headless/choices-input.d.ts +2 -2
- package/dist/parts/headless/choices-input.js +49 -37
- package/dist/parts/headless/comments.d.ts +1 -1
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/headless/message-scroller.d.ts +2 -2
- package/dist/parts/headless/message-scroller.js +211 -309
- package/dist/parts/headless/relative-time.d.ts +2 -0
- package/dist/parts/headless/relative-time.js +1 -0
- package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
- package/dist/parts/workspace/browser-support-notice.js +6 -5
- package/dist/parts/workspace/connect-panel.js +1 -1
- package/dist/parts/workspace/runners/web-container.js +2 -2
- package/dist/parts/workspace/workspace-bar.d.ts +1 -1
- package/dist/parts/workspace/workspace-bar.js +1 -1
- package/dist/parts/workspace/workspace-boot-status.d.ts +1 -1
- package/dist/parts/workspace/workspace-boot-status.js +1 -206
- package/dist/parts/workspace/workspace-editor-head.d.ts +1 -1
- package/dist/parts/workspace/workspace-editor-head.js +1 -1
- package/dist/parts/workspace/workspace-editor.d.ts +2 -2
- package/dist/parts/workspace/workspace-examples.js +1 -1
- package/dist/parts/workspace/workspace-file-tree.d.ts +1 -1
- package/dist/parts/workspace/workspace-file-tree.js +3 -2
- package/dist/parts/workspace/workspace-guide.js +1 -1
- package/dist/parts/workspace/workspace-preview.d.ts +1 -1
- package/dist/parts/workspace/workspace-preview.js +14 -12
- package/dist/parts/workspace/workspace-shell.d.ts +1 -1
- package/dist/parts/workspace/workspace-shell.js +11 -11
- package/dist/parts/workspace/workspace-sidebar.d.ts +3 -3
- package/dist/parts/workspace/workspace-sidebar.js +2 -2
- package/dist/parts/workspace/workspace-start.js +1 -1
- package/dist/parts/workspace/workspace-steps.js +1 -1
- package/dist/parts/workspace/workspace.d.ts +4 -4
- package/dist/parts/workspace/workspace.js +5 -5
- package/dist/press-BuEC-XvZ.d.ts +83 -0
- package/dist/progress-Ch0fA-bf.d.ts +8 -0
- package/dist/progress-D_9sG648.js +47 -0
- package/dist/prompt-input-CRXEJBAK.js +412 -0
- package/dist/prompt-input-j4OFTF5p.d.ts +116 -0
- package/dist/relative-time-BnJfjeEm.js +131 -0
- package/dist/relative-time-BuP-Gvzn.d.ts +43 -0
- package/dist/{relative-time-DJnw45tr.js → relative-time-Dz2DR4eb.js} +64 -114
- package/dist/relative-time-grHFu1kY.d.ts +11 -0
- package/dist/{ring-BN4d8vtw.js → ring-DoL9jivj.js} +64 -14
- package/dist/runtime/nuxt-plugin.js +2 -5
- package/dist/{sankey-CAYwt82B-BAAk7WkJ.js → sankey-CAYwt82B-e6k34wtW.js} +3 -3
- package/dist/{shiki-CbfEu_Az.js → shiki-CxzM_xNo.js} +3 -2
- package/dist/stand-ins-CuKM1UH1.js +339 -0
- package/dist/status-B2Yhrwv8.js +67 -0
- package/dist/status-ySiRa-8O.d.ts +38 -0
- package/dist/{stream-tokenizer-ByC3l0HQ.js → stream-tokenizer-BsjV6wxW.js} +1 -1
- package/dist/styles.css +4315 -3362
- package/dist/sync-status-BRroyOre.js +59 -0
- package/dist/sync-status-D4KdGO6y.d.ts +35 -0
- package/dist/theme.css +3 -0
- package/dist/theme.d.ts +14 -0
- package/dist/theme.js +19 -8
- package/dist/{themes-DKugPHlg.js → themes-B0_ioVT0.js} +1 -1
- package/dist/tool-list-DDaCqpR6.js +209 -0
- package/dist/tool-list-DMRPM0Yi.d.ts +50 -0
- package/dist/trace-KCBvOsw_.d.ts +113 -0
- package/dist/trace-run-Dk962P5a.d.ts +49 -0
- package/dist/trace-run-nh6FIsl6.js +202 -0
- package/dist/{opt-out-D66l60sg.js → tween-lVMRCUEv.js} +60 -1
- package/dist/types-BF_U0tgp.d.ts +74 -0
- package/dist/types-CTk3aNb5.d.ts +15 -0
- package/dist/types-D0a3i4Fw.d.ts +21 -0
- package/dist/types-DTecvcsZ.d.ts +35 -0
- package/dist/types-D_BWab7g.d.ts +75 -0
- package/dist/types-RHaQ4gj1.d.ts +27 -0
- package/dist/ui-components-CKQAPI-W.js +7 -0
- package/dist/unwrapDefault-CExq-4rm.js +5 -0
- package/dist/use-copy-DK1SSZkh.js +66 -0
- package/dist/utils-hi9-xROt.js +37 -0
- package/dist/vite.d.ts +0 -1
- package/dist/vite.js +8 -14
- package/dist/{vue-Cs_HmYsp.js → vue-DdYvDVOr.js} +1 -1
- package/dist/workspace-boot-status-CyGlJS06.js +216 -0
- package/dist/{workspace-shell-ChCwWPyv.d.ts → workspace-shell-B4A7CINd.d.ts} +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -2
- package/package.json +49 -15
- package/dist/attachments-DgwoQZKY.js +0 -88
- package/dist/avatar-stack-C0IKwj6g.d.ts +0 -57
- package/dist/choices-input-BUf-QqGj.d.ts +0 -92
- package/dist/code-view-Cg4nyTNA.js +0 -172
- package/dist/comment-attachments-CMpYOJod.js +0 -19
- package/dist/comment-layer-Ba2DV4L7.d.ts +0 -174
- package/dist/comment-list-BJdZu0DS.d.ts +0 -60
- package/dist/comment-panel-DISGe7yM.d.ts +0 -206
- package/dist/comment-person-D_IyIjXo.js +0 -39
- package/dist/comment-pin-C5UeLPTa.d.ts +0 -66
- package/dist/comment-row-DPMWI5Z0.js +0 -38
- package/dist/comment-selection-bar-CVuS-FNL.d.ts +0 -40
- package/dist/comment-send-CH46zawK.js +0 -275
- package/dist/comment-send-MmxFsOQf.d.ts +0 -23
- package/dist/drop-field-CNZgwFVO.js +0 -162
- package/dist/editor-BuByBIkJ.js +0 -620
- package/dist/format-Bc9m7-r0.js +0 -38
- package/dist/handlers-CnbkvXjX.js +0 -181
- package/dist/icon-XZaCUZTG.d.ts +0 -29
- package/dist/image-preview-EqfPcFZ9.js +0 -104
- package/dist/index-B_PSX-5h.d.ts +0 -69
- package/dist/list-DUTAo0uC.js +0 -270
- package/dist/markdown-editor-B7gD60tp.d.ts +0 -189
- package/dist/message-scroller-a6qaYHno.d.ts +0 -173
- package/dist/nuxt-ui-7ByUrymx.js +0 -43
- package/dist/parts/components/comment-list.d.ts +0 -2
- package/dist/parts/components/comment-list.js +0 -172
- package/dist/parts/components/comment-pin.d.ts +0 -2
- package/dist/parts/components/comment-pin.js +0 -74
- package/dist/parts/components/comment-send.d.ts +0 -2
- package/dist/parts/components/comment-send.js +0 -1
- package/dist/parts/components/markdown-editor.d.ts +0 -2
- package/dist/parts/components/markdown-editor.js +0 -1
- package/dist/parts/components/markdown-renderer.js +0 -1
- package/dist/payload-text-DQNRbJY5.js +0 -31
- package/dist/progress-DL9k-ERG.js +0 -265
- package/dist/registry-DAIjCjWd.js +0 -77
- package/dist/slot-part-BWHvQ3mK.js +0 -25
- package/dist/text-BWzZFnGY.js +0 -822
- package/dist/travel-CwVhU_GS.js +0 -180
- package/dist/tween-Dv3IIIQG.js +0 -61
- package/dist/types-Ceh7h7NT.d.ts +0 -31
- package/dist/visual-copy-CHHBfJ6O.js +0 -14
- package/dist/vue-BlknIGIm.js +0 -2501
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { t as uiComponentsKey } from "./ui-components-CKQAPI-W.js";
|
|
2
|
+
import { defineComponent, getCurrentInstance, h, inject } from "vue";
|
|
3
|
+
import { Button } from "@ui-sdk/vue/button";
|
|
4
|
+
// src/internal/icon-shapes.ts
|
|
5
|
+
/** The stroke of every Lucide icon. An icon drawn from shapes without it sets it on its `<svg>`. */
|
|
6
|
+
const lucideStroke = {
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
"stroke-linecap": "round",
|
|
10
|
+
"stroke-linejoin": "round",
|
|
11
|
+
"stroke-width": "2"
|
|
12
|
+
};
|
|
13
|
+
// src/ui-sdk/icons.ts
|
|
14
|
+
const uiSdkIcons = {
|
|
15
|
+
"i-lucide-arrow-down": [["path", { "d": "M12 5v14m7-7l-7 7l-7-7" }]],
|
|
16
|
+
"i-lucide-arrow-left": [["path", { "d": "m12 19l-7-7l7-7m7 7H5" }]],
|
|
17
|
+
"i-lucide-arrow-right": [["path", { "d": "M5 12h14m-7-7l7 7l-7 7" }]],
|
|
18
|
+
"i-lucide-arrow-up": [["path", { "d": "m5 12l7-7l7 7m-7 7V5" }]],
|
|
19
|
+
"i-lucide-arrow-up-right": [["path", { "d": "M7 7h10v10M7 17L17 7" }]],
|
|
20
|
+
"i-lucide-bold": [["path", { "d": "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }]],
|
|
21
|
+
"i-lucide-check": [["path", { "d": "M20 6L9 17l-5-5" }]],
|
|
22
|
+
"i-lucide-chevron-down": [["path", { "d": "m6 9l6 6l6-6" }]],
|
|
23
|
+
"i-lucide-chevron-left": [["path", { "d": "m15 18l-6-6l6-6" }]],
|
|
24
|
+
"i-lucide-chevron-right": [["path", { "d": "m9 18l6-6l-6-6" }]],
|
|
25
|
+
"i-lucide-chevron-up": [["path", { "d": "m18 15l-6-6l-6 6" }]],
|
|
26
|
+
"i-lucide-chevrons-left": [["path", { "d": "m11 17l-5-5l5-5m7 10l-5-5l5-5" }]],
|
|
27
|
+
"i-lucide-chevrons-right": [["path", { "d": "m6 17l5-5l-5-5m7 10l5-5l-5-5" }]],
|
|
28
|
+
"i-lucide-circle-alert": [["circle", {
|
|
29
|
+
"cx": "12",
|
|
30
|
+
"cy": "12",
|
|
31
|
+
"r": "10"
|
|
32
|
+
}], ["path", { "d": "M12 8v4m0 4h.01" }]],
|
|
33
|
+
"i-lucide-circle-check": [["circle", {
|
|
34
|
+
"cx": "12",
|
|
35
|
+
"cy": "12",
|
|
36
|
+
"r": "10"
|
|
37
|
+
}], ["path", { "d": "m16 9l-5.5 5.5L8 12" }]],
|
|
38
|
+
"i-lucide-code": [["path", { "d": "m16 18l6-6l-6-6M8 6l-6 6l6 6" }]],
|
|
39
|
+
"i-lucide-copy": [["rect", {
|
|
40
|
+
"width": "14",
|
|
41
|
+
"height": "14",
|
|
42
|
+
"x": "8",
|
|
43
|
+
"y": "8",
|
|
44
|
+
"rx": "2",
|
|
45
|
+
"ry": "2"
|
|
46
|
+
}], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]],
|
|
47
|
+
"i-lucide-database": [
|
|
48
|
+
["ellipse", {
|
|
49
|
+
"cx": "12",
|
|
50
|
+
"cy": "5",
|
|
51
|
+
"rx": "9",
|
|
52
|
+
"ry": "3"
|
|
53
|
+
}],
|
|
54
|
+
["path", { "d": "M3 5v14a9 3 0 0 0 18 0V5" }],
|
|
55
|
+
["path", { "d": "M3 12a9 3 0 0 0 18 0" }]
|
|
56
|
+
],
|
|
57
|
+
"i-lucide-download": [["path", { "d": "M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10l5 5l5-5" }]],
|
|
58
|
+
"i-lucide-ellipsis": [
|
|
59
|
+
["circle", {
|
|
60
|
+
"cx": "12",
|
|
61
|
+
"cy": "12",
|
|
62
|
+
"r": "1"
|
|
63
|
+
}],
|
|
64
|
+
["circle", {
|
|
65
|
+
"cx": "19",
|
|
66
|
+
"cy": "12",
|
|
67
|
+
"r": "1"
|
|
68
|
+
}],
|
|
69
|
+
["circle", {
|
|
70
|
+
"cx": "5",
|
|
71
|
+
"cy": "12",
|
|
72
|
+
"r": "1"
|
|
73
|
+
}]
|
|
74
|
+
],
|
|
75
|
+
"i-lucide-external-link": [["path", { "d": "M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]],
|
|
76
|
+
"i-lucide-eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }], ["circle", {
|
|
77
|
+
"cx": "12",
|
|
78
|
+
"cy": "12",
|
|
79
|
+
"r": "3"
|
|
80
|
+
}]],
|
|
81
|
+
"i-lucide-eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20" }]],
|
|
82
|
+
"i-lucide-file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]],
|
|
83
|
+
"i-lucide-folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]],
|
|
84
|
+
"i-lucide-folder-open": [["path", { "d": "m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }]],
|
|
85
|
+
"i-lucide-grip-vertical": [
|
|
86
|
+
["circle", {
|
|
87
|
+
"cx": "9",
|
|
88
|
+
"cy": "12",
|
|
89
|
+
"r": "1"
|
|
90
|
+
}],
|
|
91
|
+
["circle", {
|
|
92
|
+
"cx": "9",
|
|
93
|
+
"cy": "5",
|
|
94
|
+
"r": "1"
|
|
95
|
+
}],
|
|
96
|
+
["circle", {
|
|
97
|
+
"cx": "9",
|
|
98
|
+
"cy": "19",
|
|
99
|
+
"r": "1"
|
|
100
|
+
}],
|
|
101
|
+
["circle", {
|
|
102
|
+
"cx": "15",
|
|
103
|
+
"cy": "12",
|
|
104
|
+
"r": "1"
|
|
105
|
+
}],
|
|
106
|
+
["circle", {
|
|
107
|
+
"cx": "15",
|
|
108
|
+
"cy": "5",
|
|
109
|
+
"r": "1"
|
|
110
|
+
}],
|
|
111
|
+
["circle", {
|
|
112
|
+
"cx": "15",
|
|
113
|
+
"cy": "19",
|
|
114
|
+
"r": "1"
|
|
115
|
+
}]
|
|
116
|
+
],
|
|
117
|
+
"i-lucide-hash": [["path", { "d": "M4 9h16M4 15h16M10 3L8 21m8-18l-2 18" }]],
|
|
118
|
+
"i-lucide-heading-1": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5 6l3-2v8" }]],
|
|
119
|
+
"i-lucide-heading-2": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m9 12h-4c0-4 4-3 4-6c0-1.5-2-2.5-4-1" }]],
|
|
120
|
+
"i-lucide-heading-3": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5.5 4.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2m-2 3.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }]],
|
|
121
|
+
"i-lucide-image": [
|
|
122
|
+
["rect", {
|
|
123
|
+
"width": "18",
|
|
124
|
+
"height": "18",
|
|
125
|
+
"x": "3",
|
|
126
|
+
"y": "3",
|
|
127
|
+
"rx": "2",
|
|
128
|
+
"ry": "2"
|
|
129
|
+
}],
|
|
130
|
+
["circle", {
|
|
131
|
+
"cx": "9",
|
|
132
|
+
"cy": "9",
|
|
133
|
+
"r": "2"
|
|
134
|
+
}],
|
|
135
|
+
["path", { "d": "m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
|
|
136
|
+
],
|
|
137
|
+
"i-lucide-info": [["circle", {
|
|
138
|
+
"cx": "12",
|
|
139
|
+
"cy": "12",
|
|
140
|
+
"r": "10"
|
|
141
|
+
}], ["path", { "d": "M12 16v-4m0-4h.01" }]],
|
|
142
|
+
"i-lucide-italic": [["path", { "d": "M19 4h-9m4 16H5M15 4L9 20" }]],
|
|
143
|
+
"i-lucide-lightbulb": [["path", { "d": "M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4" }]],
|
|
144
|
+
"i-lucide-link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]],
|
|
145
|
+
"i-lucide-list": [["path", { "d": "M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13" }]],
|
|
146
|
+
"i-lucide-list-ordered": [["path", { "d": "M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }]],
|
|
147
|
+
"i-lucide-loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]],
|
|
148
|
+
"i-lucide-menu": [["path", { "d": "M4 5h16M4 12h16M4 19h16" }]],
|
|
149
|
+
"i-lucide-message-circle": [["path", { "d": "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092a10 10 0 1 0-4.777-4.719" }]],
|
|
150
|
+
"i-lucide-minus": [["path", { "d": "M5 12h14" }]],
|
|
151
|
+
"i-lucide-monitor": [["rect", {
|
|
152
|
+
"width": "20",
|
|
153
|
+
"height": "14",
|
|
154
|
+
"x": "2",
|
|
155
|
+
"y": "3",
|
|
156
|
+
"rx": "2"
|
|
157
|
+
}], ["path", { "d": "M8 21h8m-4-4v4" }]],
|
|
158
|
+
"i-lucide-moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]],
|
|
159
|
+
"i-lucide-panel-left": [["rect", {
|
|
160
|
+
"width": "18",
|
|
161
|
+
"height": "18",
|
|
162
|
+
"x": "3",
|
|
163
|
+
"y": "3",
|
|
164
|
+
"rx": "2"
|
|
165
|
+
}], ["path", { "d": "M9 3v18" }]],
|
|
166
|
+
"i-lucide-panel-left-close": [["rect", {
|
|
167
|
+
"width": "18",
|
|
168
|
+
"height": "18",
|
|
169
|
+
"x": "3",
|
|
170
|
+
"y": "3",
|
|
171
|
+
"rx": "2"
|
|
172
|
+
}], ["path", { "d": "M9 3v18m7-6l-3-3l3-3" }]],
|
|
173
|
+
"i-lucide-panel-left-open": [["rect", {
|
|
174
|
+
"width": "18",
|
|
175
|
+
"height": "18",
|
|
176
|
+
"x": "3",
|
|
177
|
+
"y": "3",
|
|
178
|
+
"rx": "2"
|
|
179
|
+
}], ["path", { "d": "M9 3v18m5-12l3 3l-3 3" }]],
|
|
180
|
+
"i-lucide-pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4" }]],
|
|
181
|
+
"i-lucide-play": [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]],
|
|
182
|
+
"i-lucide-plus": [["path", { "d": "M5 12h14m-7-7v14" }]],
|
|
183
|
+
"i-lucide-quote": [["path", { "d": "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2zM5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }]],
|
|
184
|
+
"i-lucide-refresh-cw": [
|
|
185
|
+
["path", { "d": "M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8" }],
|
|
186
|
+
["path", { "d": "M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16" }],
|
|
187
|
+
["path", { "d": "M8 16H3v5" }]
|
|
188
|
+
],
|
|
189
|
+
"i-lucide-rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]],
|
|
190
|
+
"i-lucide-search": [["path", { "d": "m21 21l-4.34-4.34" }], ["circle", {
|
|
191
|
+
"cx": "11",
|
|
192
|
+
"cy": "11",
|
|
193
|
+
"r": "8"
|
|
194
|
+
}]],
|
|
195
|
+
"i-lucide-square": [["rect", {
|
|
196
|
+
"width": "18",
|
|
197
|
+
"height": "18",
|
|
198
|
+
"x": "3",
|
|
199
|
+
"y": "3",
|
|
200
|
+
"rx": "2"
|
|
201
|
+
}]],
|
|
202
|
+
"i-lucide-square-code": [["path", { "d": "m10 9l-3 3l3 3m4 0l3-3l-3-3" }], ["rect", {
|
|
203
|
+
"width": "18",
|
|
204
|
+
"height": "18",
|
|
205
|
+
"x": "3",
|
|
206
|
+
"y": "3",
|
|
207
|
+
"rx": "2"
|
|
208
|
+
}]],
|
|
209
|
+
"i-lucide-square-pen": [["path", { "d": "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }], ["path", { "d": "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" }]],
|
|
210
|
+
"i-lucide-star": [["path", { "d": "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z" }]],
|
|
211
|
+
"i-lucide-strikethrough": [["path", { "d": "M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16" }]],
|
|
212
|
+
"i-lucide-sun": [["circle", {
|
|
213
|
+
"cx": "12",
|
|
214
|
+
"cy": "12",
|
|
215
|
+
"r": "4"
|
|
216
|
+
}], ["path", { "d": "M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" }]],
|
|
217
|
+
"i-lucide-text-wrap": [["path", { "d": "m16 16l-3 3l3 3" }], ["path", { "d": "M3 12h14.5a1 1 0 0 1 0 7H13M3 19h6M3 5h18" }]],
|
|
218
|
+
"i-lucide-trash-2": [["path", { "d": "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]],
|
|
219
|
+
"i-lucide-triangle-alert": [["path", { "d": "m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" }]],
|
|
220
|
+
"i-lucide-type": [["path", { "d": "M12 4v16M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2M9 20h6" }]],
|
|
221
|
+
"i-lucide-upload": [["path", { "d": "M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]],
|
|
222
|
+
"i-lucide-x": [["path", { "d": "M18 6L6 18M6 6l12 12" }]]
|
|
223
|
+
};
|
|
224
|
+
// src/ui-sdk/stand-ins.ts
|
|
225
|
+
/** Draws the Lucide icons that the parts use, from shapes in the bundle. Another name draws an empty icon. */
|
|
226
|
+
const UIcon = defineComponent({
|
|
227
|
+
name: "UIcon",
|
|
228
|
+
inheritAttrs: false,
|
|
229
|
+
props: { name: {
|
|
230
|
+
default: "",
|
|
231
|
+
type: String
|
|
232
|
+
} },
|
|
233
|
+
setup(props, { attrs }) {
|
|
234
|
+
return () => h("svg", {
|
|
235
|
+
...lucideStroke,
|
|
236
|
+
"aria-hidden": "true",
|
|
237
|
+
...attrs,
|
|
238
|
+
height: "1em",
|
|
239
|
+
viewBox: "0 0 24 24",
|
|
240
|
+
width: "1em"
|
|
241
|
+
}, uiSdkIcons[props.name]?.map(([tag, shape]) => h(tag, shape)));
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
/** Reads an attribute that has to be a string. Attributes reach a component untyped. */
|
|
245
|
+
const text = (value) => typeof value === "string" ? value : void 0;
|
|
246
|
+
const Button$1 = Button;
|
|
247
|
+
function buttonVariant(color, variant) {
|
|
248
|
+
if (variant === "ghost" || variant === "link") return variant;
|
|
249
|
+
if (color === "error") return "destructive";
|
|
250
|
+
if (variant === "soft" || variant === "subtle") return "soft";
|
|
251
|
+
return variant === "solid" ? "solid" : void 0;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Nuxt UI's `UButton` as the parts use it. A part that names its button, such as `data-slot="copy-button"`, finds the
|
|
255
|
+
* name in `data-part`, because `data-slot="button"` is what the kit styles.
|
|
256
|
+
*/
|
|
257
|
+
const UButton = defineComponent({
|
|
258
|
+
name: "UButton",
|
|
259
|
+
inheritAttrs: false,
|
|
260
|
+
props: {
|
|
261
|
+
color: {
|
|
262
|
+
default: "primary",
|
|
263
|
+
type: String
|
|
264
|
+
},
|
|
265
|
+
disabled: {
|
|
266
|
+
default: false,
|
|
267
|
+
type: Boolean
|
|
268
|
+
},
|
|
269
|
+
external: {
|
|
270
|
+
default: void 0,
|
|
271
|
+
type: Boolean
|
|
272
|
+
},
|
|
273
|
+
icon: { type: String },
|
|
274
|
+
label: { type: String },
|
|
275
|
+
loading: {
|
|
276
|
+
default: false,
|
|
277
|
+
type: Boolean
|
|
278
|
+
},
|
|
279
|
+
size: {
|
|
280
|
+
default: "md",
|
|
281
|
+
type: String
|
|
282
|
+
},
|
|
283
|
+
square: {
|
|
284
|
+
default: false,
|
|
285
|
+
type: Boolean
|
|
286
|
+
},
|
|
287
|
+
to: { type: String },
|
|
288
|
+
trailingIcon: { type: String },
|
|
289
|
+
type: {
|
|
290
|
+
default: "button",
|
|
291
|
+
type: String
|
|
292
|
+
},
|
|
293
|
+
ui: { type: Object },
|
|
294
|
+
variant: {
|
|
295
|
+
default: "solid",
|
|
296
|
+
type: String
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
setup(props, { attrs, slots }) {
|
|
300
|
+
const UIcon = useStandIn("UIcon");
|
|
301
|
+
return () => {
|
|
302
|
+
const shared = {
|
|
303
|
+
...attrs,
|
|
304
|
+
"aria-busy": props.loading ? "true" : text(attrs["aria-busy"]),
|
|
305
|
+
"data-part": text(attrs["data-slot"]),
|
|
306
|
+
"data-size": props.size,
|
|
307
|
+
"data-slot": "button",
|
|
308
|
+
"data-variant": buttonVariant(props.color, props.variant)
|
|
309
|
+
};
|
|
310
|
+
const leading = props.loading ? "i-lucide-loader-circle" : props.icon;
|
|
311
|
+
const content = () => [
|
|
312
|
+
slots.leading ? slots.leading({}) : leading ? h(UIcon, {
|
|
313
|
+
"data-slot": props.loading ? "spinner" : void 0,
|
|
314
|
+
name: leading
|
|
315
|
+
}) : null,
|
|
316
|
+
slots.default ? slots.default() : props.label ? h("span", props.label) : null,
|
|
317
|
+
props.trailingIcon ? h(UIcon, { name: props.trailingIcon }) : null
|
|
318
|
+
];
|
|
319
|
+
if (props.to) return h("a", {
|
|
320
|
+
...shared,
|
|
321
|
+
href: props.to
|
|
322
|
+
}, content());
|
|
323
|
+
return h(Button$1, {
|
|
324
|
+
...shared,
|
|
325
|
+
disabled: props.disabled || props.loading,
|
|
326
|
+
type: props.type
|
|
327
|
+
}, content);
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
const standIns = {
|
|
332
|
+
UButton,
|
|
333
|
+
UIcon
|
|
334
|
+
};
|
|
335
|
+
/** The component that the editor parts render for `name`: the one given to `createViteHubUI({ components })` or registered globally, else the ui-sdk one. */
|
|
336
|
+
function useStandIn(name) {
|
|
337
|
+
return inject(uiComponentsKey, void 0)?.[name] ?? getCurrentInstance()?.appContext.components[name] ?? standIns[name];
|
|
338
|
+
}
|
|
339
|
+
export { useStandIn as i, UIcon as n, text as r, UButton as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, withCtx } from "vue";
|
|
2
|
+
// registry/status/StatusIndicator.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
const _hoisted_1$2 = {
|
|
4
|
+
"data-slot": "status-indicator",
|
|
5
|
+
"aria-hidden": "true"
|
|
6
|
+
};
|
|
7
|
+
// registry/status/StatusIndicator.vue
|
|
8
|
+
var StatusIndicator_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "StatusIndicator",
|
|
10
|
+
__name: "StatusIndicator",
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createElementBlock("span", _hoisted_1$2);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
// registry/status/StatusLabel.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
+
const _hoisted_1$1 = { "data-slot": "status-label" };
|
|
19
|
+
// registry/status/StatusLabel.vue
|
|
20
|
+
var StatusLabel_default = /* @__PURE__ */ defineComponent({
|
|
21
|
+
name: "StatusLabel",
|
|
22
|
+
__name: "StatusLabel",
|
|
23
|
+
setup(__props) {
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock("span", _hoisted_1$1, [renderSlot(_ctx.$slots, "default")]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
// registry/status/Status.vue?vue&type=script&setup=true&lang.ts
|
|
30
|
+
const _hoisted_1 = [
|
|
31
|
+
"data-tone",
|
|
32
|
+
"data-size",
|
|
33
|
+
"data-colored",
|
|
34
|
+
"data-pulse"
|
|
35
|
+
];
|
|
36
|
+
// registry/status/Status.vue
|
|
37
|
+
var Status_default = /* @__PURE__ */ defineComponent({
|
|
38
|
+
__name: "Status",
|
|
39
|
+
props: {
|
|
40
|
+
tone: { default: "neutral" },
|
|
41
|
+
label: {},
|
|
42
|
+
size: { default: "sm" },
|
|
43
|
+
colored: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
pulse: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setup(__props) {
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createElementBlock("span", {
|
|
55
|
+
"data-slot": "status",
|
|
56
|
+
"data-tone": __props.tone,
|
|
57
|
+
"data-size": __props.size,
|
|
58
|
+
"data-colored": __props.colored ? "" : void 0,
|
|
59
|
+
"data-pulse": __props.pulse ? "" : void 0
|
|
60
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(StatusIndicator_default), __props.label ? (openBlock(), createBlock(StatusLabel_default, { key: 0 }, {
|
|
61
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.label), 1)]),
|
|
62
|
+
_: 1
|
|
63
|
+
})) : createCommentVNode("v-if", true)])], 8, _hoisted_1);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export { StatusLabel_default as n, StatusIndicator_default as r, Status_default as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type StatusTone = "neutral" | "success" | "warning" | "error" | "info";
|
|
2
|
+
type StatusSize = "sm" | "md";
|
|
3
|
+
interface StatusProps {
|
|
4
|
+
tone?: StatusTone;
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: StatusSize;
|
|
7
|
+
colored?: boolean;
|
|
8
|
+
pulse?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface StatusSlots {
|
|
11
|
+
default?: () => unknown;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Slots$1 = StatusSlots;
|
|
14
|
+
declare const __VLS_base$1: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<StatusProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<StatusProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
16
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
17
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export$1: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
24
|
+
declare const __VLS_template: () => {
|
|
25
|
+
__VLS_Slots: {
|
|
26
|
+
default?: (props: {}) => any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
30
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export { StatusSize as a, StatusProps as i, _default$1 as n, StatusSlots as o, _default$2 as r, StatusTone as s, _default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as releaseHighlighterType, b as HighlighterDisposedError, l as hastToHtml, n as renderTokenLines, o as lineChangesOf, x as acquireHighlighterType } from "./appendItems-hQ4aBd9Q.js";
|
|
2
2
|
// ../../node_modules/.pnpm/@pierre+diffs@1.7.1_@shikijs+themes@4.6.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/utils/tokensToHtml.js
|
|
3
3
|
/**
|
|
4
4
|
* Renders existing tokens as a pre/code HTML block without highlighting again.
|