@alexgorbatchev/shadcn 0.0.199 → 0.0.201
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 +3 -1
- package/dist/{chunk-pmt44155.js → chunk-0cywa6fx.js} +1 -1
- package/dist/{chunk-kch8qvbf.js → chunk-0g1djv41.js} +2 -2
- package/dist/{chunk-hjqcaa9b.js → chunk-0wcc4g4y.js} +2 -2
- package/dist/{chunk-w1j900p6.js → chunk-176w7j5d.js} +2 -2
- package/dist/{chunk-as82edkz.js → chunk-2sxwwhg4.js} +1 -1
- package/dist/{chunk-8qk4c4t9.js → chunk-3ayr7ga2.js} +1 -1
- package/dist/{chunk-jza4avjy.js → chunk-3d6ctgyx.js} +29 -20
- package/dist/{chunk-e6jxs4se.js → chunk-3gde9nfw.js} +1 -1
- package/dist/{chunk-z2h046dx.js → chunk-4abk0s18.js} +1 -1
- package/dist/{chunk-g9y8gb5r.js → chunk-4kkx7m55.js} +8 -8
- package/dist/{chunk-gqbf88mg.js → chunk-5b4pcb7g.js} +1 -1
- package/dist/{chunk-99086h5y.js → chunk-5hmt8978.js} +1 -1
- package/dist/{chunk-qnahe4by.js → chunk-63g97w6z.js} +1 -1
- package/dist/{chunk-qg25yzcp.js → chunk-76q97de7.js} +1 -1
- package/dist/{chunk-95q78xjc.js → chunk-77y8k6pe.js} +1 -1
- package/dist/{chunk-d5vtk342.js → chunk-7h0afzqw.js} +1 -1
- package/dist/{chunk-n56hkkvq.js → chunk-7pcteywf.js} +1 -1
- package/dist/{chunk-nhx25e89.js → chunk-8sc8543t.js} +2 -2
- package/dist/{chunk-f9v5v07t.js → chunk-95x1rz41.js} +1 -1
- package/dist/{chunk-9s09v1e3.js → chunk-9g9pmf06.js} +1 -1
- package/dist/{chunk-hs68c966.js → chunk-9pngkh5e.js} +4 -4
- package/dist/{chunk-9e930s9w.js → chunk-9rf7cxea.js} +3 -3
- package/dist/{chunk-e5z1pw8q.js → chunk-9v51zfz9.js} +3 -3
- package/dist/{chunk-rf6x2h3k.js → chunk-a33b2w22.js} +4 -2
- package/dist/{chunk-ywmembnc.js → chunk-a86ean5h.js} +1 -1
- package/dist/{chunk-xzvjf97v.js → chunk-a98q52m1.js} +1 -1
- package/dist/{chunk-p4s3q5bn.js → chunk-anhrap9y.js} +1 -1
- package/dist/{chunk-pmez897k.js → chunk-anzr6thj.js} +1 -1
- package/dist/{chunk-z0d1ewxx.js → chunk-bbbxnbwd.js} +1 -1
- package/dist/{chunk-3ft0zbbf.js → chunk-bjmq3c5f.js} +1 -1
- package/dist/{chunk-4svvcdqy.js → chunk-bztyq92z.js} +1 -1
- package/dist/{chunk-wgrc2f10.js → chunk-cfpcj82g.js} +2 -2
- package/dist/{chunk-hwyyjsr7.js → chunk-cvhqs6gj.js} +1 -1
- package/dist/{chunk-yqp07vda.js → chunk-cvy0wj4b.js} +1 -1
- package/dist/{chunk-x1g72gzp.js → chunk-cxgxxt62.js} +1 -1
- package/dist/{chunk-e5bk2dkb.js → chunk-d8ysy1af.js} +1 -1
- package/dist/{chunk-3f26emj1.js → chunk-dm9fmbgw.js} +1 -1
- package/dist/{chunk-5nch5bsy.js → chunk-dmmvpztc.js} +1 -1
- package/dist/{chunk-typck7hd.js → chunk-dny6d8cb.js} +1 -1
- package/dist/{chunk-70jrnyy7.js → chunk-dppcrtza.js} +1 -1
- package/dist/{chunk-f9sm5zpv.js → chunk-edjb0nj8.js} +2 -2
- package/dist/{chunk-70qeqwmv.js → chunk-eqkyyq74.js} +1 -1
- package/dist/{chunk-r7ewxac3.js → chunk-evv4435t.js} +2 -2
- package/dist/{chunk-de0m5hdq.js → chunk-ew1n9ren.js} +2 -2
- package/dist/{chunk-jtz7pp3g.js → chunk-fn1d98rk.js} +1 -1
- package/dist/{chunk-a5g5kcty.js → chunk-fn9d9c0p.js} +1 -1
- package/dist/{chunk-y6sxmz13.js → chunk-fxq25ecb.js} +1 -1
- package/dist/{chunk-2betnfpa.js → chunk-gmm8kxz8.js} +8 -8
- package/dist/{chunk-jzz2pyfe.js → chunk-h3fvshw6.js} +1 -1
- package/dist/{chunk-jns2gm24.js → chunk-h400r3je.js} +1 -1
- package/dist/{chunk-j2jxkm1q.js → chunk-h9zk4f8j.js} +2 -2
- package/dist/{chunk-4p6g1s80.js → chunk-hgek1k32.js} +1 -1
- package/dist/{chunk-07q031ex.js → chunk-hgfxdxx6.js} +1 -1
- package/dist/{chunk-eg6qxck8.js → chunk-hkr2pfe7.js} +1 -1
- package/dist/{chunk-77939vrr.js → chunk-hsg305f4.js} +1 -1
- package/dist/{chunk-n63meq6q.js → chunk-hvfe31vg.js} +3 -3
- package/dist/{chunk-sxkq8zva.js → chunk-hvp64wp7.js} +1 -1
- package/dist/{chunk-21wndtkr.js → chunk-j1vvdf9s.js} +1 -1
- package/dist/{chunk-99xm1afx.js → chunk-j26r74ae.js} +1 -1
- package/dist/{chunk-k8s1q1r4.js → chunk-j4grpbsr.js} +2 -2
- package/dist/{chunk-nd4pcs8v.js → chunk-j913ctp2.js} +1 -1
- package/dist/{chunk-83435g31.js → chunk-jr3wr41d.js} +1 -1
- package/dist/{chunk-0vwfzn0g.js → chunk-js0j49sy.js} +1 -1
- package/dist/{chunk-y8zhw7xc.js → chunk-k15cj6ec.js} +2 -2
- package/dist/{chunk-6ja4g9vr.js → chunk-k4k3zx1f.js} +2 -2
- package/dist/{chunk-atvnksbs.js → chunk-kf2kgr79.js} +1 -1
- package/dist/{chunk-aqkhtz9e.js → chunk-kk6pa96r.js} +1 -1
- package/dist/{chunk-12f6bymz.js → chunk-kpntmm1a.js} +1 -1
- package/dist/{chunk-aq1zss31.js → chunk-kt78gbmy.js} +1 -1
- package/dist/{chunk-edbj0m5e.js → chunk-m8nqn4c3.js} +1 -1
- package/dist/{chunk-f8bfe6n5.js → chunk-mbsfhffg.js} +1 -1
- package/dist/{chunk-xkwecrsf.js → chunk-mdjgrcnm.js} +1 -1
- package/dist/{chunk-kadp22w2.js → chunk-mq738cqx.js} +2 -2
- package/dist/{chunk-nap5nq7f.js → chunk-mtk8ceyv.js} +1 -1
- package/dist/{chunk-xbcj6vxt.js → chunk-mxxf762j.js} +2 -2
- package/dist/{chunk-8krseqme.js → chunk-mxys3hjz.js} +1 -1
- package/dist/{chunk-hxy2xabn.js → chunk-n4ezrfnj.js} +1 -1
- package/dist/{chunk-w868y7p1.js → chunk-n8b0nshb.js} +2 -2
- package/dist/{chunk-kgfk5kpm.js → chunk-ntzay94j.js} +1 -1
- package/dist/{chunk-1tkk3gw5.js → chunk-nwkqm4vd.js} +2 -2
- package/dist/{chunk-wq3yc62h.js → chunk-pazzht8y.js} +1 -1
- package/dist/{chunk-rgh3yp6f.js → chunk-pj1f124b.js} +1 -1
- package/dist/{chunk-d2grwsq4.js → chunk-pk50cqca.js} +3 -3
- package/dist/{chunk-g06msadd.js → chunk-psavp5er.js} +1 -1
- package/dist/{chunk-mqrbqe46.js → chunk-py7t8hsd.js} +2 -2
- package/dist/{chunk-23nxxtnd.js → chunk-q7bxwj6j.js} +1 -1
- package/dist/{chunk-v4gh9j5t.js → chunk-q7xq0ssr.js} +1 -1
- package/dist/{chunk-n3br443n.js → chunk-q8gmx221.js} +14 -2
- package/dist/{chunk-k4qkpqtn.js → chunk-qage5h75.js} +2 -2
- package/dist/{chunk-qe3t7h28.js → chunk-qepd1w4y.js} +2 -2
- package/dist/{chunk-d5mm4gyx.js → chunk-qh1rdqkx.js} +1 -1
- package/dist/{chunk-m4v4rfec.js → chunk-qnyz9xkd.js} +1 -1
- package/dist/{chunk-9j3m0wwc.js → chunk-qwfqvefq.js} +1 -1
- package/dist/{chunk-szjt3z8q.js → chunk-qyjv2cwn.js} +1 -1
- package/dist/{chunk-qq9atq78.js → chunk-r337e6xz.js} +1 -1
- package/dist/{chunk-nh04cme1.js → chunk-r6mvt3q5.js} +1 -1
- package/dist/{chunk-2pc7t67r.js → chunk-rapfn5we.js} +1 -1
- package/dist/{chunk-je1aeg65.js → chunk-rkn021f9.js} +1 -1
- package/dist/{chunk-mh8yzqj7.js → chunk-sfqrk33s.js} +1 -1
- package/dist/{chunk-2d3npxat.js → chunk-sq921ejh.js} +1 -1
- package/dist/{chunk-x8q21c7x.js → chunk-svkgr1tc.js} +1 -1
- package/dist/{chunk-m2x0j3b2.js → chunk-tfdybjbt.js} +1 -1
- package/dist/{chunk-va8v7aaa.js → chunk-tmd9b5n0.js} +1 -1
- package/dist/{chunk-t1kfaakc.js → chunk-tqa03s7h.js} +1 -1
- package/dist/{chunk-6djnvfb6.js → chunk-vhp2pvjd.js} +1 -1
- package/dist/{chunk-26csm20x.js → chunk-vnxnmpjt.js} +1 -1
- package/dist/{chunk-fqgs7575.js → chunk-vyakbkca.js} +1 -1
- package/dist/{chunk-8petembv.js → chunk-w52rcqsf.js} +1 -1
- package/dist/{chunk-9msqz1ce.js → chunk-wcmj24xs.js} +1 -1
- package/dist/{chunk-8czeptwt.js → chunk-wf35pqg1.js} +1 -1
- package/dist/{chunk-231fr3v5.js → chunk-wm1qhjjb.js} +2 -2
- package/dist/{chunk-yz0he4xy.js → chunk-wzzysv01.js} +1 -1
- package/dist/{chunk-0d3nt7qz.js → chunk-xbj481nq.js} +1 -1
- package/dist/{chunk-h9ty5vqp.js → chunk-xf8na0xf.js} +1 -1
- package/dist/{chunk-em4a823z.js → chunk-xgj4b92p.js} +2 -2
- package/dist/{chunk-scd23ktw.js → chunk-xpsp5cd9.js} +1 -1
- package/dist/{chunk-ww425e8k.js → chunk-xwf79jzx.js} +3 -3
- package/dist/{chunk-aft224h4.js → chunk-xy39sqpy.js} +1 -1
- package/dist/{chunk-r7gng4hm.js → chunk-xynv5wzg.js} +1 -1
- package/dist/{chunk-skxp6je3.js → chunk-xzezmrjw.js} +2 -2
- package/dist/{chunk-vnknj6dr.js → chunk-yh4w2w1k.js} +3 -3
- package/dist/{chunk-ns5swv4b.js → chunk-yq41btcf.js} +1 -1
- package/dist/{chunk-6v7wyvpp.js → chunk-yspbg4dk.js} +1 -1
- package/dist/{chunk-m5gm7dz8.js → chunk-yywdygw8.js} +1 -1
- package/dist/{chunk-23jq0apj.js → chunk-z9et7s0m.js} +1 -1
- package/dist/{chunk-z2d0zedq.js → chunk-zg00dqe8.js} +1 -1
- package/dist/{chunk-pj12f0p7.js → chunk-zpqfte56.js} +1 -1
- package/dist/{chunk-5a0b532h.js → chunk-zvvqvzd9.js} +1 -1
- package/dist/{chunk-hqtzcpmm.js → chunk-zx4f13ac.js} +1 -1
- package/dist/{chunk-5nna8qjj.js → chunk-zypkgnrc.js} +2 -2
- package/dist/components/Alert.d.ts +8 -1
- package/dist/components/FormDialog.d.ts +7 -1
- package/dist/components/Table.d.ts +4 -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 +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 +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 +2 -2
- package/dist/components/assistant-ui/elements/File.js +3 -3
- package/dist/components/assistant-ui/elements/GenerativeUi.js +7 -7
- package/dist/components/assistant-ui/elements/GeoMap.js +3 -3
- package/dist/components/assistant-ui/elements/GuardrailNotice.js +3 -3
- 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 +2 -2
- 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/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/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/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 +104 -104
- 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/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 +6 -6
- package/dist/components/editor/index.js +2 -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 +2 -2
- package/dist/components/json-render/index.js +12 -12
- 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/text-diff/index.js +1 -1
- package/dist/components/tree/index.js +1 -1
- package/dist/components/virtual-data-grid/index.js +4 -4
- package/dist/components/virtual-table/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -12
- package/dist/prototype.js +1 -1
- package/llms/components/actions/Button.md +26 -0
- package/llms/components/actions/ToolbarToggleChip.md +19 -1
- package/llms/components/data-display/Table.md +25 -0
- package/llms/components/feedback/Alert.md +137 -1
- package/llms/components/layout/ScrollArea.md +13 -0
- package/llms/components/overlays/FormDialog.md +78 -2
- package/llms/setup.md +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
DashboardLayout2,
|
|
189
189
|
BillingUsage2,
|
|
190
190
|
SelectionAction2
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-3d6ctgyx.js";
|
|
192
192
|
import {
|
|
193
193
|
statusDotVariants2,
|
|
194
194
|
StatusDot2
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
ComboboxChip2,
|
|
211
211
|
ComboboxChipsInput2,
|
|
212
212
|
useComboboxAnchor2
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-ew1n9ren.js";
|
|
214
214
|
import {
|
|
215
215
|
Tabs2,
|
|
216
216
|
tabsListVariants2,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
useDropTarget2,
|
|
226
226
|
DropTarget2,
|
|
227
227
|
Kanban2
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-zpqfte56.js";
|
|
229
229
|
import {
|
|
230
230
|
NumberField2,
|
|
231
231
|
NumberFieldGroup2,
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
ToolbarInput2,
|
|
243
243
|
ToolbarGroup2,
|
|
244
244
|
ToolbarSeparator2
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-dmmvpztc.js";
|
|
246
246
|
import {
|
|
247
247
|
Slider2
|
|
248
248
|
} from "./chunk-nqvemk3q.js";
|
|
@@ -287,11 +287,11 @@ import {
|
|
|
287
287
|
TableColumnGroup2,
|
|
288
288
|
TableColumn2,
|
|
289
289
|
TableCaption2
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-a33b2w22.js";
|
|
291
291
|
import {
|
|
292
292
|
ScrollArea2,
|
|
293
293
|
ScrollBar2
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-edjb0nj8.js";
|
|
295
295
|
import {
|
|
296
296
|
RadioGroup2,
|
|
297
297
|
RadioGroupItem2
|
|
@@ -323,8 +323,9 @@ import {
|
|
|
323
323
|
Alert2,
|
|
324
324
|
AlertTitle2,
|
|
325
325
|
AlertDescription2,
|
|
326
|
-
AlertAction2
|
|
327
|
-
|
|
326
|
+
AlertAction2,
|
|
327
|
+
AlertActions2
|
|
328
|
+
} from "./chunk-q8gmx221.js";
|
|
328
329
|
import {
|
|
329
330
|
FieldSet2,
|
|
330
331
|
FieldLegend2,
|
|
@@ -382,7 +383,7 @@ import {
|
|
|
382
383
|
SidebarMenuSub2,
|
|
383
384
|
SidebarMenuSubItem2,
|
|
384
385
|
SidebarMenuSubButton2
|
|
385
|
-
} from "./chunk-
|
|
386
|
+
} from "./chunk-pj1f124b.js";
|
|
386
387
|
import {
|
|
387
388
|
Avatar2,
|
|
388
389
|
AvatarImage2,
|
|
@@ -449,7 +450,7 @@ import {
|
|
|
449
450
|
DialogFooter2,
|
|
450
451
|
DialogTitle2,
|
|
451
452
|
DialogDescription2
|
|
452
|
-
} from "./chunk-
|
|
453
|
+
} from "./chunk-sq921ejh.js";
|
|
453
454
|
import {
|
|
454
455
|
InputGroup2,
|
|
455
456
|
InputGroupAddon2,
|
|
@@ -457,7 +458,7 @@ import {
|
|
|
457
458
|
InputGroupText2,
|
|
458
459
|
InputGroupInput2,
|
|
459
460
|
InputGroupTextarea2
|
|
460
|
-
} from "./chunk-
|
|
461
|
+
} from "./chunk-zg00dqe8.js";
|
|
461
462
|
import {
|
|
462
463
|
Textarea2
|
|
463
464
|
} from "./chunk-vfgp11y4.js";
|
|
@@ -488,7 +489,7 @@ import {
|
|
|
488
489
|
TooltipContent2,
|
|
489
490
|
buttonVariants2,
|
|
490
491
|
Button2
|
|
491
|
-
} from "./chunk-
|
|
492
|
+
} from "./chunk-hvfe31vg.js";
|
|
492
493
|
import {
|
|
493
494
|
usePortalContainer2,
|
|
494
495
|
PortalProvider2
|
|
@@ -518,6 +519,7 @@ export {
|
|
|
518
519
|
ActionsMenuTrigger2 as ActionsMenuTrigger,
|
|
519
520
|
Alert2 as Alert,
|
|
520
521
|
AlertAction2 as AlertAction,
|
|
522
|
+
AlertActions2 as AlertActions,
|
|
521
523
|
AlertDescription2 as AlertDescription,
|
|
522
524
|
AlertDialog2 as AlertDialog,
|
|
523
525
|
AlertDialogAction2 as AlertDialogAction,
|
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.201",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -534,3 +534,29 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
534
534
|
</div>)
|
|
535
535
|
}
|
|
536
536
|
```
|
|
537
|
+
|
|
538
|
+
### FocusIndicatorDark
|
|
539
|
+
|
|
540
|
+
```tsx
|
|
541
|
+
{
|
|
542
|
+
globals: { theme: "dark", density: "comfortable" },
|
|
543
|
+
render: () => (<div className="flex flex-wrap items-center gap-4 p-panel">
|
|
544
|
+
{filledVariants.map((variant) => (<Button key={variant} variant={variant}>
|
|
545
|
+
{`Focus ${variant}`}
|
|
546
|
+
</Button>))}
|
|
547
|
+
</div>)
|
|
548
|
+
}
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### FocusIndicatorLight
|
|
552
|
+
|
|
553
|
+
```tsx
|
|
554
|
+
{
|
|
555
|
+
globals: { theme: "light", density: "comfortable" },
|
|
556
|
+
render: () => (<div className="flex flex-wrap items-center gap-4 p-panel">
|
|
557
|
+
{filledVariants.map((variant) => (<Button key={variant} variant={variant}>
|
|
558
|
+
{`Focus ${variant}`}
|
|
559
|
+
</Button>))}
|
|
560
|
+
</div>)
|
|
561
|
+
}
|
|
562
|
+
```
|
|
@@ -14,7 +14,7 @@ import { Toolbar, Select, SelectContent, SelectItem, SelectTrigger, SelectValue,
|
|
|
14
14
|
## Supporting imports
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
import { useState, type ReactElement } from "react";
|
|
17
|
+
import { useState, type ComponentProps, type ReactElement } from "react";
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Default component
|
|
@@ -140,3 +140,21 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
```
|
|
143
|
+
|
|
144
|
+
### StableAcrossStates
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
{
|
|
148
|
+
render: function Example(): ReactElement {
|
|
149
|
+
return (<div className="flex flex-col items-start gap-4">
|
|
150
|
+
<Toolbar aria-label="Comfortable filters" density="comfortable">
|
|
151
|
+
<ControlledChip label="Earliest"/>
|
|
152
|
+
<ControlledChip label="Red" swatch="#d94f4f" hideLabel/>
|
|
153
|
+
</Toolbar>
|
|
154
|
+
<Toolbar aria-label="Compact filters" density="compact">
|
|
155
|
+
<ControlledChip label="Latest"/>
|
|
156
|
+
</Toolbar>
|
|
157
|
+
</div>);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
```
|
|
@@ -315,3 +315,28 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
315
315
|
</Table>)
|
|
316
316
|
}
|
|
317
317
|
```
|
|
318
|
+
|
|
319
|
+
### WrappedColumn
|
|
320
|
+
|
|
321
|
+
```tsx
|
|
322
|
+
{
|
|
323
|
+
render: () => (<div data-testid="narrow" className="w-[300px]">
|
|
324
|
+
<Table aria-label="Weekly change">
|
|
325
|
+
<TableHeader>
|
|
326
|
+
<TableRow>
|
|
327
|
+
<TableHead wrap>Measure</TableHead>
|
|
328
|
+
<TableHead>Change</TableHead>
|
|
329
|
+
<TableHead>Last 7 days</TableHead>
|
|
330
|
+
</TableRow>
|
|
331
|
+
</TableHeader>
|
|
332
|
+
<TableBody>
|
|
333
|
+
<TableRow>
|
|
334
|
+
<TableCell wrap>Lowest overnight heart rate</TableCell>
|
|
335
|
+
<TableCell>+2 bpm</TableCell>
|
|
336
|
+
<TableCell>52 bpm</TableCell>
|
|
337
|
+
</TableRow>
|
|
338
|
+
</TableBody>
|
|
339
|
+
</Table>
|
|
340
|
+
</div>)
|
|
341
|
+
}
|
|
342
|
+
```
|
|
@@ -8,12 +8,13 @@ Source: src/components/stories/feedback/Alert.stories.tsx
|
|
|
8
8
|
## Public imports
|
|
9
9
|
|
|
10
10
|
```tsx
|
|
11
|
-
import { Alert, AlertAction, AlertDescription, AlertTitle, Button } from "@alexgorbatchev/shadcn";
|
|
11
|
+
import { Alert, AlertAction, AlertActions, AlertDescription, AlertTitle, Button } from "@alexgorbatchev/shadcn";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Supporting imports
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
+
import type { ReactElement } from "react";
|
|
17
18
|
import { CircleAlertIcon, TriangleAlertIcon } from "lucide-react";
|
|
18
19
|
```
|
|
19
20
|
|
|
@@ -212,3 +213,138 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
212
213
|
</div>)
|
|
213
214
|
}
|
|
214
215
|
```
|
|
216
|
+
|
|
217
|
+
### WithActions
|
|
218
|
+
|
|
219
|
+
```tsx
|
|
220
|
+
{
|
|
221
|
+
args: { variant: "destructive" },
|
|
222
|
+
render: (args) => (<Alert {...args}>
|
|
223
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
224
|
+
<AlertTitle>Changes not saved</AlertTitle>
|
|
225
|
+
<AlertDescription>The server did not answer. Check the connection, then save again.</AlertDescription>
|
|
226
|
+
<AlertActions>
|
|
227
|
+
<Button size="sm" variant="outline" onClick={onRetry}>
|
|
228
|
+
Save again
|
|
229
|
+
</Button>
|
|
230
|
+
<Button size="sm" variant="ghost">
|
|
231
|
+
Discard changes
|
|
232
|
+
</Button>
|
|
233
|
+
</AlertActions>
|
|
234
|
+
</Alert>)
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### ActionsBelowText
|
|
239
|
+
|
|
240
|
+
```tsx
|
|
241
|
+
{
|
|
242
|
+
render: () => (<div className="flex w-80 flex-col gap-2">
|
|
243
|
+
{directions.flatMap((dir) => densities.flatMap((density) => lineCounts.flatMap((lines) => [true, false].flatMap((hasTitle) => [true, false].map((hasAction) => {
|
|
244
|
+
const name = `${dir}, ${density}, ${lines} lines, title ${hasTitle}, action ${hasAction}`;
|
|
245
|
+
return (<Alert key={name} dir={dir} density={density} variant="destructive" data-case={name}>
|
|
246
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
247
|
+
{hasTitle && <AlertTitle>Update failed</AlertTitle>}
|
|
248
|
+
<AlertDescription data-lines={lines}>{renderLines(lines)}</AlertDescription>
|
|
249
|
+
{hasAction && (<AlertAction>
|
|
250
|
+
<Button size="xs">Dismiss</Button>
|
|
251
|
+
</AlertAction>)}
|
|
252
|
+
<AlertActions>
|
|
253
|
+
<Button>Retry</Button>
|
|
254
|
+
</AlertActions>
|
|
255
|
+
</Alert>);
|
|
256
|
+
})))))}
|
|
257
|
+
</div>)
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### ActionsInEveryVariant
|
|
262
|
+
|
|
263
|
+
```tsx
|
|
264
|
+
{
|
|
265
|
+
render: () => (<div className="flex w-80 flex-col gap-2">
|
|
266
|
+
{appearances.flatMap((appearance) => variants.flatMap((variant) => [true, false].flatMap((hasTitle) => [true, false].map((hasActions) => (<Alert key={`${appearance}-${variant}-${hasTitle}-${hasActions}`} appearance={appearance} variant={variant} data-case={`${appearance}, ${variant}, title ${hasTitle}`} data-actions={hasActions}>
|
|
267
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
268
|
+
{hasTitle && <AlertTitle>Changes saved</AlertTitle>}
|
|
269
|
+
<AlertDescription>{wrappingDescription}</AlertDescription>
|
|
270
|
+
{hasActions && (<AlertActions>
|
|
271
|
+
<Button variant="outline">Show changes</Button>
|
|
272
|
+
</AlertActions>)}
|
|
273
|
+
</Alert>)))))}
|
|
274
|
+
</div>)
|
|
275
|
+
}
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### ActionsInNarrowAlert
|
|
279
|
+
|
|
280
|
+
```tsx
|
|
281
|
+
{
|
|
282
|
+
render: () => (<div className="flex w-60 flex-col gap-2">
|
|
283
|
+
{directions.flatMap((dir) => [true, false].map((hasTitle) => (<Alert key={`${dir}-${hasTitle}`} dir={dir} variant="destructive" data-case={`${dir}, title ${String(hasTitle)}`}>
|
|
284
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
285
|
+
{hasTitle && <AlertTitle>Update failed</AlertTitle>}
|
|
286
|
+
<AlertDescription>{wrappingDescription}</AlertDescription>
|
|
287
|
+
<AlertActions>
|
|
288
|
+
<Button>Check again</Button>
|
|
289
|
+
<Button variant="outline">Show all changes</Button>
|
|
290
|
+
</AlertActions>
|
|
291
|
+
</Alert>)))}
|
|
292
|
+
</div>)
|
|
293
|
+
}
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### ActionsInNestedAlerts
|
|
297
|
+
|
|
298
|
+
```tsx
|
|
299
|
+
{
|
|
300
|
+
render: () => (<div className="flex w-96 flex-col gap-2">
|
|
301
|
+
<Alert variant="destructive" data-case="outer actions">
|
|
302
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
303
|
+
<AlertDescription>
|
|
304
|
+
<p>The import stopped.</p>
|
|
305
|
+
<Alert variant="warning" appearance="outline" data-case="inner text">
|
|
306
|
+
<TriangleAlertIcon aria-hidden="true"/>
|
|
307
|
+
<AlertTitle>Two files are missing</AlertTitle>
|
|
308
|
+
<AlertDescription>They moved after the import started.</AlertDescription>
|
|
309
|
+
<AlertAction>
|
|
310
|
+
<Button size="xs">Show</Button>
|
|
311
|
+
</AlertAction>
|
|
312
|
+
</Alert>
|
|
313
|
+
</AlertDescription>
|
|
314
|
+
<AlertActions>
|
|
315
|
+
<Button>Import again</Button>
|
|
316
|
+
</AlertActions>
|
|
317
|
+
</Alert>
|
|
318
|
+
<Alert variant="warning" data-case="outer text">
|
|
319
|
+
<TriangleAlertIcon aria-hidden="true"/>
|
|
320
|
+
<AlertDescription>
|
|
321
|
+
<p>The import stopped.</p>
|
|
322
|
+
<Alert variant="destructive" appearance="outline" data-case="inner actions">
|
|
323
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
324
|
+
<AlertTitle>Two files are missing</AlertTitle>
|
|
325
|
+
<AlertDescription>They moved after the import started.</AlertDescription>
|
|
326
|
+
<AlertActions>
|
|
327
|
+
<Button>Find files</Button>
|
|
328
|
+
</AlertActions>
|
|
329
|
+
</Alert>
|
|
330
|
+
</AlertDescription>
|
|
331
|
+
</Alert>
|
|
332
|
+
<Alert variant="destructive" data-case="both actions">
|
|
333
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
334
|
+
<AlertTitle>The import stopped</AlertTitle>
|
|
335
|
+
<AlertDescription>
|
|
336
|
+
<Alert variant="warning" appearance="outline" data-case="inner actions without an icon">
|
|
337
|
+
<AlertTitle>Two files are missing</AlertTitle>
|
|
338
|
+
<AlertDescription>They moved after the import started.</AlertDescription>
|
|
339
|
+
<AlertActions>
|
|
340
|
+
<Button>Find files</Button>
|
|
341
|
+
</AlertActions>
|
|
342
|
+
</Alert>
|
|
343
|
+
</AlertDescription>
|
|
344
|
+
<AlertActions>
|
|
345
|
+
<Button>Import again</Button>
|
|
346
|
+
</AlertActions>
|
|
347
|
+
</Alert>
|
|
348
|
+
</div>)
|
|
349
|
+
}
|
|
350
|
+
```
|
|
@@ -168,3 +168,16 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
168
168
|
]
|
|
169
169
|
}
|
|
170
170
|
```
|
|
171
|
+
|
|
172
|
+
### HorizontalScrollbarClearsContent
|
|
173
|
+
|
|
174
|
+
```tsx
|
|
175
|
+
{
|
|
176
|
+
render: () => (<ScrollArea aria-label="Release names" className="w-64 border border-border" scrollbars={<ScrollBar orientation="horizontal"/>}>
|
|
177
|
+
<ol className="w-max px-panel pt-panel">
|
|
178
|
+
<li>Release 1 — the first public build with native scrolling</li>
|
|
179
|
+
<li data-testid="last-line">Release 2 — the build that added horizontal scrollbars</li>
|
|
180
|
+
</ol>
|
|
181
|
+
</ScrollArea>)
|
|
182
|
+
}
|
|
183
|
+
```
|
|
@@ -8,13 +8,14 @@ Source: src/components/stories/overlays/FormDialog.stories.tsx
|
|
|
8
8
|
## Public imports
|
|
9
9
|
|
|
10
10
|
```tsx
|
|
11
|
-
import { FormDialog, Input, Button } from "@alexgorbatchev/shadcn";
|
|
11
|
+
import { Alert, AlertDescription, FormDialog, Input, Button } from "@alexgorbatchev/shadcn";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Supporting imports
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
import { useState, type ReactElement } from "react";
|
|
17
|
+
import { useState, type ComponentProps, type ReactElement } from "react";
|
|
18
|
+
import { CircleAlertIcon } from "lucide-react";
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
## Default component
|
|
@@ -108,3 +109,78 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
108
109
|
args: { size: "fullscreen" }
|
|
109
110
|
}
|
|
110
111
|
```
|
|
112
|
+
|
|
113
|
+
### ErrorActionLight
|
|
114
|
+
|
|
115
|
+
```tsx
|
|
116
|
+
{
|
|
117
|
+
globals: { theme: "light" },
|
|
118
|
+
render: ErrorDialog
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### ErrorActionDark
|
|
123
|
+
|
|
124
|
+
```tsx
|
|
125
|
+
{
|
|
126
|
+
globals: { theme: "dark" },
|
|
127
|
+
render: ErrorDialog
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### ErrorActionKeyboard
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
{
|
|
135
|
+
args: {
|
|
136
|
+
error: renderErrorLines(1),
|
|
137
|
+
errorAction: (<>
|
|
138
|
+
<Button onClick={onReload}>Reload project</Button>
|
|
139
|
+
<button type="button" onClick={onReload}>
|
|
140
|
+
Reload settings
|
|
141
|
+
</button>
|
|
142
|
+
</>),
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### ErrorActionNumber
|
|
148
|
+
|
|
149
|
+
```tsx
|
|
150
|
+
{
|
|
151
|
+
args: { error: renderErrorLines(1), errorAction: 0 }
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### ErrorActionWithoutError
|
|
156
|
+
|
|
157
|
+
```tsx
|
|
158
|
+
{
|
|
159
|
+
args: { errorAction: <Button>Reload project</Button> }
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### ErrorActionInScrollingBody
|
|
164
|
+
|
|
165
|
+
```tsx
|
|
166
|
+
{
|
|
167
|
+
args: {
|
|
168
|
+
children: Array.from({ length: 60 }, (_, index) => <p key={index}>Project detail {index + 1}</p>),
|
|
169
|
+
error: renderErrorLines(2),
|
|
170
|
+
errorAction: <Button>Reload project</Button>,
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### ErrorActionRenderingNothing
|
|
176
|
+
|
|
177
|
+
```tsx
|
|
178
|
+
{
|
|
179
|
+
render: (args) => (<FormDialog {...args} open error="The change was not saved." errorAction={<NoAction />}>
|
|
180
|
+
<Alert variant="destructive">
|
|
181
|
+
<CircleAlertIcon aria-hidden="true"/>
|
|
182
|
+
<AlertDescription>The change was not saved.</AlertDescription>
|
|
183
|
+
</Alert>
|
|
184
|
+
</FormDialog>)
|
|
185
|
+
}
|
|
186
|
+
```
|
package/llms/setup.md
CHANGED
|
@@ -302,6 +302,8 @@ Every action shows a visible affordance at rest. Interactive control edges use t
|
|
|
302
302
|
|
|
303
303
|
`ButtonLink` renders a native anchor with Button's `variant`, `size`, `align`, `truncate`, `fullWidth`, and `density` options, so navigation keeps the link role, Enter activation, and browser link behavior without `role="button"`. Pass `href` for a plain link, or a router link element through `render`, such as `<ButtonLink variant="outline" render={<Link to="/settings" />}>Settings</ButtonLink>`; class names, children, handlers, and refs merge with the rendered element. Its render callback receives typed slot and density state. Mark icons with `data-icon="inline-start"` or `data-icon="inline-end"` as in Button. Use `Button` for actions that do not navigate.
|
|
304
304
|
|
|
305
|
+
`Alert` centres a leading icon on its `AlertTitle` and `AlertDescription`. `AlertAction` puts one compact action at the end of the title's line. `AlertActions` puts actions in a row of their own below the text, aligned with it, and leaves the icon beside the text; use it instead of placing buttons that follow the message in the description. Make all of them direct children of `Alert`, with `AlertActions` last, after the text it belongs to. An alert is one `role="alert"` region that contains its text and its actions, in that order.
|
|
306
|
+
|
|
305
307
|
`Badge` renders a span by default. Use `render={<a href="https://base-ui.com/" />}` for navigation or a native button for actions; handlers and refs merge with the rendered element. Its render callback receives typed variant, density, and slot state. Mark icons with `data-icon="inline-start"` or `data-icon="inline-end"`; their spacing follows inline direction. Use the success and warning variants for those statuses. The `outline` variant is a status tag: a pill with a quiet edge and regular-weight muted text, so a tag such as "Required" never looks like the outline Button beside it.
|
|
306
308
|
|
|
307
309
|
Compose `CardHeader`, `CardTitle`, `CardDescription`, `CardAction`, `CardContent`, and `CardFooter` inside `Card`. Use a native heading inside `CardTitle` when the title belongs in the document outline. The `size="sm"` option reduces spacing; density controls the base inset. A leading image meets the frame without top padding, and cards without footers retain bottom padding. The `--card-spacing` CSS variable adjusts both section gaps and insets.
|
|
@@ -480,7 +482,7 @@ Embedded actions, links, menus, editable fields, and media controls retain their
|
|
|
480
482
|
|
|
481
483
|
`DialogContent size="wide"` uses a desktop maximum width of 576px; `size="narrow"` uses 192px, and the default uses 384px. Dialogs remain bounded by the viewport. `FieldGroup columns={2}` arranges fields in two columns on desktop and one on mobile.
|
|
482
484
|
|
|
483
|
-
`FormDialog` supplies a controlled dialog with a fixed heading and footer around a scrolling body. Supply `open`, `onOpenChange`, `title`, and children; `description`, `size`, and `density` are optional. With `onSubmit`, the body and actions use a native form: the caller handles `preventDefault`, validation, submission, and pending state. `submitLabel` adds the stock submit button, with optional `submitVariant` and `submitDisabled`; `primaryAction` supplies a custom action instead. Without `onSubmit`, custom actions can request consent without introducing a form. Without a primary action, `cancelLabel="Done"` gives a close-only footer. `isBusy` blocks native dismissal and disables the stock actions; callers disable their own inputs and custom actions. Pass already-rendered safe guidance through `error`.
|
|
485
|
+
`FormDialog` supplies a controlled dialog with a fixed heading and footer around a scrolling body. Supply `open`, `onOpenChange`, `title`, and children; `description`, `size`, and `density` are optional. With `onSubmit`, the body and actions use a native form: the caller handles `preventDefault`, validation, submission, and pending state. `submitLabel` adds the stock submit button, with optional `submitVariant` and `submitDisabled`; `primaryAction` supplies a custom action instead. Without `onSubmit`, custom actions can request consent without introducing a form. Without a primary action, `cancelLabel="Done"` gives a close-only footer. `isBusy` blocks native dismissal and disables the stock actions; callers disable their own inputs and custom actions. Pass already-rendered safe guidance through `error`, and a button that acts on it through `errorAction`, which renders below the message and only with an `error`. With `onSubmit`, that button is inside the form: use `Button`, or a native button with `type="button"`, because a native button without a type submits the form. The error is one `role="alert"` region that contains the message and then the action.
|
|
484
486
|
|
|
485
487
|
`ImagePicker` displays a 256px square preview with upload and unset buttons. Supply the existing `src`, a staged `file` (`undefined` for the existing image, `null` for removal), and `onFileChange`/`onClear` callbacks. It accepts PNG, JPEG, and GIF files and releases local preview URLs when they change or unmount. The consumer owns saving and removal confirmation.
|
|
486
488
|
|