@fldr/ui 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2366 -0
- package/LICENSE +21 -0
- package/README.md +488 -2
- package/ai/USAGE.md +216 -0
- package/ai/component-registry.json +8694 -0
- package/ai/component-registry.md +11933 -0
- package/ai/schemas.ts +1239 -0
- package/bin/kumo.js +36 -0
- package/dist/.build-complete +1 -0
- package/dist/ai/schemas.d.ts +3229 -0
- package/dist/ai/schemas.js +5963 -0
- package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
- package/dist/blocks-source/delete-resource/delete-resource.tsx +219 -0
- package/dist/blocks-source/page-header/page-header.tsx +99 -0
- package/dist/blocks-source/resource-list/resource-list.test.tsx +28 -0
- package/dist/blocks-source/resource-list/resource-list.tsx +66 -0
- package/dist/button-DzavLWXm.d.ts +227 -0
- package/dist/catalog.d.ts +380 -0
- package/dist/catalog.js +387 -0
- package/dist/chunks/AccordionPanelDataAttributes-mmrmkky28u1010l5.js +457 -0
- package/dist/chunks/AlertDialogTrigger-l1r1gbxcky1xq889.js +24 -0
- package/dist/chunks/AlertDialogTriggerDataAttributes-go49qon601catpgn.js +56 -0
- package/dist/chunks/AutocompleteItem-36ysm5nwbsd0snr6.js +70 -0
- package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
- package/dist/chunks/AutocompleteSeparator-bnqeqh7i983d92gx.js +12 -0
- package/dist/chunks/AvatarImageDataAttributes-jw70u384c83lhqfp.js +247 -0
- package/dist/chunks/ButtonDataAttributes-nceand1fi7lvnmkb.js +35 -0
- package/dist/chunks/CSPContext-iv67i0qqhihg8mur.js +11 -0
- package/dist/chunks/CSPProvider-finau3a8hnc9o2td.js +24 -0
- package/dist/chunks/CheckboxGroup-581mfftu99wvjb3a.js +190 -0
- package/dist/chunks/CheckboxGroupContext-jf1bt3znvqlhrql6.js +10 -0
- package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
- package/dist/chunks/CheckboxIndicator-i13dmhacfgqo328c.js +414 -0
- package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
- package/dist/chunks/CollapsiblePanel-md5suzmtnsyz1kab.js +178 -0
- package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
- package/dist/chunks/ComboboxClear-ioejwvtnmqanph88.js +294 -0
- package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
- package/dist/chunks/ComboboxEmpty-gkt1y5b81a4983v7.js +1950 -0
- package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
- package/dist/chunks/ComboboxPopup-n8cbgys9st446j1i.js +205 -0
- package/dist/chunks/CompositeItem-kepwg8jtvgap06o6.js +20 -0
- package/dist/chunks/CompositeList-gwuaf6d14s4da0j0.js +182 -0
- package/dist/chunks/CompositeListContext-bejvmlu39hsfjzgu.js +15 -0
- package/dist/chunks/CompositeRoot-dnlkb27uw4g5aocf.js +223 -0
- package/dist/chunks/CompositeRootContext-obm54j7y6s86qwhq.js +12 -0
- package/dist/chunks/ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js +237 -0
- package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
- package/dist/chunks/DialogCloseDataAttributes-12m7gwh3i6fd7d05.js +76 -0
- package/dist/chunks/DialogPopup-n6w7b389e7bs0472.js +133 -0
- package/dist/chunks/DialogRoot-hkkqj7vcjpkx8qk8.js +16 -0
- package/dist/chunks/DialogTrigger-kpugfkbfswqrus4u.js +142 -0
- package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
- package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
- package/dist/chunks/DirectionContext-kpby968j030psajn.js +10 -0
- package/dist/chunks/DirectionProvider-cg0pwzgdyg6r73r6.js +21 -0
- package/dist/chunks/DrawerViewport-mzqpwvqtylnad8ib.js +1532 -0
- package/dist/chunks/DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js +1072 -0
- package/dist/chunks/FieldControl-hjj2tcqruozadgdi.js +122 -0
- package/dist/chunks/FieldDescription-orix2gepowrp5ni4.js +122 -0
- package/dist/chunks/FieldItemContext-ohsf45im6xhpay40.js +10 -0
- package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
- package/dist/chunks/FieldLabel-fjc7tdis7rcbq8o4.js +353 -0
- package/dist/chunks/FieldsetLegend-gl9z9eezr0xg9zr7.js +61 -0
- package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
- package/dist/chunks/FieldsetRootContext-fphwizvcm55ydg94.js +12 -0
- package/dist/chunks/FloatingPortalLite-j7dsy7gokbxdoe1i.js +25 -0
- package/dist/chunks/FloatingRootStore-men6ufp3a2b296fh.js +840 -0
- package/dist/chunks/FloatingTree-kiyzavvaum442o1s.js +115 -0
- package/dist/chunks/Form-oz425k7r4abea8o4.js +113 -0
- package/dist/chunks/FormContext-jv19engyccpf6xcl.js +18 -0
- package/dist/chunks/Input-ozudotydd679ly63.js +20 -0
- package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
- package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
- package/dist/chunks/LabelableContext-dz4wz3lu3lgqusu7.js +135 -0
- package/dist/chunks/ListboxSeparator-skazx18vzzj7i9zp.js +21 -0
- package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
- package/dist/chunks/MenuSubmenuTrigger-hm5xbgik6aq95x35.js +1976 -0
- package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
- package/dist/chunks/MenuTrigger-dlfvicsaggss0o9m.js +265 -0
- package/dist/chunks/Menubar-ja5int05ihjj0ra4.js +116 -0
- package/dist/chunks/MenubarContext-ooz0h08i55c8oip5.js +12 -0
- package/dist/chunks/MeterLabel-cykbkvqys5263z05.js +148 -0
- package/dist/chunks/NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js +1654 -0
- package/dist/chunks/NullStore-my62xo2vfcfkerri.js +110 -0
- package/dist/chunks/NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js +1493 -0
- package/dist/chunks/OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js +683 -0
- package/dist/chunks/PopoverViewport-peh28i8q4hqfjy97.js +713 -0
- package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
- package/dist/chunks/PrehydrationScript-hs2je3mndbxuts7w.js +78 -0
- package/dist/chunks/PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js +914 -0
- package/dist/chunks/ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js +287 -0
- package/dist/chunks/RadioGroup-kioqngmmuo7a1lfa.js +163 -0
- package/dist/chunks/RadioGroupContext-dr6uihsj7oky0eol.js +10 -0
- package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
- package/dist/chunks/RadioIndicator-bhxqih8wzv7hyrec.js +299 -0
- package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
- package/dist/chunks/ScrollAreaThumb-hxig41yn4lrurd3o.js +928 -0
- package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
- package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
- package/dist/chunks/SelectSeparator-nnak70azojox8b2b.js +1632 -0
- package/dist/chunks/Separator-fhwve0tfny3tht3a.js +24 -0
- package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
- package/dist/chunks/SliderIndicator-h1o3qbrvr8x0t4t2.js +1171 -0
- package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
- package/dist/chunks/SwitchRoot-m4t2tq5zn5wibyxk.js +244 -0
- package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
- package/dist/chunks/TabsList-n5n93rxr4sy704u8.js +664 -0
- package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
- package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
- package/dist/chunks/ToggleDataAttributes-jl9ojyvwgrvefke6.js +103 -0
- package/dist/chunks/ToggleGroupContext-hg8zbkgqpscqhz83.js +10 -0
- package/dist/chunks/ToggleGroupDataAttributes-n1dwona1alvabstl.js +102 -0
- package/dist/chunks/ToolbarGroupContext-eawva8xkxb4osbxb.js +10 -0
- package/dist/chunks/ToolbarInput-kyxl1be0p3cyuayp.js +174 -0
- package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
- package/dist/chunks/ToolbarRootContext-difqbj720teyt8lu.js +12 -0
- package/dist/chunks/TooltipPopup-furysmeyb68uycbz.js +839 -0
- package/dist/chunks/TooltipProvider-hyans0ens4axh1y8.js +61 -0
- package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
- package/dist/chunks/adaptiveOriginMiddleware-m9tqzw58wya9sdds.js +51 -0
- package/dist/chunks/addEventListener-ku3x23446prmd1kz.js +13 -0
- package/dist/chunks/areArraysEqual-nnpg93s9g7aqcaoh.js +15 -0
- package/dist/chunks/autocomplete-gdd9aruremdgdvx7.js +152 -0
- package/dist/chunks/badge-gca8xfu79ne55d5k.js +165 -0
- package/dist/chunks/banner-mo1xl9ww734kgsqh.js +269 -0
- package/dist/chunks/breadcrumbs-z1jo40oxlw8e4eh4.js +159 -0
- package/dist/chunks/button-group-biv43ksvaipc3p5n.js +59 -0
- package/dist/chunks/button-hzvowfkbathmx8yg.js +274 -0
- package/dist/chunks/chart-dgh98nbzo2sux2bs.js +3985 -0
- package/dist/chunks/checkbox-eifiwbw34xwsikvf.js +211 -0
- package/dist/chunks/clamp-rcpupxvhqrn8uuyf.js +7 -0
- package/dist/chunks/clipboard-text-oukrnke1s3kebk3y.js +209 -0
- package/dist/chunks/cloudflare-logo-d8mid9xr190h78cu.js +186 -0
- package/dist/chunks/code-hp2x28uiufmk3elz.js +94 -0
- package/dist/chunks/collapsible-ic6813hc4yv5s5hv.js +185 -0
- package/dist/chunks/combobox-mzvobpvalz2gnpli.js +321 -0
- package/dist/chunks/command-palette-d45ueqbuxygu87ir.js +507 -0
- package/dist/chunks/composite-c11t1ok72s3cggjc.js +90 -0
- package/dist/chunks/constants-l10cgj6pyqg27jod.js +5 -0
- package/dist/chunks/createBaseUIEventDetails-nvee6bghv2reeqdb.js +50 -0
- package/dist/chunks/createItems-n07tfwx89cdoar18.js +323 -0
- package/dist/chunks/createToastManager-cxjmn4jx3ejh85fs.js +1225 -0
- package/dist/chunks/date-picker-ija2bz17ai6ypnao.js +6865 -0
- package/dist/chunks/date-range-picker-oivlshld01jbel29.js +336 -0
- package/dist/chunks/dialog-g7wavhkdv2gplwq9.js +173 -0
- package/dist/chunks/dropdown-m5a8nwer5hpvnkfk.js +384 -0
- package/dist/chunks/empty-e0onzpyokyl6h9bp.js +96 -0
- package/dist/chunks/engine-hzmefiqm63hu0c7i.js +10 -0
- package/dist/chunks/error-lbnic2b20qr3mukp.js +6 -0
- package/dist/chunks/field-fowmq5smvp17pnqe.js +75 -0
- package/dist/chunks/flow-fak0fyldoaozd32s.js +10290 -0
- package/dist/chunks/formatNumber-b4kjdsebslm2b3t0.js +21 -0
- package/dist/chunks/getCssDimensions-gckwdrp86f73cv51.js +21 -0
- package/dist/chunks/getElementTransform-cz3jyftv0x5io95f.js +38 -0
- package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
- package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
- package/dist/chunks/getPseudoElementBounds-csuw8kwsoeyxd5tv.js +37 -0
- package/dist/chunks/grid-nwiczrab3r4w0zr2.js +118 -0
- package/dist/chunks/highlighter-mouttug0tu8xg1i8.js +1364 -0
- package/dist/chunks/index.parts-db9pzsm9rrs9tp0t.js +200 -0
- package/dist/chunks/index.parts-ggacwr0yakuemead.js +24 -0
- package/dist/chunks/index.parts-pcg3pmf3yyro841t.js +13 -0
- package/dist/chunks/inertValue-n09gkjvwwa1kddov.js +9 -0
- package/dist/chunks/inline-copy-text-izxpvnrtebcqlquf.js +104 -0
- package/dist/chunks/input-group-h9fepskc84e1h11n.js +457 -0
- package/dist/chunks/input-kfi46426y22ocoo4.js +85 -0
- package/dist/chunks/input-m2tfec2viezoz9hh.js +146 -0
- package/dist/chunks/isElementDisabled-dyqutxpzdfppbohx.js +7 -0
- package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
- package/dist/chunks/label-f18fnpbv85jddo4q.js +76 -0
- package/dist/chunks/layer-card-lsmeuqic9i1isv2b.js +74 -0
- package/dist/chunks/layer-dialog-ejtz9s7bbfhjk1md.js +414 -0
- package/dist/chunks/link-h84bkh8eem39p529.js +112 -0
- package/dist/chunks/link-provider-kbwllpbo24fvgioj.js +60 -0
- package/dist/chunks/loader-kv5nk8j8tsuesxqo.js +87 -0
- package/dist/chunks/locale-provider-j4ii538ntyok36r6.js +50 -0
- package/dist/chunks/menubar-gzlyhmmc4i24prn1.js +106 -0
- package/dist/chunks/mergeCleanups-nw73c6jfwl5tyhw4.js +15 -0
- package/dist/chunks/meter-poh8jpe0qtq6mvee.js +35 -0
- package/dist/chunks/pagination-lmogkvvtu19mnr7f.js +296 -0
- package/dist/chunks/popover-nqrt3ykqv6sic8pz.js +206 -0
- package/dist/chunks/popupHandle-dk3ixgc8flr7v971.js +177 -0
- package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
- package/dist/chunks/portal-provider-eveknxf26oudn7pp.js +63 -0
- package/dist/chunks/radio-nf717i5ypsga9zdh.js +204 -0
- package/dist/chunks/reason-parts-hssx64rmlxyn6gw5.js +40 -0
- package/dist/chunks/resolve-variant-l6x5ksfrjtu4m66l.js +35 -0
- package/dist/chunks/resolveAriaLabelledBy-knaucrjrjwnk7tvs.js +10 -0
- package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
- package/dist/chunks/rolldown-runtime-hi7ti5xiuxsegr96.js +18 -0
- package/dist/chunks/safePolygon-ep4133qogeu5vjf3.js +661 -0
- package/dist/chunks/safeReact-ek77ilng4ekk7mgz.js +18 -0
- package/dist/chunks/scrollable-k784b35i80aolmvg.js +29 -0
- package/dist/chunks/select-lnekz415wm4v6d6m.js +279 -0
- package/dist/chunks/sensitive-input-dvwlnntm7rdudwp0.js +252 -0
- package/dist/chunks/serializeValue-d1otz2i7h5tygrwf.js +13 -0
- package/dist/chunks/sidebar-mhlgvpawixxoey2k.js +1466 -0
- package/dist/chunks/skeleton-line-kmhnp0lx3rxhioxa.js +74 -0
- package/dist/chunks/slider-e395gihi5cjd62ss.js +87 -0
- package/dist/chunks/stringifyLocale-gbxouqj7ol627jxh.js +9 -0
- package/dist/chunks/styles-eb8bvypmayf578jf.js +35 -0
- package/dist/chunks/surface-jr8x5hy0gucjk5ig.js +30 -0
- package/dist/chunks/switch-nc8thi7ogd51m3gi.js +202 -0
- package/dist/chunks/table-ngl1b5yc8mcur662.js +238 -0
- package/dist/chunks/table-of-contents-gkjv9ck8etbz64ej.js +234 -0
- package/dist/chunks/tabs-o59bv7348nh2gppm.js +280 -0
- package/dist/chunks/tag-input-lbx9yzt33d4wu07o.js +156 -0
- package/dist/chunks/text-nqum95flcp07ac9s.js +126 -0
- package/dist/chunks/toast-ljpenshot856xqq4.js +341 -0
- package/dist/chunks/toolbar-kh6pc12ii7b6dv1x.js +141 -0
- package/dist/chunks/tooltip-bcymn9bfyz29fvji.js +92 -0
- package/dist/chunks/unwrap-lazy-element-hzbdkmujhd7iksau.js +45 -0
- package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
- package/dist/chunks/useAnchoredPopupScrollLock-msm8tzkewysnunut.js +31 -0
- package/dist/chunks/useAnimationFrame-k9lqdj9quln3sd85.js +87 -0
- package/dist/chunks/useAriaLabelledBy-j3j9jqlr9ukyk08s.js +36 -0
- package/dist/chunks/useBaseUiId-nk4k7nj9h1cy76ny.js +13 -0
- package/dist/chunks/useButton-lklvdzuhvj22bx07.js +186 -0
- package/dist/chunks/useClick-pcbkcc7r620v1smu.js +87 -0
- package/dist/chunks/useCollapsiblePanel-lrfsgx21ds36cwlp.js +415 -0
- package/dist/chunks/useCompositeItem-2juex3zh9gyrs8e9.js +31 -0
- package/dist/chunks/useCompositeListItem-ekwo2j2rjkggg7xj.js +54 -0
- package/dist/chunks/useControlled-i3srnkxy598s0au9.js +52 -0
- package/dist/chunks/useFieldValidation-oe16jiigp971yrzr.js +224 -0
- package/dist/chunks/useFloatingRootContext-k676b6m7f80bdapd.js +51 -0
- package/dist/chunks/useFocus-mn7a9t9v6fnlb4mf.js +124 -0
- package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
- package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
- package/dist/chunks/useLabel-me6zzfvkypo458pi.js +58 -0
- package/dist/chunks/useLabelableId-bjeh6q3pgrqjb7er.js +56 -0
- package/dist/chunks/useListNavigation-hpddbd0cc9pvt461.js +441 -0
- package/dist/chunks/useOnMount-gxggz1m0n869s6r0.js +12 -0
- package/dist/chunks/useOpenChangeComplete-edtabjwqmechsyv6.js +129 -0
- package/dist/chunks/usePopupHandleStore-gawjmfjf1xdgiph3.js +27 -0
- package/dist/chunks/usePopupViewport-l6w01iohvzloghy8.js +367 -0
- package/dist/chunks/usePositioner-mzvgnazldqvy44z2.js +580 -0
- package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
- package/dist/chunks/usePreviousValue-o6swt5tb7xhpdu4e.js +21 -0
- package/dist/chunks/useRegisterFieldControl-m1stc9l9y4cndf0k.js +40 -0
- package/dist/chunks/useRegisteredLabelId-b7u9ygya03448zzn.js +16 -0
- package/dist/chunks/useRender-h9ktka9xt4obdv6y.js +13 -0
- package/dist/chunks/useRenderDialogRoot-bsqrqpc1ddau7xg4.js +312 -0
- package/dist/chunks/useRenderElement-nkklxbq1rp7h2kw0.js +436 -0
- package/dist/chunks/useScrollLock-le7ajwlt7oh6fzxi.js +877 -0
- package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
- package/dist/chunks/useStableCallback-le5qgj6p9l04729n.js +38 -0
- package/dist/chunks/useSwipeDismiss-e8tfxzlp05p86mgb.js +697 -0
- package/dist/chunks/useTimeout-f0ayn2l2l9aop4l8.js +43 -0
- package/dist/chunks/useTransitionStatus-disysoblzgk34w14.js +74 -0
- package/dist/chunks/useTriggerFocusGuards-dyd3hb1m8en8ct50.js +40 -0
- package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
- package/dist/chunks/useTypeahead-kfdsw1ksl5bgvvzl.js +111 -0
- package/dist/chunks/useValueAsRef-dv0tmfr1xlpzdlru.js +27 -0
- package/dist/chunks/useValueChanged-fjssa2v6d4w8y332.js +15 -0
- package/dist/chunks/utils-o44zfmzz9z7uyj1v.js +18 -0
- package/dist/chunks/valueToPercent-djk2mqnihth2uvf6.js +7 -0
- package/dist/chunks/vendor-floating-ui-fqblx3wa0r71mjoo.js +1458 -0
- package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
- package/dist/chunks/vendor-utils-io8z5lsfxq8m2dcc.js +660 -0
- package/dist/chunks/visuallyHidden-kzzs9hbe93is3rci.js +25 -0
- package/dist/code/server.d.ts +11 -0
- package/dist/code/server.js +18 -0
- package/dist/code.d.ts +65 -0
- package/dist/code.js +232 -0
- package/dist/command-line/cli.js +1705 -0
- package/dist/command-line/commands/add.js +282 -0
- package/dist/command-line/commands/ai.js +22 -0
- package/dist/command-line/commands/blocks.js +61 -0
- package/dist/command-line/commands/doc.js +167 -0
- package/dist/command-line/commands/init.js +95 -0
- package/dist/command-line/commands/ls.js +53 -0
- package/dist/command-line/commands/theme.js +850 -0
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +3 -0
- package/dist/components/badge.d.ts +2 -0
- package/dist/components/badge.js +3 -0
- package/dist/components/banner.d.ts +2 -0
- package/dist/components/banner.js +3 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +3 -0
- package/dist/components/button-group.d.ts +2 -0
- package/dist/components/button-group.js +3 -0
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +3 -0
- package/dist/components/chart.d.ts +2 -0
- package/dist/components/chart.js +3 -0
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +3 -0
- package/dist/components/clipboard-text.d.ts +2 -0
- package/dist/components/clipboard-text.js +3 -0
- package/dist/components/cloudflare-logo.d.ts +2 -0
- package/dist/components/cloudflare-logo.js +3 -0
- package/dist/components/code.d.ts +2 -0
- package/dist/components/code.js +3 -0
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +3 -0
- package/dist/components/combobox.d.ts +2 -0
- package/dist/components/combobox.js +3 -0
- package/dist/components/command-palette.d.ts +2 -0
- package/dist/components/command-palette.js +3 -0
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +3 -0
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +3 -0
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +3 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +3 -0
- package/dist/components/empty.d.ts +2 -0
- package/dist/components/empty.js +3 -0
- package/dist/components/field.d.ts +2 -0
- package/dist/components/field.js +3 -0
- package/dist/components/flow.d.ts +2 -0
- package/dist/components/flow.js +3 -0
- package/dist/components/grid.d.ts +2 -0
- package/dist/components/grid.js +3 -0
- package/dist/components/inline-copy-text.d.ts +2 -0
- package/dist/components/inline-copy-text.js +3 -0
- package/dist/components/input-group.d.ts +2 -0
- package/dist/components/input-group.js +3 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.js +5 -0
- package/dist/components/label.d.ts +2 -0
- package/dist/components/label.js +3 -0
- package/dist/components/layer-card.d.ts +2 -0
- package/dist/components/layer-card.js +3 -0
- package/dist/components/layer-dialog.d.ts +2 -0
- package/dist/components/layer-dialog.js +3 -0
- package/dist/components/link.d.ts +67 -0
- package/dist/components/link.js +3 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +4 -0
- package/dist/components/menubar.d.ts +2 -0
- package/dist/components/menubar.js +3 -0
- package/dist/components/meter.d.ts +2 -0
- package/dist/components/meter.js +3 -0
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +3 -0
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +3 -0
- package/dist/components/radio.d.ts +2 -0
- package/dist/components/radio.js +3 -0
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +3 -0
- package/dist/components/sensitive-input.d.ts +2 -0
- package/dist/components/sensitive-input.js +3 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +3 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +3 -0
- package/dist/components/surface.d.ts +2 -0
- package/dist/components/surface.js +3 -0
- package/dist/components/switch.d.ts +2 -0
- package/dist/components/switch.js +3 -0
- package/dist/components/table-of-contents.d.ts +2 -0
- package/dist/components/table-of-contents.js +3 -0
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +3 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +3 -0
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +3 -0
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +3 -0
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +4 -0
- package/dist/components/toolbar.d.ts +2 -0
- package/dist/components/toolbar.js +3 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +3 -0
- package/dist/config-BKj6nyHa.d.ts +620 -0
- package/dist/field-DIjlHM8W.d.ts +91 -0
- package/dist/highlighter-BT3TakhJ.d.ts +13 -0
- package/dist/index-2jvVmJ8P.d.ts +46 -0
- package/dist/index-5PpauI_2.d.ts +85 -0
- package/dist/index-AMEc1MEg.d.ts +180 -0
- package/dist/index-AUC5xRcO.d.ts +236 -0
- package/dist/index-B7epkoHc.d.ts +72 -0
- package/dist/index-B9-RdY6D.d.ts +75 -0
- package/dist/index-BD-gTiEv.d.ts +71 -0
- package/dist/index-BK1tZgmP.d.ts +426 -0
- package/dist/index-BVgXnR1V.d.ts +137 -0
- package/dist/index-BW1HVU7T.d.ts +119 -0
- package/dist/index-BWe6haHU.d.ts +64 -0
- package/dist/index-BkTAB4wj.d.ts +673 -0
- package/dist/index-Bwhwpw_j.d.ts +189 -0
- package/dist/index-BzE0aNpx.d.ts +143 -0
- package/dist/index-C7RoG_CH.d.ts +57 -0
- package/dist/index-CE09bLNb.d.ts +72 -0
- package/dist/index-CJRe-8P-.d.ts +174 -0
- package/dist/index-CNL6VDYZ.d.ts +138 -0
- package/dist/index-CReGk3Dc.d.ts +91 -0
- package/dist/index-CU_lnxg7.d.ts +287 -0
- package/dist/index-CYoiniZ4.d.ts +135 -0
- package/dist/index-ClS-eFxE.d.ts +104 -0
- package/dist/index-CzIWigmH.d.ts +62 -0
- package/dist/index-CzTgKPh-.d.ts +105 -0
- package/dist/index-D2Gvly0i.d.ts +96 -0
- package/dist/index-DIV3riUd.d.ts +148 -0
- package/dist/index-DL1-uSuH.d.ts +1 -0
- package/dist/index-DYYiDxZs.d.ts +243 -0
- package/dist/index-DjSGDESy.d.ts +222 -0
- package/dist/index-Dmbgjww7.d.ts +157 -0
- package/dist/index-DwNMa4LN.d.ts +166 -0
- package/dist/index-Dx7hOWUc.d.ts +93 -0
- package/dist/index-DxOyYZaJ.d.ts +251 -0
- package/dist/index-NnHba-T1.d.ts +136 -0
- package/dist/index-RP_rt8vB.d.ts +140 -0
- package/dist/index-T1sSoiWG.d.ts +184 -0
- package/dist/index-aahL-0Zw.d.ts +60 -0
- package/dist/index-bBPKMepR.d.ts +73 -0
- package/dist/index-g-eFm1Bq.d.ts +877 -0
- package/dist/index-gYC6cQVO.d.ts +105 -0
- package/dist/index-lOWfpkxK.d.ts +118 -0
- package/dist/index-pjdgauIH.d.ts +170 -0
- package/dist/index-yK3Hayg_.d.ts +40 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +207 -0
- package/dist/input-BeWEb-jD.d.ts +122 -0
- package/dist/input-group-8gEtPiKw.d.ts +100 -0
- package/dist/layer-card-BNIn9pqy.d.ts +56 -0
- package/dist/link-provider-tz-NJp9x.d.ts +67 -0
- package/dist/locale-provider-CHMCQ0-J.d.ts +40 -0
- package/dist/panda.d.ts +25 -0
- package/dist/panda.js +32 -0
- package/dist/portal-provider-BAqPpq_a.d.ts +55 -0
- package/dist/primitives/accordion.d.ts +1 -0
- package/dist/primitives/accordion.js +3 -0
- package/dist/primitives/alert-dialog.d.ts +1 -0
- package/dist/primitives/alert-dialog.js +8 -0
- package/dist/primitives/autocomplete.d.ts +1 -0
- package/dist/primitives/autocomplete.js +6 -0
- package/dist/primitives/avatar.d.ts +1 -0
- package/dist/primitives/avatar.js +3 -0
- package/dist/primitives/button.d.ts +1 -0
- package/dist/primitives/button.js +3 -0
- package/dist/primitives/checkbox-group.d.ts +1 -0
- package/dist/primitives/checkbox-group.js +4 -0
- package/dist/primitives/checkbox.d.ts +1 -0
- package/dist/primitives/checkbox.js +4 -0
- package/dist/primitives/collapsible.d.ts +1 -0
- package/dist/primitives/collapsible.js +5 -0
- package/dist/primitives/combobox.d.ts +1 -0
- package/dist/primitives/combobox.js +6 -0
- package/dist/primitives/context-menu.d.ts +1 -0
- package/dist/primitives/context-menu.js +6 -0
- package/dist/primitives/csp-provider.d.ts +1 -0
- package/dist/primitives/csp-provider.js +3 -0
- package/dist/primitives/dialog.d.ts +1 -0
- package/dist/primitives/dialog.js +9 -0
- package/dist/primitives/direction-provider.d.ts +1 -0
- package/dist/primitives/direction-provider.js +4 -0
- package/dist/primitives/drawer.d.ts +1 -0
- package/dist/primitives/drawer.js +6 -0
- package/dist/primitives/field.d.ts +1 -0
- package/dist/primitives/field.js +4 -0
- package/dist/primitives/fieldset.d.ts +1 -0
- package/dist/primitives/fieldset.js +3 -0
- package/dist/primitives/form.d.ts +1 -0
- package/dist/primitives/form.js +3 -0
- package/dist/primitives/input.d.ts +1 -0
- package/dist/primitives/input.js +4 -0
- package/dist/primitives/menu.d.ts +1 -0
- package/dist/primitives/menu.js +6 -0
- package/dist/primitives/menubar.d.ts +1 -0
- package/dist/primitives/menubar.js +3 -0
- package/dist/primitives/meter.d.ts +1 -0
- package/dist/primitives/meter.js +3 -0
- package/dist/primitives/navigation-menu.d.ts +1 -0
- package/dist/primitives/navigation-menu.js +3 -0
- package/dist/primitives/number-field.d.ts +1 -0
- package/dist/primitives/number-field.js +3 -0
- package/dist/primitives/otp-field.d.ts +3 -0
- package/dist/primitives/otp-field.js +4 -0
- package/dist/primitives/popover.d.ts +1 -0
- package/dist/primitives/popover.js +3 -0
- package/dist/primitives/preview-card.d.ts +1 -0
- package/dist/primitives/preview-card.js +3 -0
- package/dist/primitives/progress.d.ts +1 -0
- package/dist/primitives/progress.js +3 -0
- package/dist/primitives/radio-group.d.ts +1 -0
- package/dist/primitives/radio-group.js +4 -0
- package/dist/primitives/radio.d.ts +1 -0
- package/dist/primitives/radio.js +4 -0
- package/dist/primitives/scroll-area.d.ts +1 -0
- package/dist/primitives/scroll-area.js +4 -0
- package/dist/primitives/select.d.ts +1 -0
- package/dist/primitives/select.js +5 -0
- package/dist/primitives/separator.d.ts +1 -0
- package/dist/primitives/separator.js +4 -0
- package/dist/primitives/slider.d.ts +1 -0
- package/dist/primitives/slider.js +4 -0
- package/dist/primitives/switch.d.ts +1 -0
- package/dist/primitives/switch.js +4 -0
- package/dist/primitives/tabs.d.ts +1 -0
- package/dist/primitives/tabs.js +4 -0
- package/dist/primitives/toast.d.ts +1 -0
- package/dist/primitives/toast.js +5 -0
- package/dist/primitives/toggle-group.d.ts +1 -0
- package/dist/primitives/toggle-group.js +3 -0
- package/dist/primitives/toggle.d.ts +1 -0
- package/dist/primitives/toggle.js +3 -0
- package/dist/primitives/toolbar.d.ts +1 -0
- package/dist/primitives/toolbar.js +3 -0
- package/dist/primitives/tooltip.d.ts +1 -0
- package/dist/primitives/tooltip.js +4 -0
- package/dist/primitives.d.ts +42 -0
- package/dist/primitives.js +71 -0
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +1 -0
- package/dist/scripts/theme-generator/config.d.ts +2 -0
- package/dist/scripts/theme-generator/config.js +487 -0
- package/dist/scripts/theme-generator/types.d.ts +2 -0
- package/dist/scripts/theme-generator/types.js +1 -0
- package/dist/styles/kumo-binding.css +491 -0
- package/dist/styles/kumo-standalone.css +2 -0
- package/dist/styles/kumo.css +135 -0
- package/dist/styles/theme-code.css +142 -0
- package/dist/styles/theme-fedramp.css +31 -0
- package/dist/styles/theme-fldr.css +481 -0
- package/dist/styles/theme-kumo.css +464 -0
- package/dist/text-CRRU2g-u.d.ts +183 -0
- package/dist/theming.d.ts +224 -0
- package/dist/theming.js +386 -0
- package/dist/tooltip-D_vhi1PN.d.ts +105 -0
- package/dist/types-CdzJnnIl.d.ts +193 -0
- package/dist/types-Cl4HuOrB.d.ts +84 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +7 -0
- package/package.json +481 -3
- package/scripts/component-registry/cache.ts +123 -0
- package/scripts/component-registry/discovery.ts +560 -0
- package/scripts/component-registry/example-cleanup.ts +168 -0
- package/scripts/component-registry/index.test.ts +1075 -0
- package/scripts/component-registry/index.ts +1065 -0
- package/scripts/component-registry/markdown-generator.ts +222 -0
- package/scripts/component-registry/metadata.ts +1030 -0
- package/scripts/component-registry/props-filter.ts +312 -0
- package/scripts/component-registry/schema-generator.ts +333 -0
- package/scripts/component-registry/sub-components.ts +393 -0
- package/scripts/component-registry/types.ts +158 -0
- package/scripts/component-registry/utils.ts +280 -0
- package/scripts/component-registry/variant-parser.ts +262 -0
- package/scripts/css-build.ts +107 -0
- package/scripts/format-generated.ts +12 -0
- package/scripts/generate-globe-land-mask.mjs +80 -0
- package/scripts/generate-primitives.ts +196 -0
- package/scripts/publish-fldr.ts +120 -0
- package/scripts/theme-generator/config.ts +666 -0
- package/scripts/theme-generator/generate-css.test.ts +30 -0
- package/scripts/theme-generator/generate-css.ts +352 -0
- package/scripts/theme-generator/index.ts +175 -0
- package/scripts/theme-generator/migrate.ts +560 -0
- package/scripts/theme-generator/types.ts +92 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Icon } from "@phosphor-icons/react";
|
|
3
|
+
//#region src/components/badge/badge.d.ts
|
|
4
|
+
/** Base styles applied to all badge variants. */
|
|
5
|
+
declare const KUMO_BADGE_BASE_STYLES = "inline-flex w-fit flex-none shrink-0 items-center justify-self-start gap-1 rounded-full px-2 py-0.5 text-xs/4 font-medium whitespace-nowrap [a:hover_&]:ring [a:hover_&]:ring-current";
|
|
6
|
+
/** Badge variant definitions mapping variant names to their Tailwind classes and descriptions. */
|
|
7
|
+
declare const KUMO_BADGE_VARIANTS: {
|
|
8
|
+
readonly variant: {
|
|
9
|
+
/** Semantic token badges */
|
|
10
|
+
readonly primary: {
|
|
11
|
+
readonly classes: "bg-kumo-badge-inverted text-kumo-badge-inverted";
|
|
12
|
+
readonly description: "Primary badge";
|
|
13
|
+
};
|
|
14
|
+
readonly secondary: {
|
|
15
|
+
readonly classes: "bg-kumo-badge-secondary text-kumo-badge-neutral-subtle";
|
|
16
|
+
readonly description: "Secondary badge";
|
|
17
|
+
};
|
|
18
|
+
readonly error: {
|
|
19
|
+
readonly classes: "bg-kumo-danger-tint text-kumo-danger";
|
|
20
|
+
readonly description: "Error badge";
|
|
21
|
+
};
|
|
22
|
+
readonly warning: {
|
|
23
|
+
readonly classes: "bg-kumo-warning-tint text-kumo-warning";
|
|
24
|
+
readonly description: "Warning badge";
|
|
25
|
+
};
|
|
26
|
+
readonly success: {
|
|
27
|
+
readonly classes: "bg-kumo-success-tint text-kumo-success";
|
|
28
|
+
readonly description: "Success badge";
|
|
29
|
+
};
|
|
30
|
+
readonly destructive: {
|
|
31
|
+
readonly classes: "bg-kumo-badge-red text-white";
|
|
32
|
+
readonly description: "Deprecated. Use red instead.";
|
|
33
|
+
};
|
|
34
|
+
readonly info: {
|
|
35
|
+
readonly classes: "bg-kumo-info-tint text-kumo-info";
|
|
36
|
+
readonly description: "Info badge";
|
|
37
|
+
};
|
|
38
|
+
readonly beta: {
|
|
39
|
+
readonly classes: "border border-dashed border-kumo-brand bg-transparent text-kumo-link";
|
|
40
|
+
readonly description: "Indicates beta or experimental features";
|
|
41
|
+
};
|
|
42
|
+
readonly outline: {
|
|
43
|
+
readonly classes: "border border-kumo-fill bg-kumo-base text-kumo-default";
|
|
44
|
+
readonly description: "Bordered badge with base background";
|
|
45
|
+
};
|
|
46
|
+
/** Other color token variants */
|
|
47
|
+
readonly red: {
|
|
48
|
+
readonly classes: "bg-kumo-badge-red text-white";
|
|
49
|
+
readonly description: "Red badge";
|
|
50
|
+
};
|
|
51
|
+
readonly green: {
|
|
52
|
+
readonly classes: "bg-kumo-badge-green text-white";
|
|
53
|
+
readonly description: "Green badge";
|
|
54
|
+
};
|
|
55
|
+
readonly neutral: {
|
|
56
|
+
readonly classes: "bg-kumo-badge-neutral text-white";
|
|
57
|
+
readonly description: "Neutral badge";
|
|
58
|
+
};
|
|
59
|
+
readonly orange: {
|
|
60
|
+
readonly classes: "bg-kumo-badge-orange text-black";
|
|
61
|
+
readonly description: "Orange badge";
|
|
62
|
+
};
|
|
63
|
+
readonly purple: {
|
|
64
|
+
readonly classes: "bg-kumo-badge-purple text-white";
|
|
65
|
+
readonly description: "Purple badge";
|
|
66
|
+
};
|
|
67
|
+
readonly teal: {
|
|
68
|
+
readonly classes: "bg-kumo-badge-teal text-white";
|
|
69
|
+
readonly description: "Teal badge";
|
|
70
|
+
};
|
|
71
|
+
readonly "teal-subtle": {
|
|
72
|
+
readonly classes: "bg-kumo-badge-teal-subtle text-kumo-badge-teal-subtle";
|
|
73
|
+
readonly description: "Subtle teal badge";
|
|
74
|
+
};
|
|
75
|
+
readonly blue: {
|
|
76
|
+
readonly classes: "bg-kumo-badge-blue text-white";
|
|
77
|
+
readonly description: "Blue badge";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly appearance: {
|
|
81
|
+
readonly filled: {
|
|
82
|
+
readonly classes: "";
|
|
83
|
+
readonly description: "Filled badge with background color (default)";
|
|
84
|
+
};
|
|
85
|
+
readonly dot: {
|
|
86
|
+
readonly classes: "gap-1.5 bg-transparent text-kumo-default ring ring-kumo-hairline";
|
|
87
|
+
readonly description: "Outlined badge with a colored circle dot indicating status";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly dotColor: {
|
|
91
|
+
readonly none: {
|
|
92
|
+
readonly classes: "";
|
|
93
|
+
readonly description: "No dot indicator (used when appearance is not dot, or variant has no dot color)";
|
|
94
|
+
};
|
|
95
|
+
readonly success: {
|
|
96
|
+
readonly classes: "bg-kumo-success";
|
|
97
|
+
readonly description: "Green dot for success status";
|
|
98
|
+
};
|
|
99
|
+
readonly warning: {
|
|
100
|
+
readonly classes: "bg-kumo-badge-orange";
|
|
101
|
+
readonly description: "Orange dot for warning status";
|
|
102
|
+
};
|
|
103
|
+
readonly error: {
|
|
104
|
+
readonly classes: "bg-kumo-badge-red";
|
|
105
|
+
readonly description: "Red dot for error status";
|
|
106
|
+
};
|
|
107
|
+
readonly neutral: {
|
|
108
|
+
readonly classes: "bg-kumo-badge-neutral";
|
|
109
|
+
readonly description: "Neutral dot for informational status";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
type KumoBadgeVariant = keyof typeof KUMO_BADGE_VARIANTS.variant;
|
|
114
|
+
type BadgeVariant = KumoBadgeVariant;
|
|
115
|
+
/**
|
|
116
|
+
* Badge component props.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```tsx
|
|
120
|
+
* <Badge variant="green">Active</Badge>
|
|
121
|
+
* <Badge variant="red">Error</Badge>
|
|
122
|
+
* <Badge variant="neutral">Inactive</Badge>
|
|
123
|
+
* <Badge variant="success" appearance="dot">Healthy</Badge>
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
interface BadgeBaseProps {
|
|
127
|
+
/**
|
|
128
|
+
* Color variant of the badge.
|
|
129
|
+
* Recommended semantic variants:
|
|
130
|
+
* - `"primary"` — Primary badge
|
|
131
|
+
* - `"secondary"` — Secondary badge
|
|
132
|
+
* - `"error"` — Error badge
|
|
133
|
+
* - `"warning"` — Warning badge
|
|
134
|
+
* - `"success"` — Success badge
|
|
135
|
+
* - `"info"` — Info badge
|
|
136
|
+
*
|
|
137
|
+
* Additional token variants:
|
|
138
|
+
* - `"red"`, `"orange"`, `"green"`, `"teal"`, `"blue"`, `"purple"`, `"neutral"`
|
|
139
|
+
* - `"teal-subtle"`, `"neutral-subtle"`
|
|
140
|
+
* - `"inverted"`
|
|
141
|
+
* - `"outline"` — Bordered badge with the base background
|
|
142
|
+
* - `"beta"` — Dashed-border badge for beta/experimental features
|
|
143
|
+
* @default "primary"
|
|
144
|
+
*/
|
|
145
|
+
variant?: KumoBadgeVariant;
|
|
146
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
147
|
+
className?: string;
|
|
148
|
+
/** Content rendered inside the badge. */
|
|
149
|
+
children: ReactNode;
|
|
150
|
+
}
|
|
151
|
+
interface FilledBadgeProps extends BadgeBaseProps {
|
|
152
|
+
/**
|
|
153
|
+
* Visual appearance of the badge.
|
|
154
|
+
* - `"filled"` — Filled background using the variant color (default)
|
|
155
|
+
* - `"dot"` — Outlined badge with a colored circle dot. Only `success`,
|
|
156
|
+
* `warning`, `error`, and `neutral` variants show a dot. Dot badges do not
|
|
157
|
+
* accept icons.
|
|
158
|
+
* @default "filled"
|
|
159
|
+
*/
|
|
160
|
+
appearance?: "filled";
|
|
161
|
+
/** Icon from `@phosphor-icons/react` or a React element. Rendered before children. */
|
|
162
|
+
icon?: Icon | ReactNode;
|
|
163
|
+
}
|
|
164
|
+
interface DotBadgeProps extends BadgeBaseProps {
|
|
165
|
+
/**
|
|
166
|
+
* Visual appearance of the badge.
|
|
167
|
+
* - `"filled"` — Filled background using the variant color (default)
|
|
168
|
+
* - `"dot"` — Outlined badge with a colored circle dot. Only `success`,
|
|
169
|
+
* `warning`, `error`, and `neutral` variants show a dot. Dot badges do not
|
|
170
|
+
* accept icons.
|
|
171
|
+
* @default "filled"
|
|
172
|
+
*/
|
|
173
|
+
appearance: "dot";
|
|
174
|
+
/** Dot badges use their status dot instead of an icon. */
|
|
175
|
+
icon?: never;
|
|
176
|
+
}
|
|
177
|
+
type BadgeProps = FilledBadgeProps | DotBadgeProps;
|
|
178
|
+
/**
|
|
179
|
+
* Small status label for categorizing or highlighting content.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```tsx
|
|
183
|
+
* <Badge variant="green">Active</Badge>
|
|
184
|
+
* <Badge variant="success" appearance="dot">Healthy</Badge>
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
declare function Badge({ variant, appearance, className, icon, children }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
188
|
+
//#endregion
|
|
189
|
+
export { BadgeVariant as n, KUMO_BADGE_BASE_STYLES as r, Badge as t };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
//#region src/components/flow/node.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* FlowNode component props.
|
|
5
|
+
*
|
|
6
|
+
* @example Default styling
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Flow.Node>Step 1</Flow.Node>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @example Custom render - completely replaces the default element
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Flow.Node render={<div className="custom-node">Custom content</div>} />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
type FlowNodeProps = {
|
|
17
|
+
/**
|
|
18
|
+
* Optional identifier for the node. When provided, used as the
|
|
19
|
+
* `data-node-id` attribute instead of the auto-generated React id.
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom element to render instead of the default styled node.
|
|
24
|
+
* When provided, completely replaces the default element.
|
|
25
|
+
*/
|
|
26
|
+
render?: ReactElement;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* When true, any connector linking to this node will be greyed out.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* FlowAnchor component props.
|
|
35
|
+
*
|
|
36
|
+
* @example Default (unstyled div)
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <Flow.Anchor type="start">Anchor content</Flow.Anchor>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example Custom render - completely replaces the default element
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Flow.Anchor type="end" render={<span className="custom-anchor">Custom anchor</span>} />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
type FlowAnchorProps = {
|
|
47
|
+
/**
|
|
48
|
+
* Determines if the anchor should serve as a "start" point for the
|
|
49
|
+
* _next_ connector or the "end" point for the _previous_ connector.
|
|
50
|
+
* When omitted, it serves as both the start and end points.
|
|
51
|
+
*/
|
|
52
|
+
type?: "start" | "end";
|
|
53
|
+
/**
|
|
54
|
+
* Custom element to render instead of the default div.
|
|
55
|
+
* When provided, completely replaces the default element.
|
|
56
|
+
*/
|
|
57
|
+
render?: ReactElement;
|
|
58
|
+
children?: ReactNode;
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/flow/flow-layout.d.ts
|
|
62
|
+
type FlowAlign = "start" | "center";
|
|
63
|
+
type FlowOrientation = "horizontal" | "vertical";
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/flow/diagram.d.ts
|
|
66
|
+
type Orientation = FlowOrientation;
|
|
67
|
+
interface FlowDiagramProps {
|
|
68
|
+
/**
|
|
69
|
+
* Flow direction.
|
|
70
|
+
* - `"horizontal"`: Nodes progress left-to-right (default)
|
|
71
|
+
* - `"vertical"`: Nodes progress top-to-bottom
|
|
72
|
+
*/
|
|
73
|
+
orientation?: Orientation;
|
|
74
|
+
/**
|
|
75
|
+
* Whether to render the pannable canvas wrapper.
|
|
76
|
+
* - `true`: Renders with pannable canvas, scrollbars, and pan gestures (default)
|
|
77
|
+
* - `false`: Renders only the node list without canvas wrapper
|
|
78
|
+
*/
|
|
79
|
+
canvas?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Cross-axis alignment of nodes.
|
|
82
|
+
* - `"start"`: Nodes align to the top/left edge (default)
|
|
83
|
+
* - `"center"`: Nodes are centered across the inactive axis
|
|
84
|
+
*/
|
|
85
|
+
align?: FlowAlign;
|
|
86
|
+
/**
|
|
87
|
+
* Padding around the diagram content within the canvas.
|
|
88
|
+
* - `x`: Horizontal padding in pixels (default: 16)
|
|
89
|
+
* - `y`: Vertical padding in pixels (default: 64)
|
|
90
|
+
*/
|
|
91
|
+
padding?: {
|
|
92
|
+
x?: number;
|
|
93
|
+
y?: number;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Callback fired when the overflow state changes.
|
|
97
|
+
* Called with `{ x: boolean, y: boolean }` indicating overflow in each axis.
|
|
98
|
+
*/
|
|
99
|
+
onOverflowChange?: (overflow: {
|
|
100
|
+
x: boolean;
|
|
101
|
+
y: boolean;
|
|
102
|
+
}) => void;
|
|
103
|
+
className?: string;
|
|
104
|
+
children?: ReactNode;
|
|
105
|
+
}
|
|
106
|
+
declare function FlowDiagram({ orientation, canvas, align, padding: requestedPadding, onOverflowChange, className, children }: FlowDiagramProps): import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
declare function FlowNodeList({ children }: {
|
|
108
|
+
children: ReactNode;
|
|
109
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/flow/parallel.d.ts
|
|
112
|
+
type FlowParallelNodeProps = {
|
|
113
|
+
children: ReactNode;
|
|
114
|
+
/** When "end", each branch is right-aligned to the widest branch. */
|
|
115
|
+
align?: "end";
|
|
116
|
+
};
|
|
117
|
+
declare function FlowParallelNode({ children, align }: FlowParallelNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/flow/index.d.ts
|
|
120
|
+
/**
|
|
121
|
+
* Flow - Components for visualizing workflows and data flows.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```tsx
|
|
125
|
+
* <Flow>
|
|
126
|
+
* <Flow.Node>Step 1</Flow.Node>
|
|
127
|
+
* <Flow.Node>Step 2</Flow.Node>
|
|
128
|
+
* <Flow.Parallel>
|
|
129
|
+
* <Flow.Node>Branch A</Flow.Node>
|
|
130
|
+
* <Flow.Node>Branch B</Flow.Node>
|
|
131
|
+
* </Flow.Parallel>
|
|
132
|
+
* <Flow.Node>Step 3</Flow.Node>
|
|
133
|
+
* </Flow>
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
declare const Flow: typeof FlowDiagram & {
|
|
137
|
+
Node: import("react").ForwardRefExoticComponent<FlowNodeProps & import("react").RefAttributes<HTMLElement>>;
|
|
138
|
+
Parallel: typeof FlowParallelNode;
|
|
139
|
+
List: typeof FlowNodeList;
|
|
140
|
+
Anchor: import("react").ForwardRefExoticComponent<FlowAnchorProps & import("react").RefAttributes<HTMLElement>>;
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
export { Flow as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
//#region src/components/button-group/button-group.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* ButtonGroup has no visual variants — it's a horizontal layout wrapper. The
|
|
5
|
+
* required exports are kept for the Kumo variant standard.
|
|
6
|
+
*/
|
|
7
|
+
declare const KUMO_BUTTON_GROUP_VARIANTS: {};
|
|
8
|
+
declare const KUMO_BUTTON_GROUP_DEFAULT_VARIANTS: {};
|
|
9
|
+
/** Base classes shared by every ButtonGroup. */
|
|
10
|
+
declare const KUMO_BUTTON_GROUP_STYLING: {
|
|
11
|
+
readonly baseClasses: string;
|
|
12
|
+
};
|
|
13
|
+
interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "role"> {
|
|
14
|
+
/** Additional CSS classes merged via `cn()`. Use kumo semantic tokens only. */
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The tightly-coupled controls to join. Typically two `Button`s: a primary
|
|
18
|
+
* action and a dropdown trigger (a "split button").
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Joins a small set of tightly-coupled buttons into a single control — most
|
|
24
|
+
* commonly a **split button**: a primary action next to a dropdown trigger for
|
|
25
|
+
* related, secondary actions.
|
|
26
|
+
*
|
|
27
|
+
* Children keep their own variant, size, and shape — ButtonGroup only handles
|
|
28
|
+
* the layout: it flattens the inner corners and overlaps borders so the buttons
|
|
29
|
+
* share one seam. Renders `role="group"` so assistive technology treats the
|
|
30
|
+
* buttons as a related set (pair it with an `aria-label`).
|
|
31
|
+
*
|
|
32
|
+
* For grouping multiple *independent* buttons or inputs (e.g. a formatting bar
|
|
33
|
+
* or a page-level set of actions), use `Toolbar` instead — it provides the
|
|
34
|
+
* correct roaming-focus keyboard semantics for a toolbar.
|
|
35
|
+
*
|
|
36
|
+
* @example Split button
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <ButtonGroup aria-label="Deploy">
|
|
39
|
+
* <Button variant="primary">Deploy</Button>
|
|
40
|
+
* <DropdownMenu>
|
|
41
|
+
* <DropdownMenu.Trigger
|
|
42
|
+
* render={
|
|
43
|
+
* <Button variant="primary" shape="square" aria-label="More deploy options">
|
|
44
|
+
* <CaretDownIcon />
|
|
45
|
+
* </Button>
|
|
46
|
+
* }
|
|
47
|
+
* />
|
|
48
|
+
* <DropdownMenu.Content>
|
|
49
|
+
* <DropdownMenu.Item>Deploy to staging</DropdownMenu.Item>
|
|
50
|
+
* </DropdownMenu.Content>
|
|
51
|
+
* </DropdownMenu>
|
|
52
|
+
* </ButtonGroup>
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { KUMO_BUTTON_GROUP_VARIANTS as a, KUMO_BUTTON_GROUP_STYLING as i, ButtonGroupProps as n, KUMO_BUTTON_GROUP_DEFAULT_VARIANTS as r, ButtonGroup as t };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/components/label/label.d.ts
|
|
3
|
+
/** Label variant definitions (currently empty, reserved for future additions). */
|
|
4
|
+
declare const KUMO_LABEL_VARIANTS: {};
|
|
5
|
+
declare const KUMO_LABEL_DEFAULT_VARIANTS: {};
|
|
6
|
+
interface KumoLabelVariantsProps {}
|
|
7
|
+
declare function labelVariants(_props?: KumoLabelVariantsProps): string;
|
|
8
|
+
declare function labelContentVariants(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Label component props.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Label>Email</Label>
|
|
15
|
+
* <Label showOptional>Middle Name</Label>
|
|
16
|
+
* <Label tooltip="We'll use this to send you updates">Email</Label>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
interface LabelProps extends KumoLabelVariantsProps {
|
|
20
|
+
/** The label content — can be a string or any React node. */
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
/** When `true`, shows gray "(optional)" text after the label. */
|
|
23
|
+
showOptional?: boolean;
|
|
24
|
+
/** Content shown when `showOptional` is `true`. @default "(optional)" */
|
|
25
|
+
optionalLabel?: ReactNode;
|
|
26
|
+
/** Tooltip content displayed next to the label via an info icon. */
|
|
27
|
+
tooltip?: ReactNode;
|
|
28
|
+
/** Accessible label for the tooltip button. @default "More information" */
|
|
29
|
+
tooltipAriaLabel?: string;
|
|
30
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
31
|
+
className?: string;
|
|
32
|
+
/** The id of the form element this label is associated with */
|
|
33
|
+
htmlFor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When true, only renders the inline content (indicators, tooltip) without
|
|
36
|
+
* the outer label element with font styling. Useful when composed inside another
|
|
37
|
+
* label element that already provides the text styling.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
asContent?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Label component for form fields.
|
|
44
|
+
*
|
|
45
|
+
* Provides a standardized way to display labels with optional indicators:
|
|
46
|
+
* - Optional indicator: gray "(optional)" text when `showOptional={true}`
|
|
47
|
+
* - Tooltip: info icon with hover tooltip for additional context
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Basic label
|
|
51
|
+
* <Label>Email</Label>
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* // Optional field with indicator
|
|
55
|
+
* <Label showOptional>Middle Name</Label>
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* // With tooltip
|
|
59
|
+
* <Label tooltip="We'll use this to send you updates">Email</Label>
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* // With ReactNode children
|
|
63
|
+
* <Label>
|
|
64
|
+
* <span>Custom label with <strong>bold</strong> text</span>
|
|
65
|
+
* </Label>
|
|
66
|
+
*/
|
|
67
|
+
declare function Label({ children, showOptional, optionalLabel, tooltip, tooltipAriaLabel, className, htmlFor, asContent }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
declare namespace Label {
|
|
69
|
+
var displayName: string;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { labelContentVariants as a, LabelProps as i, KUMO_LABEL_VARIANTS as n, labelVariants as o, Label as r, KUMO_LABEL_DEFAULT_VARIANTS as t };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { n as PortalContainer } from "./portal-provider-BAqPpq_a.js";
|
|
2
|
+
import { CSSProperties, ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
4
|
+
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
5
|
+
//#region src/components/dialog/dialog.d.ts
|
|
6
|
+
/** Dialog size variant definitions mapping sizes to their minimum widths. */
|
|
7
|
+
declare const KUMO_DIALOG_VARIANTS: {
|
|
8
|
+
readonly size: {
|
|
9
|
+
readonly base: {
|
|
10
|
+
readonly classes: "sm:w-96";
|
|
11
|
+
readonly description: "Default dialog width (384px)";
|
|
12
|
+
};
|
|
13
|
+
readonly sm: {
|
|
14
|
+
readonly classes: "sm:w-72";
|
|
15
|
+
readonly description: "Small dialog for simple confirmations (288px)";
|
|
16
|
+
};
|
|
17
|
+
readonly lg: {
|
|
18
|
+
readonly classes: "sm:w-[32rem]";
|
|
19
|
+
readonly description: "Large dialog for complex content (512px)";
|
|
20
|
+
};
|
|
21
|
+
readonly xl: {
|
|
22
|
+
readonly classes: "sm:w-[48rem]";
|
|
23
|
+
readonly description: "Extra large dialog for detailed views (768px)";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly role: {
|
|
27
|
+
readonly dialog: {
|
|
28
|
+
readonly classes: "";
|
|
29
|
+
readonly description: "Standard dialog for general-purpose modals";
|
|
30
|
+
};
|
|
31
|
+
readonly alertdialog: {
|
|
32
|
+
readonly classes: "";
|
|
33
|
+
readonly description: "Alert dialog for confirmation flows requiring explicit user acknowledgment";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type KumoDialogSize = keyof typeof KUMO_DIALOG_VARIANTS.size;
|
|
38
|
+
interface KumoDialogVariantsProps {
|
|
39
|
+
/**
|
|
40
|
+
* Dialog width.
|
|
41
|
+
* - `"sm"` — Small (288px) for simple confirmations
|
|
42
|
+
* - `"base"` — Default (384px)
|
|
43
|
+
* - `"lg"` — Large (512px) for complex content
|
|
44
|
+
* - `"xl"` — Extra large (768px) for detailed views
|
|
45
|
+
* @default "base"
|
|
46
|
+
*/
|
|
47
|
+
size?: KumoDialogSize;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Dialog component props — the modal content panel.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* <Dialog.Root>
|
|
55
|
+
* <Dialog.Trigger render={(p) => <Button {...p}>Open</Button>} />
|
|
56
|
+
* <Dialog className="p-8">
|
|
57
|
+
* <Dialog.Title>Confirm Action</Dialog.Title>
|
|
58
|
+
* <Dialog.Description>Are you sure?</Dialog.Description>
|
|
59
|
+
* <Dialog.Close render={(p) => <Button {...p}>Cancel</Button>} />
|
|
60
|
+
* </Dialog>
|
|
61
|
+
* </Dialog.Root>
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
type DialogProps = KumoDialogVariantsProps & {
|
|
65
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
66
|
+
className?: string;
|
|
67
|
+
/** Dialog content (typically Title, Description, Close, and action buttons). */
|
|
68
|
+
children: ReactNode;
|
|
69
|
+
/** Inline styles. */
|
|
70
|
+
style?: CSSProperties;
|
|
71
|
+
/**
|
|
72
|
+
* Container element for the portal. Use this to render the dialog inside
|
|
73
|
+
* a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
74
|
+
* @default document.body (or KumoPortalProvider container if set)
|
|
75
|
+
*/
|
|
76
|
+
container?: PortalContainer;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Modal dialog overlay with backdrop. Compound component with `Dialog.Root`,
|
|
80
|
+
* `Dialog.Trigger`, `Dialog.Title`, `Dialog.Description`, and `Dialog.Close`.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* <Dialog.Root>
|
|
85
|
+
* <Dialog.Trigger render={(p) => <Button {...p}>Delete</Button>} />
|
|
86
|
+
* <Dialog className="p-8">
|
|
87
|
+
* <Dialog.Title>Delete Item</Dialog.Title>
|
|
88
|
+
* <Dialog.Description>This action cannot be undone.</Dialog.Description>
|
|
89
|
+
* <Dialog.Close render={(p) => <Button variant="destructive" {...p}>Delete</Button>} />
|
|
90
|
+
* </Dialog>
|
|
91
|
+
* </Dialog.Root>
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @example Alert Dialog for destructive actions
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <Dialog.Root role="alertdialog">
|
|
97
|
+
* <Dialog.Trigger render={(p) => <Button variant="destructive" {...p}>Delete Project</Button>} />
|
|
98
|
+
* <Dialog className="p-8">
|
|
99
|
+
* <Dialog.Title>Delete Project?</Dialog.Title>
|
|
100
|
+
* <Dialog.Description>This action cannot be undone.</Dialog.Description>
|
|
101
|
+
* <Dialog.Close render={(p) => <Button variant="secondary" {...p}>Cancel</Button>} />
|
|
102
|
+
* <Dialog.Close render={(p) => <Button variant="destructive" {...p}>Delete</Button>} />
|
|
103
|
+
* </Dialog>
|
|
104
|
+
* </Dialog.Root>
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
declare function DialogContent({ className, children, style, size, container: containerProp }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
type BaseDialogRootProps = ComponentPropsWithoutRef<typeof Dialog.Root>;
|
|
109
|
+
type BaseAlertDialogRootProps = ComponentPropsWithoutRef<typeof AlertDialog.Root>;
|
|
110
|
+
type StandardDialogRootProps = BaseDialogRootProps & {
|
|
111
|
+
/**
|
|
112
|
+
* The ARIA role for the dialog.
|
|
113
|
+
* - `"dialog"` — Standard dialog for general-purpose modals. Dismissible via outside click by default.
|
|
114
|
+
* - `"alertdialog"` — Alert dialog for destructive or confirmation flows. Not dismissible via outside click.
|
|
115
|
+
*
|
|
116
|
+
* Use `role="alertdialog"` for:
|
|
117
|
+
* - Destructive actions (delete, discard, remove)
|
|
118
|
+
* - Confirmation dialogs requiring explicit user acknowledgment
|
|
119
|
+
* - Actions that cannot be undone
|
|
120
|
+
*
|
|
121
|
+
* @default "dialog"
|
|
122
|
+
*/
|
|
123
|
+
role?: "dialog";
|
|
124
|
+
};
|
|
125
|
+
type AlertDialogRootProps = BaseAlertDialogRootProps & {
|
|
126
|
+
/**
|
|
127
|
+
* Renders an alert dialog for destructive or confirmation flows. Outside
|
|
128
|
+
* clicks never dismiss it.
|
|
129
|
+
*
|
|
130
|
+
* Do not include a header close button (`Dialog.Close` with an X icon) in an
|
|
131
|
+
* alert dialog. Users must respond through explicit action buttons in the
|
|
132
|
+
* footer (for example, Cancel and Delete).
|
|
133
|
+
*/
|
|
134
|
+
role: "alertdialog";
|
|
135
|
+
};
|
|
136
|
+
type DialogRootProps = StandardDialogRootProps | AlertDialogRootProps;
|
|
137
|
+
declare function DialogRoot(props: DialogRootProps): import("react/jsx-runtime").JSX.Element;
|
|
138
|
+
declare namespace DialogRoot {
|
|
139
|
+
var displayName: string;
|
|
140
|
+
}
|
|
141
|
+
type BaseDialogTriggerProps = ComponentPropsWithoutRef<typeof Dialog.Trigger>;
|
|
142
|
+
type BaseAlertDialogTriggerProps = ComponentPropsWithoutRef<typeof AlertDialog.Trigger>;
|
|
143
|
+
type DialogTriggerProps = BaseDialogTriggerProps | BaseAlertDialogTriggerProps;
|
|
144
|
+
declare function DialogTrigger({ children, ...props }: DialogTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
145
|
+
declare namespace DialogTrigger {
|
|
146
|
+
var displayName: string;
|
|
147
|
+
}
|
|
148
|
+
type BaseDialogTitleProps = ComponentPropsWithoutRef<typeof Dialog.Title>;
|
|
149
|
+
type DialogTitleProps = BaseDialogTitleProps;
|
|
150
|
+
declare function DialogTitle({ className, ...props }: DialogTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
151
|
+
declare namespace DialogTitle {
|
|
152
|
+
var displayName: string;
|
|
153
|
+
}
|
|
154
|
+
type BaseDialogDescriptionProps = ComponentPropsWithoutRef<typeof Dialog.Description>;
|
|
155
|
+
type DialogDescriptionProps = BaseDialogDescriptionProps;
|
|
156
|
+
declare function DialogDescription({ className, ...props }: DialogDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
157
|
+
declare namespace DialogDescription {
|
|
158
|
+
var displayName: string;
|
|
159
|
+
}
|
|
160
|
+
type BaseDialogCloseProps = ComponentPropsWithoutRef<typeof Dialog.Close>;
|
|
161
|
+
type DialogCloseProps = BaseDialogCloseProps;
|
|
162
|
+
declare function DialogClose({ children, ...props }: DialogCloseProps): import("react/jsx-runtime").JSX.Element;
|
|
163
|
+
declare namespace DialogClose {
|
|
164
|
+
var displayName: string;
|
|
165
|
+
}
|
|
166
|
+
declare const Dialog$1: typeof DialogContent & {
|
|
167
|
+
Root: typeof DialogRoot;
|
|
168
|
+
Trigger: typeof DialogTrigger;
|
|
169
|
+
Title: typeof DialogTitle;
|
|
170
|
+
Description: typeof DialogDescription;
|
|
171
|
+
Close: typeof DialogClose;
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
export { DialogDescriptionProps as a, DialogRootProps as c, DialogTrigger as d, DialogTriggerProps as f, DialogDescription as i, DialogTitle as l, DialogClose as n, DialogProps as o, DialogCloseProps as r, DialogRoot as s, Dialog$1 as t, DialogTitleProps as u };
|