@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,105 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TabsTab } from "@base-ui/react/tabs";
|
|
3
|
+
//#region src/components/tabs/tabs.d.ts
|
|
4
|
+
/** Tabs variant definitions. */
|
|
5
|
+
declare const KUMO_TABS_VARIANTS: {
|
|
6
|
+
readonly variant: readonly ["segmented", "underline"];
|
|
7
|
+
readonly size: readonly ["base", "sm"];
|
|
8
|
+
};
|
|
9
|
+
/** Labels for internationalization of Tabs component. */
|
|
10
|
+
interface TabsLabels {
|
|
11
|
+
/** Aria label for the button that scrolls to earlier tabs. @default "Scroll tabs left" ("Scroll tabs right" in RTL) */
|
|
12
|
+
scrollStart?: string;
|
|
13
|
+
/** Aria label for the button that scrolls to later tabs. @default "Scroll tabs right" ("Scroll tabs left" in RTL) */
|
|
14
|
+
scrollEnd?: string;
|
|
15
|
+
}
|
|
16
|
+
interface KumoTabsVariantsProps {
|
|
17
|
+
/**
|
|
18
|
+
* Tab style.
|
|
19
|
+
* - `"segmented"` — Pill-shaped indicator on a filled track
|
|
20
|
+
* - `"underline"` — Underline indicator below tab text
|
|
21
|
+
* @default "segmented"
|
|
22
|
+
*/
|
|
23
|
+
variant?: (typeof KUMO_TABS_VARIANTS.variant)[number];
|
|
24
|
+
/**
|
|
25
|
+
* Tab size.
|
|
26
|
+
* - `"base"` — Default size (h-9, text-base)
|
|
27
|
+
* - `"sm"` — Compact size (h-6.5, text-xs) — matches Input size="sm"
|
|
28
|
+
* @default "base"
|
|
29
|
+
*/
|
|
30
|
+
size?: (typeof KUMO_TABS_VARIANTS.size)[number];
|
|
31
|
+
}
|
|
32
|
+
/** Configuration for a single tab within the Tabs component. */
|
|
33
|
+
type TabsItem = {
|
|
34
|
+
/** Unique identifier for the tab, used as the controlled value. */
|
|
35
|
+
value: string;
|
|
36
|
+
/** Display content for the tab trigger. */
|
|
37
|
+
label: ReactNode;
|
|
38
|
+
/** Additional CSS classes for this tab trigger. */
|
|
39
|
+
className?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Custom render function or element to replace the tab element (e.g. for link-based tabs).
|
|
42
|
+
* When using a function, it receives the props to spread on the element and the tab's state.
|
|
43
|
+
*/
|
|
44
|
+
render?: TabsTab.Props["render"];
|
|
45
|
+
/**
|
|
46
|
+
* Whether the rendered tab is a native button. Set to `false` when `render` produces a non-button element, such as a link.
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
nativeButton?: TabsTab.Props["nativeButton"];
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Tabs component props.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <Tabs
|
|
57
|
+
* tabs={[
|
|
58
|
+
* { value: "overview", label: "Overview" },
|
|
59
|
+
* { value: "settings", label: "Settings" },
|
|
60
|
+
* ]}
|
|
61
|
+
* value={activeTab}
|
|
62
|
+
* onValueChange={setActiveTab}
|
|
63
|
+
* />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
type TabsProps = KumoTabsVariantsProps & {
|
|
67
|
+
/** Array of tab items to render. */
|
|
68
|
+
tabs?: TabsItem[];
|
|
69
|
+
/** Controlled value. When set, component becomes controlled. */
|
|
70
|
+
value?: string;
|
|
71
|
+
/** Default selected value for uncontrolled mode. Ignored when `value` is set. */
|
|
72
|
+
selectedValue?: string;
|
|
73
|
+
/** Callback fired when the active tab changes. */
|
|
74
|
+
onValueChange?: (value: string) => void;
|
|
75
|
+
/**
|
|
76
|
+
* When `true`, tabs are activated immediately upon receiving focus via arrow keys.
|
|
77
|
+
* When `false` (default), tabs receive focus but require Enter/Space to activate.
|
|
78
|
+
*/
|
|
79
|
+
activateOnFocus?: boolean;
|
|
80
|
+
/** Additional CSS classes for the root element. */
|
|
81
|
+
className?: string;
|
|
82
|
+
/** Additional CSS classes for the tab list element. */
|
|
83
|
+
listClassName?: string;
|
|
84
|
+
/** Additional CSS classes for the indicator element. */
|
|
85
|
+
indicatorClassName?: string;
|
|
86
|
+
/** Labels for internationalization of aria-labels. All labels have English defaults. */
|
|
87
|
+
labels?: TabsLabels;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Tab navigation component with segmented or underline style.
|
|
91
|
+
* Built on Base UI Tabs with animated active indicator.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```tsx
|
|
95
|
+
* <Tabs
|
|
96
|
+
* variant="segmented"
|
|
97
|
+
* tabs={[{ value: "tab1", label: "Tab 1" }, { value: "tab2", label: "Tab 2" }]}
|
|
98
|
+
* value={active}
|
|
99
|
+
* onValueChange={setActive}
|
|
100
|
+
* />
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
declare function Tabs({ tabs, value, selectedValue, onValueChange, activateOnFocus, className, listClassName, indicatorClassName, labels: labelsProp, variant, size }: TabsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
104
|
+
//#endregion
|
|
105
|
+
export { TabsItem as n, TabsProps as r, Tabs as t };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
//#region src/components/date-range-picker/date-range-picker.d.ts
|
|
2
|
+
/** DateRangePicker size and variant definitions mapping names to their Tailwind classes. */
|
|
3
|
+
declare const KUMO_DATE_RANGE_PICKER_VARIANTS: {
|
|
4
|
+
readonly size: {
|
|
5
|
+
readonly sm: {
|
|
6
|
+
readonly classes: "p-3 gap-2";
|
|
7
|
+
readonly cellHeight: "h-[22px]";
|
|
8
|
+
readonly cellWidth: "w-6";
|
|
9
|
+
readonly calendarWidth: "w-[168px]";
|
|
10
|
+
readonly textSize: "text-xs";
|
|
11
|
+
readonly iconSize: 14;
|
|
12
|
+
readonly description: "Compact calendar for tight spaces";
|
|
13
|
+
};
|
|
14
|
+
readonly base: {
|
|
15
|
+
readonly classes: "p-4 gap-2.5";
|
|
16
|
+
readonly cellHeight: "h-[26px]";
|
|
17
|
+
readonly cellWidth: "w-7";
|
|
18
|
+
readonly calendarWidth: "w-[196px]";
|
|
19
|
+
readonly textSize: "text-sm";
|
|
20
|
+
readonly iconSize: 16;
|
|
21
|
+
readonly description: "Default calendar size";
|
|
22
|
+
};
|
|
23
|
+
readonly lg: {
|
|
24
|
+
readonly classes: "p-5 gap-3";
|
|
25
|
+
readonly cellHeight: "h-[32px]";
|
|
26
|
+
readonly cellWidth: "w-9";
|
|
27
|
+
readonly calendarWidth: "w-[252px]";
|
|
28
|
+
readonly textSize: "text-base";
|
|
29
|
+
readonly iconSize: 18;
|
|
30
|
+
readonly description: "Large calendar for prominent date selection";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly variant: {
|
|
34
|
+
readonly default: {
|
|
35
|
+
readonly classes: "bg-kumo-overlay";
|
|
36
|
+
readonly description: "Default calendar appearance";
|
|
37
|
+
};
|
|
38
|
+
readonly subtle: {
|
|
39
|
+
readonly classes: "bg-kumo-base";
|
|
40
|
+
readonly description: "Subtle calendar with minimal background";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type KumoDateRangePickerSize = keyof typeof KUMO_DATE_RANGE_PICKER_VARIANTS.size;
|
|
45
|
+
type KumoDateRangePickerVariant = keyof typeof KUMO_DATE_RANGE_PICKER_VARIANTS.variant;
|
|
46
|
+
interface KumoDateRangePickerVariantsProps {
|
|
47
|
+
/**
|
|
48
|
+
* Calendar size.
|
|
49
|
+
* - `"sm"` — Compact calendar for tight spaces
|
|
50
|
+
* - `"base"` — Default calendar size
|
|
51
|
+
* - `"lg"` — Large calendar for prominent date selection
|
|
52
|
+
* @default "base"
|
|
53
|
+
*/
|
|
54
|
+
size?: KumoDateRangePickerSize;
|
|
55
|
+
/**
|
|
56
|
+
* Visual variant.
|
|
57
|
+
* - `"default"` — Standard appearance with overlay background
|
|
58
|
+
* - `"subtle"` — Minimal background
|
|
59
|
+
* @default "default"
|
|
60
|
+
*/
|
|
61
|
+
variant?: KumoDateRangePickerVariant;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* DateRangePicker component props.
|
|
65
|
+
*
|
|
66
|
+
* Dual-calendar date range selector with hover preview, timezone display, and reset support.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```tsx
|
|
70
|
+
* <DateRangePicker
|
|
71
|
+
* onStartDateChange={(d) => setStart(d)}
|
|
72
|
+
* onEndDateChange={(d) => setEnd(d)}
|
|
73
|
+
* timezone="New York, NY, USA (GMT-4)"
|
|
74
|
+
* />
|
|
75
|
+
*
|
|
76
|
+
* // Compact variant
|
|
77
|
+
* <DateRangePicker
|
|
78
|
+
* size="sm"
|
|
79
|
+
* variant="subtle"
|
|
80
|
+
* onStartDateChange={setStart}
|
|
81
|
+
* onEndDateChange={setEnd}
|
|
82
|
+
* />
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @deprecated Use {@link DatePicker} with `mode="range"` instead.
|
|
86
|
+
*/
|
|
87
|
+
interface DateRangePickerProps extends KumoDateRangePickerVariantsProps {
|
|
88
|
+
/** Callback fired when start date changes. Receives `null` on reset. */
|
|
89
|
+
onStartDateChange: (date: Date | null) => void;
|
|
90
|
+
/** Callback fired when end date changes. Receives `null` on reset. */
|
|
91
|
+
onEndDateChange: (date: Date | null) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Display timezone string shown in the footer.
|
|
94
|
+
* @default "New York, NY, USA (GMT-4)"
|
|
95
|
+
*/
|
|
96
|
+
timezone?: string;
|
|
97
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
98
|
+
className?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* DateRangePicker — dual-calendar date range selector.
|
|
102
|
+
*
|
|
103
|
+
* Renders two side-by-side month calendars with click-to-select start/end dates,
|
|
104
|
+
* hover preview of the range, a timezone footer, and a reset button.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```tsx
|
|
108
|
+
* <DateRangePicker
|
|
109
|
+
* onStartDateChange={setStart}
|
|
110
|
+
* onEndDateChange={setEnd}
|
|
111
|
+
* />
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* @deprecated Use {@link DatePicker} with `mode="range"` instead.
|
|
115
|
+
*/
|
|
116
|
+
declare function DateRangePicker({ onStartDateChange, onEndDateChange, size, variant, timezone, className }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { DateRangePicker as t };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { n as ButtonProps } from "./button-DzavLWXm.js";
|
|
2
|
+
import "./index-DL1-uSuH.js";
|
|
3
|
+
import { n as PortalContainer } from "./portal-provider-BAqPpq_a.js";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Toast, ToastManagerAddOptions, ToastManagerUpdateOptions, ToastObject } from "@base-ui/react/toast";
|
|
6
|
+
//#region src/components/toast/toast.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Toast styling configuration for Figma plugin consumption.
|
|
9
|
+
* Toast has no user-facing variants but documents the styling structure.
|
|
10
|
+
*/
|
|
11
|
+
declare const KUMO_TOAST_VARIANTS: {
|
|
12
|
+
readonly root: {
|
|
13
|
+
readonly classes: "rounded-lg border border-kumo-fill bg-kumo-control p-4 shadow-lg text-kumo-default";
|
|
14
|
+
readonly description: "Toast container with background, border, and shadow";
|
|
15
|
+
};
|
|
16
|
+
readonly title: {
|
|
17
|
+
readonly classes: "text-[0.975rem] leading-5 font-medium text-kumo-default";
|
|
18
|
+
readonly description: "Toast title with primary text color";
|
|
19
|
+
};
|
|
20
|
+
readonly description: {
|
|
21
|
+
readonly classes: "text-[0.925rem] leading-5 text-kumo-subtle";
|
|
22
|
+
readonly description: "Toast description with muted text color";
|
|
23
|
+
};
|
|
24
|
+
readonly close: {
|
|
25
|
+
readonly classes: "absolute top-2 end-2 size-5 rounded text-kumo-subtle hover:bg-current/15";
|
|
26
|
+
readonly description: "Button-based close control with variant-aware hover tint";
|
|
27
|
+
};
|
|
28
|
+
readonly variant: {
|
|
29
|
+
readonly default: {
|
|
30
|
+
readonly classes: "border-kumo-fill bg-kumo-base";
|
|
31
|
+
readonly description: "Default toast style";
|
|
32
|
+
};
|
|
33
|
+
readonly success: {
|
|
34
|
+
readonly classes: "ring-[0.3px] ring-kumo-success bg-kumo-base [&_[data-toast-icon]]:text-kumo-success [&_[data-toast-title]]:text-kumo-success";
|
|
35
|
+
readonly description: "Success toast for confirmations and positive outcomes";
|
|
36
|
+
readonly icon: import("@phosphor-icons/react").Icon;
|
|
37
|
+
};
|
|
38
|
+
readonly error: {
|
|
39
|
+
readonly classes: "ring-[0.3px] ring-kumo-danger bg-kumo-base [&_[data-toast-icon]]:text-kumo-danger [&_[data-toast-title]]:text-kumo-danger";
|
|
40
|
+
readonly description: "Error toast for critical issues";
|
|
41
|
+
readonly icon: import("@phosphor-icons/react").Icon;
|
|
42
|
+
};
|
|
43
|
+
readonly warning: {
|
|
44
|
+
readonly classes: "ring-[0.3px] ring-kumo-warning bg-kumo-base [&_[data-toast-icon]]:text-kumo-warning [&_[data-toast-title]]:text-kumo-warning";
|
|
45
|
+
readonly description: "Warning toast for cautionary messages";
|
|
46
|
+
readonly icon: import("@phosphor-icons/react").Icon;
|
|
47
|
+
};
|
|
48
|
+
readonly info: {
|
|
49
|
+
readonly classes: "ring-[0.3px] ring-kumo-info bg-kumo-control [&_[data-toast-icon]]:text-kumo-info [&_[data-toast-title]]:text-kumo-info";
|
|
50
|
+
readonly description: "Info toast for neutral informational messages";
|
|
51
|
+
readonly icon: import("@phosphor-icons/react").Icon;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type KumoToastVariant = keyof typeof KUMO_TOAST_VARIANTS.variant;
|
|
56
|
+
interface KumoToastVariantsProps {
|
|
57
|
+
variant?: KumoToastVariant;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Toasty component props.
|
|
61
|
+
*
|
|
62
|
+
* Wrap your app with `<Toasty>` to enable toast notifications.
|
|
63
|
+
* Use `Toast.useToastManager().notify(…)` to create toasts.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```tsx
|
|
67
|
+
* // 1. Wrap your app
|
|
68
|
+
* <Toasty>
|
|
69
|
+
* <App />
|
|
70
|
+
* </Toasty>
|
|
71
|
+
*
|
|
72
|
+
* // 2. Show a toast from any child component
|
|
73
|
+
* const toasts = Toast.useToastManager();
|
|
74
|
+
* toasts.notify({ title: "Saved", description: "Changes saved successfully." });
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @example Dispatching toasts from non-React-component code
|
|
78
|
+
* ```tsx
|
|
79
|
+
* // 1. Create a manager at module scope
|
|
80
|
+
* import { createKumoToastManager } from "@fldr/ui";
|
|
81
|
+
* export const appToastManager = createKumoToastManager();
|
|
82
|
+
*
|
|
83
|
+
* // 2. Pass it to <Toasty>
|
|
84
|
+
* <Toasty toastManager={appToastManager}>
|
|
85
|
+
* <App />
|
|
86
|
+
* </Toasty>
|
|
87
|
+
*
|
|
88
|
+
* // 3. Dispatch from anywhere — timers, callbacks, query-cache listeners
|
|
89
|
+
* appToastManager.add({ title: "Saved" });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
interface ToastyProps extends KumoToastVariantsProps {
|
|
93
|
+
/** Application content. Toasts render via a portal above this. */
|
|
94
|
+
children: React.ReactNode;
|
|
95
|
+
/**
|
|
96
|
+
* Container element for the portal. Use this to render toasts inside
|
|
97
|
+
* a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
98
|
+
* @default document.body (or KumoPortalProvider container if set)
|
|
99
|
+
*/
|
|
100
|
+
container?: PortalContainer;
|
|
101
|
+
/**
|
|
102
|
+
* Optional toast manager created by `createKumoToastManager()`. When
|
|
103
|
+
* provided, allows code outside the React tree (timers, module-load
|
|
104
|
+
* callbacks, query-cache listeners) to dispatch toasts via the same
|
|
105
|
+
* dedupe-aware manager that `useKumoToastManager()` returns inside the
|
|
106
|
+
* tree.
|
|
107
|
+
*
|
|
108
|
+
* Forwarded to the underlying `@base-ui/react/toast` `Toast.Provider`
|
|
109
|
+
* `toastManager` prop — see
|
|
110
|
+
* https://base-ui.com/react/components/toast for the upstream primitive.
|
|
111
|
+
*/
|
|
112
|
+
toastManager?: ReturnType<typeof createKumoToastManager>;
|
|
113
|
+
}
|
|
114
|
+
type KumoToastOptionsBase = {
|
|
115
|
+
variant?: KumoToastVariant;
|
|
116
|
+
content?: React.ReactNode;
|
|
117
|
+
actions?: Array<ButtonProps>;
|
|
118
|
+
bump?: boolean;
|
|
119
|
+
};
|
|
120
|
+
type KumoToastOptions<Data extends object> = ToastObject<Data> & KumoToastOptionsBase;
|
|
121
|
+
type KumoToastManagerAddOptions<Data extends object> = ToastManagerAddOptions<Data> & KumoToastOptionsBase;
|
|
122
|
+
type KumoToastManagerUpdateOptions<Data extends object> = ToastManagerUpdateOptions<Data> & KumoToastOptionsBase;
|
|
123
|
+
declare const useKumoToastManager: () => {
|
|
124
|
+
toasts: Array<KumoToastOptions<any>>;
|
|
125
|
+
add: (<T extends any = any>(options: ToastManagerAddOptions<T>) => string) & ((options: KumoToastManagerAddOptions<any>) => any);
|
|
126
|
+
close: (toastId?
|
|
127
|
+
/**
|
|
128
|
+
* Toast styling configuration for Figma plugin consumption.
|
|
129
|
+
* Provides structured metadata for generating Toast components in Figma.
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Toast styling configuration for Figma plugin consumption.
|
|
133
|
+
* Provides structured metadata for generating Toast components in Figma.
|
|
134
|
+
*/ : string) => void;
|
|
135
|
+
update: (<T extends any = any>(toastId: string, options: ToastManagerUpdateOptions<T> | ((prevToast: ToastObject<T>) => ToastManagerUpdateOptions<T>)) => void) & ((id: string, options: KumoToastManagerUpdateOptions<any> | ((prevToast: KumoToastOptions<any>) => KumoToastManagerUpdateOptions<any>)) => any);
|
|
136
|
+
promise: (<Value, T extends any = any>(promise: Promise<Value>, options: import("@base-ui/react").ToastManagerPromiseOptions<Value, T>) => Promise<Value>) & (<T>(promise: Promise<T>, options: {
|
|
137
|
+
loading: KumoToastManagerAddOptions<any>;
|
|
138
|
+
success: KumoToastManagerAddOptions<any> | ((data: T) => KumoToastManagerAddOptions<any>);
|
|
139
|
+
error: KumoToastManagerAddOptions<any> | ((error: Error) => KumoToastManagerAddOptions<any>);
|
|
140
|
+
}) => any);
|
|
141
|
+
};
|
|
142
|
+
declare const createKumoToastManager: () => import("@base-ui/react").ToastManager<any> & {
|
|
143
|
+
add: (options: KumoToastManagerAddOptions<any>) => any;
|
|
144
|
+
update: (id: string, options: KumoToastManagerUpdateOptions<any> | ((prevToast: KumoToastOptions<any>) => KumoToastManagerUpdateOptions<any>)) => any;
|
|
145
|
+
promise: <T>(promise: Promise<T>, options: {
|
|
146
|
+
loading: KumoToastManagerAddOptions<any>;
|
|
147
|
+
success: KumoToastManagerAddOptions<any> | ((data: T) => KumoToastManagerAddOptions<any>);
|
|
148
|
+
error: KumoToastManagerAddOptions<any> | ((error: Error) => KumoToastManagerAddOptions<any>);
|
|
149
|
+
}) => any;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Toasty — toast notification provider and viewport.
|
|
153
|
+
*
|
|
154
|
+
* Renders a `Toast.Provider` with a fixed-position viewport at the bottom inline end.
|
|
155
|
+
* Toasts stack with smooth enter/exit animations, swipe-to-dismiss, and expand-on-hover.
|
|
156
|
+
*
|
|
157
|
+
* Built on `@base-ui/react/toast`.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```tsx
|
|
161
|
+
* <Toasty>
|
|
162
|
+
* <App />
|
|
163
|
+
* </Toasty>
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
declare function Toasty({ children, container: containerProp, toastManager }: ToastyProps): import("react/jsx-runtime").JSX.Element;
|
|
167
|
+
/** Alias for Toasty — provided for discoverability when migrating from other libraries */
|
|
168
|
+
declare const ToastProvider: typeof Toasty;
|
|
169
|
+
//#endregion
|
|
170
|
+
export { Toasty as a, ToastProvider as i, KumoToastManagerAddOptions as n, createKumoToastManager as o, KumoToastOptions as r, useKumoToastManager as s, Toast as t };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { Meter } from "@base-ui/react/meter";
|
|
3
|
+
//#region src/components/meter/meter.d.ts
|
|
4
|
+
interface KumoMeterVariantsProps {}
|
|
5
|
+
type RootProps = ComponentPropsWithoutRef<typeof Meter.Root>;
|
|
6
|
+
/**
|
|
7
|
+
* Meter component props.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Meter label="Storage used" value={65} />
|
|
12
|
+
* <Meter label="API requests" value={75} customValue="750 / 1,000" />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
interface MeterProps extends RootProps, KumoMeterVariantsProps {
|
|
16
|
+
/** Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage. */
|
|
17
|
+
customValue?: string;
|
|
18
|
+
/** Label text displayed above the meter track. */
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to display the percentage value next to the label.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
showValue?: boolean;
|
|
25
|
+
/** Additional CSS classes for the track (background bar). */
|
|
26
|
+
trackClassName?: string;
|
|
27
|
+
/** Additional CSS classes for the indicator (filled bar). */
|
|
28
|
+
indicatorClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Progress bar showing a measured value within a known range (e.g. quota usage).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <Meter label="Storage" value={65} />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function Meter$1({ value, customValue, label, showValue, className, trackClassName, indicatorClassName, ...props }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Meter$1 as t };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { a as PropSchema, i as ComponentType, n as ComponentSchema, o as SubComponentSchema, r as ComponentStyling, t as ComponentRegistry } from "./types-CdzJnnIl.js";
|
|
2
|
+
import { a as KUMO_FIELD_VARIANTS, i as KUMO_FIELD_DEFAULT_VARIANTS, n as FieldErrorMatch, o as fieldVariants, r as FieldProps, t as Field } from "./field-DIjlHM8W.js";
|
|
3
|
+
import { a as KUMO_AUTOCOMPLETE_VARIANTS, i as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, n as Autocomplete, o as KumoAutocompleteSize, r as AutocompleteProps, s as autocompleteVariants } from "./index-T1sSoiWG.js";
|
|
4
|
+
import { n as BadgeVariant, t as Badge } from "./index-Bwhwpw_j.js";
|
|
5
|
+
import { a as LinkButtonProps, i as LinkButton, n as ButtonProps, o as RefreshButton, s as buttonVariants, t as Button } from "./button-DzavLWXm.js";
|
|
6
|
+
import { n as BannerVariant, t as Banner } from "./index-NnHba-T1.js";
|
|
7
|
+
import { n as BreadcrumbsProps, t as Breadcrumb } from "./index-5PpauI_2.js";
|
|
8
|
+
import { a as KUMO_BUTTON_GROUP_VARIANTS, i as KUMO_BUTTON_GROUP_STYLING, n as ButtonGroupProps, r as KUMO_BUTTON_GROUP_DEFAULT_VARIANTS, t as ButtonGroup } from "./index-C7RoG_CH.js";
|
|
9
|
+
import "./index-DL1-uSuH.js";
|
|
10
|
+
import { C as TimeseriesChart, S as KumoChartOption, _ as SankeyTooltipParams, a as BubbleMap, c as ChoroplethMapProps, d as MapProjection, f as MapStyle, g as SankeyNodeData, h as SankeyLinkData, i as GlobeMapProps, l as MapAccessor, m as SankeyChartProps, n as GlobeMap, o as BubbleMapProps, p as SankeyChart, r as GlobeMapMarker, s as ChoroplethMap, t as ChartPalette, u as MapGeoJson, v as ChartLegend, y as Chart } from "./index-g-eFm1Bq.js";
|
|
11
|
+
import { a as CheckboxLegendProps, n as CheckboxChangeEventDetails, o as CheckboxProps, t as Checkbox } from "./index-DjSGDESy.js";
|
|
12
|
+
import { t as ClipboardText } from "./index-CReGk3Dc.js";
|
|
13
|
+
import { a as CloudflareLogoSvgVariant, c as KUMO_CLOUDFLARE_LOGO_DEFAULT_VARIANTS, d as PoweredByCloudflareProps, f as generateCloudflareLogoSvg, i as CloudflareLogoSvgColor, l as KUMO_CLOUDFLARE_LOGO_VARIANTS, n as CloudflareLogoColor, o as CloudflareLogoVariant, r as CloudflareLogoProps, s as GenerateCloudflareLogoSvgOptions, t as CloudflareLogo, u as PoweredByCloudflare } from "./index-CYoiniZ4.js";
|
|
14
|
+
import { n as Code, r as CodeBlock } from "./index-CNL6VDYZ.js";
|
|
15
|
+
import { a as CollapsibleProps, i as CollapsiblePanelProps, n as CollapsibleDefaultPanelProps, o as CollapsibleRootProps, r as CollapsibleDefaultTriggerProps, s as CollapsibleTriggerProps, t as Collapsible } from "./index-CzTgKPh-.js";
|
|
16
|
+
import { n as PortalContainer, t as KumoPortalProvider } from "./portal-provider-BAqPpq_a.js";
|
|
17
|
+
import { n as Combobox } from "./index-DxOyYZaJ.js";
|
|
18
|
+
import { a as CommandPaletteFooterProps, c as CommandPaletteInputProps, d as CommandPaletteLoadingProps, f as CommandPaletteResultItemProps, i as CommandPaletteEmptyProps, l as CommandPaletteItemProps, m as HighlightRange, n as KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS, o as CommandPaletteGroupLabelProps, p as CommandPaletteRootProps, r as KUMO_COMMAND_PALETTE_VARIANTS, s as CommandPaletteGroupProps, t as CommandPalette, u as CommandPaletteListProps } from "./index-BK1tZgmP.js";
|
|
19
|
+
import { i as DatePickerProps, n as DayPickerProps, r as DatePicker, t as DateRange } from "./index-bBPKMepR.js";
|
|
20
|
+
import { t as DateRangePicker } from "./index-lOWfpkxK.js";
|
|
21
|
+
import { a as DialogDescriptionProps, c as DialogRootProps, d as DialogTrigger, f as DialogTriggerProps, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogProps, r as DialogCloseProps, s as DialogRoot, t as Dialog, u as DialogTitleProps } from "./index-CJRe-8P-.js";
|
|
22
|
+
import { t as DropdownMenu } from "./index-BW1HVU7T.js";
|
|
23
|
+
import { n as EmptyProps, t as Empty } from "./index-BD-gTiEv.js";
|
|
24
|
+
import "./components/field.js";
|
|
25
|
+
import { t as Flow } from "./index-BzE0aNpx.js";
|
|
26
|
+
import { a as KUMO_GRID_DEFAULT_VARIANTS, c as KumoGridVariant, i as GridProps, l as gridItemVariants, n as GridItem, o as KUMO_GRID_VARIANTS, r as GridItemProps, s as KumoGridGap, t as Grid, u as gridVariants } from "./index-BVgXnR1V.js";
|
|
27
|
+
import { r as Text } from "./text-CRRU2g-u.js";
|
|
28
|
+
import { a as KUMO_INLINE_COPY_TEXT_STYLING, i as KUMO_INLINE_COPY_TEXT_DEFAULT_VARIANTS, n as InlineCopyTextLabels, o as KUMO_INLINE_COPY_TEXT_VARIANTS, r as InlineCopyTextProps, t as InlineCopyText } from "./index-B9-RdY6D.js";
|
|
29
|
+
import { a as inputVariants, n as InputProps, t as Input } from "./input-BeWEb-jD.js";
|
|
30
|
+
import { a as InputGroupSuffixProps, c as InputGroupInputProps, i as InputGroupRootProps, o as InputGroupAddonProps, s as InputGroupButtonProps, t as InputGroup } from "./input-group-8gEtPiKw.js";
|
|
31
|
+
import { n as Tooltip, r as TooltipProvider } from "./tooltip-D_vhi1PN.js";
|
|
32
|
+
import "./components/input-group.js";
|
|
33
|
+
import { a as Textarea, i as InputAreaProps, r as InputArea } from "./index-ClS-eFxE.js";
|
|
34
|
+
import { a as labelContentVariants, i as LabelProps, n as KUMO_LABEL_VARIANTS, o as labelVariants, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "./index-CE09bLNb.js";
|
|
35
|
+
import { t as LayerCard } from "./layer-card-BNIn9pqy.js";
|
|
36
|
+
import "./components/layer-card.js";
|
|
37
|
+
import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "./index-Dmbgjww7.js";
|
|
38
|
+
import { n as LinkProvider, r as useLinkComponent, t as LinkComponentProps } from "./link-provider-tz-NJp9x.js";
|
|
39
|
+
import { KUMO_LINK_DEFAULT_VARIANTS, KUMO_LINK_VARIANTS, KumoLinkVariant, KumoLinkVariantsProps, Link, LinkProps, linkVariants } from "./components/link.js";
|
|
40
|
+
import { n as Loader, t as SkeletonLine } from "./index-Dx7hOWUc.js";
|
|
41
|
+
import { n as MenuBar, t as useMenuNavigation } from "./index-B7epkoHc.js";
|
|
42
|
+
import { t as Meter } from "./index-yK3Hayg_.js";
|
|
43
|
+
import { t as Pagination } from "./index-DYYiDxZs.js";
|
|
44
|
+
import { _ as PopoverTriggerProps, a as Popover, d as PopoverDescriptionProps, h as PopoverTitleProps, l as PopoverContentProps, n as KUMO_POPOVER_VARIANTS, p as PopoverRootProps, s as PopoverCloseProps, t as KUMO_POPOVER_DEFAULT_VARIANTS } from "./index-AUC5xRcO.js";
|
|
45
|
+
import { a as KumoRadioVariantsProps, c as RadioGroup, d as RadioItemProps, f as RadioLegendProps, i as KumoRadioVariant, l as RadioGroupChangeEventDetails, m as radioVariants, n as KUMO_RADIO_VARIANTS, o as Radio, p as RadioVariant, r as KumoRadioAppearance, s as RadioControlPosition, t as KUMO_RADIO_DEFAULT_VARIANTS, u as RadioGroupProps } from "./index-CU_lnxg7.js";
|
|
46
|
+
import { t as Select } from "./index-DwNMa4LN.js";
|
|
47
|
+
import { i as SensitiveInputProps, n as KUMO_SENSITIVE_INPUT_VARIANTS, r as SensitiveInput, t as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS } from "./index-D2Gvly0i.js";
|
|
48
|
+
import { A as SidebarProviderProps, C as SidebarMenuItem, D as SidebarMenuSubButtonProps, E as SidebarMenuSubButton, F as SidebarScrollAlign, G as SidebarVariant, I as SidebarScrollToItemOptions, K as useSidebar, L as SidebarSeparator, M as SidebarResizeHandle, N as SidebarRoot, O as SidebarMenuSubItem, P as SidebarRootProps, R as SidebarSide, S as SidebarMenuChevron, T as SidebarMenuSub, U as SidebarState, V as SidebarSlidingViews, W as SidebarTrigger, _ as SidebarMenu, a as SidebarCollapsible, b as SidebarMenuButtonProps, c as SidebarCollapsibleTrigger, d as SidebarContextValue, f as SidebarFooter, g as SidebarLoading, h as SidebarHeader, i as Sidebar, j as SidebarRail, k as SidebarProvider, m as SidebarGroupLabel, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarGroup, r as KUMO_SIDEBAR_VARIANTS, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarContent, v as SidebarMenuBadge, w as SidebarMenuItemProps, x as SidebarMenuButtonSize, y as SidebarMenuButton, z as SidebarSlidingView } from "./index-BkTAB4wj.js";
|
|
49
|
+
import { a as Slider, i as KumoSliderVariantsProps, n as KUMO_SLIDER_VARIANTS, o as SliderProps, r as KumoSliderSize, s as sliderVariants, t as KUMO_SLIDER_DEFAULT_VARIANTS } from "./index-BWe6haHU.js";
|
|
50
|
+
import { t as Surface } from "./index-CzIWigmH.js";
|
|
51
|
+
import { a as Switch, c as SwitchLegendProps } from "./index-AMEc1MEg.js";
|
|
52
|
+
import { a as KUMO_TABLE_OF_CONTENTS_VARIANTS, c as TableOfContentsGroupProps, d as TableOfContentsProps, f as TableOfContentsTitleProps, i as KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, l as TableOfContentsItemProps, n as UseTableOfContentsActiveIdResult, o as KumoTableOfContentsState, r as useTableOfContentsActiveId, s as TableOfContents, t as UseTableOfContentsActiveIdOptions, u as TableOfContentsListProps } from "./index-DIV3riUd.js";
|
|
53
|
+
import { a as Table } from "./index-RP_rt8vB.js";
|
|
54
|
+
import { n as TabsItem, r as TabsProps, t as Tabs } from "./index-gYC6cQVO.js";
|
|
55
|
+
import { n as TagInputLabels, r as TagInputProps, t as TagInput } from "./index-2jvVmJ8P.js";
|
|
56
|
+
import "./components/text.js";
|
|
57
|
+
import { a as Toasty, i as ToastProvider, o as createKumoToastManager, s as useKumoToastManager, t as Toast } from "./index-pjdgauIH.js";
|
|
58
|
+
import { a as ToolbarInputGroupProps, c as ToolbarProps, i as ToolbarButtonProps, l as ToolbarSize, n as KUMO_TOOLBAR_VARIANTS, o as ToolbarInputProps, r as Toolbar, s as ToolbarLinkProps, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "./index-aahL-0Zw.js";
|
|
59
|
+
import "./components/tooltip.js";
|
|
60
|
+
import { a as cn, i as KumoTranslationsPartial, n as KumoLocaleProviderProps, o as safeRandomId, r as KumoTranslations, t as KumoLocaleProvider } from "./locale-provider-CHMCQ0-J.js";
|
|
61
|
+
//#region src/blocks/delete-resource/delete-resource.d.ts
|
|
62
|
+
export declare const KUMO_DELETE_RESOURCE_VARIANTS: {
|
|
63
|
+
readonly size: {
|
|
64
|
+
readonly sm: {
|
|
65
|
+
readonly classes: "";
|
|
66
|
+
readonly description: "Small dialog for simple delete confirmations";
|
|
67
|
+
};
|
|
68
|
+
readonly base: {
|
|
69
|
+
readonly classes: "";
|
|
70
|
+
readonly description: "Default delete confirmation dialog size";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS: {
|
|
75
|
+
readonly size: "base";
|
|
76
|
+
};
|
|
77
|
+
type KumoDeleteResourceSize = keyof typeof KUMO_DELETE_RESOURCE_VARIANTS.size;
|
|
78
|
+
interface KumoDeleteResourceVariantsProps {
|
|
79
|
+
size?: KumoDeleteResourceSize;
|
|
80
|
+
}
|
|
81
|
+
interface DeleteResourceProps extends KumoDeleteResourceVariantsProps {
|
|
82
|
+
/** Whether the dialog is open */
|
|
83
|
+
open: boolean;
|
|
84
|
+
/** Callback when open state changes */
|
|
85
|
+
onOpenChange: (open: boolean) => void;
|
|
86
|
+
/** The type of resource being deleted (e.g., "Zone", "Worker", "KV Namespace") */
|
|
87
|
+
resourceType: string;
|
|
88
|
+
/** The name of the specific resource being deleted */
|
|
89
|
+
resourceName: string;
|
|
90
|
+
/** Callback when delete is confirmed */
|
|
91
|
+
onDelete: () => void | Promise<void>;
|
|
92
|
+
/** Whether the delete action is in progress */
|
|
93
|
+
isDeleting?: boolean;
|
|
94
|
+
/** Whether the confirmation input should be case-sensitive (default: true) */
|
|
95
|
+
caseSensitive?: boolean;
|
|
96
|
+
/** Custom delete button text (defaults to "Delete {resourceType}") */
|
|
97
|
+
deleteButtonText?: string;
|
|
98
|
+
/** Additional className for the dialog */
|
|
99
|
+
className?: string;
|
|
100
|
+
/** Error message to display if the delete action fails */
|
|
101
|
+
errorMessage?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare function DeleteResource({ open, onOpenChange, resourceType, resourceName, onDelete, isDeleting, caseSensitive, deleteButtonText, size, errorMessage, className }: DeleteResourceProps): import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
export declare namespace DeleteResource {
|
|
105
|
+
var displayName: string;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
export { Autocomplete, type AutocompleteProps, Badge, type BadgeVariant, Banner, BannerVariant, Breadcrumb as Breadcrumbs, type BreadcrumbsProps, BubbleMap, type BubbleMapProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Chart, ChartLegend, ChartPalette, Checkbox, type CheckboxChangeEventDetails, type CheckboxLegendProps, type CheckboxProps, ChoroplethMap, type ChoroplethMapProps, ClipboardText, CloudflareLogo, type CloudflareLogoColor, type CloudflareLogoProps, type CloudflareLogoSvgColor, type CloudflareLogoSvgVariant, type CloudflareLogoVariant, Code, CodeBlock, Collapsible, type CollapsibleDefaultPanelProps, type CollapsibleDefaultTriggerProps, type CollapsiblePanelProps, type CollapsibleProps, type CollapsibleRootProps, type CollapsibleTriggerProps, Combobox, CommandPalette, type CommandPaletteEmptyProps, type CommandPaletteFooterProps, type CommandPaletteGroupLabelProps, type CommandPaletteGroupProps, type CommandPaletteInputProps, type CommandPaletteItemProps, type CommandPaletteListProps, type CommandPaletteLoadingProps, type CommandPaletteResultItemProps, type CommandPaletteRootProps, type ComponentRegistry, type ComponentSchema, type ComponentStyling, type ComponentType, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DayPickerProps, type DeleteResourceProps, Dialog, DialogClose, type DialogCloseProps, DialogDescription, type DialogDescriptionProps, type DialogProps, DialogRoot, type DialogRootProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DropdownMenu, Empty, type EmptyProps, Field, type FieldErrorMatch, type FieldProps, Flow, type GenerateCloudflareLogoSvgOptions, GlobeMap, type GlobeMapMarker, type GlobeMapProps, Grid, GridItem, type GridItemProps, type GridProps, type HighlightRange, InlineCopyText, type InlineCopyTextLabels, type InlineCopyTextProps, Input, InputArea, type InputAreaProps, InputGroup, type InputGroupAddonProps, type InputGroupButtonProps, type InputGroupInputProps, type InputGroupRootProps, type InputGroupSuffixProps, type InputProps, KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, KUMO_AUTOCOMPLETE_VARIANTS, KUMO_BUTTON_GROUP_DEFAULT_VARIANTS, KUMO_BUTTON_GROUP_STYLING, KUMO_BUTTON_GROUP_VARIANTS, KUMO_CLOUDFLARE_LOGO_DEFAULT_VARIANTS, KUMO_CLOUDFLARE_LOGO_VARIANTS, KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS, KUMO_COMMAND_PALETTE_VARIANTS, KUMO_FIELD_DEFAULT_VARIANTS, KUMO_FIELD_VARIANTS, KUMO_GRID_DEFAULT_VARIANTS, KUMO_GRID_VARIANTS, KUMO_INLINE_COPY_TEXT_DEFAULT_VARIANTS, KUMO_INLINE_COPY_TEXT_STYLING, KUMO_INLINE_COPY_TEXT_VARIANTS, KUMO_LABEL_DEFAULT_VARIANTS, KUMO_LABEL_VARIANTS, KUMO_LINK_DEFAULT_VARIANTS, KUMO_LINK_VARIANTS, KUMO_POPOVER_DEFAULT_VARIANTS, KUMO_POPOVER_VARIANTS, KUMO_RADIO_DEFAULT_VARIANTS, KUMO_RADIO_VARIANTS, KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS, KUMO_SENSITIVE_INPUT_VARIANTS, KUMO_SIDEBAR_DEFAULT_VARIANTS, KUMO_SIDEBAR_STYLING, KUMO_SIDEBAR_VARIANTS, KUMO_SLIDER_DEFAULT_VARIANTS, KUMO_SLIDER_VARIANTS, KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, KUMO_TABLE_OF_CONTENTS_VARIANTS, KUMO_TOOLBAR_DEFAULT_VARIANTS, KUMO_TOOLBAR_VARIANTS, type KumoAutocompleteSize, type KumoChartOption, type KumoGridGap, type KumoGridVariant, type KumoLayerDialogPrimaryVariant, type KumoLayerDialogSize, type KumoLayerDialogVerticalAlign, type KumoLinkVariant, type KumoLinkVariantsProps, KumoLocaleProvider, type KumoLocaleProviderProps, KumoPortalProvider, type KumoRadioAppearance, type KumoRadioVariant, type KumoRadioVariantsProps, type KumoSliderSize, type KumoSliderVariantsProps, type KumoTableOfContentsState, type KumoTranslations, type KumoTranslationsPartial, Label, type LabelProps, LayerCard, LayerDialog, type LayerDialogActionProps, type LayerDialogActionsProps, type LayerDialogBodyProps, type LayerDialogContentProps, type LayerDialogDescriptionProps, type LayerDialogPrimaryProps, type LayerDialogProps, type LayerDialogRootProps, type LayerDialogTitleProps, Link, LinkButton, type LinkButtonProps, type LinkComponentProps, type LinkProps, LinkProvider, Loader, type MapAccessor, type MapGeoJson, type MapProjection, type MapStyle, MenuBar, Meter, Pagination, Popover, type PopoverCloseProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverRootProps, type PopoverTitleProps, type PopoverTriggerProps, type PortalContainer, PoweredByCloudflare, type PoweredByCloudflareProps, type PropSchema, Radio, type RadioControlPosition, RadioGroup, type RadioGroupChangeEventDetails, type RadioGroupProps, type RadioItemProps, type RadioLegendProps, type RadioVariant, RefreshButton, SankeyChart, type SankeyChartProps, type SankeyLinkData, type SankeyNodeData, type SankeyTooltipParams, Select, SensitiveInput, type SensitiveInputProps, Sidebar, SidebarCollapsible, type SidebarCollapsible as SidebarCollapsibleType, SidebarCollapsibleContent, SidebarCollapsibleTrigger, SidebarContent, type SidebarContextValue, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarLoading, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, type SidebarMenuButtonSize, SidebarMenuChevron, SidebarMenuItem, type SidebarMenuItemProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarResizeHandle, SidebarRoot, type SidebarRootProps, type SidebarScrollAlign, type SidebarScrollToItemOptions, SidebarSeparator, type SidebarSide, SidebarSlidingView, SidebarSlidingViews, type SidebarState, SidebarTrigger, type SidebarVariant, SkeletonLine, Slider, type SliderProps, type SubComponentSchema, Surface, Switch, type SwitchLegendProps, Table, TableOfContents, type TableOfContentsGroupProps, type TableOfContentsItemProps, type TableOfContentsListProps, type TableOfContentsProps, type TableOfContentsTitleProps, Tabs, type TabsItem, type TabsProps, TagInput, type TagInputLabels, type TagInputProps, Text, Textarea, TimeseriesChart, Toast, ToastProvider, Toasty, Toolbar, type ToolbarButtonProps, type ToolbarInputGroupProps, type ToolbarInputProps, type ToolbarLinkProps, type ToolbarProps, type ToolbarSize, Tooltip, TooltipProvider, type UseTableOfContentsActiveIdOptions, type UseTableOfContentsActiveIdResult, autocompleteVariants, buttonVariants, cn, createKumoToastManager, fieldVariants, generateCloudflareLogoSvg, gridItemVariants, gridVariants, inputVariants, labelContentVariants, labelVariants, linkVariants, radioVariants, safeRandomId, sliderVariants, useKumoToastManager, useLinkComponent, useMenuNavigation, useSidebar, useTableOfContentsActiveId };
|