@alexgorbatchev/shadcn 0.0.107 → 0.0.109
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 +5 -1
- package/dist/{chunk-cvg1bn5z.js → chunk-0bbhrawv.js} +1 -1
- package/dist/{chunk-qa0j0v26.js → chunk-0cqaxjp8.js} +2 -2
- package/dist/{chunk-t75anqyy.js → chunk-0qdcttez.js} +1 -1
- package/dist/{chunk-85c1dxtm.js → chunk-0tbrqk6r.js} +1 -1
- package/dist/{chunk-qf7zm619.js → chunk-0vy5s55a.js} +1 -1
- package/dist/{chunk-r1qyx0ke.js → chunk-0w0tj1hk.js} +1 -1
- package/dist/{chunk-685qjx1b.js → chunk-0ybksfe7.js} +1 -1
- package/dist/{chunk-3gvahjbe.js → chunk-11q74rjm.js} +1 -1
- package/dist/{chunk-mm3a9s11.js → chunk-1582w4zz.js} +1 -1
- package/dist/{chunk-7ge3mb18.js → chunk-1n1nx1jy.js} +4 -4
- package/dist/{chunk-25v1djy5.js → chunk-24trj88k.js} +1 -1
- package/dist/{chunk-pqjmhmdq.js → chunk-24v8te1t.js} +1 -1
- package/dist/{chunk-22pzx7jn.js → chunk-2aqahc30.js} +1 -1
- package/dist/{chunk-fatsqayy.js → chunk-30a28nc5.js} +3 -3
- package/dist/{chunk-t3skf9ty.js → chunk-31ct9w5e.js} +1 -1
- package/dist/{chunk-9n617bte.js → chunk-32ah7jyp.js} +2 -2
- package/dist/{chunk-3x6nhpgy.js → chunk-3mxkgd2q.js} +2 -2
- package/dist/{chunk-atxtdj7a.js → chunk-4a2xfc3m.js} +1 -1
- package/dist/{chunk-59emaywr.js → chunk-4ep5q65g.js} +2 -2
- package/dist/{chunk-xn9m76jt.js → chunk-4q2rkng2.js} +1 -1
- package/dist/{chunk-7yc7phbt.js → chunk-53qy2k6m.js} +1 -1
- package/dist/{chunk-che2mtt5.js → chunk-5d18srnr.js} +2 -2
- package/dist/{chunk-8yxf21e9.js → chunk-5fhtf8wq.js} +1 -1
- package/dist/{chunk-r4r4qcyx.js → chunk-5hjkffyw.js} +1 -1
- package/dist/{chunk-f7wfcc1g.js → chunk-5txazxda.js} +3 -3
- package/dist/{chunk-gbn9rt3w.js → chunk-610gnte3.js} +1 -1
- package/dist/{chunk-zt1x0wyq.js → chunk-6bcj70ew.js} +1 -1
- package/dist/{chunk-1ddvvmq7.js → chunk-6fxxzshn.js} +1 -1
- package/dist/{chunk-3b5v59mq.js → chunk-6mg8bzp5.js} +3 -3
- package/dist/{chunk-ybnwwsvj.js → chunk-72jmqres.js} +1 -1
- package/dist/{chunk-dyg4pwcd.js → chunk-732drvzb.js} +1 -1
- package/dist/{chunk-d1vxr8ek.js → chunk-76kyvhkv.js} +1 -1
- package/dist/{chunk-8pkttcb2.js → chunk-8ahmz1mm.js} +1 -1
- package/dist/{chunk-x9epw740.js → chunk-8ge3reev.js} +1 -1
- package/dist/{chunk-bsg378sy.js → chunk-8sr6hv76.js} +8 -8
- package/dist/{chunk-w8r9a9zd.js → chunk-8w230vtq.js} +1 -1
- package/dist/{chunk-nqgpzqmk.js → chunk-984sr494.js} +1 -1
- package/dist/{chunk-22ybn8qf.js → chunk-9hm8kj93.js} +1 -1
- package/dist/{chunk-dnnxz673.js → chunk-9tyf36w5.js} +1 -1
- package/dist/{chunk-vh5r4agk.js → chunk-9xvjns4c.js} +1 -1
- package/dist/{chunk-bbzbnwz9.js → chunk-a5w7tnp1.js} +1 -1
- package/dist/{chunk-3vm7crwe.js → chunk-a9a1vpn6.js} +2 -2
- package/dist/{chunk-rfvzwbja.js → chunk-ah27j769.js} +1 -1
- package/dist/{chunk-szc0hkzd.js → chunk-aj08hc00.js} +1 -1
- package/dist/{chunk-8v4dvfm5.js → chunk-b56nbr92.js} +1 -1
- package/dist/{chunk-sjy1347w.js → chunk-bdd1yzys.js} +1 -1
- package/dist/{chunk-nttvd66y.js → chunk-bph2mybv.js} +1 -1
- package/dist/{chunk-zz3egmv4.js → chunk-bprjdqdt.js} +3 -3
- package/dist/{chunk-77k07x58.js → chunk-bqbkdb0p.js} +1 -1
- package/dist/{chunk-a2mepxnb.js → chunk-c0td647h.js} +2 -2
- package/dist/{chunk-c0837w3f.js → chunk-c3159hf9.js} +1 -1
- package/dist/{chunk-xfz7r7dk.js → chunk-ckkmv09z.js} +1 -1
- package/dist/{chunk-tqrn8kq8.js → chunk-cqwg3q9q.js} +1 -1
- package/dist/{chunk-r9fz7vr5.js → chunk-cqwy0j4n.js} +1 -1
- package/dist/{chunk-9t530p75.js → chunk-dbe9ppwf.js} +1 -1
- package/dist/{chunk-vr6xc6zs.js → chunk-df032n8a.js} +1 -1
- package/dist/{chunk-kqtsvprx.js → chunk-dkrjvf4a.js} +1 -1
- package/dist/{chunk-02220n6y.js → chunk-dx5x3jk1.js} +2 -2
- package/dist/{chunk-3embwe93.js → chunk-eet68rq1.js} +2 -2
- package/dist/{chunk-xfx55ter.js → chunk-ej2jg6n4.js} +2 -2
- package/dist/{chunk-j1aecx7s.js → chunk-ekn2gy3e.js} +1 -1
- package/dist/{chunk-zd8553p5.js → chunk-emm7np52.js} +1 -1
- package/dist/{chunk-xyttc32e.js → chunk-eqcfg4y3.js} +1 -1
- package/dist/{chunk-0fs7kth5.js → chunk-ereq0kj9.js} +3 -3
- package/dist/{chunk-262s62aq.js → chunk-f605gtbd.js} +1 -1
- package/dist/{chunk-j62723nh.js → chunk-f94ftwme.js} +2 -2
- package/dist/{chunk-yp77c8zn.js → chunk-fnmh86gy.js} +3 -3
- package/dist/{chunk-hypedq7q.js → chunk-g9vdnhat.js} +1 -1
- package/dist/{chunk-93ynz1wv.js → chunk-gb31r09j.js} +1 -1
- package/dist/{chunk-74b44xsc.js → chunk-get1zhxy.js} +1 -1
- package/dist/{chunk-yjxhbka1.js → chunk-gwxx2v0x.js} +1 -1
- package/dist/{chunk-5gvjy8cn.js → chunk-gxekm9xn.js} +1 -1
- package/dist/{chunk-j7fvvgyp.js → chunk-h1b1mqnc.js} +5 -2
- package/dist/{chunk-ygpagrh1.js → chunk-h78mpxpj.js} +2 -2
- package/dist/{chunk-3cm4n98p.js → chunk-hcg1p53s.js} +1 -1
- package/dist/{chunk-afx7cvzs.js → chunk-ht3qtcsn.js} +1 -1
- package/dist/{chunk-j3snybeg.js → chunk-j69ffkfb.js} +1 -1
- package/dist/{chunk-m8ky82vb.js → chunk-j9gsd9qf.js} +1 -1
- package/dist/{chunk-45zrx7ya.js → chunk-jb5707dj.js} +1 -1
- package/dist/{chunk-q6ay6f5f.js → chunk-k111rkrf.js} +2 -2
- package/dist/{chunk-3hef9n5h.js → chunk-k6xrvxr2.js} +1 -1
- package/dist/{chunk-c1yg3z68.js → chunk-k92jf98e.js} +1 -1
- package/dist/{chunk-cc3wzmev.js → chunk-km7rpkds.js} +1 -1
- package/dist/{chunk-1fsk8f1v.js → chunk-knhc5k76.js} +1 -1
- package/dist/{chunk-3kspw545.js → chunk-kw1pftqj.js} +1 -1
- package/dist/{chunk-694x8nwa.js → chunk-m3atn727.js} +1 -1
- package/dist/{chunk-55hw5nd8.js → chunk-mgkgzytk.js} +1 -1
- package/dist/{chunk-h2hpkawe.js → chunk-mm4c6wxz.js} +1 -1
- package/dist/{chunk-rxmcz0j1.js → chunk-mpgngw78.js} +213 -155
- package/dist/{chunk-6nhv1vq5.js → chunk-n19w93fp.js} +1 -1
- package/dist/{chunk-x80ehefm.js → chunk-n8jx11sy.js} +2 -2
- package/dist/{chunk-4hmj9az4.js → chunk-ng86b6fq.js} +3 -3
- package/dist/{chunk-nyq9y0bg.js → chunk-nszx5xby.js} +1 -1
- package/dist/{chunk-wqtk5vkd.js → chunk-p0hkv4vy.js} +2 -2
- package/dist/{chunk-tcbjvdem.js → chunk-pmgdezc0.js} +10 -4
- package/dist/{chunk-1xgqshkv.js → chunk-pp8ez02x.js} +1 -1
- package/dist/{chunk-c4ck7g88.js → chunk-pws62b2y.js} +1 -1
- package/dist/{chunk-1qs5ngkg.js → chunk-pzvsb26f.js} +1 -1
- package/dist/{chunk-e12mbz2h.js → chunk-q4kkpcsk.js} +1 -1
- package/dist/{chunk-55sxthsw.js → chunk-q62y4j58.js} +2 -2
- package/dist/{chunk-qy62vymz.js → chunk-qamjp50b.js} +2 -2
- package/dist/{chunk-sdkk4n8d.js → chunk-qdq14156.js} +1 -1
- package/dist/{chunk-zmddc9cd.js → chunk-qm6hkc9k.js} +1 -1
- package/dist/{chunk-1sptf246.js → chunk-r06cjsaz.js} +1 -1
- package/dist/{chunk-y4xt9zfq.js → chunk-rtrmthsz.js} +8 -8
- package/dist/{chunk-f3r6gdhh.js → chunk-se3th4fa.js} +1 -1
- package/dist/{chunk-fe33dx54.js → chunk-sk8v27sn.js} +1 -1
- package/dist/{chunk-mc8a4r50.js → chunk-sky8fz4n.js} +1 -1
- package/dist/{chunk-p2df6hpx.js → chunk-ssv1fyqh.js} +2 -2
- package/dist/{chunk-k7bg5ahv.js → chunk-svf8b094.js} +1 -1
- package/dist/{chunk-5ct9625h.js → chunk-svzwkmd4.js} +1 -1
- package/dist/{chunk-rz1tcez4.js → chunk-sx2saxnr.js} +1 -1
- package/dist/{chunk-cxgdj2ht.js → chunk-tj8st7pd.js} +2 -2
- package/dist/{chunk-jstcq6j1.js → chunk-tjs0q52a.js} +1 -1
- package/dist/{chunk-67s02cfw.js → chunk-tkfb355g.js} +1 -1
- package/dist/{chunk-6cz8cr21.js → chunk-tq1kq4k8.js} +1 -1
- package/dist/{chunk-6kdbnv4d.js → chunk-tvpw0qc2.js} +2 -2
- package/dist/{chunk-fpq79ygk.js → chunk-txg4cx6s.js} +1 -1
- package/dist/{chunk-yd3h2yx1.js → chunk-v588z351.js} +1 -1
- package/dist/{chunk-98jw2c75.js → chunk-vwarbpzr.js} +1 -1
- package/dist/{chunk-m43ybcxv.js → chunk-w0ctnrwv.js} +2 -2
- package/dist/{chunk-7xdx6cdp.js → chunk-w1w8gr66.js} +1 -1
- package/dist/{chunk-t87gra6t.js → chunk-w7ncwwrw.js} +1 -1
- package/dist/{chunk-rjy17qmh.js → chunk-wxrg5vsm.js} +1 -1
- package/dist/{chunk-32t5kc0y.js → chunk-x1razcfy.js} +8 -0
- package/dist/{chunk-s1asnp91.js → chunk-xda29c07.js} +1 -1
- package/dist/{chunk-n8n3gp71.js → chunk-xdefvgvq.js} +1 -1
- package/dist/{chunk-qddmszcp.js → chunk-xhhxcrby.js} +1 -1
- package/dist/{chunk-r63yrdr2.js → chunk-xjh7kcqw.js} +2 -2
- package/dist/{chunk-2v71wpyj.js → chunk-y48k02rp.js} +1 -1
- package/dist/{chunk-gmvg6hap.js → chunk-yawwpavh.js} +1 -1
- package/dist/{chunk-tk0w0tf7.js → chunk-yp4mqzrs.js} +1 -1
- package/dist/{chunk-jhqb6z35.js → chunk-yvy3qp2c.js} +1 -1
- package/dist/{chunk-7n0et0mp.js → chunk-zc0dnw5a.js} +2 -2
- package/dist/{chunk-ybsr621k.js → chunk-zhs48t17.js} +1 -1
- package/dist/{chunk-6nhb1ry9.js → chunk-zn8028g2.js} +1 -1
- package/dist/{chunk-me64e034.js → chunk-zwpa0vvy.js} +2 -2
- package/dist/components/PanelHeader.d.ts +23 -0
- package/dist/components/Toolbar.d.ts +11 -2
- package/dist/components/assistant-ui/elements/AgentCard.js +2 -2
- package/dist/components/assistant-ui/elements/ApprovalCard.js +2 -2
- package/dist/components/assistant-ui/elements/ArtifactCard.js +2 -2
- package/dist/components/assistant-ui/elements/AudioPlayer.js +2 -2
- package/dist/components/assistant-ui/elements/BackgroundInbox.js +2 -2
- package/dist/components/assistant-ui/elements/CanvasSplit.js +2 -2
- package/dist/components/assistant-ui/elements/ChatPanel.js +3 -3
- package/dist/components/assistant-ui/elements/CheckpointHistory.js +2 -2
- package/dist/components/assistant-ui/elements/Citation.js +2 -2
- package/dist/components/assistant-ui/elements/CodeRunner.js +2 -2
- package/dist/components/assistant-ui/elements/CommandPalette.js +5 -5
- package/dist/components/assistant-ui/elements/ComposerAttachButton.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerAttachmentChip.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerAttachments.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerBar.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerCommandItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerContext.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerInput.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerMenuItem.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerModelItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerModelTrigger.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerPersonItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerSend.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerToolbar.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerVoiceButton.js +2 -2
- package/dist/components/assistant-ui/elements/ConnectionState.js +2 -2
- package/dist/components/assistant-ui/elements/ConversationSearch.js +3 -3
- package/dist/components/assistant-ui/elements/DataTable.js +3 -3
- package/dist/components/assistant-ui/elements/Diagram.js +2 -2
- package/dist/components/assistant-ui/elements/DiffViewer.js +6 -6
- package/dist/components/assistant-ui/elements/DiffViewerFileBadge.js +2 -2
- package/dist/components/assistant-ui/elements/DiffViewerHeader.js +5 -5
- package/dist/components/assistant-ui/elements/DiffViewerStats.js +2 -2
- package/dist/components/assistant-ui/elements/DirectiveText.js +2 -2
- package/dist/components/assistant-ui/elements/DocumentReference.js +2 -2
- package/dist/components/assistant-ui/elements/DraftRestore.js +2 -2
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/ElicitationForm.js +2 -2
- package/dist/components/assistant-ui/elements/EmptyStateComposer.js +3 -3
- package/dist/components/assistant-ui/elements/EmptyStateSuggestion.js +2 -2
- package/dist/components/assistant-ui/elements/ErrorState.js +2 -2
- package/dist/components/assistant-ui/elements/EveAskQuestion.js +3 -3
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +3 -3
- package/dist/components/assistant-ui/elements/File.js +3 -3
- package/dist/components/assistant-ui/elements/GenerativeUi.js +6 -6
- package/dist/components/assistant-ui/elements/GeoMap.js +2 -2
- package/dist/components/assistant-ui/elements/GuardrailNotice.js +2 -2
- package/dist/components/assistant-ui/elements/Image.js +3 -3
- package/dist/components/assistant-ui/elements/ImageGallery.js +3 -3
- package/dist/components/assistant-ui/elements/ImageGeneration.js +2 -2
- package/dist/components/assistant-ui/elements/JobProgress.js +2 -2
- package/dist/components/assistant-ui/elements/LauncherBubble.js +3 -3
- package/dist/components/assistant-ui/elements/MapAnswer.js +2 -2
- package/dist/components/assistant-ui/elements/MarkdownText.js +3 -3
- package/dist/components/assistant-ui/elements/McpServerPanel.js +3 -3
- package/dist/components/assistant-ui/elements/MemoryChips.js +2 -2
- package/dist/components/assistant-ui/elements/MermaidDiagram.js +4 -4
- package/dist/components/assistant-ui/elements/MermaidZoom.js +3 -3
- package/dist/components/assistant-ui/elements/MessageActions.js +3 -3
- package/dist/components/assistant-ui/elements/MessageAttachments.js +2 -2
- package/dist/components/assistant-ui/elements/MessageBranches.js +2 -2
- package/dist/components/assistant-ui/elements/MessagePair.js +2 -2
- package/dist/components/assistant-ui/elements/MessageQueue.js +2 -2
- package/dist/components/assistant-ui/elements/MobileComposer.js +3 -3
- package/dist/components/assistant-ui/elements/ModelPicker.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelector.js +11 -11
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +10 -10
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +7 -7
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +5 -5
- package/dist/components/assistant-ui/elements/Onboarding.js +2 -2
- package/dist/components/assistant-ui/elements/OptionList.js +2 -2
- package/dist/components/assistant-ui/elements/PermissionGrant.js +2 -2
- package/dist/components/assistant-ui/elements/PromptLibrary.js +3 -3
- package/dist/components/assistant-ui/elements/QuestionFlow.js +3 -3
- package/dist/components/assistant-ui/elements/QuotaBanner.js +2 -2
- package/dist/components/assistant-ui/elements/QuoteReply.js +2 -2
- package/dist/components/assistant-ui/elements/ReadAloud.js +2 -2
- package/dist/components/assistant-ui/elements/ReasoningEffort.js +2 -2
- package/dist/components/assistant-ui/elements/RecommendationCard.js +2 -2
- package/dist/components/assistant-ui/elements/RegenerateMenu.js +2 -2
- package/dist/components/assistant-ui/elements/ReviewableDiff.js +2 -2
- package/dist/components/assistant-ui/elements/ScoreBreakdown.js +2 -2
- package/dist/components/assistant-ui/elements/SettingsPanel.js +2 -2
- package/dist/components/assistant-ui/elements/SharedConversation.js +2 -2
- package/dist/components/assistant-ui/elements/StoppedRun.js +2 -2
- package/dist/components/assistant-ui/elements/Suggestions.js +2 -2
- package/dist/components/assistant-ui/elements/TaskCard.js +2 -2
- package/dist/components/assistant-ui/elements/TerminalBlock.js +2 -2
- package/dist/components/assistant-ui/elements/ThreadList.js +2 -2
- package/dist/components/assistant-ui/elements/ThreadSearch.js +3 -3
- package/dist/components/assistant-ui/elements/TodoList.js +2 -2
- package/dist/components/assistant-ui/elements/ToolError.js +2 -2
- package/dist/components/assistant-ui/elements/ToolGroup.js +2 -2
- package/dist/components/assistant-ui/elements/TooltipIconButton.js +2 -2
- package/dist/components/assistant-ui/elements/VoiceConversation.js +2 -2
- package/dist/components/assistant-ui/elements/WebPreview.js +2 -2
- package/dist/components/assistant-ui/eveAskQuestionToolkit.js +4 -4
- package/dist/components/assistant-ui/index.js +109 -109
- package/dist/components/assistant-ui/native/AssistantModal.js +13 -13
- package/dist/components/assistant-ui/native/AssistantSidebar.js +12 -12
- package/dist/components/assistant-ui/native/AttachmentPreview.js +4 -4
- package/dist/components/assistant-ui/native/DirectiveText.js +3 -3
- package/dist/components/assistant-ui/native/McpConfigDialog.js +4 -4
- package/dist/components/assistant-ui/native/MermaidDiagram.js +5 -5
- package/dist/components/assistant-ui/native/ModelSelector.js +13 -13
- package/dist/components/assistant-ui/native/Reasoning.js +4 -4
- package/dist/components/assistant-ui/native/Sources.js +2 -2
- package/dist/components/assistant-ui/native/TaskCard.js +6 -6
- package/dist/components/assistant-ui/native/TaskGroup.js +7 -7
- package/dist/components/assistant-ui/native/Thread.js +11 -11
- package/dist/components/assistant-ui/native/ThreadList.js +2 -2
- package/dist/components/assistant-ui/native/ThreadListSidebar.js +4 -4
- package/dist/components/assistant-ui/native/ToolFallbackRoot.js +2 -2
- package/dist/components/assistant-ui/native/VoiceConnectButton.js +2 -2
- package/dist/components/assistant-ui/native/VoiceControl.js +6 -6
- package/dist/components/assistant-ui/native/VoiceConversation.js +3 -3
- package/dist/components/assistant-ui/native/VoiceDisconnectButton.js +3 -3
- package/dist/components/assistant-ui/native/VoiceMuteButton.js +3 -3
- package/dist/components/assistant-ui/native/index.js +44 -44
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/command/index.js +4 -4
- package/dist/components/data-grid/index.js +5 -5
- package/dist/components/editor/index.js +8 -2
- package/dist/components/event-calendar/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/gantt/index.js +3 -3
- package/dist/components/image-viewer/index.js +2 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/json-render/JsonForm.d.ts +18 -3
- package/dist/components/json-render/JsonSlider.d.ts +4 -0
- package/dist/components/json-render/JsonSwitch.d.ts +4 -0
- package/dist/components/json-render/JsonToggleGroup.d.ts +4 -0
- package/dist/components/json-render/catalog.d.ts +7 -0
- package/dist/components/json-render/catalog.js +1 -1
- package/dist/components/json-render/index.js +161 -60
- package/dist/components/message-scroller/index.js +1 -1
- package/dist/components/persian-calendar/index.js +2 -2
- package/dist/components/questionnaire/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/sonner/index.js +1 -1
- package/dist/components/tree/index.js +1 -1
- package/dist/components/virtual-data-grid/index.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +12 -10
- package/dist/prototype.js +1 -1
- package/llms/components/actions/Toolbar.md +17 -0
- package/llms/components/data-display/Badge.md +12 -1
- package/llms/components/data-display/JsonRenderForm.md +53 -0
- package/llms/components/forms/ControlBoundaries.md +46 -0
- package/llms/components/layout/PanelHeader.md +83 -0
- package/llms/components/navigation/Tree.md +1 -0
- package/llms/setup.md +5 -1
- package/llms.txt +2 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TooltipTrigger2,
|
|
13
13
|
TooltipContent2,
|
|
14
14
|
Button2
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-x1razcfy.js";
|
|
16
16
|
import {
|
|
17
17
|
ButtonLink2,
|
|
18
18
|
Accordion2,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
PaginationPrevious2,
|
|
27
27
|
PaginationNext2,
|
|
28
28
|
PaginationEllipsis2
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-mpgngw78.js";
|
|
30
30
|
import {
|
|
31
31
|
MenuPopup,
|
|
32
32
|
MenuItem2,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
DialogHeader2,
|
|
47
47
|
DialogTitle2,
|
|
48
48
|
DialogDescription2
|
|
49
|
-
} from "../../chunk-
|
|
49
|
+
} from "../../chunk-eqcfg4y3.js";
|
|
50
50
|
import"../../chunk-f9sm5zpv.js";
|
|
51
51
|
import {
|
|
52
52
|
Popover2,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
} from "../../chunk-kgqe8gpb.js";
|
|
86
86
|
import {
|
|
87
87
|
Badge2
|
|
88
|
-
} from "../../chunk-
|
|
88
|
+
} from "../../chunk-dbe9ppwf.js";
|
|
89
89
|
import {
|
|
90
90
|
Card2,
|
|
91
91
|
CardHeader2,
|
|
@@ -93,14 +93,14 @@ import {
|
|
|
93
93
|
CardDescription2,
|
|
94
94
|
CardContent2
|
|
95
95
|
} from "../../chunk-r7krv555.js";
|
|
96
|
-
import"../../chunk-
|
|
97
|
-
import"../../chunk-
|
|
96
|
+
import"../../chunk-1582w4zz.js";
|
|
97
|
+
import"../../chunk-zwpa0vvy.js";
|
|
98
98
|
import {
|
|
99
99
|
Tabs2,
|
|
100
100
|
TabsList2,
|
|
101
101
|
TabsTrigger2,
|
|
102
102
|
TabsContent2
|
|
103
|
-
} from "../../chunk-
|
|
103
|
+
} from "../../chunk-dx5x3jk1.js";
|
|
104
104
|
import"../../chunk-4e96tpw0.js";
|
|
105
105
|
import {
|
|
106
106
|
Checkbox2
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
Toggle2,
|
|
125
125
|
ToggleGroup2,
|
|
126
126
|
ToggleGroupItem2
|
|
127
|
-
} from "../../chunk-
|
|
127
|
+
} from "../../chunk-32ah7jyp.js";
|
|
128
128
|
import {
|
|
129
129
|
Avatar2,
|
|
130
130
|
AvatarImage2,
|
|
@@ -153,23 +153,23 @@ import {
|
|
|
153
153
|
import"../../chunk-7vnpp3ya.js";
|
|
154
154
|
import"../../chunk-m4geb1s5.js";
|
|
155
155
|
import"../../chunk-9ecf92s6.js";
|
|
156
|
-
import"../../chunk-
|
|
156
|
+
import"../../chunk-sk8v27sn.js";
|
|
157
157
|
import"../../chunk-tcefvfr8.js";
|
|
158
158
|
import"../../chunk-38barrma.js";
|
|
159
|
-
import"../../chunk-
|
|
159
|
+
import"../../chunk-pmgdezc0.js";
|
|
160
160
|
import {
|
|
161
161
|
Carousel2,
|
|
162
162
|
CarouselContent2,
|
|
163
163
|
CarouselItem2,
|
|
164
164
|
CarouselPrevious2,
|
|
165
165
|
CarouselNext2
|
|
166
|
-
} from "../../chunk-
|
|
166
|
+
} from "../../chunk-ckkmv09z.js";
|
|
167
167
|
import {
|
|
168
168
|
FramedImage2
|
|
169
169
|
} from "../../chunk-2jsgsjas.js";
|
|
170
170
|
import {
|
|
171
171
|
componentDefinitions2
|
|
172
|
-
} from "../../chunk-
|
|
172
|
+
} from "../../chunk-h1b1mqnc.js";
|
|
173
173
|
import"../../chunk-5mydsjp3.js";
|
|
174
174
|
|
|
175
175
|
// src/components/json-render/JsonCard.tsx
|
|
@@ -272,11 +272,17 @@ import { useBoundProp } from "@json-render/react";
|
|
|
272
272
|
|
|
273
273
|
// src/components/json-render/JsonForm.tsx
|
|
274
274
|
import { createContext, use, useCallback, useId, useMemo } from "react";
|
|
275
|
-
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
275
|
+
import { jsx as jsx5, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
|
|
276
276
|
var JsonFormContext = createContext(undefined);
|
|
277
277
|
var noErrors = {};
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
var noDefaults = [];
|
|
279
|
+
function JsonFormProvider({
|
|
280
|
+
mode = "edit",
|
|
281
|
+
errors = noErrors,
|
|
282
|
+
defaults = noDefaults,
|
|
283
|
+
children
|
|
284
|
+
}) {
|
|
285
|
+
const value = useMemo(() => ({ mode, errors, defaults }), [mode, errors, defaults]);
|
|
280
286
|
return /* @__PURE__ */ jsx5(JsonFormContext, {
|
|
281
287
|
value,
|
|
282
288
|
children
|
|
@@ -311,6 +317,7 @@ function useJsonField({ path, label, checks, ownErrors = [] }) {
|
|
|
311
317
|
return {
|
|
312
318
|
label: stripRequiredMark(label ?? ""),
|
|
313
319
|
isRequired,
|
|
320
|
+
isDefault: !!path && !!form?.defaults.includes(path),
|
|
314
321
|
error,
|
|
315
322
|
mode: form?.mode ?? "edit",
|
|
316
323
|
messageId,
|
|
@@ -321,8 +328,25 @@ function useJsonField({ path, label, checks, ownErrors = [] }) {
|
|
|
321
328
|
}
|
|
322
329
|
};
|
|
323
330
|
}
|
|
331
|
+
function JsonFieldTags({ field }) {
|
|
332
|
+
if (!field.isRequired && !field.isDefault)
|
|
333
|
+
return null;
|
|
334
|
+
return /* @__PURE__ */ jsxs2(Fragment, {
|
|
335
|
+
children: [
|
|
336
|
+
field.isRequired && /* @__PURE__ */ jsx5(Badge2, {
|
|
337
|
+
variant: "outline",
|
|
338
|
+
children: "Required"
|
|
339
|
+
}),
|
|
340
|
+
field.isDefault && /* @__PURE__ */ jsx5(Badge2, {
|
|
341
|
+
variant: "outline",
|
|
342
|
+
"data-slot": "json-field-default",
|
|
343
|
+
children: "Default"
|
|
344
|
+
})
|
|
345
|
+
]
|
|
346
|
+
});
|
|
347
|
+
}
|
|
324
348
|
function JsonFieldLabel({ field, id, htmlFor }) {
|
|
325
|
-
if (!field.label && !field.isRequired)
|
|
349
|
+
if (!field.label && !field.isRequired && !field.isDefault)
|
|
326
350
|
return null;
|
|
327
351
|
return /* @__PURE__ */ jsxs2("div", {
|
|
328
352
|
"data-slot": "json-field-label",
|
|
@@ -333,13 +357,13 @@ function JsonFieldLabel({ field, id, htmlFor }) {
|
|
|
333
357
|
htmlFor,
|
|
334
358
|
children: field.label
|
|
335
359
|
}),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
children: "Required"
|
|
360
|
+
/* @__PURE__ */ jsx5(JsonFieldTags, {
|
|
361
|
+
field
|
|
339
362
|
})
|
|
340
363
|
]
|
|
341
364
|
});
|
|
342
365
|
}
|
|
366
|
+
var NOT_SET_TEXT = "Not set";
|
|
343
367
|
function JsonFieldMessage({ field }) {
|
|
344
368
|
if (!field.error)
|
|
345
369
|
return null;
|
|
@@ -1011,13 +1035,17 @@ var JsonCheckbox = ({ props, bindings, emit }) => {
|
|
|
1011
1035
|
emit("change");
|
|
1012
1036
|
}
|
|
1013
1037
|
}),
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
-
|
|
1016
|
-
children:
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1038
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
1039
|
+
className: "flex flex-auto flex-wrap items-center gap-2",
|
|
1040
|
+
children: [
|
|
1041
|
+
/* @__PURE__ */ jsx27(FieldLabel2, {
|
|
1042
|
+
htmlFor: id,
|
|
1043
|
+
children: field.label
|
|
1044
|
+
}),
|
|
1045
|
+
/* @__PURE__ */ jsx27(JsonFieldTags, {
|
|
1046
|
+
field
|
|
1047
|
+
})
|
|
1048
|
+
]
|
|
1021
1049
|
})
|
|
1022
1050
|
]
|
|
1023
1051
|
}),
|
|
@@ -1099,11 +1127,13 @@ import { useFieldValidation as useFieldValidation6 } from "@json-render/react";
|
|
|
1099
1127
|
import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1100
1128
|
var JsonSwitch = ({ props, bindings, emit }) => {
|
|
1101
1129
|
const id = useId7();
|
|
1130
|
+
const notSetId = useId7();
|
|
1102
1131
|
const form = useJsonForm();
|
|
1103
1132
|
const [boundChecked, setBoundChecked] = useBoundProp7(props.checked ?? undefined, bindings?.checked);
|
|
1104
1133
|
const [localChecked, setLocalChecked] = useState8(!!props.checked);
|
|
1105
1134
|
const isBound = !!bindings?.checked;
|
|
1106
1135
|
const checked = isBound ? boundChecked ?? false : localChecked;
|
|
1136
|
+
const isNotSet = isBound && (boundChecked === null || boundChecked === undefined);
|
|
1107
1137
|
const setChecked = isBound ? setBoundChecked : setLocalChecked;
|
|
1108
1138
|
const validateOn = props.validateOn ?? "change";
|
|
1109
1139
|
const hasValidation = !!(bindings?.checked && props.checks?.length) && !form;
|
|
@@ -1112,27 +1142,39 @@ var JsonSwitch = ({ props, bindings, emit }) => {
|
|
|
1112
1142
|
if (field.mode === "values")
|
|
1113
1143
|
return /* @__PURE__ */ jsx29(JsonFieldValue, {
|
|
1114
1144
|
field,
|
|
1115
|
-
text: checked ? "On" : "Off"
|
|
1145
|
+
text: isNotSet ? NOT_SET_TEXT : checked ? "On" : "Off"
|
|
1116
1146
|
});
|
|
1147
|
+
const describedBy = [field.controlProps["aria-describedby"], isNotSet ? notSetId : undefined].filter(Boolean).join(" ") || undefined;
|
|
1117
1148
|
return /* @__PURE__ */ jsxs20("div", {
|
|
1118
1149
|
className: "space-y-1",
|
|
1119
1150
|
children: [
|
|
1120
1151
|
/* @__PURE__ */ jsxs20(Field2, {
|
|
1121
1152
|
orientation: "horizontal",
|
|
1122
1153
|
children: [
|
|
1123
|
-
/* @__PURE__ */
|
|
1124
|
-
|
|
1125
|
-
children:
|
|
1154
|
+
/* @__PURE__ */ jsxs20("div", {
|
|
1155
|
+
className: "flex flex-auto flex-wrap items-center gap-2",
|
|
1156
|
+
children: [
|
|
1157
|
+
/* @__PURE__ */ jsx29(FieldLabel2, {
|
|
1158
|
+
htmlFor: id,
|
|
1159
|
+
children: field.label
|
|
1160
|
+
}),
|
|
1161
|
+
/* @__PURE__ */ jsx29(JsonFieldTags, {
|
|
1162
|
+
field
|
|
1163
|
+
})
|
|
1164
|
+
]
|
|
1126
1165
|
}),
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1166
|
+
isNotSet && /* @__PURE__ */ jsx29("span", {
|
|
1167
|
+
id: notSetId,
|
|
1168
|
+
"data-slot": "json-field-not-set",
|
|
1169
|
+
className: "shrink-0 text-sm whitespace-nowrap text-muted-foreground",
|
|
1170
|
+
children: NOT_SET_TEXT
|
|
1130
1171
|
}),
|
|
1131
1172
|
/* @__PURE__ */ jsx29(Switch2, {
|
|
1132
1173
|
id,
|
|
1133
1174
|
checked,
|
|
1134
1175
|
disabled: field.mode === "locked",
|
|
1135
1176
|
...field.controlProps,
|
|
1177
|
+
"aria-describedby": describedBy,
|
|
1136
1178
|
onCheckedChange: (c) => {
|
|
1137
1179
|
setChecked(c);
|
|
1138
1180
|
if (hasValidation && validateOn === "change")
|
|
@@ -1158,33 +1200,45 @@ var JsonSlider = ({ props, bindings, emit }) => {
|
|
|
1158
1200
|
const [boundValue, setBoundValue] = useBoundProp8(props.value ?? undefined, bindings?.value);
|
|
1159
1201
|
const [localValue, setLocalValue] = useState9(props.value ?? props.min ?? 0);
|
|
1160
1202
|
const isBound = !!bindings?.value;
|
|
1203
|
+
const isNotSet = isBound && (boundValue === null || boundValue === undefined);
|
|
1161
1204
|
const value = isBound ? boundValue ?? props.min ?? 0 : localValue;
|
|
1162
1205
|
const setValue = isBound ? setBoundValue : setLocalValue;
|
|
1163
1206
|
const field = useJsonField({ path: bindings?.value, label: props.label });
|
|
1207
|
+
const valueText = isNotSet ? NOT_SET_TEXT : String(value);
|
|
1164
1208
|
if (field.mode === "values")
|
|
1165
1209
|
return /* @__PURE__ */ jsx30(JsonFieldValue, {
|
|
1166
1210
|
field,
|
|
1167
|
-
text:
|
|
1211
|
+
text: valueText
|
|
1168
1212
|
});
|
|
1169
1213
|
return /* @__PURE__ */ jsxs21("div", {
|
|
1170
1214
|
className: "space-y-2",
|
|
1171
1215
|
children: [
|
|
1172
|
-
field.label && /* @__PURE__ */ jsxs21("div", {
|
|
1173
|
-
className: "flex justify-between",
|
|
1216
|
+
(field.label || isNotSet) && /* @__PURE__ */ jsxs21("div", {
|
|
1217
|
+
className: "flex items-center justify-between gap-2",
|
|
1174
1218
|
children: [
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1219
|
+
/* @__PURE__ */ jsxs21("div", {
|
|
1220
|
+
className: "flex flex-wrap items-center gap-2",
|
|
1221
|
+
children: [
|
|
1222
|
+
field.label && /* @__PURE__ */ jsx30(Label2, {
|
|
1223
|
+
id,
|
|
1224
|
+
className: "text-sm",
|
|
1225
|
+
children: field.label
|
|
1226
|
+
}),
|
|
1227
|
+
/* @__PURE__ */ jsx30(JsonFieldTags, {
|
|
1228
|
+
field
|
|
1229
|
+
})
|
|
1230
|
+
]
|
|
1179
1231
|
}),
|
|
1180
1232
|
/* @__PURE__ */ jsx30("span", {
|
|
1233
|
+
"data-slot": isNotSet ? "json-field-not-set" : undefined,
|
|
1181
1234
|
className: "text-sm text-muted-foreground",
|
|
1182
|
-
children:
|
|
1235
|
+
children: valueText
|
|
1183
1236
|
})
|
|
1184
1237
|
]
|
|
1185
1238
|
}),
|
|
1186
1239
|
/* @__PURE__ */ jsx30(Slider2, {
|
|
1187
1240
|
getAriaLabel: () => field.label || "Value",
|
|
1241
|
+
getAriaValueText: isNotSet ? () => NOT_SET_TEXT : undefined,
|
|
1188
1242
|
value: [value],
|
|
1189
1243
|
min: props.min ?? 0,
|
|
1190
1244
|
max: props.max ?? 100,
|
|
@@ -1306,7 +1360,7 @@ var JsonDropdownMenu = ({ props, bindings, emit }) => {
|
|
|
1306
1360
|
// src/components/json-render/JsonToggle.tsx
|
|
1307
1361
|
import { useState as useState10 } from "react";
|
|
1308
1362
|
import { useBoundProp as useBoundProp10 } from "@json-render/react";
|
|
1309
|
-
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1363
|
+
import { jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1310
1364
|
var JsonToggle = ({ props, bindings, emit }) => {
|
|
1311
1365
|
const [boundPressed, setBoundPressed] = useBoundProp10(props.pressed ?? undefined, bindings?.pressed);
|
|
1312
1366
|
const [localPressed, setLocalPressed] = useState10(props.pressed ?? false);
|
|
@@ -1320,7 +1374,7 @@ var JsonToggle = ({ props, bindings, emit }) => {
|
|
|
1320
1374
|
field,
|
|
1321
1375
|
text: pressed ? "On" : "Off"
|
|
1322
1376
|
});
|
|
1323
|
-
|
|
1377
|
+
const toggle = /* @__PURE__ */ jsx34(Toggle2, {
|
|
1324
1378
|
variant: props.variant ?? "default",
|
|
1325
1379
|
pressed,
|
|
1326
1380
|
disabled: mode === "locked",
|
|
@@ -1330,13 +1384,27 @@ var JsonToggle = ({ props, bindings, emit }) => {
|
|
|
1330
1384
|
},
|
|
1331
1385
|
children: props.label
|
|
1332
1386
|
});
|
|
1387
|
+
return isBound && (field.isRequired || field.isDefault) ? /* @__PURE__ */ jsxs23("div", {
|
|
1388
|
+
className: "flex flex-wrap items-center gap-2",
|
|
1389
|
+
children: [
|
|
1390
|
+
toggle,
|
|
1391
|
+
/* @__PURE__ */ jsx34(JsonFieldTags, {
|
|
1392
|
+
field
|
|
1393
|
+
})
|
|
1394
|
+
]
|
|
1395
|
+
}) : toggle;
|
|
1333
1396
|
};
|
|
1334
1397
|
|
|
1335
1398
|
// src/components/json-render/JsonToggleGroup.tsx
|
|
1336
|
-
import { useState as useState11 } from "react";
|
|
1399
|
+
import { useId as useId10, useState as useState11 } from "react";
|
|
1400
|
+
import { CheckIcon } from "lucide-react";
|
|
1337
1401
|
import { useBoundProp as useBoundProp11 } from "@json-render/react";
|
|
1338
|
-
import {
|
|
1402
|
+
import { useFieldValidation as useFieldValidation7 } from "@json-render/react";
|
|
1403
|
+
import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1339
1404
|
var JsonToggleGroup = ({ props, bindings, emit }) => {
|
|
1405
|
+
const labelId = useId10();
|
|
1406
|
+
const descriptionId = useId10();
|
|
1407
|
+
const form = useJsonForm();
|
|
1340
1408
|
const type = props.type ?? "single";
|
|
1341
1409
|
const items = props.items ?? [];
|
|
1342
1410
|
const [boundValue, setBoundValue] = useBoundProp11(props.value ?? undefined, bindings?.value);
|
|
@@ -1344,7 +1412,9 @@ var JsonToggleGroup = ({ props, bindings, emit }) => {
|
|
|
1344
1412
|
const isBound = !!bindings?.value;
|
|
1345
1413
|
const value = isBound ? boundValue ?? "" : localValue;
|
|
1346
1414
|
const setValue = isBound ? setBoundValue : setLocalValue;
|
|
1347
|
-
const
|
|
1415
|
+
const hasValidation = isBound && !!props.checks?.length && !form;
|
|
1416
|
+
const { errors, validate } = useFieldValidation7(bindings?.value ?? "", hasValidation ? { checks: props.checks ?? [], validateOn: "change" } : undefined);
|
|
1417
|
+
const field = useJsonField({ path: bindings?.value, label: props.label, checks: props.checks, ownErrors: errors });
|
|
1348
1418
|
const mode = isBound ? field.mode : "edit";
|
|
1349
1419
|
const selected = value ? value.split(",") : [];
|
|
1350
1420
|
if (mode === "values")
|
|
@@ -1352,18 +1422,49 @@ var JsonToggleGroup = ({ props, bindings, emit }) => {
|
|
|
1352
1422
|
field,
|
|
1353
1423
|
text: items.filter((item) => selected.includes(item.value)).map((item) => item.label).join(", ")
|
|
1354
1424
|
});
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1425
|
+
const describedBy = [props.description ? descriptionId : undefined, field.controlProps["aria-describedby"]].filter(Boolean).join(" ") || undefined;
|
|
1426
|
+
return /* @__PURE__ */ jsxs24("div", {
|
|
1427
|
+
className: "space-y-2",
|
|
1428
|
+
children: [
|
|
1429
|
+
/* @__PURE__ */ jsx35(JsonFieldLabel, {
|
|
1430
|
+
field,
|
|
1431
|
+
id: labelId
|
|
1432
|
+
}),
|
|
1433
|
+
props.description && /* @__PURE__ */ jsx35("p", {
|
|
1434
|
+
id: descriptionId,
|
|
1435
|
+
className: "text-sm text-muted-foreground",
|
|
1436
|
+
children: props.description
|
|
1437
|
+
}),
|
|
1438
|
+
/* @__PURE__ */ jsx35(ToggleGroup2, {
|
|
1439
|
+
variant: "outline",
|
|
1440
|
+
multiple: type === "multiple",
|
|
1441
|
+
disabled: mode === "locked",
|
|
1442
|
+
value: selected,
|
|
1443
|
+
"aria-labelledby": field.label ? labelId : undefined,
|
|
1444
|
+
"aria-required": field.controlProps["aria-required"],
|
|
1445
|
+
"aria-invalid": field.controlProps["aria-invalid"],
|
|
1446
|
+
"aria-describedby": describedBy,
|
|
1447
|
+
onValueChange: (values) => {
|
|
1448
|
+
setValue(values.join(","));
|
|
1449
|
+
if (hasValidation)
|
|
1450
|
+
validate();
|
|
1451
|
+
emit("change");
|
|
1452
|
+
},
|
|
1453
|
+
children: items.map((item) => /* @__PURE__ */ jsxs24(ToggleGroupItem2, {
|
|
1454
|
+
value: item.value,
|
|
1455
|
+
children: [
|
|
1456
|
+
selected.includes(item.value) && /* @__PURE__ */ jsx35(CheckIcon, {
|
|
1457
|
+
"aria-hidden": "true",
|
|
1458
|
+
"data-slot": "toggle-group-item-check"
|
|
1459
|
+
}),
|
|
1460
|
+
item.label
|
|
1461
|
+
]
|
|
1462
|
+
}, item.value))
|
|
1463
|
+
}),
|
|
1464
|
+
/* @__PURE__ */ jsx35(JsonFieldMessage, {
|
|
1465
|
+
field
|
|
1466
|
+
})
|
|
1467
|
+
]
|
|
1367
1468
|
});
|
|
1368
1469
|
};
|
|
1369
1470
|
|
|
@@ -1428,7 +1529,7 @@ function getPaginationRange(current, total) {
|
|
|
1428
1529
|
}
|
|
1429
1530
|
|
|
1430
1531
|
// src/components/json-render/JsonPagination.tsx
|
|
1431
|
-
import { jsx as jsx37, jsxs as
|
|
1532
|
+
import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1432
1533
|
var JsonPagination = ({ props, bindings, emit }) => {
|
|
1433
1534
|
const [boundPage, setBoundPage] = useBoundProp13(props.page ?? undefined, bindings?.page);
|
|
1434
1535
|
const [localPage, setLocalPage] = useState13(props.page ?? 1);
|
|
@@ -1437,7 +1538,7 @@ var JsonPagination = ({ props, bindings, emit }) => {
|
|
|
1437
1538
|
const totalPages = props.totalPages ?? 1;
|
|
1438
1539
|
const pages = getPaginationRange(currentPage, totalPages);
|
|
1439
1540
|
return /* @__PURE__ */ jsx37(Pagination2, {
|
|
1440
|
-
children: /* @__PURE__ */
|
|
1541
|
+
children: /* @__PURE__ */ jsxs25(PaginationContent2, {
|
|
1441
1542
|
children: [
|
|
1442
1543
|
/* @__PURE__ */ jsx37(PaginationItem2, {
|
|
1443
1544
|
children: /* @__PURE__ */ jsx37(PaginationPrevious2, {
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
import"../../chunk-e6hk39ev.js";
|
|
7
7
|
import"../../chunk-x90xmrba.js";
|
|
8
8
|
import"../../chunk-jpvw9xqy.js";
|
|
9
|
-
import"../../chunk-
|
|
9
|
+
import"../../chunk-x1razcfy.js";
|
|
10
10
|
import {
|
|
11
11
|
getCalendarClassNames,
|
|
12
12
|
CalendarDayButton2,
|
|
13
13
|
CalendarDropdown
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-6bcj70ew.js";
|
|
15
15
|
import"../../chunk-yw9j9sj6.js";
|
|
16
16
|
import {
|
|
17
17
|
useAnalyticsCallback
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
DataGridHeaderRows,
|
|
11
11
|
DataGridCells2,
|
|
12
12
|
DataGridColumns
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-svf8b094.js";
|
|
14
14
|
import"../../chunk-7ny0vyek.js";
|
|
15
15
|
import"../../chunk-8ssktt4b.js";
|
|
16
16
|
import"../../chunk-e6hk39ev.js";
|
|
17
17
|
import"../../chunk-x90xmrba.js";
|
|
18
18
|
import"../../chunk-jpvw9xqy.js";
|
|
19
|
-
import"../../chunk-
|
|
19
|
+
import"../../chunk-x1razcfy.js";
|
|
20
20
|
import"../../chunk-yw9j9sj6.js";
|
|
21
21
|
import"../../chunk-7jpsybag.js";
|
|
22
22
|
import"../../chunk-7vg045gd.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ export { WeatherForecast } from "./components/WeatherForecast.js";
|
|
|
134
134
|
export type { WeatherForecastDay, WeatherForecastProps } from "./components/WeatherForecast.js";
|
|
135
135
|
export { PageHeader } from "./components/PageHeader.js";
|
|
136
136
|
export type { PageHeaderProps } from "./components/PageHeader.js";
|
|
137
|
+
export { PanelHeader } from "./components/PanelHeader.js";
|
|
138
|
+
export type { PanelHeaderProps } from "./components/PanelHeader.js";
|
|
137
139
|
export { PageIntro } from "./components/PageIntro.js";
|
|
138
140
|
export type { PageIntroHighlight, PageIntroProps } from "./components/PageIntro.js";
|
|
139
141
|
export { WorkspaceSwitcher } from "./components/WorkspaceSwitcher.js";
|
package/dist/index.js
CHANGED
|
@@ -167,6 +167,7 @@ import {
|
|
|
167
167
|
WeatherSummary2,
|
|
168
168
|
WeatherForecast2,
|
|
169
169
|
PageHeader2,
|
|
170
|
+
PanelHeader2,
|
|
170
171
|
PageIntro2,
|
|
171
172
|
WorkspaceSwitcher2,
|
|
172
173
|
AccountMenu2,
|
|
@@ -180,7 +181,7 @@ import {
|
|
|
180
181
|
StatusTracker2,
|
|
181
182
|
DashboardLayout2,
|
|
182
183
|
BillingUsage2
|
|
183
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-mpgngw78.js";
|
|
184
185
|
import {
|
|
185
186
|
Combobox2,
|
|
186
187
|
ComboboxValue2,
|
|
@@ -198,7 +199,7 @@ import {
|
|
|
198
199
|
ComboboxChip2,
|
|
199
200
|
ComboboxChipsInput2,
|
|
200
201
|
useComboboxAnchor2
|
|
201
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-zwpa0vvy.js";
|
|
202
203
|
import {
|
|
203
204
|
Tabs2,
|
|
204
205
|
tabsListVariants2,
|
|
@@ -213,7 +214,7 @@ import {
|
|
|
213
214
|
useDropTarget2,
|
|
214
215
|
DropTarget2,
|
|
215
216
|
Kanban2
|
|
216
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-dx5x3jk1.js";
|
|
217
218
|
import {
|
|
218
219
|
NumberField2,
|
|
219
220
|
NumberFieldGroup2,
|
|
@@ -230,7 +231,7 @@ import {
|
|
|
230
231
|
ToolbarInput2,
|
|
231
232
|
ToolbarGroup2,
|
|
232
233
|
ToolbarSeparator2
|
|
233
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-pmgdezc0.js";
|
|
234
235
|
import {
|
|
235
236
|
Slider2
|
|
236
237
|
} from "./chunk-7cq1s2ey.js";
|
|
@@ -289,7 +290,7 @@ import {
|
|
|
289
290
|
Toggle2,
|
|
290
291
|
ToggleGroup2,
|
|
291
292
|
ToggleGroupItem2
|
|
292
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-32ah7jyp.js";
|
|
293
294
|
import {
|
|
294
295
|
Checkbox2
|
|
295
296
|
} from "./chunk-b5s5y5wq.js";
|
|
@@ -370,7 +371,7 @@ import {
|
|
|
370
371
|
SidebarMenuSub2,
|
|
371
372
|
SidebarMenuSubItem2,
|
|
372
373
|
SidebarMenuSubButton2
|
|
373
|
-
} from "./chunk-
|
|
374
|
+
} from "./chunk-sk8v27sn.js";
|
|
374
375
|
import {
|
|
375
376
|
Avatar2,
|
|
376
377
|
AvatarImage2,
|
|
@@ -391,7 +392,7 @@ import"./chunk-m4geb1s5.js";
|
|
|
391
392
|
import {
|
|
392
393
|
badgeVariants2,
|
|
393
394
|
Badge2
|
|
394
|
-
} from "./chunk-
|
|
395
|
+
} from "./chunk-dbe9ppwf.js";
|
|
395
396
|
import {
|
|
396
397
|
Collapsible2,
|
|
397
398
|
CollapsibleTrigger2,
|
|
@@ -433,7 +434,7 @@ import {
|
|
|
433
434
|
DialogFooter2,
|
|
434
435
|
DialogTitle2,
|
|
435
436
|
DialogDescription2
|
|
436
|
-
} from "./chunk-
|
|
437
|
+
} from "./chunk-eqcfg4y3.js";
|
|
437
438
|
import {
|
|
438
439
|
InputGroup2,
|
|
439
440
|
InputGroupAddon2,
|
|
@@ -441,7 +442,7 @@ import {
|
|
|
441
442
|
InputGroupText2,
|
|
442
443
|
InputGroupInput2,
|
|
443
444
|
InputGroupTextarea2
|
|
444
|
-
} from "./chunk-
|
|
445
|
+
} from "./chunk-1582w4zz.js";
|
|
445
446
|
import {
|
|
446
447
|
Textarea2
|
|
447
448
|
} from "./chunk-9k5b62qf.js";
|
|
@@ -475,7 +476,7 @@ import {
|
|
|
475
476
|
TooltipContent2,
|
|
476
477
|
buttonVariants2,
|
|
477
478
|
Button2
|
|
478
|
-
} from "./chunk-
|
|
479
|
+
} from "./chunk-x1razcfy.js";
|
|
479
480
|
import {
|
|
480
481
|
usePortalContainer2,
|
|
481
482
|
PortalProvider2
|
|
@@ -781,6 +782,7 @@ export {
|
|
|
781
782
|
PaginationLink2 as PaginationLink,
|
|
782
783
|
PaginationNext2 as PaginationNext,
|
|
783
784
|
PaginationPrevious2 as PaginationPrevious,
|
|
785
|
+
PanelHeader2 as PanelHeader,
|
|
784
786
|
Popover2 as Popover,
|
|
785
787
|
PopoverContent2 as PopoverContent,
|
|
786
788
|
PopoverDescription2 as PopoverDescription,
|
package/dist/prototype.js
CHANGED
|
@@ -2051,7 +2051,7 @@ var program = new Command;
|
|
|
2051
2051
|
// package.json
|
|
2052
2052
|
var package_default = {
|
|
2053
2053
|
name: "@alexgorbatchev/shadcn",
|
|
2054
|
-
version: "0.0.
|
|
2054
|
+
version: "0.0.109",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -55,6 +55,23 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
55
55
|
}
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
### VerticalTools
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
{
|
|
62
|
+
render: (args) => (<div className="w-64">
|
|
63
|
+
<Toolbar {...args} aria-label="Pages tools" orientation="vertical" variant="plain">
|
|
64
|
+
<ToolbarGroup>
|
|
65
|
+
<ToolbarButton>Find a page…</ToolbarButton>
|
|
66
|
+
<ToolbarButton aria-pressed>Needs you</ToolbarButton>
|
|
67
|
+
<ToolbarButton>New project</ToolbarButton>
|
|
68
|
+
<ToolbarButton>Show archived</ToolbarButton>
|
|
69
|
+
</ToolbarGroup>
|
|
70
|
+
</Toolbar>
|
|
71
|
+
</div>)
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
58
75
|
### NativeStateCallbacks
|
|
59
76
|
|
|
60
77
|
```tsx
|