@alexgorbatchev/shadcn 0.0.174 → 0.0.176
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/dist/{chunk-e1qfrj09.js → chunk-078csjnf.js} +1 -1
- package/dist/{chunk-2d4ahc3t.js → chunk-0vj8xax9.js} +1 -1
- package/dist/{chunk-q3wnsn74.js → chunk-0ymgqgtm.js} +1 -1
- package/dist/{chunk-j7gv2f9e.js → chunk-1pceh0qm.js} +1 -1
- package/dist/{chunk-m94eseqv.js → chunk-1tkk3gw5.js} +2 -2
- package/dist/{chunk-m4xk69mz.js → chunk-21wndtkr.js} +1 -1
- package/dist/{chunk-fsw9mz8g.js → chunk-23jq0apj.js} +1 -1
- package/dist/{chunk-32gjs8rt.js → chunk-23nxxtnd.js} +1 -1
- package/dist/{chunk-rwt2drg8.js → chunk-26csm20x.js} +1 -1
- package/dist/{chunk-h8d0497q.js → chunk-277gskfc.js} +1 -1
- package/dist/{chunk-6q3krpky.js → chunk-2betnfpa.js} +8 -8
- package/dist/{chunk-t51q49wh.js → chunk-2d3npxat.js} +1 -1
- package/dist/{chunk-bjx2zsys.js → chunk-2pc7t67r.js} +1 -1
- package/dist/{chunk-tjy21ppg.js → chunk-2pjgj1pn.js} +2 -2
- package/dist/{chunk-5eg60znz.js → chunk-2q3wbf8n.js} +2 -2
- package/dist/{chunk-5pvsxqx8.js → chunk-3dx7j5yq.js} +2 -2
- package/dist/{chunk-p2s2ttk3.js → chunk-3f26emj1.js} +1 -1
- package/dist/{chunk-s6akghss.js → chunk-3ft0zbbf.js} +1 -1
- package/dist/{chunk-z30dxke4.js → chunk-3kswfws9.js} +1 -1
- package/dist/{chunk-pbyj8rja.js → chunk-3vme6asz.js} +1 -1
- package/dist/{chunk-1f2hnewt.js → chunk-4ehtkgtj.js} +1 -1
- package/dist/{chunk-7dzhtkc2.js → chunk-4p6g1s80.js} +1 -1
- package/dist/{chunk-5rkjveh5.js → chunk-4svvcdqy.js} +1 -1
- package/dist/{chunk-vhchh03t.js → chunk-5a0b532h.js} +1 -1
- package/dist/{chunk-jcrzxq0t.js → chunk-5nch5bsy.js} +1 -1
- package/dist/{chunk-47b0qbq6.js → chunk-5nna8qjj.js} +2 -2
- package/dist/{chunk-qb0xgt7m.js → chunk-6djnvfb6.js} +1 -1
- package/dist/{chunk-v7tx0c9r.js → chunk-6v7wyvpp.js} +1 -1
- package/dist/{chunk-xxd3dgck.js → chunk-6xaksr48.js} +2 -2
- package/dist/{chunk-mm8dk5ra.js → chunk-70jrnyy7.js} +1 -1
- package/dist/{chunk-wz47t201.js → chunk-77939vrr.js} +1 -1
- package/dist/{chunk-zg527nkd.js → chunk-83435g31.js} +1 -1
- package/dist/{chunk-63b6cc6n.js → chunk-847akg71.js} +8 -8
- package/dist/{chunk-j753mwcb.js → chunk-8czeptwt.js} +1 -1
- package/dist/{chunk-wawnfz1g.js → chunk-8kc9e86g.js} +2 -2
- package/dist/{chunk-sh4b3bjm.js → chunk-8petembv.js} +1 -1
- package/dist/{chunk-fypaejmf.js → chunk-8qk4c4t9.js} +1 -1
- package/dist/{chunk-yhh65tck.js → chunk-95q78xjc.js} +1 -1
- package/dist/{chunk-r21y6ybe.js → chunk-99086h5y.js} +2 -2
- package/dist/{chunk-5m42p06m.js → chunk-9e930s9w.js} +3 -3
- package/dist/{chunk-xz9fgybh.js → chunk-9j3m0wwc.js} +1 -1
- package/dist/{chunk-74c8ztj2.js → chunk-9msqz1ce.js} +1 -1
- package/dist/{chunk-sb5gnj7y.js → chunk-a2zjer9q.js} +2 -2
- package/dist/{chunk-dx0b4txv.js → chunk-a5g5kcty.js} +1 -1
- package/dist/{chunk-jyy6wxqq.js → chunk-a8e3x6q7.js} +1 -1
- package/dist/{chunk-74mkxxmx.js → chunk-aft224h4.js} +1 -1
- package/dist/{chunk-3k3e0krj.js → chunk-aq1zss31.js} +1 -1
- package/dist/{chunk-6n3rv5md.js → chunk-aqkhtz9e.js} +1 -1
- package/dist/{chunk-y1jfszn8.js → chunk-as82edkz.js} +1 -1
- package/dist/{chunk-dthve8hk.js → chunk-asp04tyc.js} +1 -1
- package/dist/{chunk-bvzjbk43.js → chunk-b28egcxt.js} +2 -2
- package/dist/{chunk-tqwb4mfs.js → chunk-bx9s8n7h.js} +1 -1
- package/dist/{chunk-x83zhrsj.js → chunk-c78ze1d9.js} +3 -3
- package/dist/{chunk-aw1s0jfj.js → chunk-cfqn6fxt.js} +3 -3
- package/dist/{chunk-6g42yxeh.js → chunk-d2grwsq4.js} +3 -3
- package/dist/{chunk-1veyspm9.js → chunk-d5mm4gyx.js} +1 -1
- package/dist/{chunk-nqn07jq8.js → chunk-d5vtk342.js} +1 -1
- package/dist/{chunk-8qmwrkpn.js → chunk-e5bk2dkb.js} +1 -1
- package/dist/{chunk-dn8rch62.js → chunk-e5z1pw8q.js} +3 -3
- package/dist/{chunk-sfb435p6.js → chunk-e6jxs4se.js} +1 -1
- package/dist/{chunk-ha5146dk.js → chunk-edbj0m5e.js} +1 -1
- package/dist/{chunk-den4dsx5.js → chunk-eg6qxck8.js} +1 -1
- package/dist/{chunk-0aprrde1.js → chunk-em4a823z.js} +2 -2
- package/dist/{chunk-xz1k830q.js → chunk-ensvs5mj.js} +3 -3
- package/dist/{chunk-5s2195az.js → chunk-ew47kns7.js} +2 -2
- package/dist/{chunk-mxbt6mp3.js → chunk-f8bfe6n5.js} +1 -1
- package/dist/{chunk-733phadd.js → chunk-f9v5v07t.js} +1 -1
- package/dist/{chunk-fybx5tbb.js → chunk-fqgs7575.js} +1 -1
- package/dist/{chunk-h9vqm33h.js → chunk-g06msadd.js} +1 -1
- package/dist/{chunk-6eq246q9.js → chunk-g0hkpc2x.js} +7 -5
- package/dist/{chunk-zwk2tcna.js → chunk-gaxdgfm9.js} +1 -1
- package/dist/{chunk-fhpzse74.js → chunk-gpjyhfem.js} +1 -1
- package/dist/{chunk-nwtfh3ah.js → chunk-gqbf88mg.js} +1 -1
- package/dist/{chunk-4z9yyqhg.js → chunk-h801s9a4.js} +1 -1
- package/dist/{chunk-m36hnr1y.js → chunk-h9ty5vqp.js} +1 -1
- package/dist/{chunk-ffbdttsp.js → chunk-hh5wsw6k.js} +1 -1
- package/dist/{chunk-feazm1c2.js → chunk-hjqcaa9b.js} +2 -2
- package/dist/{chunk-21hxs090.js → chunk-hqeb9ah0.js} +1 -1
- package/dist/{chunk-cfj5t0xn.js → chunk-hxy2xabn.js} +1 -1
- package/dist/{chunk-d657zq8e.js → chunk-j5gaa3qq.js} +1 -1
- package/dist/{chunk-yj4m27d8.js → chunk-je1aeg65.js} +1 -1
- package/dist/{chunk-2yt77f2x.js → chunk-jns2gm24.js} +1 -1
- package/dist/{chunk-11gqzfdy.js → chunk-jpywbx5p.js} +3 -3
- package/dist/{chunk-z7s6y05s.js → chunk-jq5jdbfz.js} +1 -1
- package/dist/{chunk-x7bmm84y.js → chunk-jtz7pp3g.js} +1 -1
- package/dist/{chunk-ckyggyc0.js → chunk-jzz2pyfe.js} +1 -1
- package/dist/{chunk-aewsn3jv.js → chunk-k4qkpqtn.js} +2 -2
- package/dist/{chunk-hs24xfh2.js → chunk-kch8qvbf.js} +2 -2
- package/dist/{chunk-8vhqwkhm.js → chunk-kcptvw8y.js} +21 -10
- package/dist/{chunk-wjp55kz9.js → chunk-kgfk5kpm.js} +1 -1
- package/dist/{chunk-hv8j4bar.js → chunk-ks3c6erk.js} +2 -2
- package/dist/{chunk-y7v43qjc.js → chunk-m4v4rfec.js} +1 -1
- package/dist/{chunk-xxvkdn9a.js → chunk-mh8yzqj7.js} +1 -1
- package/dist/{chunk-ck0d0n1h.js → chunk-n63meq6q.js} +1 -1
- package/dist/{chunk-090bk4b1.js → chunk-nd4pcs8v.js} +1 -1
- package/dist/{chunk-qawb71cp.js → chunk-nh04cme1.js} +1 -1
- package/dist/{chunk-qxb5yxhs.js → chunk-nhx25e89.js} +2 -2
- package/dist/{chunk-7cq1s2ey.js → chunk-nqvemk3q.js} +6 -2
- package/dist/{chunk-pbea8ahs.js → chunk-pb7kvbty.js} +1 -1
- package/dist/{chunk-y289w8y3.js → chunk-pmez897k.js} +1 -1
- package/dist/{chunk-rv39y071.js → chunk-pmt44155.js} +1 -1
- package/dist/{chunk-fbpfmrdb.js → chunk-q56p3jvx.js} +3 -3
- package/dist/{chunk-hfxrqq3d.js → chunk-qdptn0n5.js} +1 -1
- package/dist/{chunk-vwfz498s.js → chunk-qg25yzcp.js} +1 -1
- package/dist/{chunk-mackj8h6.js → chunk-qnahe4by.js} +1 -1
- package/dist/{chunk-f5exdxqn.js → chunk-qp5yga27.js} +1 -1
- package/dist/{chunk-s08eftds.js → chunk-qq9atq78.js} +1 -1
- package/dist/{chunk-c2zp3d1y.js → chunk-r7gng4hm.js} +1 -1
- package/dist/{chunk-4byqmesz.js → chunk-rgh3yp6f.js} +1 -1
- package/dist/{chunk-ghtx7jmf.js → chunk-scas6etd.js} +1 -1
- package/dist/{chunk-a2x18tat.js → chunk-skxp6je3.js} +2 -2
- package/dist/{chunk-cjfd69vt.js → chunk-stkypf55.js} +12 -3
- package/dist/{chunk-heyac4c4.js → chunk-sxkq8zva.js} +1 -1
- package/dist/{chunk-gmsrqd9e.js → chunk-szjt3z8q.js} +1 -1
- package/dist/{chunk-sgb5fdqx.js → chunk-t1kfaakc.js} +1 -1
- package/dist/{chunk-s90av8pf.js → chunk-t1xan6pw.js} +1 -1
- package/dist/{chunk-3dgq2sjd.js → chunk-t58fms99.js} +2 -2
- package/dist/{chunk-djbdg1kw.js → chunk-typck7hd.js} +1 -1
- package/dist/{chunk-e9a723tp.js → chunk-v4gh9j5t.js} +1 -1
- package/dist/{chunk-wyzzz5dx.js → chunk-va8v7aaa.js} +1 -1
- package/dist/{chunk-knjg2dmd.js → chunk-vzckkf6b.js} +4 -4
- package/dist/{chunk-vff69w97.js → chunk-w1j900p6.js} +2 -2
- package/dist/{chunk-g91x6mer.js → chunk-wgrc2f10.js} +2 -2
- package/dist/{chunk-vr4k7y1d.js → chunk-wq3yc62h.js} +1 -1
- package/dist/{chunk-w1wecrpa.js → chunk-ww425e8k.js} +3 -3
- package/dist/{chunk-rghpa4yc.js → chunk-x1tachv6.js} +1 -1
- package/dist/{chunk-8dje2jsz.js → chunk-x8q21c7x.js} +1 -1
- package/dist/{chunk-cztqmhyn.js → chunk-xbcj6vxt.js} +1 -1
- package/dist/{chunk-tejn1vhe.js → chunk-xyycxj8w.js} +1 -1
- package/dist/{chunk-78em5nfr.js → chunk-y6sxmz13.js} +1 -1
- package/dist/{chunk-65gkzsw5.js → chunk-yqp07vda.js} +1 -1
- package/dist/{chunk-e9q4xnrk.js → chunk-yw6txv14.js} +2 -2
- package/dist/{chunk-h0h9nhyz.js → chunk-ywmembnc.js} +1 -1
- package/dist/chunk-yz1ft8hs.js +24 -0
- package/dist/{chunk-0h2h60mf.js → chunk-zydasmhv.js} +2 -2
- package/dist/components/Bubble.d.ts +2 -1
- package/dist/components/Field.d.ts +5 -2
- package/dist/components/Slider.d.ts +5 -2
- package/dist/components/Switch.d.ts +3 -1
- 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 +6 -6
- 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 +4 -4
- 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 +3 -3
- package/dist/components/assistant-ui/elements/ComposerModelItem.js +4 -4
- package/dist/components/assistant-ui/elements/ComposerModelTrigger.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerPersonItem.js +4 -4
- 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 +2 -2
- package/dist/components/assistant-ui/elements/Diagram.js +2 -2
- package/dist/components/assistant-ui/elements/DiffViewer.js +3 -3
- package/dist/components/assistant-ui/elements/DiffViewerHeader.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 +3 -3
- package/dist/components/assistant-ui/elements/ElicitationForm.js +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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/ScheduleCard.js +2 -2
- package/dist/components/assistant-ui/elements/SettingsPanel.js +4 -4
- 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/McpConfigDialog.js +3 -3
- 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/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 +40 -40
- package/dist/components/assistant-ui/utils/diffViewer/constants.d.ts +2 -2
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/command/Command.d.ts +3 -2
- package/dist/components/command/index.js +4 -4
- package/dist/components/data-grid/index.js +4 -4
- package/dist/components/editor/index.js +2 -2
- package/dist/components/event-calendar/index.js +2 -2
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/gantt/index.js +2 -2
- package/dist/components/image-viewer/index.js +27 -12
- package/dist/components/input-otp/index.js +2 -2
- package/dist/components/json-render/JsonForm.d.ts +14 -6
- package/dist/components/json-render/index.js +52 -41
- 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/SplitView.d.ts +6 -1
- package/dist/components/resizable/index.js +16 -4
- package/dist/components/sonner/index.js +1 -1
- package/dist/components/text-diff/index.js +1 -1
- package/dist/components/tree/TreeItem.d.ts +1 -1
- package/dist/components/tree/index.js +16 -11
- package/dist/components/virtual-data-grid/index.js +2 -2
- package/dist/index.js +14 -14
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/JsonRenderForm.md +2 -0
- package/llms/components/forms/Slider.md +8 -0
- package/llms/components/forms/Switch.md +8 -0
- package/llms/components/layout/SplitView.md +20 -0
- package/llms/components/navigation/Command.md +25 -0
- package/package.json +1 -1
- package/dist/chunk-g187prhe.js +0 -24
|
@@ -2,7 +2,7 @@ import type { IAnalyticsProps } from "../../analytics/types.js";
|
|
|
2
2
|
import { type ComponentProps, type ReactElement } from "react";
|
|
3
3
|
import type { IDensityProps } from "../../density/types.js";
|
|
4
4
|
import { Command as CommandPrimitive } from "cmdk";
|
|
5
|
-
import { Dialog } from "../Dialog.js";
|
|
5
|
+
import { Dialog, DialogContent } from "../Dialog.js";
|
|
6
6
|
type CommandProps = ComponentProps<typeof CommandPrimitive> & IDensityProps;
|
|
7
7
|
declare function Command({ density, className, value: valueProp, defaultValue, onValueChange, onKeyDown, loop, ref, ...props }: CommandProps): ReactElement;
|
|
8
8
|
type CommandDialogProps<Payload> = ComponentProps<typeof Dialog<Payload>> & IDensityProps & {
|
|
@@ -10,8 +10,9 @@ type CommandDialogProps<Payload> = ComponentProps<typeof Dialog<Payload>> & IDen
|
|
|
10
10
|
description?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
showCloseButton?: boolean;
|
|
13
|
+
size?: ComponentProps<typeof DialogContent>["size"];
|
|
13
14
|
};
|
|
14
|
-
declare function CommandDialog<Payload>({ title, description, children, density, className, showCloseButton, ...props }: CommandDialogProps<Payload>): ReactElement;
|
|
15
|
+
declare function CommandDialog<Payload>({ title, description, children, density, className, showCloseButton, size, ...props }: CommandDialogProps<Payload>): ReactElement;
|
|
15
16
|
declare function CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): ReactElement;
|
|
16
17
|
declare function CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): ReactElement;
|
|
17
18
|
declare function CommandEmpty({ className, ...props }: ComponentProps<typeof CommandPrimitive.Empty>): ReactElement;
|
|
@@ -4,12 +4,12 @@ import"../../chunk-en44w1pn.js";
|
|
|
4
4
|
import"../../chunk-e6hk39ev.js";
|
|
5
5
|
import"../../chunk-x90xmrba.js";
|
|
6
6
|
import"../../chunk-jpvw9xqy.js";
|
|
7
|
-
import"../../chunk-
|
|
8
|
-
import"../../chunk-
|
|
7
|
+
import"../../chunk-n63meq6q.js";
|
|
8
|
+
import"../../chunk-2d3npxat.js";
|
|
9
9
|
import"../../chunk-7jpsybag.js";
|
|
10
10
|
import"../../chunk-t9ms87s9.js";
|
|
11
11
|
import"../../chunk-vfgp11y4.js";
|
|
12
|
-
import"../../chunk-
|
|
12
|
+
import"../../chunk-a8e3x6q7.js";
|
|
13
13
|
import {
|
|
14
14
|
Command2,
|
|
15
15
|
CommandDialog2,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
CommandSeparator2,
|
|
21
21
|
CommandItem2,
|
|
22
22
|
CommandShortcut2
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-g0hkpc2x.js";
|
|
24
24
|
import"../../chunk-5mydsjp3.js";
|
|
25
25
|
export {
|
|
26
26
|
Command2 as Command,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
DataGridColumnHeader2,
|
|
8
8
|
DataGridFilter2,
|
|
9
9
|
DataGridPagination2
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-pb7kvbty.js";
|
|
11
11
|
import"../../chunk-7ny0vyek.js";
|
|
12
12
|
import"../../chunk-8ssktt4b.js";
|
|
13
13
|
import"../../chunk-en44w1pn.js";
|
|
@@ -16,7 +16,7 @@ import"../../chunk-x90xmrba.js";
|
|
|
16
16
|
import"../../chunk-jpvw9xqy.js";
|
|
17
17
|
import {
|
|
18
18
|
Button2
|
|
19
|
-
} from "../../chunk-
|
|
19
|
+
} from "../../chunk-n63meq6q.js";
|
|
20
20
|
import"../../chunk-qn4a3gg4.js";
|
|
21
21
|
import"../../chunk-h45mqwpq.js";
|
|
22
22
|
import"../../chunk-7jpsybag.js";
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
46
|
ComboboxChip2,
|
|
47
47
|
ComboboxChipsInput2,
|
|
48
48
|
useComboboxAnchor2
|
|
49
|
-
} from "../../chunk-
|
|
49
|
+
} from "../../chunk-8kc9e86g.js";
|
|
50
50
|
import {
|
|
51
51
|
Badge2
|
|
52
52
|
} from "../../chunk-cgj3ade2.js";
|
|
53
53
|
import"../../chunk-vfgp11y4.js";
|
|
54
|
-
import"../../chunk-
|
|
54
|
+
import"../../chunk-a8e3x6q7.js";
|
|
55
55
|
import {
|
|
56
56
|
NumberField2,
|
|
57
57
|
NumberFieldGroup2,
|
|
@@ -9,13 +9,13 @@ import"../../chunk-en44w1pn.js";
|
|
|
9
9
|
import"../../chunk-e6hk39ev.js";
|
|
10
10
|
import"../../chunk-x90xmrba.js";
|
|
11
11
|
import"../../chunk-jpvw9xqy.js";
|
|
12
|
-
import"../../chunk-
|
|
12
|
+
import"../../chunk-n63meq6q.js";
|
|
13
13
|
import {
|
|
14
14
|
Toolbar2,
|
|
15
15
|
ToolbarButton2,
|
|
16
16
|
ToolbarGroup2,
|
|
17
17
|
ToolbarSeparator2
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-5nch5bsy.js";
|
|
19
19
|
import"../../chunk-5mydsjp3.js";
|
|
20
20
|
|
|
21
21
|
// src/components/editor/RichTextEditor.tsx
|
|
@@ -8,14 +8,14 @@ import"../../chunk-x90xmrba.js";
|
|
|
8
8
|
import"../../chunk-jpvw9xqy.js";
|
|
9
9
|
import {
|
|
10
10
|
Button2
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-n63meq6q.js";
|
|
12
12
|
import"../../chunk-4m2x9jfb.js";
|
|
13
13
|
import"../../chunk-52aadmkc.js";
|
|
14
14
|
import {
|
|
15
15
|
FieldGroup2,
|
|
16
16
|
Field2,
|
|
17
17
|
FieldLabel2
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-2pjgj1pn.js";
|
|
19
19
|
import"../../chunk-7jpsybag.js";
|
|
20
20
|
import {
|
|
21
21
|
Input2
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
DragSource2,
|
|
8
8
|
DropTarget2,
|
|
9
9
|
Kanban2
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-c78ze1d9.js";
|
|
11
11
|
import"../../chunk-en44w1pn.js";
|
|
12
12
|
import"../../chunk-cgj3ade2.js";
|
|
13
13
|
import"../../chunk-7ny0vyek.js";
|
|
@@ -17,7 +17,7 @@ import"../../chunk-x90xmrba.js";
|
|
|
17
17
|
import"../../chunk-jpvw9xqy.js";
|
|
18
18
|
import {
|
|
19
19
|
Button2
|
|
20
|
-
} from "../../chunk-
|
|
20
|
+
} from "../../chunk-n63meq6q.js";
|
|
21
21
|
import {
|
|
22
22
|
OptionSelect2
|
|
23
23
|
} from "../../chunk-h45mqwpq.js";
|
|
@@ -11,12 +11,12 @@ import"../../chunk-x90xmrba.js";
|
|
|
11
11
|
import"../../chunk-jpvw9xqy.js";
|
|
12
12
|
import {
|
|
13
13
|
Button2
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-n63meq6q.js";
|
|
15
15
|
import {
|
|
16
16
|
Toggle2,
|
|
17
17
|
ToggleGroup2,
|
|
18
18
|
ToggleGroupItem2
|
|
19
|
-
} from "../../chunk-
|
|
19
|
+
} from "../../chunk-3vme6asz.js";
|
|
20
20
|
import {
|
|
21
21
|
ThemeContext
|
|
22
22
|
} from "../../chunk-dpedhp0c.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
Field2,
|
|
29
29
|
FieldLabel2
|
|
30
|
-
} from "../../chunk-
|
|
30
|
+
} from "../../chunk-2pjgj1pn.js";
|
|
31
31
|
import {
|
|
32
32
|
NumberField2,
|
|
33
33
|
NumberFieldGroup2,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
DialogHeader2,
|
|
46
46
|
DialogTitle2,
|
|
47
47
|
DialogDescription2
|
|
48
|
-
} from "../../chunk-
|
|
48
|
+
} from "../../chunk-2d3npxat.js";
|
|
49
49
|
import {
|
|
50
50
|
Switch2
|
|
51
|
-
} from "../../chunk-
|
|
51
|
+
} from "../../chunk-stkypf55.js";
|
|
52
52
|
import"../../chunk-5mydsjp3.js";
|
|
53
53
|
|
|
54
54
|
// src/components/image-viewer/ImageViewer.tsx
|
|
@@ -1471,11 +1471,17 @@ function ImageRegionFields({
|
|
|
1471
1471
|
className: cn2("flex flex-wrap items-end gap-control-gap", className),
|
|
1472
1472
|
children: [
|
|
1473
1473
|
FIELDS.map(([key, name]) => /* @__PURE__ */ jsxs7(Field2, {
|
|
1474
|
-
className: "w-
|
|
1474
|
+
className: "w-24",
|
|
1475
1475
|
children: [
|
|
1476
|
-
/* @__PURE__ */
|
|
1476
|
+
/* @__PURE__ */ jsxs7(FieldLabel2, {
|
|
1477
1477
|
htmlFor: `${id}-${key}`,
|
|
1478
|
-
children:
|
|
1478
|
+
children: [
|
|
1479
|
+
name,
|
|
1480
|
+
/* @__PURE__ */ jsx9("span", {
|
|
1481
|
+
className: "sr-only",
|
|
1482
|
+
children: " (%)"
|
|
1483
|
+
})
|
|
1484
|
+
]
|
|
1479
1485
|
}),
|
|
1480
1486
|
/* @__PURE__ */ jsx9(NumberField2, {
|
|
1481
1487
|
id: `${id}-${key}`,
|
|
@@ -1491,10 +1497,19 @@ function ImageRegionFields({
|
|
|
1491
1497
|
return;
|
|
1492
1498
|
onRegionChange(clampImageRegion({ ...region, [key]: value / 100 }));
|
|
1493
1499
|
},
|
|
1494
|
-
children: /* @__PURE__ */
|
|
1495
|
-
children:
|
|
1496
|
-
|
|
1497
|
-
|
|
1500
|
+
children: /* @__PURE__ */ jsxs7(NumberFieldGroup2, {
|
|
1501
|
+
children: [
|
|
1502
|
+
/* @__PURE__ */ jsx9(NumberFieldInput2, {
|
|
1503
|
+
className: "pe-1",
|
|
1504
|
+
"aria-describedby": `${id}-unit`
|
|
1505
|
+
}),
|
|
1506
|
+
/* @__PURE__ */ jsx9("span", {
|
|
1507
|
+
"aria-hidden": "true",
|
|
1508
|
+
"data-slot": "image-region-unit",
|
|
1509
|
+
className: "flex shrink-0 items-center pe-2 text-xs text-muted-foreground select-none",
|
|
1510
|
+
children: "%"
|
|
1511
|
+
})
|
|
1512
|
+
]
|
|
1498
1513
|
})
|
|
1499
1514
|
})
|
|
1500
1515
|
]
|
|
@@ -13,7 +13,7 @@ import"../../chunk-x90xmrba.js";
|
|
|
13
13
|
import"../../chunk-jpvw9xqy.js";
|
|
14
14
|
import {
|
|
15
15
|
Button2
|
|
16
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-n63meq6q.js";
|
|
17
17
|
import {
|
|
18
18
|
Card2,
|
|
19
19
|
CardHeader2,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
Field2,
|
|
30
30
|
FieldLabel2,
|
|
31
31
|
FieldDescription2
|
|
32
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-2pjgj1pn.js";
|
|
33
33
|
import"../../chunk-7jpsybag.js";
|
|
34
34
|
import {
|
|
35
35
|
Input2
|
|
@@ -12,6 +12,7 @@ interface IJsonFormContext {
|
|
|
12
12
|
mode: JsonFormMode;
|
|
13
13
|
errors: Readonly<Record<string, string>>;
|
|
14
14
|
defaults: readonly string[];
|
|
15
|
+
changed: readonly string[];
|
|
15
16
|
}
|
|
16
17
|
export interface IJsonFormProviderProps {
|
|
17
18
|
mode?: JsonFormMode;
|
|
@@ -27,10 +28,15 @@ export interface IJsonFormProviderProps {
|
|
|
27
28
|
* they never touched.
|
|
28
29
|
*/
|
|
29
30
|
defaults?: readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* Binding paths whose value differs from the last submitted answer, such as `["/answers/headline"]`. Each of those
|
|
33
|
+
* controls shows a "Changed" tag in its own label row, beside Required and Default.
|
|
34
|
+
*/
|
|
35
|
+
changed?: readonly string[];
|
|
30
36
|
children?: ReactNode;
|
|
31
37
|
}
|
|
32
|
-
/** Sets the mode, the field messages
|
|
33
|
-
export declare function JsonFormProvider({ mode, errors, defaults, children, }: IJsonFormProviderProps): ReactElement;
|
|
38
|
+
/** Sets the mode, the field messages, the default-valued fields, and the changed fields of the bound controls inside it. */
|
|
39
|
+
export declare function JsonFormProvider({ mode, errors, defaults, changed, children, }: IJsonFormProviderProps): ReactElement;
|
|
34
40
|
/** The nearest `JsonFormProvider`'s mode and messages, or `undefined` outside one. */
|
|
35
41
|
export declare function useJsonForm(): IJsonFormContext | undefined;
|
|
36
42
|
type Reveal = () => void;
|
|
@@ -64,6 +70,8 @@ export interface IJsonField {
|
|
|
64
70
|
isRequired: boolean;
|
|
65
71
|
/** The value is still the author's default (`JsonFormProvider`'s `defaults`); the label shows a "Default" tag. */
|
|
66
72
|
isDefault: boolean;
|
|
73
|
+
/** The value differs from the last submitted answer (`JsonFormProvider`'s `changed`); the label shows a "Changed" tag. */
|
|
74
|
+
isChanged: boolean;
|
|
67
75
|
error?: string;
|
|
68
76
|
mode: JsonFormMode;
|
|
69
77
|
messageId: string;
|
|
@@ -84,16 +92,16 @@ export interface IJsonFieldLabelProps {
|
|
|
84
92
|
htmlFor?: string;
|
|
85
93
|
}
|
|
86
94
|
/**
|
|
87
|
-
* The field's "Required" and "
|
|
88
|
-
*
|
|
95
|
+
* The field's "Required", "Default", and "Changed" tags, in that order; nothing when none apply. "Required" and
|
|
96
|
+
* "Changed" belong to editable forms, so read-only values omit them.
|
|
89
97
|
*/
|
|
90
98
|
export declare function JsonFieldTags({ field }: {
|
|
91
99
|
field: IJsonField;
|
|
92
100
|
}): ReactElement | null;
|
|
93
|
-
/** The field's label followed by its "Required" and "
|
|
101
|
+
/** The field's label followed by its "Required", "Default", and "Changed" tags. */
|
|
94
102
|
export declare function JsonFieldLabel({ field, id, htmlFor }: IJsonFieldLabelProps): ReactElement | null;
|
|
95
103
|
/** What an answer control the author left empty shows instead of a value it would not send. */
|
|
96
|
-
export declare const NOT_SET_TEXT = "Not
|
|
104
|
+
export declare const NOT_SET_TEXT = "Not answered";
|
|
97
105
|
/** The field's message, referenced by the control's `aria-describedby`. */
|
|
98
106
|
export declare function JsonFieldMessage({ field }: {
|
|
99
107
|
field: IJsonField;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TooltipTrigger2,
|
|
13
13
|
TooltipContent2,
|
|
14
14
|
Button2
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-n63meq6q.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-kcptvw8y.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-2d3npxat.js";
|
|
50
50
|
import"../../chunk-f9sm5zpv.js";
|
|
51
51
|
import {
|
|
52
52
|
Popover2,
|
|
@@ -69,13 +69,13 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
Field2,
|
|
71
71
|
FieldLabel2
|
|
72
|
-
} from "../../chunk-
|
|
72
|
+
} from "../../chunk-2pjgj1pn.js";
|
|
73
73
|
import {
|
|
74
74
|
Slider2
|
|
75
|
-
} from "../../chunk-
|
|
75
|
+
} from "../../chunk-nqvemk3q.js";
|
|
76
76
|
import {
|
|
77
77
|
Switch2
|
|
78
|
-
} from "../../chunk-
|
|
78
|
+
} from "../../chunk-stkypf55.js";
|
|
79
79
|
import {
|
|
80
80
|
Textarea2
|
|
81
81
|
} from "../../chunk-vfgp11y4.js";
|
|
@@ -93,14 +93,14 @@ import {
|
|
|
93
93
|
CardDescription2,
|
|
94
94
|
CardContent2
|
|
95
95
|
} from "../../chunk-jc3cbwyg.js";
|
|
96
|
-
import"../../chunk-
|
|
97
|
-
import"../../chunk-
|
|
96
|
+
import"../../chunk-a8e3x6q7.js";
|
|
97
|
+
import"../../chunk-8kc9e86g.js";
|
|
98
98
|
import {
|
|
99
99
|
Tabs2,
|
|
100
100
|
TabsList2,
|
|
101
101
|
TabsTrigger2,
|
|
102
102
|
TabsContent2
|
|
103
|
-
} from "../../chunk-
|
|
103
|
+
} from "../../chunk-c78ze1d9.js";
|
|
104
104
|
import"../../chunk-4e96tpw0.js";
|
|
105
105
|
import {
|
|
106
106
|
Checkbox2
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
Toggle2,
|
|
126
126
|
ToggleGroup2,
|
|
127
127
|
ToggleGroupItem2
|
|
128
|
-
} from "../../chunk-
|
|
128
|
+
} from "../../chunk-3vme6asz.js";
|
|
129
129
|
import {
|
|
130
130
|
Avatar2,
|
|
131
131
|
AvatarImage2,
|
|
@@ -151,21 +151,21 @@ import {
|
|
|
151
151
|
TableCell2,
|
|
152
152
|
TableCaption2
|
|
153
153
|
} from "../../chunk-qn4a3gg4.js";
|
|
154
|
-
import"../../chunk-
|
|
154
|
+
import"../../chunk-yz1ft8hs.js";
|
|
155
155
|
import"../../chunk-m4geb1s5.js";
|
|
156
156
|
import"../../chunk-9ecf92s6.js";
|
|
157
|
-
import"../../chunk-
|
|
157
|
+
import"../../chunk-rgh3yp6f.js";
|
|
158
158
|
import"../../chunk-tcefvfr8.js";
|
|
159
159
|
import"../../chunk-38barrma.js";
|
|
160
|
-
import"../../chunk-
|
|
161
|
-
import"../../chunk-
|
|
160
|
+
import"../../chunk-5nch5bsy.js";
|
|
161
|
+
import"../../chunk-b28egcxt.js";
|
|
162
162
|
import {
|
|
163
163
|
Carousel2,
|
|
164
164
|
CarouselContent2,
|
|
165
165
|
CarouselItem2,
|
|
166
166
|
CarouselPrevious2,
|
|
167
167
|
CarouselNext2
|
|
168
|
-
} from "../../chunk-
|
|
168
|
+
} from "../../chunk-3ft0zbbf.js";
|
|
169
169
|
import {
|
|
170
170
|
FramedImage2
|
|
171
171
|
} from "../../chunk-2jsgsjas.js";
|
|
@@ -281,13 +281,15 @@ import { jsx as jsx5, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
|
|
|
281
281
|
var JsonFormContext = createContext(undefined);
|
|
282
282
|
var noErrors = {};
|
|
283
283
|
var noDefaults = [];
|
|
284
|
+
var noChanged = [];
|
|
284
285
|
function JsonFormProvider({
|
|
285
286
|
mode = "edit",
|
|
286
287
|
errors = noErrors,
|
|
287
288
|
defaults = noDefaults,
|
|
289
|
+
changed = noChanged,
|
|
288
290
|
children
|
|
289
291
|
}) {
|
|
290
|
-
const value = useMemo(() => ({ mode, errors, defaults }), [mode, errors, defaults]);
|
|
292
|
+
const value = useMemo(() => ({ mode, errors, defaults, changed }), [mode, errors, defaults, changed]);
|
|
291
293
|
return /* @__PURE__ */ jsx5(JsonFormContext, {
|
|
292
294
|
value,
|
|
293
295
|
children
|
|
@@ -323,6 +325,7 @@ function useJsonField({ path, label, checks, ownErrors = [] }) {
|
|
|
323
325
|
label: stripRequiredMark(label ?? ""),
|
|
324
326
|
isRequired,
|
|
325
327
|
isDefault: !!path && !!form?.defaults.includes(path),
|
|
328
|
+
isChanged: !!path && !!form?.changed.includes(path),
|
|
326
329
|
error,
|
|
327
330
|
mode: form?.mode ?? "edit",
|
|
328
331
|
messageId,
|
|
@@ -335,7 +338,8 @@ function useJsonField({ path, label, checks, ownErrors = [] }) {
|
|
|
335
338
|
}
|
|
336
339
|
function JsonFieldTags({ field }) {
|
|
337
340
|
const isRequiredShown = field.isRequired && field.mode !== "values";
|
|
338
|
-
|
|
341
|
+
const isChangedShown = field.isChanged && field.mode !== "values";
|
|
342
|
+
if (!isRequiredShown && !field.isDefault && !isChangedShown)
|
|
339
343
|
return null;
|
|
340
344
|
return /* @__PURE__ */ jsxs2(Fragment, {
|
|
341
345
|
children: [
|
|
@@ -347,12 +351,17 @@ function JsonFieldTags({ field }) {
|
|
|
347
351
|
variant: "outline",
|
|
348
352
|
"data-slot": "json-field-default",
|
|
349
353
|
children: "Default"
|
|
354
|
+
}),
|
|
355
|
+
isChangedShown && /* @__PURE__ */ jsx5(Badge2, {
|
|
356
|
+
variant: "outline",
|
|
357
|
+
"data-slot": "json-field-changed",
|
|
358
|
+
children: "Changed"
|
|
350
359
|
})
|
|
351
360
|
]
|
|
352
361
|
});
|
|
353
362
|
}
|
|
354
363
|
function JsonFieldLabel({ field, id, htmlFor }) {
|
|
355
|
-
if (!field.label && !(field.isRequired && field.mode !== "values") && !field.isDefault)
|
|
364
|
+
if (!field.label && !(field.isRequired && field.mode !== "values") && !field.isDefault && !(field.isChanged && field.mode !== "values"))
|
|
356
365
|
return null;
|
|
357
366
|
return /* @__PURE__ */ jsxs2("div", {
|
|
358
367
|
"data-slot": "json-field-label",
|
|
@@ -369,7 +378,7 @@ function JsonFieldLabel({ field, id, htmlFor }) {
|
|
|
369
378
|
]
|
|
370
379
|
});
|
|
371
380
|
}
|
|
372
|
-
var NOT_SET_TEXT = "Not
|
|
381
|
+
var NOT_SET_TEXT = "Not answered";
|
|
373
382
|
function JsonFieldMessage({ field }) {
|
|
374
383
|
if (!field.error)
|
|
375
384
|
return null;
|
|
@@ -671,7 +680,7 @@ var JsonHeading = ({ props }) => {
|
|
|
671
680
|
// src/components/json-render/JsonText.tsx
|
|
672
681
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
673
682
|
var JsonText = ({ props }) => {
|
|
674
|
-
const textClass = props.variant === "caption" ? "text-xs" : props.variant === "muted" ? "text-sm text-muted-foreground" : props.variant === "lead" ? "text-xl text-muted-foreground" : props.variant === "code" ? "font-mono text-sm bg-muted px-1.5 py-0.5 rounded" : "text-sm";
|
|
683
|
+
const textClass = props.variant === "caption" ? "text-xs" : props.variant === "muted" ? "text-sm leading-(--ag-leading) text-muted-foreground" : props.variant === "lead" ? "text-xl leading-(--ag-leading) text-muted-foreground" : props.variant === "code" ? "font-mono text-sm bg-muted px-1.5 py-0.5 rounded" : "text-sm leading-(--ag-leading)";
|
|
675
684
|
if (props.variant === "code") {
|
|
676
685
|
return /* @__PURE__ */ jsx14("code", {
|
|
677
686
|
className: `${textClass} text-left`,
|
|
@@ -1164,27 +1173,10 @@ var JsonSwitch = ({ props, bindings, emit }) => {
|
|
|
1164
1173
|
/* @__PURE__ */ jsxs20(Field2, {
|
|
1165
1174
|
orientation: "horizontal",
|
|
1166
1175
|
children: [
|
|
1167
|
-
/* @__PURE__ */ jsxs20("div", {
|
|
1168
|
-
className: "flex flex-auto flex-wrap items-center gap-2",
|
|
1169
|
-
children: [
|
|
1170
|
-
/* @__PURE__ */ jsx29(FieldLabel2, {
|
|
1171
|
-
htmlFor: id,
|
|
1172
|
-
children: field.label
|
|
1173
|
-
}),
|
|
1174
|
-
/* @__PURE__ */ jsx29(JsonFieldTags, {
|
|
1175
|
-
field
|
|
1176
|
-
})
|
|
1177
|
-
]
|
|
1178
|
-
}),
|
|
1179
|
-
isNotSet && /* @__PURE__ */ jsx29("span", {
|
|
1180
|
-
id: notSetId,
|
|
1181
|
-
"data-slot": "json-field-not-set",
|
|
1182
|
-
className: "shrink-0 text-sm whitespace-nowrap text-muted-foreground",
|
|
1183
|
-
children: NOT_SET_TEXT
|
|
1184
|
-
}),
|
|
1185
1176
|
/* @__PURE__ */ jsx29(Switch2, {
|
|
1186
1177
|
id,
|
|
1187
1178
|
checked,
|
|
1179
|
+
indeterminate: isNotSet,
|
|
1188
1180
|
disabled: field.mode === "locked",
|
|
1189
1181
|
...field.controlProps,
|
|
1190
1182
|
"aria-describedby": describedBy,
|
|
@@ -1194,6 +1186,24 @@ var JsonSwitch = ({ props, bindings, emit }) => {
|
|
|
1194
1186
|
validate();
|
|
1195
1187
|
emit("change");
|
|
1196
1188
|
}
|
|
1189
|
+
}),
|
|
1190
|
+
/* @__PURE__ */ jsxs20("div", {
|
|
1191
|
+
className: "flex flex-auto flex-wrap items-center gap-2",
|
|
1192
|
+
children: [
|
|
1193
|
+
/* @__PURE__ */ jsx29(FieldLabel2, {
|
|
1194
|
+
htmlFor: id,
|
|
1195
|
+
children: field.label
|
|
1196
|
+
}),
|
|
1197
|
+
/* @__PURE__ */ jsx29(JsonFieldTags, {
|
|
1198
|
+
field
|
|
1199
|
+
}),
|
|
1200
|
+
isNotSet && /* @__PURE__ */ jsx29(Badge2, {
|
|
1201
|
+
id: notSetId,
|
|
1202
|
+
variant: "outline",
|
|
1203
|
+
"data-slot": "json-field-not-set",
|
|
1204
|
+
children: NOT_SET_TEXT
|
|
1205
|
+
})
|
|
1206
|
+
]
|
|
1197
1207
|
})
|
|
1198
1208
|
]
|
|
1199
1209
|
}),
|
|
@@ -1224,10 +1234,10 @@ var JsonSlider = ({ props, bindings, emit }) => {
|
|
|
1224
1234
|
text: valueText
|
|
1225
1235
|
});
|
|
1226
1236
|
return /* @__PURE__ */ jsxs21("div", {
|
|
1227
|
-
className: "space-y-2",
|
|
1237
|
+
className: "w-full max-w-sm space-y-2",
|
|
1228
1238
|
children: [
|
|
1229
1239
|
(field.label || isNotSet) && /* @__PURE__ */ jsxs21("div", {
|
|
1230
|
-
className: "flex items-center justify-between gap-2",
|
|
1240
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
1231
1241
|
children: [
|
|
1232
1242
|
/* @__PURE__ */ jsxs21("div", {
|
|
1233
1243
|
className: "flex flex-wrap items-center gap-2",
|
|
@@ -1244,12 +1254,13 @@ var JsonSlider = ({ props, bindings, emit }) => {
|
|
|
1244
1254
|
}),
|
|
1245
1255
|
/* @__PURE__ */ jsx30("span", {
|
|
1246
1256
|
"data-slot": isNotSet ? "json-field-not-set" : undefined,
|
|
1247
|
-
className: "text-sm text-muted-foreground",
|
|
1257
|
+
className: "shrink-0 text-sm whitespace-nowrap text-muted-foreground",
|
|
1248
1258
|
children: valueText
|
|
1249
1259
|
})
|
|
1250
1260
|
]
|
|
1251
1261
|
}),
|
|
1252
1262
|
/* @__PURE__ */ jsx30(Slider2, {
|
|
1263
|
+
indeterminate: isNotSet,
|
|
1253
1264
|
getAriaLabel: () => field.label || "Value",
|
|
1254
1265
|
getAriaValueText: isNotSet ? () => NOT_SET_TEXT : undefined,
|
|
1255
1266
|
value: [value],
|
|
@@ -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-n63meq6q.js";
|
|
10
10
|
import {
|
|
11
11
|
getCalendarClassNames,
|
|
12
12
|
CalendarDayButton2,
|
|
13
13
|
CalendarDropdown
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-qq9atq78.js";
|
|
15
15
|
import"../../chunk-h45mqwpq.js";
|
|
16
16
|
import {
|
|
17
17
|
useAnalyticsCallback
|
|
@@ -52,6 +52,11 @@ interface ISplitViewProps {
|
|
|
52
52
|
drawerTopInset?: string;
|
|
53
53
|
/** Called when a "sheet" or "drawer" narrow layout asks to open or close the sidebar, such as on Escape or a swipe. */
|
|
54
54
|
onSidebarOpenChange?: (open: boolean) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Custom leading header content for `narrowLayout="sheet"`, replacing the visible `DrawerTitle` so a navigation brand
|
|
57
|
+
* row does not stack beneath the sheet's own header. `sidebarLabel` stays the sheet's accessible title.
|
|
58
|
+
*/
|
|
59
|
+
sheetHeader?: ReactNode;
|
|
55
60
|
/**
|
|
56
61
|
* Where focus goes when a "sheet" or "drawer" narrow layout closes, as Base UI's `finalFocus`: by default the element
|
|
57
62
|
* that had focus before it opened; return `false` from a function to leave focus where the consumer put it.
|
|
@@ -63,5 +68,5 @@ interface ISplitViewProps {
|
|
|
63
68
|
* open sidebar take over the content's place. The sidebar and content render into slots that move between the
|
|
64
69
|
* layouts, so their state survives resizing across the breakpoint and opening or closing the sidebar.
|
|
65
70
|
*/
|
|
66
|
-
export declare function SplitView({ sidebar, children, storageKey, sidebarPosition, sidebarOpen, storage, sidebarLabel, contentLabel, resizeLabel, defaultSidebarSize, sidebarPadding, contentPadding, layout: layoutMode, minSidebarSize, maxSidebarSize, wideQuery, narrowLayout, sidebarExpanded, drawerHeight, drawerTopInset, onSidebarOpenChange, sidebarFinalFocus, }: ISplitViewProps): ReactElement;
|
|
71
|
+
export declare function SplitView({ sidebar, children, storageKey, sidebarPosition, sidebarOpen, storage, sidebarLabel, contentLabel, resizeLabel, defaultSidebarSize, sidebarPadding, contentPadding, layout: layoutMode, minSidebarSize, maxSidebarSize, wideQuery, narrowLayout, sidebarExpanded, drawerHeight, drawerTopInset, onSidebarOpenChange, sheetHeader, sidebarFinalFocus, }: ISplitViewProps): ReactElement;
|
|
67
72
|
export {};
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "../../chunk-jpvw9xqy.js";
|
|
26
26
|
import {
|
|
27
27
|
Button2
|
|
28
|
-
} from "../../chunk-
|
|
28
|
+
} from "../../chunk-n63meq6q.js";
|
|
29
29
|
import"../../chunk-5mydsjp3.js";
|
|
30
30
|
// src/components/resizable/SplitView.tsx
|
|
31
31
|
import {
|
|
@@ -118,6 +118,7 @@ function SplitView({
|
|
|
118
118
|
drawerHeight = "tall",
|
|
119
119
|
drawerTopInset,
|
|
120
120
|
onSidebarOpenChange,
|
|
121
|
+
sheetHeader,
|
|
121
122
|
sidebarFinalFocus
|
|
122
123
|
}) {
|
|
123
124
|
const isFill = layoutMode === "fill";
|
|
@@ -272,13 +273,24 @@ function SplitView({
|
|
|
272
273
|
children: /* @__PURE__ */ jsxs(DrawerContent2, {
|
|
273
274
|
"aria-label": sidebarLabel,
|
|
274
275
|
finalFocus: sidebarFinalFocus,
|
|
275
|
-
className: cn2(narrowLayout === "drawer" && "data-[swipe-axis=y]:[--drawer-content-max-height:100dvh] data-[swipe-axis=y]:rounded-t-none", narrowLayout === "drawer" && (sidebarExpanded ? "h-dvh" : drawerTopInset ? "h-[calc(100dvh-var(--split-view-drawer-top))]" : drawerHeight === "half" ? "h-[50dvh]" : "h-[85dvh]")),
|
|
276
|
+
className: cn2(narrowLayout === "sheet" && "data-[swipe-axis=x]:[--drawer-content-width:min(calc(100vw-2.5rem),24rem)]", narrowLayout === "drawer" && "data-[swipe-axis=y]:[--drawer-content-max-height:100dvh] data-[swipe-axis=y]:rounded-t-none", narrowLayout === "drawer" && (sidebarExpanded ? "h-dvh" : drawerTopInset ? "h-[calc(100dvh-var(--split-view-drawer-top))]" : drawerHeight === "half" ? "h-[50dvh]" : "h-[85dvh]")),
|
|
276
277
|
style: drawerTopInset ? { ["--split-view-drawer-top"]: drawerTopInset } : undefined,
|
|
277
278
|
children: [
|
|
278
279
|
narrowLayout === "sheet" && /* @__PURE__ */ jsxs("div", {
|
|
279
|
-
className: "flex shrink-0 items-center justify-between gap-2
|
|
280
|
+
className: "flex shrink-0 items-center justify-between gap-2 px-3 pt-3 pb-1",
|
|
280
281
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
+
sheetHeader ? /* @__PURE__ */ jsxs(Fragment, {
|
|
283
|
+
children: [
|
|
284
|
+
/* @__PURE__ */ jsx(DrawerTitle2, {
|
|
285
|
+
className: "sr-only",
|
|
286
|
+
children: sidebarLabel
|
|
287
|
+
}),
|
|
288
|
+
/* @__PURE__ */ jsx("div", {
|
|
289
|
+
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
290
|
+
children: sheetHeader
|
|
291
|
+
})
|
|
292
|
+
]
|
|
293
|
+
}) : /* @__PURE__ */ jsx(DrawerTitle2, {
|
|
282
294
|
children: sidebarLabel
|
|
283
295
|
}),
|
|
284
296
|
/* @__PURE__ */ jsxs(DrawerClose2, {
|