@cloudflare/kumo 2.8.0 → 2.9.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 +88 -0
- package/README.md +3 -39
- package/ai/USAGE.md +89 -80
- package/ai/component-registry.json +165 -55
- package/ai/component-registry.md +484 -94
- package/ai/schemas.ts +4 -2
- package/bin/kumo.js +1 -1
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +1928 -1916
- package/dist/ai/schemas.js +5550 -4085
- package/dist/blocks-source/delete-resource/delete-resource.tsx +5 -5
- package/dist/blocks-source/resource-list/resource-list.test.tsx +1 -1
- package/dist/blocks-source/resource-list/resource-list.tsx +1 -4
- package/dist/button-Bbi7gFL7.d.ts +227 -0
- package/dist/catalog.d.ts +377 -0
- package/dist/catalog.js +347 -215
- package/dist/chunks/AlertDialogTrigger-fn9yjykev9h5l12q.js +24 -0
- package/dist/chunks/AutocompleteItem-clgm7u7zzgjy1hvb.js +82 -0
- package/dist/chunks/Button-oczevl8g75m85ew9.js +27 -0
- package/dist/chunks/CSPContext-guqghj8kxoukvlky.js +17 -0
- package/dist/chunks/CSPProvider-ogozggb4nr6evned.js +24 -0
- package/dist/chunks/CheckboxGroup-h9w1c6bo2nlcc4uj.js +177 -0
- package/dist/chunks/CheckboxGroupContext-f9wox07n2u5moq4h.js +12 -0
- package/dist/chunks/CheckboxIndicator-gz18hapnzraxyz9a.js +49 -0
- package/dist/chunks/CheckboxRoot-g6fb44xqgc0qxusf.js +361 -0
- package/dist/chunks/CollapsiblePanel-mnjlf99v79k3yabx.js +177 -0
- package/dist/chunks/ComboboxChipRemove-opf1zyu9yyp98dqd.js +302 -0
- package/dist/chunks/ComboboxClear-fi4op1n12c99ktca.js +302 -0
- package/dist/chunks/ComboboxEmpty-dr78bn7zilhqbkgc.js +1882 -0
- package/dist/chunks/ComboboxPopup-bugeajuqjattk1n7.js +205 -0
- package/dist/chunks/CompositeItem-l7zee38lq5m224d5.js +23 -0
- package/dist/chunks/CompositeList-bek8pmx9o8cu36ig.js +129 -0
- package/dist/chunks/CompositeListContext-oetjj2x8li8678as.js +18 -0
- package/dist/chunks/CompositeRoot-jm9n0rrea12rfny1.js +225 -0
- package/dist/chunks/CompositeRootContext-ofhzmevv7hadjhyy.js +12 -0
- package/dist/chunks/DialogHandle-o964gplvp59qqv23.js +139 -0
- package/dist/chunks/DialogPopup-cz73mkiyi9c33mhn.js +174 -0
- package/dist/chunks/DialogRoot-kfhbouiouenljp3q.js +15 -0
- package/dist/chunks/DialogTrigger-gzxvssie7e5e1iba.js +139 -0
- package/dist/chunks/DirectionContext-jc1g0w645603sd6p.js +13 -0
- package/dist/chunks/DirectionProvider-gdktkteyrlpnokak.js +21 -0
- package/dist/chunks/FieldControl-oz007qbkl6ejp7di.js +104 -0
- package/dist/chunks/FieldDescription-go88jdymmj9o0ugi.js +121 -0
- package/dist/chunks/FieldItemContext-j85dc0ihramj5ezs.js +10 -0
- package/dist/chunks/FieldLabel-junk2aczkvogpv5d.js +558 -0
- package/dist/chunks/FieldsetLegend-ch85hugankjah152.js +68 -0
- package/dist/chunks/FieldsetRootContext-b633e9uzilttuyfi.js +12 -0
- package/dist/chunks/FloatingPortalLite-ld4o97z16w23x6za.js +25 -0
- package/dist/chunks/FloatingTree-jdm71b3m43e34hk7.js +115 -0
- package/dist/chunks/Form-f1ibju5npd1qqowg.js +102 -0
- package/dist/chunks/FormContext-xz0b4h7ue30fkkn1.js +17 -0
- package/dist/chunks/Input-opaph7rt3w2vx3c0.js +20 -0
- package/dist/chunks/LabelableContext-hetas2e4y0kywfas.js +131 -0
- package/dist/chunks/MenuBackdrop-m0tfcr6sg50f9sn5.js +78 -0
- package/dist/chunks/MenuSubmenuTrigger-n281iqpstcnacsk6.js +1532 -0
- package/dist/chunks/MenuTrigger-dwh2ewyxp5j3ml02.js +266 -0
- package/dist/chunks/Menubar-m8euwx8biy1qpo44.js +117 -0
- package/dist/chunks/MenubarContext-ei2r6vu6lmsspozo.js +12 -0
- package/dist/chunks/MeterLabel-efe4koezlgg05cv8.js +151 -0
- package/dist/chunks/PopoverClose-inm8xliypc51murq.js +666 -0
- package/dist/chunks/RadioGroup-h25jrjmet0gxrvex.js +165 -0
- package/dist/chunks/RadioGroupContext-ft0nndmzqynjz8a2.js +10 -0
- package/dist/chunks/RadioIndicator-lvpixnzpkxpq7rp1.js +296 -0
- package/dist/chunks/ScrollAreaThumb-jydo7azxxwjn1cqf.js +944 -0
- package/dist/chunks/SelectGroupLabel-mug19qcz2k67qule.js +1600 -0
- package/dist/chunks/Separator-b8wf5rea6m1cei8k.js +24 -0
- package/dist/chunks/SwitchRoot-gumgk7356eqv7dve.js +237 -0
- package/dist/chunks/TabsList-obzldrvfzo50uqr4.js +617 -0
- package/dist/chunks/Toggle-hlf7recxsq6mxvax.js +89 -0
- package/dist/chunks/ToggleGroup-l8tfcwe33tlqqm8a.js +106 -0
- package/dist/chunks/ToggleGroupContext-cdk2zo6ciddpockn.js +12 -0
- package/dist/chunks/ToolbarGroupContext-nriz3632ymugfj6h.js +12 -0
- package/dist/chunks/ToolbarInput-oy7o682hhn2jdjen.js +152 -0
- package/dist/chunks/ToolbarRootContext-lvi96r1vvs93rhde.js +12 -0
- package/dist/chunks/TooltipPopup-ehusafczcky9jvae.js +868 -0
- package/dist/chunks/TooltipProvider-iq6hgymrn3b68h50.js +64 -0
- package/dist/chunks/addEventListener-lhqvk2ahlzjsanyg.js +13 -0
- package/dist/chunks/areArraysEqual-nlbeaqlzf4274zr3.js +7 -0
- package/dist/chunks/autocomplete-m8n1c775n0iilomf.js +152 -0
- package/dist/chunks/badge-e16yhhe9xibra5k7.js +148 -0
- package/dist/chunks/banner-cu2mip76zfx0gf27.js +258 -0
- package/dist/chunks/bash-jpzh6zbf5237424t.js +3 -0
- package/dist/chunks/breadcrumbs-hxibrxjtvudy0ir9.js +164 -0
- package/dist/chunks/button-eikucjpgqbsn5m5m.js +260 -0
- package/dist/chunks/chart-bxxlck50zlsbj3kl.js +3083 -0
- package/dist/chunks/checkbox-fovnhs7f1sekaxrh.js +158 -0
- package/dist/chunks/clamp-kvu4wtr1dw6b3pnd.js +7 -0
- package/dist/chunks/clipboard-text-fuyj4apm2xry4hkk.js +198 -0
- package/dist/chunks/cloudflare-logo-g0aimzpllornl0rc.js +186 -0
- package/dist/chunks/code-eu8kzwqnlhoyin24.js +96 -0
- package/dist/chunks/collapsible-lj0glxe1hezap65x.js +178 -0
- package/dist/chunks/combobox-m2nvbt0b1stb2syc.js +301 -0
- package/dist/chunks/command-palette-jjrbvylvvbj0qusg.js +507 -0
- package/dist/chunks/composite-o65hjzwwzb4kvl4w.js +102 -0
- package/dist/chunks/constants-j09lrtg73n4vlx5x.js +5 -0
- package/dist/chunks/core-kjfqbvgicl9i3abf.js +7163 -0
- package/dist/chunks/createBaseUIEventDetails-ddivuhl74gni72qn.js +86 -0
- package/dist/chunks/createToastManager-kjd838m8jog8pddj.js +1233 -0
- package/dist/chunks/css-d3t41yfupsmz7l1a.js +4 -0
- package/dist/chunks/date-picker-njfirc1m165k6yax.js +6786 -0
- package/dist/chunks/date-range-picker-g6sje1ua7n7jerkq.js +335 -0
- package/dist/chunks/dialog-b4r3dv8uvgl2pqem.js +170 -0
- package/dist/chunks/diff-g2re0kj6fh27rgg5.js +4 -0
- package/dist/chunks/dropdown-k0y5j6iuad7tvqgx.js +279 -0
- package/dist/chunks/empty-hmu7x39lnp0z2qm6.js +89 -0
- package/dist/chunks/engine-io35xsj9fgfxtihg.js +10 -0
- package/dist/chunks/engine-javascript-d795u677f1802oaf.js +3103 -0
- package/dist/chunks/engine-oniguruma-xjlw46ay321yj1av.js +388 -0
- package/dist/chunks/error-mm98alb8acdy93vq.js +15 -0
- package/dist/chunks/field-dxe9ne8fqy5whws2.js +70 -0
- package/dist/chunks/flow-fbsv3yek3w7v5a6p.js +10270 -0
- package/dist/chunks/formatNumber-hjijm58g645q6a0n.js +26 -0
- package/dist/chunks/getCssDimensions-mi941fe1jvztqm6b.js +21 -0
- package/dist/chunks/getEmptyRootContext-2utawetz04dqkzyn.js +18 -0
- package/dist/chunks/getPseudoElementBounds-jg72lmrlwgbqhmjh.js +28 -0
- package/dist/chunks/github-light-kb466scjoy42qxpu.js +5 -0
- package/dist/chunks/graphql-gtqr4wytdf0qjybo.js +16 -0
- package/dist/chunks/grid-d43q1qme6ffbbcl1.js +118 -0
- package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +4 -0
- package/dist/chunks/html-ijyj3f9k0foag15c.js +12 -0
- package/dist/chunks/index.parts-9xtishx4m3j6sbg9.js +1429 -0
- package/dist/chunks/index.parts-bsarfaby0ttw67bb.js +206 -0
- package/dist/chunks/index.parts-buqjmx1pfsd225r7.js +30 -0
- package/dist/chunks/index.parts-bzlq2foymrigspiz.js +81 -0
- package/dist/chunks/index.parts-c4kz48uuogge3k9g.js +1462 -0
- package/dist/chunks/index.parts-cou5w8shwfwuk6wo.js +128 -0
- package/dist/chunks/index.parts-etb66t5m85rhhipe.js +11 -0
- package/dist/chunks/index.parts-f3xvfc67ai7txeru.js +127 -0
- package/dist/chunks/index.parts-g0wrrbkxyh0oo730.js +171 -0
- package/dist/chunks/index.parts-g27bw668q8dtcjz8.js +1229 -0
- package/dist/chunks/index.parts-gcwd6ds0od2n1i0p.js +10 -0
- package/dist/chunks/index.parts-ghwrm31fyo614381.js +23 -0
- package/dist/chunks/index.parts-giu46tgp0ypgfq6a.js +88 -0
- package/dist/chunks/index.parts-hi0bbzsnswj74v28.js +11 -0
- package/dist/chunks/index.parts-ixizrcasario34jo.js +213 -0
- package/dist/chunks/index.parts-j775zfdbhcd9ypeb.js +41 -0
- package/dist/chunks/index.parts-jmkwypigix07dit1.js +119 -0
- package/dist/chunks/index.parts-kdoulw17e9zk96yw.js +156 -0
- package/dist/chunks/index.parts-kh9waplhfwlszcyp.js +245 -0
- package/dist/chunks/index.parts-kwqb2nzc7u2zzxqs.js +2464 -0
- package/dist/chunks/index.parts-kwx43zlomuu96clc.js +46 -0
- package/dist/chunks/index.parts-lojnx790s6z0mi1f.js +388 -0
- package/dist/chunks/index.parts-n6t1aj932fytioz8.js +692 -0
- package/dist/chunks/index.parts-ngc39crwuz80oiij.js +13 -0
- package/dist/chunks/index.parts-nq06i1gji6fjnmln.js +192 -0
- package/dist/chunks/index.parts-omt7bu8mbte48ulb.js +73 -0
- package/dist/chunks/index.parts-pb65142mbin4hpc7.js +564 -0
- package/dist/chunks/index2.parts-k2au6nzued1wgy6t.js +95 -0
- package/dist/chunks/index2.parts-noiw2eweufmplfsp.js +10 -0
- package/dist/chunks/inertValue-f9pgp32jxnm88df3.js +9 -0
- package/dist/chunks/input-dwl9oy1f1ufah0bx.js +145 -0
- package/dist/chunks/input-group-otq3m9lach1jyxl0.js +452 -0
- package/dist/chunks/input-o3mtvvtqf69j5k10.js +85 -0
- package/dist/chunks/isElementDisabled-ffsy1y4adxocmexb.js +7 -0
- package/dist/chunks/javascript-b6fq9bl50fdj6813.js +4 -0
- package/dist/chunks/json-h2g0z143t3cs13d7.js +4 -0
- package/dist/chunks/jsonc-jxlzvingck161eej.js +4 -0
- package/dist/chunks/jsx-jp7a33937sef92sn.js +4 -0
- package/dist/chunks/label-opyibemromjwmd0s.js +72 -0
- package/dist/chunks/layer-card-nah241sxhj6i7i03.js +72 -0
- package/dist/chunks/link-1b3jda6cdzl4lkeo.js +112 -0
- package/dist/chunks/link-provider-l9ohtet4pj559eg0.js +60 -0
- package/dist/chunks/loader-j2v6fab8iucuxz1z.js +91 -0
- package/dist/chunks/markdown-eybeqjr58vfygtz1.js +4 -0
- package/dist/chunks/menubar-m0h31eymts6exeke.js +103 -0
- package/dist/chunks/mergeCleanups-pexn3wul6a4zn873.js +15 -0
- package/dist/chunks/meter-iauic8ww87xxqf74.js +35 -0
- package/dist/chunks/pagination-k0yll9ynbi8flc3b.js +290 -0
- package/dist/chunks/popover-l0xg7b854w7txyoz.js +152 -0
- package/dist/chunks/popupStateMapping-jpzw7eyzl8ghiv8s.js +868 -0
- package/dist/chunks/popupStoreUtils-fpjh6veok5pa2hd1.js +367 -0
- package/dist/chunks/portal-provider-langu3fqwfr9tlhm.js +59 -0
- package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +4 -0
- package/dist/chunks/radio-igpo6t2t2tpe08d5.js +173 -0
- package/dist/chunks/resolve-variant-l6x5ksfrjtu4m66l.js +35 -0
- package/dist/chunks/resolveAriaLabelledBy-h9qwvo10ftlj6t9k.js +10 -0
- package/dist/chunks/resolveValueLabel-i36fqhi09ki67hx5.js +89 -0
- package/dist/chunks/rolldown-runtime-hi7ti5xiuxsegr96.js +18 -0
- package/dist/chunks/safePolygon-flrfpyc6fpidq4fb.js +659 -0
- package/dist/chunks/safeReact-bavzz23j5tex60z2.js +18 -0
- package/dist/chunks/select-ln6ibqbbs0n4tiig.js +262 -0
- package/dist/chunks/sensitive-input-karaei12un7z7nep.js +256 -0
- package/dist/chunks/serializeValue-ci3kihruew64i36f.js +13 -0
- package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +4 -0
- package/dist/chunks/sidebar-kvjzu0ya0b2z6eec.js +1297 -0
- package/dist/chunks/skeleton-line-f6sju1dxawm8h9tg.js +40 -0
- package/dist/chunks/sql-do9h6435gka97c4c.js +4 -0
- package/dist/chunks/store-i9l3lkcl6auhkpfl.js +88 -0
- package/dist/chunks/stringifyLocale-cl8et9xf6zon4qbs.js +9 -0
- package/dist/chunks/styles-dbhgpd8fm76fdfo3.js +35 -0
- package/dist/chunks/surface-jwwh5xl06kv9tp7b.js +30 -0
- package/dist/chunks/switch-cusffup6w3tan5ot.js +202 -0
- package/dist/chunks/table-ds3nzcffm3pu9o0l.js +238 -0
- package/dist/chunks/table-of-contents-l66abisn473qzd07.js +231 -0
- package/dist/chunks/tabs-dz3fsnkrznrggilz.js +255 -0
- package/dist/chunks/text-e1ko7r96hsoz2tor.js +109 -0
- package/dist/chunks/toast-itl6qo5oy1vy6d36.js +324 -0
- package/dist/chunks/toml-oyqrgosuct25x413.js +4 -0
- package/dist/chunks/toolbar-gwd1orc8yl7lzaou.js +127 -0
- package/dist/chunks/tooltip-maelyxs1y7a78vje.js +90 -0
- package/dist/chunks/tsx-pem8x69upvmibv6l.js +4 -0
- package/dist/chunks/typescript-pe5y016phdwbgws7.js +4 -0
- package/dist/chunks/useAnchoredPopupScrollLock-bx8vvwcdp25ix0kj.js +31 -0
- package/dist/chunks/useAnimationFrame-ssgc72hyq6sg3yit.js +86 -0
- package/dist/chunks/useAriaLabelledBy-bvw56m1d7czf0w3f.js +38 -0
- package/dist/chunks/useBaseUiId-gqkl5ep5pn6hd0rw.js +13 -0
- package/dist/chunks/useButton-cpo6u2idqcnou6vy.js +149 -0
- package/dist/chunks/useClick-fvwb39qgead2jyft.js +86 -0
- package/dist/chunks/useCollapsiblePanel-bw63vwvq9a3sj73q.js +379 -0
- package/dist/chunks/useCompositeItem-esr3n4pmlssiuxuy.js +31 -0
- package/dist/chunks/useCompositeListItem-0exfww37ospqz69b.js +75 -0
- package/dist/chunks/useControlled-nlx0kk1ksgk0auvi.js +52 -0
- package/dist/chunks/useDismiss-l2gbj4cain4zqtne.js +353 -0
- package/dist/chunks/useFilteredItems-ckor5h4rcmztfgt1.js +183 -0
- package/dist/chunks/useFloatingRootContext-jo582qzez5k9gbgk.js +51 -0
- package/dist/chunks/useFocus-e8drzpkl9flxq1o1.js +122 -0
- package/dist/chunks/useForcedRerendering-el1fbg3ib5yo0v7k.js +14 -0
- package/dist/chunks/useId-l9soitgw3e4jk5ie.js +32 -0
- package/dist/chunks/useIsHydrating-b6whcsimonagru6u.js +22 -0
- package/dist/chunks/useLabel-nh9hf8h7o6oquqn5.js +47 -0
- package/dist/chunks/useLabelableId-b1kwq9st3rjrtakn.js +60 -0
- package/dist/chunks/useListNavigation-iyo9r9vug2g1clmc.js +447 -0
- package/dist/chunks/useOnMount-j4wobeq47l3u9olo.js +12 -0
- package/dist/chunks/useOpenChangeComplete-dpkex2e23s1evpol.js +117 -0
- package/dist/chunks/usePopupViewport-at3zpph46apa78a3.js +343 -0
- package/dist/chunks/usePositioner-h1n5q86am1sjo5hn.js +602 -0
- package/dist/chunks/usePreviousValue-le0grv8f43vmunn1.js +21 -0
- package/dist/chunks/useRegisterFieldControl-m1rxsuvtpau2341n.js +34 -0
- package/dist/chunks/useRegisteredLabelId-dh83mybmzy75waje.js +16 -0
- package/dist/chunks/useRender-gtnbrp1ityffi4xf.js +13 -0
- package/dist/chunks/useRenderDialogRoot-ecyv072j7yj8q0w3.js +262 -0
- package/dist/chunks/useRenderElement-m8kc7jyuczp71mq8.js +433 -0
- package/dist/chunks/useScrollLock-lj0spjth12xjeap0.js +854 -0
- package/dist/chunks/useStableCallback-ninxmksdjvwl6ejj.js +38 -0
- package/dist/chunks/useSwipeDismiss-bpbyw2ihsw3fw6y9.js +818 -0
- package/dist/chunks/useTimeout-oqptmu2xmyv5ccic.js +43 -0
- package/dist/chunks/useTransitionStatus-ig4waxl2kervpyw4.js +66 -0
- package/dist/chunks/useTriggerFocusGuards-j8nano0pqu9dscrz.js +49 -0
- package/dist/chunks/useTypeahead-onenwjyhgw955ygx.js +114 -0
- package/dist/chunks/useValueAsRef-lrn42zari17368c9.js +27 -0
- package/dist/chunks/useValueChanged-kthmz4wk7ywnjwtx.js +18 -0
- package/dist/chunks/utils-0i7gujfv3f3e9dqh.js +19 -0
- package/dist/chunks/valueToPercent-henpkkj3juy3ukeu.js +7 -0
- package/dist/chunks/vendor-floating-ui-dsysdmve7iazaaes.js +1558 -0
- package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +3631 -0
- package/dist/chunks/vendor-utils-luqsvbyuig727bnr.js +512 -0
- package/dist/chunks/vesper-ho3j3gt6ilwfuc1g.js +5 -0
- package/dist/chunks/visuallyHidden-n14xllazfozg55ox.js +24 -0
- package/dist/chunks/wasm-nfbosyhilcq70atf.js +8 -0
- package/dist/chunks/yaml-kzk5ddyekbyha04v.js +4 -0
- package/dist/cn-DCSItmT-.d.ts +5 -0
- package/dist/code/server.d.ts +97 -0
- package/dist/code/server.js +146 -84
- package/dist/code.d.ts +82 -0
- package/dist/code.js +348 -248
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +2 -8
- package/dist/components/badge.d.ts +2 -0
- package/dist/components/badge.js +2 -6
- package/dist/components/banner.d.ts +2 -0
- package/dist/components/banner.js +2 -6
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +2 -8
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +2 -8
- package/dist/components/chart.d.ts +2 -0
- package/dist/components/chart.js +2 -11
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +2 -7
- package/dist/components/clipboard-text.d.ts +2 -0
- package/dist/components/clipboard-text.js +2 -5
- package/dist/components/cloudflare-logo.d.ts +2 -0
- package/dist/components/cloudflare-logo.js +2 -9
- package/dist/components/code.d.ts +2 -0
- package/dist/components/code.js +2 -6
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +2 -5
- package/dist/components/combobox.d.ts +2 -0
- package/dist/components/combobox.js +2 -5
- package/dist/components/command-palette.d.ts +2 -0
- package/dist/components/command-palette.js +2 -7
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -5
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +2 -5
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +2 -10
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +2 -5
- package/dist/components/empty.d.ts +2 -0
- package/dist/components/empty.js +2 -8
- package/dist/components/field.d.ts +2 -0
- package/dist/components/field.js +2 -9
- package/dist/components/flow.d.ts +2 -0
- package/dist/components/flow.js +2 -5795
- package/dist/components/grid.d.ts +2 -0
- package/dist/components/grid.js +2 -10
- package/dist/components/input-group.d.ts +2 -0
- package/dist/components/input-group.js +2 -7
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.js +4 -13
- package/dist/components/label.d.ts +2 -0
- package/dist/components/label.js +2 -9
- package/dist/components/layer-card.d.ts +2 -0
- package/dist/components/layer-card.js +2 -5
- package/dist/components/link.d.ts +68 -0
- package/dist/components/link.js +2 -8
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +3 -7
- package/dist/components/menubar.d.ts +2 -0
- package/dist/components/menubar.js +2 -6
- package/dist/components/meter.d.ts +2 -0
- package/dist/components/meter.js +2 -5
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +2 -5
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +2 -13
- package/dist/components/radio.d.ts +2 -0
- package/dist/components/radio.js +2 -9
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +2 -5
- package/dist/components/sensitive-input.d.ts +2 -0
- package/dist/components/sensitive-input.js +2 -7
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -33
- package/dist/components/surface.d.ts +2 -0
- package/dist/components/surface.js +2 -5
- package/dist/components/switch.d.ts +2 -0
- package/dist/components/switch.js +2 -7
- package/dist/components/table-of-contents.d.ts +2 -0
- package/dist/components/table-of-contents.js +2 -7
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +2 -7
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +2 -5
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +2 -5
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +3 -10
- package/dist/components/toolbar.d.ts +2 -0
- package/dist/components/toolbar.js +2 -7
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -6
- package/dist/field-DIjlHM8W.d.ts +91 -0
- package/dist/index-AMEc1MEg2.d.ts +180 -0
- package/dist/index-B-hCpI5K.d.ts +1 -0
- package/dist/index-B6LJIy7_2.d.ts +52 -0
- package/dist/index-B9niVl3r.d.ts +140 -0
- package/dist/index-BAQwS4mL.d.ts +70 -0
- package/dist/index-BD-gTiEv.d.ts +71 -0
- package/dist/index-BVgXnR1V.d.ts +137 -0
- package/dist/index-Bgl_czT12.d.ts +140 -0
- package/dist/index-BkyMHk632.d.ts +110 -0
- package/dist/index-BlEUcijd.d.ts +795 -0
- package/dist/index-BoPqM1Ia2.d.ts +179 -0
- package/dist/index-BzE0aNpx.d.ts +143 -0
- package/dist/index-C3iraF8M2.d.ts +100 -0
- package/dist/index-CGbkysYW2.d.ts +161 -0
- package/dist/index-CLsBWiaS.d.ts +79 -0
- package/dist/index-CSWbPhke.d.ts +126 -0
- package/dist/index-CYoiniZ4.d.ts +135 -0
- package/dist/index-CeBzVJP8.d.ts +426 -0
- package/dist/index-ClS-eFxE.d.ts +104 -0
- package/dist/index-Cp0aQngm.d.ts +182 -0
- package/dist/index-CzIWigmH.d.ts +62 -0
- package/dist/index-CzTgKPh-.d.ts +105 -0
- package/dist/index-D-y1ktn-.d.ts +68 -0
- package/dist/index-D2Gvly0i2.d.ts +96 -0
- package/dist/index-DBlw3E9m.d.ts +166 -0
- package/dist/index-DCA5tjHa.d.ts +68 -0
- package/dist/index-DIV3riUd2.d.ts +148 -0
- package/dist/index-DJIRVD5B.d.ts +85 -0
- package/dist/index-DUCaDjfd.d.ts +240 -0
- package/dist/index-Di3sC6UF.d.ts +91 -0
- package/dist/index-DnbdiagK.d.ts +171 -0
- package/dist/index-DpzpArsi2.d.ts +614 -0
- package/dist/index-Dsn2VLZv.d.ts +238 -0
- package/dist/index-FZvrMcIo2.d.ts +158 -0
- package/dist/index-J1qdw9mL.d.ts +188 -0
- package/dist/index-Vj9ZzRh0.d.ts +66 -0
- package/dist/index-bAud6rG22.d.ts +278 -0
- package/dist/index-lOWfpkxK.d.ts +118 -0
- package/dist/index-yK3Hayg_.d.ts +40 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +195 -348
- package/dist/input-BeWEb-jD.d.ts +122 -0
- package/dist/input-group-DpGSsAZy.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/portal-provider-4AHCxYE6.d.ts +51 -0
- package/dist/primitives/accordion.d.ts +1 -0
- package/dist/primitives/accordion.js +2 -5
- package/dist/primitives/alert-dialog.d.ts +1 -0
- package/dist/primitives/alert-dialog.js +2 -5
- package/dist/primitives/autocomplete.d.ts +1 -0
- package/dist/primitives/autocomplete.js +2 -5
- package/dist/primitives/avatar.d.ts +1 -0
- package/dist/primitives/avatar.js +2 -5
- package/dist/primitives/button.d.ts +1 -0
- package/dist/primitives/button.js +2 -5
- package/dist/primitives/checkbox-group.d.ts +1 -0
- package/dist/primitives/checkbox-group.js +2 -5
- package/dist/primitives/checkbox.d.ts +1 -0
- package/dist/primitives/checkbox.js +2 -5
- package/dist/primitives/collapsible.d.ts +1 -0
- package/dist/primitives/collapsible.js +2 -5
- package/dist/primitives/combobox.d.ts +1 -0
- package/dist/primitives/combobox.js +2 -5
- package/dist/primitives/context-menu.d.ts +1 -0
- package/dist/primitives/context-menu.js +2 -5
- package/dist/primitives/csp-provider.d.ts +1 -0
- package/dist/primitives/csp-provider.js +2 -5
- package/dist/primitives/dialog.d.ts +1 -0
- package/dist/primitives/dialog.js +2 -5
- package/dist/primitives/direction-provider.d.ts +1 -0
- package/dist/primitives/direction-provider.js +3 -6
- package/dist/primitives/drawer.d.ts +1 -0
- package/dist/primitives/drawer.js +2 -5
- package/dist/primitives/field.d.ts +1 -0
- package/dist/primitives/field.js +2 -5
- package/dist/primitives/fieldset.d.ts +1 -0
- package/dist/primitives/fieldset.js +2 -5
- package/dist/primitives/form.d.ts +1 -0
- package/dist/primitives/form.js +2 -5
- package/dist/primitives/input.d.ts +1 -0
- package/dist/primitives/input.js +2 -5
- package/dist/primitives/menu.d.ts +1 -0
- package/dist/primitives/menu.js +2 -5
- package/dist/primitives/menubar.d.ts +1 -0
- package/dist/primitives/menubar.js +2 -5
- package/dist/primitives/meter.d.ts +1 -0
- package/dist/primitives/meter.js +2 -5
- package/dist/primitives/navigation-menu.d.ts +1 -0
- package/dist/primitives/navigation-menu.js +2 -5
- package/dist/primitives/number-field.d.ts +1 -0
- package/dist/primitives/number-field.js +2 -5
- package/dist/primitives/otp-field.d.ts +3 -0
- package/dist/primitives/otp-field.js +2 -6
- package/dist/primitives/popover.d.ts +1 -0
- package/dist/primitives/popover.js +2 -5
- package/dist/primitives/preview-card.d.ts +1 -0
- package/dist/primitives/preview-card.js +2 -5
- package/dist/primitives/progress.d.ts +1 -0
- package/dist/primitives/progress.js +2 -5
- package/dist/primitives/radio-group.d.ts +1 -0
- package/dist/primitives/radio-group.js +2 -5
- package/dist/primitives/radio.d.ts +1 -0
- package/dist/primitives/radio.js +2 -5
- package/dist/primitives/scroll-area.d.ts +1 -0
- package/dist/primitives/scroll-area.js +2 -5
- package/dist/primitives/select.d.ts +1 -0
- package/dist/primitives/select.js +2 -5
- package/dist/primitives/separator.d.ts +1 -0
- package/dist/primitives/separator.js +2 -5
- package/dist/primitives/slider.d.ts +1 -0
- package/dist/primitives/slider.js +2 -5
- package/dist/primitives/switch.d.ts +1 -0
- package/dist/primitives/switch.js +2 -5
- package/dist/primitives/tabs.d.ts +1 -0
- package/dist/primitives/tabs.js +2 -5
- package/dist/primitives/toast.d.ts +1 -0
- package/dist/primitives/toast.js +2 -5
- package/dist/primitives/toggle-group.d.ts +1 -0
- package/dist/primitives/toggle-group.js +2 -5
- package/dist/primitives/toggle.d.ts +1 -0
- package/dist/primitives/toggle.js +2 -5
- package/dist/primitives/toolbar.d.ts +1 -0
- package/dist/primitives/toolbar.js +2 -5
- package/dist/primitives/tooltip.d.ts +1 -0
- package/dist/primitives/tooltip.js +2 -5
- package/dist/primitives.d.ts +42 -0
- package/dist/primitives.js +42 -46
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +0 -1
- package/dist/scripts/theme-generator/config.d.ts +7 -5
- package/dist/scripts/theme-generator/config.js +475 -627
- package/dist/scripts/theme-generator/types.d.ts +51 -49
- package/dist/scripts/theme-generator/types.js +0 -1
- package/dist/styles/kumo-binding.css +35 -8
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +3 -5
- package/dist/styles/theme-fedramp.css +7 -15
- package/dist/styles/theme-kumo.css +101 -56
- package/dist/tooltip-BuCo6Ki4.d.ts +105 -0
- package/dist/types-C402rKiz.d.ts +132 -0
- package/dist/types-CdzJnnIl.d.ts +193 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +5 -12
- package/package.json +231 -232
- package/scripts/component-registry/index.test.ts +1 -1
- package/scripts/component-registry/metadata.ts +3 -4
- package/scripts/component-registry/props-filter.ts +3 -1
- package/scripts/component-registry/variant-parser.ts +1 -0
- package/scripts/theme-generator/config.ts +21 -22
- package/scripts/theme-generator/generate-css.test.ts +1 -1
- package/dist/ai/schemas.d.ts.map +0 -1
- package/dist/ai/schemas.js.map +0 -1
- package/dist/catalog.js.map +0 -1
- package/dist/chunks/Maps-imwfwgb7do9lr3i5.js +0 -2448
- package/dist/chunks/Maps-imwfwgb7do9lr3i5.js.map +0 -1
- package/dist/chunks/autocomplete-a4gvspveibfuod24.js +0 -193
- package/dist/chunks/autocomplete-a4gvspveibfuod24.js.map +0 -1
- package/dist/chunks/badge-dfc1r37osagi3rs4.js +0 -163
- package/dist/chunks/badge-dfc1r37osagi3rs4.js.map +0 -1
- package/dist/chunks/banner-j52y8l13puk7dybi.js +0 -120
- package/dist/chunks/banner-j52y8l13puk7dybi.js.map +0 -1
- package/dist/chunks/bash-g5z23u7me5rx7bzt.js +0 -15
- package/dist/chunks/bash-g5z23u7me5rx7bzt.js.map +0 -1
- package/dist/chunks/breadcrumbs-js59m7m57bdsveew.js +0 -169
- package/dist/chunks/breadcrumbs-js59m7m57bdsveew.js.map +0 -1
- package/dist/chunks/button-ebfdg9mkhojue36n.js +0 -237
- package/dist/chunks/button-ebfdg9mkhojue36n.js.map +0 -1
- package/dist/chunks/checkbox-k355pnfisqt0h4eg.js +0 -216
- package/dist/chunks/checkbox-k355pnfisqt0h4eg.js.map +0 -1
- package/dist/chunks/clipboard-text-isb05zkg2aox0tp6.js +0 -191
- package/dist/chunks/clipboard-text-isb05zkg2aox0tp6.js.map +0 -1
- package/dist/chunks/cloudflare-logo-fiuocxdxqrxawjfv.js +0 -175
- package/dist/chunks/cloudflare-logo-fiuocxdxqrxawjfv.js.map +0 -1
- package/dist/chunks/cn-bo7ya7641lkickbt.js +0 -22
- package/dist/chunks/cn-bo7ya7641lkickbt.js.map +0 -1
- package/dist/chunks/code-pbkfdfat0yilg6dx.js +0 -61
- package/dist/chunks/code-pbkfdfat0yilg6dx.js.map +0 -1
- package/dist/chunks/collapsible-f9hgtc1u6xvqrgt8.js +0 -76
- package/dist/chunks/collapsible-f9hgtc1u6xvqrgt8.js.map +0 -1
- package/dist/chunks/combobox-hc9wi9nwsyyli8ur.js +0 -408
- package/dist/chunks/combobox-hc9wi9nwsyyli8ur.js.map +0 -1
- package/dist/chunks/command-palette-c03zze4ayuytwxjg.js +0 -403
- package/dist/chunks/command-palette-c03zze4ayuytwxjg.js.map +0 -1
- package/dist/chunks/core-dyku7qctyc40nnhh.js +0 -5464
- package/dist/chunks/core-dyku7qctyc40nnhh.js.map +0 -1
- package/dist/chunks/css-d1mi3wy1sl3fzekh.js +0 -8
- package/dist/chunks/css-d1mi3wy1sl3fzekh.js.map +0 -1
- package/dist/chunks/date-picker-bffp889exjixmgz3.js +0 -2921
- package/dist/chunks/date-picker-bffp889exjixmgz3.js.map +0 -1
- package/dist/chunks/date-range-picker-oks2r14lbbukd545.js +0 -408
- package/dist/chunks/date-range-picker-oks2r14lbbukd545.js.map +0 -1
- package/dist/chunks/dialog-ovhmzfuppr5xix0e.js +0 -134
- package/dist/chunks/dialog-ovhmzfuppr5xix0e.js.map +0 -1
- package/dist/chunks/diff-cpj1h9lg0bw716mj.js +0 -8
- package/dist/chunks/diff-cpj1h9lg0bw716mj.js.map +0 -1
- package/dist/chunks/dropdown-iey8f344rd5dgahz.js +0 -321
- package/dist/chunks/dropdown-iey8f344rd5dgahz.js.map +0 -1
- package/dist/chunks/empty-k83r53jh5utqvv7w.js +0 -94
- package/dist/chunks/empty-k83r53jh5utqvv7w.js.map +0 -1
- package/dist/chunks/engine-javascript-hi1kqifa6nkcridk.js +0 -2638
- package/dist/chunks/engine-javascript-hi1kqifa6nkcridk.js.map +0 -1
- package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js +0 -295
- package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js.map +0 -1
- package/dist/chunks/field-bmglk138wa8bf3ei.js +0 -77
- package/dist/chunks/field-bmglk138wa8bf3ei.js.map +0 -1
- package/dist/chunks/github-light-ulev8flhimfg79ob.js +0 -6
- package/dist/chunks/github-light-ulev8flhimfg79ob.js.map +0 -1
- package/dist/chunks/graphql-ft2h47erta7isqn4.js +0 -16
- package/dist/chunks/graphql-ft2h47erta7isqn4.js.map +0 -1
- package/dist/chunks/grid-jze04557ljywg3uc.js +0 -128
- package/dist/chunks/grid-jze04557ljywg3uc.js.map +0 -1
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +0 -8
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +0 -1
- package/dist/chunks/html-kl304jmqj4jxj777.js +0 -12
- package/dist/chunks/html-kl304jmqj4jxj777.js.map +0 -1
- package/dist/chunks/input-area-sg518xu4pyg4m0km.js +0 -144
- package/dist/chunks/input-area-sg518xu4pyg4m0km.js.map +0 -1
- package/dist/chunks/input-ckl5misj0jd9cu5r.js +0 -130
- package/dist/chunks/input-ckl5misj0jd9cu5r.js.map +0 -1
- package/dist/chunks/input-group-bflx1m6ki55e99vf.js +0 -505
- package/dist/chunks/input-group-bflx1m6ki55e99vf.js.map +0 -1
- package/dist/chunks/javascript-hhx3avh9uv2o27ay.js +0 -8
- package/dist/chunks/javascript-hhx3avh9uv2o27ay.js.map +0 -1
- package/dist/chunks/json-jovp9qemdkp5cziz.js +0 -8
- package/dist/chunks/json-jovp9qemdkp5cziz.js.map +0 -1
- package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js +0 -8
- package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js.map +0 -1
- package/dist/chunks/jsx-ij885l2li2lzfoss.js +0 -8
- package/dist/chunks/jsx-ij885l2li2lzfoss.js.map +0 -1
- package/dist/chunks/label-i1xbmg8y1n0tbtkx.js +0 -68
- package/dist/chunks/label-i1xbmg8y1n0tbtkx.js.map +0 -1
- package/dist/chunks/layer-card-m6h85dpadvee39h2.js +0 -47
- package/dist/chunks/layer-card-m6h85dpadvee39h2.js.map +0 -1
- package/dist/chunks/link-j93fl5m8zrcfivsr.js +0 -95
- package/dist/chunks/link-j93fl5m8zrcfivsr.js.map +0 -1
- package/dist/chunks/link-provider-mn2voeohon7cj9o4.js +0 -22
- package/dist/chunks/link-provider-mn2voeohon7cj9o4.js.map +0 -1
- package/dist/chunks/loader-g8a6j76ue5nq0lr8.js +0 -109
- package/dist/chunks/loader-g8a6j76ue5nq0lr8.js.map +0 -1
- package/dist/chunks/markdown-n2vyyq7l68fy32wc.js +0 -8
- package/dist/chunks/markdown-n2vyyq7l68fy32wc.js.map +0 -1
- package/dist/chunks/menubar-opzxfzylaatfz4nv.js +0 -98
- package/dist/chunks/menubar-opzxfzylaatfz4nv.js.map +0 -1
- package/dist/chunks/meter-6br6z5ekw41trxeh.js +0 -51
- package/dist/chunks/meter-6br6z5ekw41trxeh.js.map +0 -1
- package/dist/chunks/pagination-j33ntwqmm9qskfgv.js +0 -266
- package/dist/chunks/pagination-j33ntwqmm9qskfgv.js.map +0 -1
- package/dist/chunks/popover-cqdmpp8i4hg8gzzx.js +0 -181
- package/dist/chunks/popover-cqdmpp8i4hg8gzzx.js.map +0 -1
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js +0 -18
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js.map +0 -1
- package/dist/chunks/python-gg755pb8oe9ra1d1.js +0 -8
- package/dist/chunks/python-gg755pb8oe9ra1d1.js.map +0 -1
- package/dist/chunks/radio-ejey7i6r4tq314av.js +0 -226
- package/dist/chunks/radio-ejey7i6r4tq314av.js.map +0 -1
- package/dist/chunks/resolve-variant-gw6eh7fa4st8ej7m.js +0 -11
- package/dist/chunks/resolve-variant-gw6eh7fa4st8ej7m.js.map +0 -1
- package/dist/chunks/select-p8adn2tnpom25hpl.js +0 -237
- package/dist/chunks/select-p8adn2tnpom25hpl.js.map +0 -1
- package/dist/chunks/sensitive-input-it1hsswlccq3u7g6.js +0 -273
- package/dist/chunks/sensitive-input-it1hsswlccq3u7g6.js.map +0 -1
- package/dist/chunks/sidebar-7whsl7qwrw5b6ip8.js +0 -1144
- package/dist/chunks/sidebar-7whsl7qwrw5b6ip8.js.map +0 -1
- package/dist/chunks/skeleton-line-omxgxia23vpav94x.js +0 -33
- package/dist/chunks/skeleton-line-omxgxia23vpav94x.js.map +0 -1
- package/dist/chunks/sql-ovukp5mrfunfk5tv.js +0 -8
- package/dist/chunks/sql-ovukp5mrfunfk5tv.js.map +0 -1
- package/dist/chunks/surface-gc2gblserrxcb1eg.js +0 -29
- package/dist/chunks/surface-gc2gblserrxcb1eg.js.map +0 -1
- package/dist/chunks/switch-ljsq915e0l1a5mjd.js +0 -256
- package/dist/chunks/switch-ljsq915e0l1a5mjd.js.map +0 -1
- package/dist/chunks/table-of-contents-cghjqyk43nj5zmlw.js +0 -106
- package/dist/chunks/table-of-contents-cghjqyk43nj5zmlw.js.map +0 -1
- package/dist/chunks/table-ojjjeqszmt9jgnug.js +0 -208
- package/dist/chunks/table-ojjjeqszmt9jgnug.js.map +0 -1
- package/dist/chunks/tabs-kemdy19kfesj2xjr.js +0 -177
- package/dist/chunks/tabs-kemdy19kfesj2xjr.js.map +0 -1
- package/dist/chunks/text-oqp48b9m5u6t62b4.js +0 -103
- package/dist/chunks/text-oqp48b9m5u6t62b4.js.map +0 -1
- package/dist/chunks/toast-ldj9zi940w83ub90.js +0 -386
- package/dist/chunks/toast-ldj9zi940w83ub90.js.map +0 -1
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js +0 -8
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js.map +0 -1
- package/dist/chunks/toolbar-lmylyrod70sn0q4i.js +0 -172
- package/dist/chunks/toolbar-lmylyrod70sn0q4i.js.map +0 -1
- package/dist/chunks/tooltip-mooldq78tg77ekvv.js +0 -103
- package/dist/chunks/tooltip-mooldq78tg77ekvv.js.map +0 -1
- package/dist/chunks/tsx-ehy8lrzet6v54zur.js +0 -8
- package/dist/chunks/tsx-ehy8lrzet6v54zur.js.map +0 -1
- package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js +0 -8
- package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js.map +0 -1
- package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js +0 -25027
- package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js.map +0 -1
- package/dist/chunks/vendor-floating-ui-k1zjlb8fkwtcw4k5.js +0 -1310
- package/dist/chunks/vendor-floating-ui-k1zjlb8fkwtcw4k5.js.map +0 -1
- package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js +0 -3252
- package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js.map +0 -1
- package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js +0 -217
- package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js.map +0 -1
- package/dist/chunks/vesper-ebfu9ns65f2v830s.js +0 -6
- package/dist/chunks/vesper-ebfu9ns65f2v830s.js.map +0 -1
- package/dist/chunks/wasm-oj22f8usru9h7dzg.js +0 -9
- package/dist/chunks/wasm-oj22f8usru9h7dzg.js.map +0 -1
- package/dist/chunks/yaml-e2v22lr79tss2brj.js +0 -8
- package/dist/chunks/yaml-e2v22lr79tss2brj.js.map +0 -1
- package/dist/code/server.js.map +0 -1
- package/dist/code.js.map +0 -1
- package/dist/components/autocomplete.js.map +0 -1
- package/dist/components/badge.js.map +0 -1
- package/dist/components/banner.js.map +0 -1
- package/dist/components/breadcrumbs.js.map +0 -1
- package/dist/components/button.js.map +0 -1
- package/dist/components/chart.js.map +0 -1
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/clipboard-text.js.map +0 -1
- package/dist/components/cloudflare-logo.js.map +0 -1
- package/dist/components/code.js.map +0 -1
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/command-palette.js.map +0 -1
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/date-range-picker.js.map +0 -1
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/empty.js.map +0 -1
- package/dist/components/field.js.map +0 -1
- package/dist/components/flow.js.map +0 -1
- package/dist/components/grid.js.map +0 -1
- package/dist/components/input-group.js.map +0 -1
- package/dist/components/input.js.map +0 -1
- package/dist/components/label.js.map +0 -1
- package/dist/components/layer-card.js.map +0 -1
- package/dist/components/link.js.map +0 -1
- package/dist/components/loader.js.map +0 -1
- package/dist/components/menubar.js.map +0 -1
- package/dist/components/meter.js.map +0 -1
- package/dist/components/pagination.js.map +0 -1
- package/dist/components/popover.js.map +0 -1
- package/dist/components/radio.js.map +0 -1
- package/dist/components/select.js.map +0 -1
- package/dist/components/sensitive-input.js.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/surface.js.map +0 -1
- package/dist/components/switch.js.map +0 -1
- package/dist/components/table-of-contents.js.map +0 -1
- package/dist/components/table.js.map +0 -1
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/text.js.map +0 -1
- package/dist/components/toast.js.map +0 -1
- package/dist/components/toolbar.js.map +0 -1
- package/dist/components/tooltip.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/primitives/accordion.js.map +0 -1
- package/dist/primitives/alert-dialog.js.map +0 -1
- package/dist/primitives/autocomplete.js.map +0 -1
- package/dist/primitives/avatar.js.map +0 -1
- package/dist/primitives/button.js.map +0 -1
- package/dist/primitives/checkbox-group.js.map +0 -1
- package/dist/primitives/checkbox.js.map +0 -1
- package/dist/primitives/collapsible.js.map +0 -1
- package/dist/primitives/combobox.js.map +0 -1
- package/dist/primitives/context-menu.js.map +0 -1
- package/dist/primitives/csp-provider.js.map +0 -1
- package/dist/primitives/dialog.js.map +0 -1
- package/dist/primitives/direction-provider.js.map +0 -1
- package/dist/primitives/drawer.js.map +0 -1
- package/dist/primitives/field.js.map +0 -1
- package/dist/primitives/fieldset.js.map +0 -1
- package/dist/primitives/form.js.map +0 -1
- package/dist/primitives/input.js.map +0 -1
- package/dist/primitives/menu.js.map +0 -1
- package/dist/primitives/menubar.js.map +0 -1
- package/dist/primitives/meter.js.map +0 -1
- package/dist/primitives/navigation-menu.js.map +0 -1
- package/dist/primitives/number-field.js.map +0 -1
- package/dist/primitives/otp-field.js.map +0 -1
- package/dist/primitives/popover.js.map +0 -1
- package/dist/primitives/preview-card.js.map +0 -1
- package/dist/primitives/progress.js.map +0 -1
- package/dist/primitives/radio-group.js.map +0 -1
- package/dist/primitives/radio.js.map +0 -1
- package/dist/primitives/scroll-area.js.map +0 -1
- package/dist/primitives/select.js.map +0 -1
- package/dist/primitives/separator.js.map +0 -1
- package/dist/primitives/slider.js.map +0 -1
- package/dist/primitives/switch.js.map +0 -1
- package/dist/primitives/tabs.js.map +0 -1
- package/dist/primitives/toast.js.map +0 -1
- package/dist/primitives/toggle-group.js.map +0 -1
- package/dist/primitives/toggle.js.map +0 -1
- package/dist/primitives/toolbar.js.map +0 -1
- package/dist/primitives/tooltip.js.map +0 -1
- package/dist/primitives.js.map +0 -1
- package/dist/registry.js.map +0 -1
- package/dist/scripts/theme-generator/config.d.ts.map +0 -1
- package/dist/scripts/theme-generator/config.js.map +0 -1
- package/dist/scripts/theme-generator/generate-css.d.ts +0 -31
- package/dist/scripts/theme-generator/generate-css.d.ts.map +0 -1
- package/dist/scripts/theme-generator/index.d.ts +0 -13
- package/dist/scripts/theme-generator/index.d.ts.map +0 -1
- package/dist/scripts/theme-generator/migrate.d.ts +0 -56
- package/dist/scripts/theme-generator/migrate.d.ts.map +0 -1
- package/dist/scripts/theme-generator/types.d.ts.map +0 -1
- package/dist/scripts/theme-generator/types.js.map +0 -1
- package/dist/src/blocks/delete-resource/delete-resource.d.ts +0 -46
- package/dist/src/blocks/delete-resource/delete-resource.d.ts.map +0 -1
- package/dist/src/blocks/delete-resource/index.d.ts +0 -2
- package/dist/src/blocks/delete-resource/index.d.ts.map +0 -1
- package/dist/src/blocks/page-header/index.d.ts +0 -2
- package/dist/src/blocks/page-header/index.d.ts.map +0 -1
- package/dist/src/blocks/page-header/page-header.d.ts +0 -38
- package/dist/src/blocks/page-header/page-header.d.ts.map +0 -1
- package/dist/src/blocks/resource-list/index.d.ts +0 -2
- package/dist/src/blocks/resource-list/index.d.ts.map +0 -1
- package/dist/src/blocks/resource-list/resource-list.d.ts +0 -18
- package/dist/src/blocks/resource-list/resource-list.d.ts.map +0 -1
- package/dist/src/catalog/catalog.d.ts +0 -75
- package/dist/src/catalog/catalog.d.ts.map +0 -1
- package/dist/src/catalog/data.d.ts +0 -44
- package/dist/src/catalog/data.d.ts.map +0 -1
- package/dist/src/catalog/index.d.ts +0 -39
- package/dist/src/catalog/index.d.ts.map +0 -1
- package/dist/src/catalog/types.d.ts +0 -226
- package/dist/src/catalog/types.d.ts.map +0 -1
- package/dist/src/catalog/visibility.d.ts +0 -37
- package/dist/src/catalog/visibility.d.ts.map +0 -1
- package/dist/src/code/code-highlighted.d.ts +0 -32
- package/dist/src/code/code-highlighted.d.ts.map +0 -1
- package/dist/src/code/context.d.ts +0 -16
- package/dist/src/code/context.d.ts.map +0 -1
- package/dist/src/code/index.d.ts +0 -32
- package/dist/src/code/index.d.ts.map +0 -1
- package/dist/src/code/provider.d.ts +0 -13
- package/dist/src/code/provider.d.ts.map +0 -1
- package/dist/src/code/server.d.ts +0 -95
- package/dist/src/code/server.d.ts.map +0 -1
- package/dist/src/code/types.d.ts +0 -130
- package/dist/src/code/types.d.ts.map +0 -1
- package/dist/src/code/use-shiki-highlighter.d.ts +0 -36
- package/dist/src/code/use-shiki-highlighter.d.ts.map +0 -1
- package/dist/src/command-line/build-cli.d.ts +0 -7
- package/dist/src/command-line/build-cli.d.ts.map +0 -1
- package/dist/src/command-line/cli.d.ts +0 -13
- package/dist/src/command-line/cli.d.ts.map +0 -1
- package/dist/src/command-line/commands/add.d.ts +0 -10
- package/dist/src/command-line/commands/add.d.ts.map +0 -1
- package/dist/src/command-line/commands/ai.d.ts +0 -10
- package/dist/src/command-line/commands/ai.d.ts.map +0 -1
- package/dist/src/command-line/commands/blocks.d.ts +0 -10
- package/dist/src/command-line/commands/blocks.d.ts.map +0 -1
- package/dist/src/command-line/commands/doc.d.ts +0 -14
- package/dist/src/command-line/commands/doc.d.ts.map +0 -1
- package/dist/src/command-line/commands/init.d.ts +0 -18
- package/dist/src/command-line/commands/init.d.ts.map +0 -1
- package/dist/src/command-line/commands/ls.d.ts +0 -10
- package/dist/src/command-line/commands/ls.d.ts.map +0 -1
- package/dist/src/command-line/commands/migrate.d.ts +0 -10
- package/dist/src/command-line/commands/migrate.d.ts.map +0 -1
- package/dist/src/command-line/utils/config.d.ts +0 -42
- package/dist/src/command-line/utils/config.d.ts.map +0 -1
- package/dist/src/command-line/utils/transformer.d.ts +0 -21
- package/dist/src/command-line/utils/transformer.d.ts.map +0 -1
- package/dist/src/components/autocomplete/autocomplete.d.ts +0 -181
- package/dist/src/components/autocomplete/autocomplete.d.ts.map +0 -1
- package/dist/src/components/autocomplete/index.d.ts +0 -3
- package/dist/src/components/autocomplete/index.d.ts.map +0 -1
- package/dist/src/components/badge/badge.d.ts +0 -180
- package/dist/src/components/badge/badge.d.ts.map +0 -1
- package/dist/src/components/badge/index.d.ts +0 -2
- package/dist/src/components/badge/index.d.ts.map +0 -1
- package/dist/src/components/banner/banner.d.ts +0 -106
- package/dist/src/components/banner/banner.d.ts.map +0 -1
- package/dist/src/components/banner/index.d.ts +0 -2
- package/dist/src/components/banner/index.d.ts.map +0 -1
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts +0 -78
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +0 -1
- package/dist/src/components/breadcrumbs/index.d.ts +0 -2
- package/dist/src/components/breadcrumbs/index.d.ts.map +0 -1
- package/dist/src/components/button/button.d.ts +0 -214
- package/dist/src/components/button/button.d.ts.map +0 -1
- package/dist/src/components/button/index.d.ts +0 -2
- package/dist/src/components/button/index.d.ts.map +0 -1
- package/dist/src/components/chart/Color.d.ts +0 -107
- package/dist/src/components/chart/Color.d.ts.map +0 -1
- package/dist/src/components/chart/EChart.d.ts +0 -166
- package/dist/src/components/chart/EChart.d.ts.map +0 -1
- package/dist/src/components/chart/Legend.d.ts +0 -51
- package/dist/src/components/chart/Legend.d.ts.map +0 -1
- package/dist/src/components/chart/Maps.d.ts +0 -211
- package/dist/src/components/chart/Maps.d.ts.map +0 -1
- package/dist/src/components/chart/SankeyChart.d.ts +0 -98
- package/dist/src/components/chart/SankeyChart.d.ts.map +0 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts +0 -189
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +0 -1
- package/dist/src/components/chart/index.d.ts +0 -7
- package/dist/src/components/chart/index.d.ts.map +0 -1
- package/dist/src/components/chart/timeseries-markers.d.ts +0 -107
- package/dist/src/components/chart/timeseries-markers.d.ts.map +0 -1
- package/dist/src/components/chart/timeseries-thresholds.d.ts +0 -61
- package/dist/src/components/chart/timeseries-thresholds.d.ts.map +0 -1
- package/dist/src/components/chart/timeseries-tooltip.d.ts +0 -28
- package/dist/src/components/chart/timeseries-tooltip.d.ts.map +0 -1
- package/dist/src/components/chart/tooltip-utils.d.ts +0 -4
- package/dist/src/components/chart/tooltip-utils.d.ts.map +0 -1
- package/dist/src/components/checkbox/checkbox.d.ts +0 -197
- package/dist/src/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/src/components/checkbox/index.d.ts +0 -2
- package/dist/src/components/checkbox/index.d.ts.map +0 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts +0 -88
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +0 -1
- package/dist/src/components/clipboard-text/index.d.ts +0 -2
- package/dist/src/components/clipboard-text/index.d.ts.map +0 -1
- package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts +0 -133
- package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts.map +0 -1
- package/dist/src/components/cloudflare-logo/index.d.ts +0 -2
- package/dist/src/components/cloudflare-logo/index.d.ts.map +0 -1
- package/dist/src/components/code/code.d.ts +0 -189
- package/dist/src/components/code/code.d.ts.map +0 -1
- package/dist/src/components/code/index.d.ts +0 -4
- package/dist/src/components/code/index.d.ts.map +0 -1
- package/dist/src/components/collapsible/collapsible.d.ts +0 -109
- package/dist/src/components/collapsible/collapsible.d.ts.map +0 -1
- package/dist/src/components/collapsible/index.d.ts +0 -2
- package/dist/src/components/collapsible/index.d.ts.map +0 -1
- package/dist/src/components/combobox/combobox.d.ts +0 -246
- package/dist/src/components/combobox/combobox.d.ts.map +0 -1
- package/dist/src/components/combobox/index.d.ts +0 -3
- package/dist/src/components/combobox/index.d.ts.map +0 -1
- package/dist/src/components/command-palette/command-palette.d.ts +0 -258
- package/dist/src/components/command-palette/command-palette.d.ts.map +0 -1
- package/dist/src/components/command-palette/index.d.ts +0 -3
- package/dist/src/components/command-palette/index.d.ts.map +0 -1
- package/dist/src/components/command-palette/types.d.ts +0 -168
- package/dist/src/components/command-palette/types.d.ts.map +0 -1
- package/dist/src/components/date-picker/date-picker.d.ts +0 -65
- package/dist/src/components/date-picker/date-picker.d.ts.map +0 -1
- package/dist/src/components/date-picker/index.d.ts +0 -4
- package/dist/src/components/date-picker/index.d.ts.map +0 -1
- package/dist/src/components/date-range-picker/date-range-picker.d.ts +0 -125
- package/dist/src/components/date-range-picker/date-range-picker.d.ts.map +0 -1
- package/dist/src/components/date-range-picker/index.d.ts +0 -5
- package/dist/src/components/date-range-picker/index.d.ts.map +0 -1
- package/dist/src/components/dialog/dialog.d.ts +0 -242
- package/dist/src/components/dialog/dialog.d.ts.map +0 -1
- package/dist/src/components/dialog/index.d.ts +0 -2
- package/dist/src/components/dialog/index.d.ts.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -116
- package/dist/src/components/dropdown/dropdown.d.ts.map +0 -1
- package/dist/src/components/dropdown/index.d.ts +0 -2
- package/dist/src/components/dropdown/index.d.ts.map +0 -1
- package/dist/src/components/empty/empty.d.ts +0 -69
- package/dist/src/components/empty/empty.d.ts.map +0 -1
- package/dist/src/components/empty/index.d.ts +0 -2
- package/dist/src/components/empty/index.d.ts.map +0 -1
- package/dist/src/components/field/field.d.ts +0 -89
- package/dist/src/components/field/field.d.ts.map +0 -1
- package/dist/src/components/field/index.d.ts +0 -2
- package/dist/src/components/field/index.d.ts.map +0 -1
- package/dist/src/components/flow/connectors.d.ts +0 -59
- package/dist/src/components/flow/connectors.d.ts.map +0 -1
- package/dist/src/components/flow/diagram.d.ts +0 -105
- package/dist/src/components/flow/diagram.d.ts.map +0 -1
- package/dist/src/components/flow/flow-layout.d.ts +0 -77
- package/dist/src/components/flow/flow-layout.d.ts.map +0 -1
- package/dist/src/components/flow/index.d.ts +0 -26
- package/dist/src/components/flow/index.d.ts.map +0 -1
- package/dist/src/components/flow/node.d.ts +0 -61
- package/dist/src/components/flow/node.d.ts.map +0 -1
- package/dist/src/components/flow/parallel.d.ts +0 -9
- package/dist/src/components/flow/parallel.d.ts.map +0 -1
- package/dist/src/components/flow/use-children.d.ts +0 -27
- package/dist/src/components/flow/use-children.d.ts.map +0 -1
- package/dist/src/components/grid/grid.d.ts +0 -135
- package/dist/src/components/grid/grid.d.ts.map +0 -1
- package/dist/src/components/grid/index.d.ts +0 -2
- package/dist/src/components/grid/index.d.ts.map +0 -1
- package/dist/src/components/input/index.d.ts +0 -19
- package/dist/src/components/input/index.d.ts.map +0 -1
- package/dist/src/components/input/input-area.d.ts +0 -83
- package/dist/src/components/input/input-area.d.ts.map +0 -1
- package/dist/src/components/input/input.d.ts +0 -175
- package/dist/src/components/input/input.d.ts.map +0 -1
- package/dist/src/components/input-group/context.d.ts +0 -96
- package/dist/src/components/input-group/context.d.ts.map +0 -1
- package/dist/src/components/input-group/index.d.ts +0 -2
- package/dist/src/components/input-group/index.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-addon.d.ts +0 -15
- package/dist/src/components/input-group/input-group-addon.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-button.d.ts +0 -36
- package/dist/src/components/input-group/input-group-button.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-input.d.ts +0 -9
- package/dist/src/components/input-group/input-group-input.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-suffix.d.ts +0 -13
- package/dist/src/components/input-group/input-group-suffix.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group.d.ts +0 -43
- package/dist/src/components/input-group/input-group.d.ts.map +0 -1
- package/dist/src/components/label/index.d.ts +0 -2
- package/dist/src/components/label/index.d.ts.map +0 -1
- package/dist/src/components/label/label.d.ts +0 -67
- package/dist/src/components/label/label.d.ts.map +0 -1
- package/dist/src/components/layer-card/index.d.ts +0 -2
- package/dist/src/components/layer-card/index.d.ts.map +0 -1
- package/dist/src/components/layer-card/layer-card.d.ts +0 -60
- package/dist/src/components/layer-card/layer-card.d.ts.map +0 -1
- package/dist/src/components/link/index.d.ts +0 -2
- package/dist/src/components/link/index.d.ts.map +0 -1
- package/dist/src/components/link/link.d.ts +0 -66
- package/dist/src/components/link/link.d.ts.map +0 -1
- package/dist/src/components/loader/index.d.ts +0 -3
- package/dist/src/components/loader/index.d.ts.map +0 -1
- package/dist/src/components/loader/loader.d.ts +0 -70
- package/dist/src/components/loader/loader.d.ts.map +0 -1
- package/dist/src/components/loader/skeleton-line.d.ts +0 -11
- package/dist/src/components/loader/skeleton-line.d.ts.map +0 -1
- package/dist/src/components/menubar/index.d.ts +0 -3
- package/dist/src/components/menubar/index.d.ts.map +0 -1
- package/dist/src/components/menubar/menubar.d.ts +0 -66
- package/dist/src/components/menubar/menubar.d.ts.map +0 -1
- package/dist/src/components/menubar/use-menu-navigation.d.ts +0 -8
- package/dist/src/components/menubar/use-menu-navigation.d.ts.map +0 -1
- package/dist/src/components/meter/index.d.ts +0 -2
- package/dist/src/components/meter/index.d.ts.map +0 -1
- package/dist/src/components/meter/meter.d.ts +0 -44
- package/dist/src/components/meter/meter.d.ts.map +0 -1
- package/dist/src/components/pagination/index.d.ts +0 -2
- package/dist/src/components/pagination/index.d.ts.map +0 -1
- package/dist/src/components/pagination/pagination.d.ts +0 -241
- package/dist/src/components/pagination/pagination.d.ts.map +0 -1
- package/dist/src/components/popover/index.d.ts +0 -3
- package/dist/src/components/popover/index.d.ts.map +0 -1
- package/dist/src/components/popover/popover.d.ts +0 -178
- package/dist/src/components/popover/popover.d.ts.map +0 -1
- package/dist/src/components/radio/index.d.ts +0 -2
- package/dist/src/components/radio/index.d.ts.map +0 -1
- package/dist/src/components/radio/radio.d.ts +0 -277
- package/dist/src/components/radio/radio.d.ts.map +0 -1
- package/dist/src/components/radio/radio.type-spec.d.ts +0 -12
- package/dist/src/components/radio/radio.type-spec.d.ts.map +0 -1
- package/dist/src/components/select/index.d.ts +0 -2
- package/dist/src/components/select/index.d.ts.map +0 -1
- package/dist/src/components/select/select.d.ts +0 -288
- package/dist/src/components/select/select.d.ts.map +0 -1
- package/dist/src/components/sensitive-input/index.d.ts +0 -2
- package/dist/src/components/sensitive-input/index.d.ts.map +0 -1
- package/dist/src/components/sensitive-input/sensitive-input.d.ts +0 -94
- package/dist/src/components/sensitive-input/sensitive-input.d.ts.map +0 -1
- package/dist/src/components/sidebar/index.d.ts +0 -2
- package/dist/src/components/sidebar/index.d.ts.map +0 -1
- package/dist/src/components/sidebar/sidebar.d.ts +0 -583
- package/dist/src/components/sidebar/sidebar.d.ts.map +0 -1
- package/dist/src/components/surface/index.d.ts +0 -5
- package/dist/src/components/surface/index.d.ts.map +0 -1
- package/dist/src/components/surface/surface.d.ts +0 -64
- package/dist/src/components/surface/surface.d.ts.map +0 -1
- package/dist/src/components/switch/index.d.ts +0 -2
- package/dist/src/components/switch/index.d.ts.map +0 -1
- package/dist/src/components/switch/switch.d.ts +0 -197
- package/dist/src/components/switch/switch.d.ts.map +0 -1
- package/dist/src/components/table/index.d.ts +0 -2
- package/dist/src/components/table/index.d.ts.map +0 -1
- package/dist/src/components/table/table.d.ts +0 -138
- package/dist/src/components/table/table.d.ts.map +0 -1
- package/dist/src/components/table-of-contents/index.d.ts +0 -2
- package/dist/src/components/table-of-contents/index.d.ts.map +0 -1
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +0 -72
- package/dist/src/components/table-of-contents/table-of-contents.d.ts.map +0 -1
- package/dist/src/components/tabs/index.d.ts +0 -3
- package/dist/src/components/tabs/index.d.ts.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -116
- package/dist/src/components/tabs/tabs.d.ts.map +0 -1
- package/dist/src/components/text/index.d.ts +0 -2
- package/dist/src/components/text/index.d.ts.map +0 -1
- package/dist/src/components/text/text.d.ts +0 -214
- package/dist/src/components/text/text.d.ts.map +0 -1
- package/dist/src/components/text/text.type-spec.d.ts +0 -44
- package/dist/src/components/text/text.type-spec.d.ts.map +0 -1
- package/dist/src/components/toast/index.d.ts +0 -5
- package/dist/src/components/toast/index.d.ts.map +0 -1
- package/dist/src/components/toast/toast.d.ts +0 -197
- package/dist/src/components/toast/toast.d.ts.map +0 -1
- package/dist/src/components/toolbar/index.d.ts +0 -2
- package/dist/src/components/toolbar/index.d.ts.map +0 -1
- package/dist/src/components/toolbar/toolbar.d.ts +0 -50
- package/dist/src/components/toolbar/toolbar.d.ts.map +0 -1
- package/dist/src/components/tooltip/index.d.ts +0 -2
- package/dist/src/components/tooltip/index.d.ts.map +0 -1
- package/dist/src/components/tooltip/tooltip.d.ts +0 -108
- package/dist/src/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -85
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/primitives/accordion.d.ts +0 -13
- package/dist/src/primitives/accordion.d.ts.map +0 -1
- package/dist/src/primitives/alert-dialog.d.ts +0 -13
- package/dist/src/primitives/alert-dialog.d.ts.map +0 -1
- package/dist/src/primitives/autocomplete.d.ts +0 -13
- package/dist/src/primitives/autocomplete.d.ts.map +0 -1
- package/dist/src/primitives/avatar.d.ts +0 -13
- package/dist/src/primitives/avatar.d.ts.map +0 -1
- package/dist/src/primitives/button.d.ts +0 -13
- package/dist/src/primitives/button.d.ts.map +0 -1
- package/dist/src/primitives/checkbox-group.d.ts +0 -13
- package/dist/src/primitives/checkbox-group.d.ts.map +0 -1
- package/dist/src/primitives/checkbox.d.ts +0 -13
- package/dist/src/primitives/checkbox.d.ts.map +0 -1
- package/dist/src/primitives/collapsible.d.ts +0 -13
- package/dist/src/primitives/collapsible.d.ts.map +0 -1
- package/dist/src/primitives/combobox.d.ts +0 -13
- package/dist/src/primitives/combobox.d.ts.map +0 -1
- package/dist/src/primitives/context-menu.d.ts +0 -13
- package/dist/src/primitives/context-menu.d.ts.map +0 -1
- package/dist/src/primitives/csp-provider.d.ts +0 -13
- package/dist/src/primitives/csp-provider.d.ts.map +0 -1
- package/dist/src/primitives/dialog.d.ts +0 -13
- package/dist/src/primitives/dialog.d.ts.map +0 -1
- package/dist/src/primitives/direction-provider.d.ts +0 -13
- package/dist/src/primitives/direction-provider.d.ts.map +0 -1
- package/dist/src/primitives/drawer.d.ts +0 -13
- package/dist/src/primitives/drawer.d.ts.map +0 -1
- package/dist/src/primitives/field.d.ts +0 -13
- package/dist/src/primitives/field.d.ts.map +0 -1
- package/dist/src/primitives/fieldset.d.ts +0 -13
- package/dist/src/primitives/fieldset.d.ts.map +0 -1
- package/dist/src/primitives/form.d.ts +0 -13
- package/dist/src/primitives/form.d.ts.map +0 -1
- package/dist/src/primitives/index.d.ts +0 -56
- package/dist/src/primitives/index.d.ts.map +0 -1
- package/dist/src/primitives/input.d.ts +0 -13
- package/dist/src/primitives/input.d.ts.map +0 -1
- package/dist/src/primitives/menu.d.ts +0 -13
- package/dist/src/primitives/menu.d.ts.map +0 -1
- package/dist/src/primitives/menubar.d.ts +0 -13
- package/dist/src/primitives/menubar.d.ts.map +0 -1
- package/dist/src/primitives/meter.d.ts +0 -13
- package/dist/src/primitives/meter.d.ts.map +0 -1
- package/dist/src/primitives/navigation-menu.d.ts +0 -13
- package/dist/src/primitives/navigation-menu.d.ts.map +0 -1
- package/dist/src/primitives/number-field.d.ts +0 -13
- package/dist/src/primitives/number-field.d.ts.map +0 -1
- package/dist/src/primitives/otp-field.d.ts +0 -14
- package/dist/src/primitives/otp-field.d.ts.map +0 -1
- package/dist/src/primitives/popover.d.ts +0 -13
- package/dist/src/primitives/popover.d.ts.map +0 -1
- package/dist/src/primitives/preview-card.d.ts +0 -13
- package/dist/src/primitives/preview-card.d.ts.map +0 -1
- package/dist/src/primitives/progress.d.ts +0 -13
- package/dist/src/primitives/progress.d.ts.map +0 -1
- package/dist/src/primitives/radio-group.d.ts +0 -13
- package/dist/src/primitives/radio-group.d.ts.map +0 -1
- package/dist/src/primitives/radio.d.ts +0 -13
- package/dist/src/primitives/radio.d.ts.map +0 -1
- package/dist/src/primitives/scroll-area.d.ts +0 -13
- package/dist/src/primitives/scroll-area.d.ts.map +0 -1
- package/dist/src/primitives/select.d.ts +0 -13
- package/dist/src/primitives/select.d.ts.map +0 -1
- package/dist/src/primitives/separator.d.ts +0 -13
- package/dist/src/primitives/separator.d.ts.map +0 -1
- package/dist/src/primitives/slider.d.ts +0 -13
- package/dist/src/primitives/slider.d.ts.map +0 -1
- package/dist/src/primitives/switch.d.ts +0 -13
- package/dist/src/primitives/switch.d.ts.map +0 -1
- package/dist/src/primitives/tabs.d.ts +0 -13
- package/dist/src/primitives/tabs.d.ts.map +0 -1
- package/dist/src/primitives/toast.d.ts +0 -13
- package/dist/src/primitives/toast.d.ts.map +0 -1
- package/dist/src/primitives/toggle-group.d.ts +0 -13
- package/dist/src/primitives/toggle-group.d.ts.map +0 -1
- package/dist/src/primitives/toggle.d.ts +0 -13
- package/dist/src/primitives/toggle.d.ts.map +0 -1
- package/dist/src/primitives/toolbar.d.ts +0 -13
- package/dist/src/primitives/toolbar.d.ts.map +0 -1
- package/dist/src/primitives/tooltip.d.ts +0 -13
- package/dist/src/primitives/tooltip.d.ts.map +0 -1
- package/dist/src/registry/index.d.ts +0 -8
- package/dist/src/registry/index.d.ts.map +0 -1
- package/dist/src/registry/types.d.ts +0 -191
- package/dist/src/registry/types.d.ts.map +0 -1
- package/dist/src/utils/cn.d.ts +0 -3
- package/dist/src/utils/cn.d.ts.map +0 -1
- package/dist/src/utils/index.d.ts +0 -4
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/link-provider.d.ts +0 -66
- package/dist/src/utils/link-provider.d.ts.map +0 -1
- package/dist/src/utils/portal-provider.d.ts +0 -56
- package/dist/src/utils/portal-provider.d.ts.map +0 -1
- package/dist/src/utils/prop-examples.d.ts +0 -36
- package/dist/src/utils/prop-examples.d.ts.map +0 -1
- package/dist/src/utils/resolve-variant.d.ts +0 -27
- package/dist/src/utils/resolve-variant.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { d as useRefWithInit, l as isReactVersionAtLeast, o as EMPTY_OBJECT, s as NOOP, t as useRenderElement } from "./useRenderElement-m8kc7jyuczp71mq8.js";
|
|
3
|
+
import { n as useIsoLayoutEffect } from "./safeReact-bavzz23j5tex60z2.js";
|
|
4
|
+
import { F as isClickLikeEvent, U as apple, a as getPreviousTabbable, c as isOutsideEvent, i as getNextTabbable, n as enableFocusInside, t as disableFocusInside } from "./vendor-utils-luqsvbyuig727bnr.js";
|
|
5
|
+
import { n as webkit } from "./engine-io35xsj9fgfxtihg.js";
|
|
6
|
+
import { O as isNode } from "./vendor-floating-ui-dsysdmve7iazaaes.js";
|
|
7
|
+
import { t as createChangeEventDetails } from "./createBaseUIEventDetails-ddivuhl74gni72qn.js";
|
|
8
|
+
import { t as addEventListener } from "./addEventListener-lhqvk2ahlzjsanyg.js";
|
|
9
|
+
import { t as mergeCleanups } from "./mergeCleanups-pexn3wul6a4zn873.js";
|
|
10
|
+
import { t as useStableCallback } from "./useStableCallback-ninxmksdjvwl6ejj.js";
|
|
11
|
+
import { t as visuallyHidden } from "./visuallyHidden-n14xllazfozg55ox.js";
|
|
12
|
+
import { t as useId$1 } from "./useId-l9soitgw3e4jk5ie.js";
|
|
13
|
+
import { s as createEventEmitter } from "./FloatingTree-jdm71b3m43e34hk7.js";
|
|
14
|
+
import { r as TransitionStatusDataAttributes } from "./useOpenChangeComplete-dpkex2e23s1evpol.js";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import * as React$1 from "react";
|
|
17
|
+
import * as ReactDOM from "react-dom";
|
|
18
|
+
import { useSyncExternalStore } from "use-sync-external-store/shim";
|
|
19
|
+
import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector";
|
|
20
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/fastHooks.mjs
|
|
21
|
+
const hooks = [];
|
|
22
|
+
let currentInstance = void 0;
|
|
23
|
+
function getInstance() {
|
|
24
|
+
return currentInstance;
|
|
25
|
+
}
|
|
26
|
+
function register(hook) {
|
|
27
|
+
hooks.push(hook);
|
|
28
|
+
}
|
|
29
|
+
function fastComponent(fn) {
|
|
30
|
+
const FastComponent = (props, forwardedRef) => {
|
|
31
|
+
const instance = useRefWithInit(createInstance).current;
|
|
32
|
+
let result;
|
|
33
|
+
try {
|
|
34
|
+
currentInstance = instance;
|
|
35
|
+
for (const hook of hooks) hook.before(instance);
|
|
36
|
+
result = fn(props, forwardedRef);
|
|
37
|
+
for (const hook of hooks) hook.after(instance);
|
|
38
|
+
instance.didInitialize = true;
|
|
39
|
+
} finally {
|
|
40
|
+
currentInstance = void 0;
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
FastComponent.displayName = fn.displayName || fn.name;
|
|
45
|
+
return FastComponent;
|
|
46
|
+
}
|
|
47
|
+
function fastComponentRef(fn) {
|
|
48
|
+
return /*#__PURE__*/ React$1.forwardRef(fastComponent(fn));
|
|
49
|
+
}
|
|
50
|
+
function createInstance() {
|
|
51
|
+
return { didInitialize: false };
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/platform/screen-reader.mjs
|
|
55
|
+
/**
|
|
56
|
+
* The user *may* be using VoiceOver — actual activation is not detectable.
|
|
57
|
+
* True on any Apple platform (macOS, iOS, iPadOS).
|
|
58
|
+
*/
|
|
59
|
+
const voiceOver = apple;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/utils/FocusGuard.mjs
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
const FocusGuard = /*#__PURE__*/ React$1.forwardRef(function FocusGuard(props, ref) {
|
|
66
|
+
const [role, setRole] = React$1.useState();
|
|
67
|
+
useIsoLayoutEffect(() => {
|
|
68
|
+
if (voiceOver && webkit) setRole("button");
|
|
69
|
+
}, []);
|
|
70
|
+
const restProps = {
|
|
71
|
+
tabIndex: 0,
|
|
72
|
+
role
|
|
73
|
+
};
|
|
74
|
+
return /*#__PURE__*/ jsx("span", {
|
|
75
|
+
...props,
|
|
76
|
+
ref,
|
|
77
|
+
style: visuallyHidden,
|
|
78
|
+
"aria-hidden": role ? void 0 : true,
|
|
79
|
+
...restProps,
|
|
80
|
+
"data-base-ui-focus-guard": ""
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
FocusGuard.displayName = "FocusGuard";
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs
|
|
86
|
+
function createAttribute(name) {
|
|
87
|
+
return `data-base-ui-${name}`;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/internals/constants.mjs
|
|
91
|
+
const DISABLED_TRANSITIONS_STYLE = { style: { transition: "none" } };
|
|
92
|
+
const CLICK_TRIGGER_IDENTIFIER = "data-base-ui-click-trigger";
|
|
93
|
+
const BASE_UI_SWIPE_IGNORE_ATTRIBUTE = "data-base-ui-swipe-ignore";
|
|
94
|
+
const LEGACY_SWIPE_IGNORE_ATTRIBUTE = "data-swipe-ignore";
|
|
95
|
+
const BASE_UI_SWIPE_IGNORE_SELECTOR = `[${BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;
|
|
96
|
+
const LEGACY_SWIPE_IGNORE_SELECTOR = `[${LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;
|
|
97
|
+
/**
|
|
98
|
+
* Used for dropdowns that usually strictly prefer top/bottom placements and
|
|
99
|
+
* use `var(--available-height)` to limit their height.
|
|
100
|
+
*/
|
|
101
|
+
const DROPDOWN_COLLISION_AVOIDANCE = { fallbackAxisSide: "none" };
|
|
102
|
+
/**
|
|
103
|
+
* Used by regular popups that usually aren't scrollable and are allowed to
|
|
104
|
+
* freely flip to any axis of placement.
|
|
105
|
+
*/
|
|
106
|
+
const POPUP_COLLISION_AVOIDANCE = { fallbackAxisSide: "end" };
|
|
107
|
+
/**
|
|
108
|
+
* Special visually hidden styles for the aria-owns owner element to ensure owned element
|
|
109
|
+
* accessibility in iOS/Safari/VoiceControl.
|
|
110
|
+
* The owner element is an empty span, so most of the common visually hidden styles are not needed.
|
|
111
|
+
* @see https://github.com/floating-ui/floating-ui/issues/3403
|
|
112
|
+
*/
|
|
113
|
+
const ownerVisuallyHidden = {
|
|
114
|
+
clipPath: "inset(50%)",
|
|
115
|
+
position: "fixed",
|
|
116
|
+
top: 0,
|
|
117
|
+
left: 0
|
|
118
|
+
};
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs
|
|
121
|
+
const PortalContext = /*#__PURE__*/ React$1.createContext(null);
|
|
122
|
+
PortalContext.displayName = "PortalContext";
|
|
123
|
+
const usePortalContext = () => React$1.useContext(PortalContext);
|
|
124
|
+
const attr = createAttribute("portal");
|
|
125
|
+
function useFloatingPortalNode(props = {}) {
|
|
126
|
+
const { ref, container: containerProp, componentProps = EMPTY_OBJECT, elementProps } = props;
|
|
127
|
+
const uniqueId = useId$1();
|
|
128
|
+
const parentPortalNode = usePortalContext()?.portalNode;
|
|
129
|
+
const [containerElement, setContainerElement] = React$1.useState(null);
|
|
130
|
+
const [portalNode, setPortalNode] = React$1.useState(null);
|
|
131
|
+
const setPortalNodeRef = useStableCallback((node) => {
|
|
132
|
+
if (node !== null) setPortalNode(node);
|
|
133
|
+
});
|
|
134
|
+
const containerRef = React$1.useRef(null);
|
|
135
|
+
useIsoLayoutEffect(() => {
|
|
136
|
+
if (containerProp === null) {
|
|
137
|
+
if (containerRef.current) {
|
|
138
|
+
containerRef.current = null;
|
|
139
|
+
setPortalNode(null);
|
|
140
|
+
setContainerElement(null);
|
|
141
|
+
}
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (uniqueId == null) return;
|
|
145
|
+
const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;
|
|
146
|
+
if (resolvedContainer == null) {
|
|
147
|
+
if (containerRef.current) {
|
|
148
|
+
containerRef.current = null;
|
|
149
|
+
setPortalNode(null);
|
|
150
|
+
setContainerElement(null);
|
|
151
|
+
}
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (containerRef.current !== resolvedContainer) {
|
|
155
|
+
containerRef.current = resolvedContainer;
|
|
156
|
+
setPortalNode(null);
|
|
157
|
+
setContainerElement(resolvedContainer);
|
|
158
|
+
}
|
|
159
|
+
}, [
|
|
160
|
+
containerProp,
|
|
161
|
+
parentPortalNode,
|
|
162
|
+
uniqueId
|
|
163
|
+
]);
|
|
164
|
+
const portalElement = useRenderElement("div", componentProps, {
|
|
165
|
+
ref: [ref, setPortalNodeRef],
|
|
166
|
+
props: [{
|
|
167
|
+
id: uniqueId,
|
|
168
|
+
[attr]: ""
|
|
169
|
+
}, elementProps]
|
|
170
|
+
});
|
|
171
|
+
return {
|
|
172
|
+
portalNode,
|
|
173
|
+
portalSubtree: containerElement && portalElement ? /*#__PURE__*/ ReactDOM.createPortal(portalElement, containerElement) : null
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Portals the floating element into a given container element — by default,
|
|
178
|
+
* outside of the app root and into the body.
|
|
179
|
+
* This is necessary to ensure the floating element can appear outside any
|
|
180
|
+
* potential parent containers that cause clipping (such as `overflow: hidden`),
|
|
181
|
+
* while retaining its location in the React tree.
|
|
182
|
+
* @see https://floating-ui.com/docs/FloatingPortal
|
|
183
|
+
* @internal
|
|
184
|
+
*/
|
|
185
|
+
const FloatingPortal = /*#__PURE__*/ React$1.forwardRef(function FloatingPortal(componentProps, forwardedRef) {
|
|
186
|
+
const { render, className, style, children, container, renderGuards, ...elementProps } = componentProps;
|
|
187
|
+
const { portalNode, portalSubtree } = useFloatingPortalNode({
|
|
188
|
+
container,
|
|
189
|
+
ref: forwardedRef,
|
|
190
|
+
componentProps,
|
|
191
|
+
elementProps
|
|
192
|
+
});
|
|
193
|
+
const beforeOutsideRef = React$1.useRef(null);
|
|
194
|
+
const afterOutsideRef = React$1.useRef(null);
|
|
195
|
+
const beforeInsideRef = React$1.useRef(null);
|
|
196
|
+
const afterInsideRef = React$1.useRef(null);
|
|
197
|
+
const [focusManagerState, setFocusManagerState] = React$1.useState(null);
|
|
198
|
+
const focusInsideDisabledRef = React$1.useRef(false);
|
|
199
|
+
const modal = focusManagerState?.modal;
|
|
200
|
+
const open = focusManagerState?.open;
|
|
201
|
+
const shouldRenderGuards = typeof renderGuards === "boolean" ? renderGuards : !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
|
|
202
|
+
React$1.useEffect(() => {
|
|
203
|
+
if (!portalNode || modal) return;
|
|
204
|
+
function onFocus(event) {
|
|
205
|
+
if (portalNode && event.relatedTarget && isOutsideEvent(event)) if (event.type === "focusin") {
|
|
206
|
+
if (focusInsideDisabledRef.current) {
|
|
207
|
+
enableFocusInside(portalNode);
|
|
208
|
+
focusInsideDisabledRef.current = false;
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
disableFocusInside(portalNode);
|
|
212
|
+
focusInsideDisabledRef.current = true;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return mergeCleanups(addEventListener(portalNode, "focusin", onFocus, true), addEventListener(portalNode, "focusout", onFocus, true));
|
|
216
|
+
}, [portalNode, modal]);
|
|
217
|
+
useIsoLayoutEffect(() => {
|
|
218
|
+
if (!portalNode || open !== true || !focusInsideDisabledRef.current) return;
|
|
219
|
+
enableFocusInside(portalNode);
|
|
220
|
+
focusInsideDisabledRef.current = false;
|
|
221
|
+
}, [open, portalNode]);
|
|
222
|
+
const portalContextValue = React$1.useMemo(() => ({
|
|
223
|
+
beforeOutsideRef,
|
|
224
|
+
afterOutsideRef,
|
|
225
|
+
beforeInsideRef,
|
|
226
|
+
afterInsideRef,
|
|
227
|
+
portalNode,
|
|
228
|
+
setFocusManagerState
|
|
229
|
+
}), [portalNode]);
|
|
230
|
+
return /*#__PURE__*/ jsxs(React$1.Fragment, { children: [portalSubtree, /*#__PURE__*/ jsxs(PortalContext.Provider, {
|
|
231
|
+
value: portalContextValue,
|
|
232
|
+
children: [
|
|
233
|
+
shouldRenderGuards && portalNode && /*#__PURE__*/ jsx(FocusGuard, {
|
|
234
|
+
"data-type": "outside",
|
|
235
|
+
ref: beforeOutsideRef,
|
|
236
|
+
onFocus: (event) => {
|
|
237
|
+
if (isOutsideEvent(event, portalNode)) beforeInsideRef.current?.focus();
|
|
238
|
+
else getPreviousTabbable(focusManagerState ? focusManagerState.domReference : null)?.focus();
|
|
239
|
+
}
|
|
240
|
+
}),
|
|
241
|
+
shouldRenderGuards && portalNode && /*#__PURE__*/ jsx("span", {
|
|
242
|
+
"aria-owns": portalNode.id,
|
|
243
|
+
style: ownerVisuallyHidden
|
|
244
|
+
}),
|
|
245
|
+
portalNode && /*#__PURE__*/ ReactDOM.createPortal(children, portalNode),
|
|
246
|
+
shouldRenderGuards && portalNode && /*#__PURE__*/ jsx(FocusGuard, {
|
|
247
|
+
"data-type": "outside",
|
|
248
|
+
ref: afterOutsideRef,
|
|
249
|
+
onFocus: (event) => {
|
|
250
|
+
if (isOutsideEvent(event, portalNode)) afterInsideRef.current?.focus();
|
|
251
|
+
else {
|
|
252
|
+
getNextTabbable(focusManagerState ? focusManagerState.domReference : null)?.focus();
|
|
253
|
+
if (focusManagerState?.closeOnFocusOut) focusManagerState?.onOpenChange(false, createChangeEventDetails("focus-out", event.nativeEvent));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
})
|
|
257
|
+
]
|
|
258
|
+
})] });
|
|
259
|
+
});
|
|
260
|
+
FloatingPortal.displayName = "FloatingPortal";
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/store/createSelector.mjs
|
|
263
|
+
/**
|
|
264
|
+
* The NoOptionalParams type is a utility type that checks if a function has optional or default parameters.
|
|
265
|
+
* If the function has optional or default parameters, it returns a string literal type with an error message.
|
|
266
|
+
* Otherwise, it returns the original function type.
|
|
267
|
+
*
|
|
268
|
+
* This is used to enforce that the combiner function passed to createSelector does not have optional or default parameters,
|
|
269
|
+
* as memoization relies on the Function.length property, which does not account for optional or default parameters.
|
|
270
|
+
*/
|
|
271
|
+
/**
|
|
272
|
+
* Creates a selector function that can be used to derive values from the store's state.
|
|
273
|
+
*
|
|
274
|
+
* The combiner function can have up to three additional parameters, but it **cannot have optional or default parameters**.
|
|
275
|
+
*
|
|
276
|
+
* This function accepts up to six functions and combines them into a single selector function.
|
|
277
|
+
* The resulting selector will take the state from the combined selectors and any additional parameters required by the combiner.
|
|
278
|
+
*
|
|
279
|
+
* The return type of the resulting selector is determined by the return type of the combiner function.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* const selector = createSelector(
|
|
283
|
+
* (state) => state.disabled
|
|
284
|
+
* );
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* const selector = createSelector(
|
|
288
|
+
* (state) => state.disabled,
|
|
289
|
+
* (state) => state.open,
|
|
290
|
+
* (disabled, open) => ({ disabled, open })
|
|
291
|
+
* );
|
|
292
|
+
*/
|
|
293
|
+
const createSelector = (a, b, c, d, e, f, ...other) => {
|
|
294
|
+
if (other.length > 0) throw new Error("Unsupported number of selectors");
|
|
295
|
+
let selector;
|
|
296
|
+
if (a && b && c && d && e && f) selector = (state, a1, a2, a3) => {
|
|
297
|
+
return f(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), d(state, a1, a2, a3), e(state, a1, a2, a3), a1, a2, a3);
|
|
298
|
+
};
|
|
299
|
+
else if (a && b && c && d && e) selector = (state, a1, a2, a3) => {
|
|
300
|
+
return e(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), d(state, a1, a2, a3), a1, a2, a3);
|
|
301
|
+
};
|
|
302
|
+
else if (a && b && c && d) selector = (state, a1, a2, a3) => {
|
|
303
|
+
return d(a(state, a1, a2, a3), b(state, a1, a2, a3), c(state, a1, a2, a3), a1, a2, a3);
|
|
304
|
+
};
|
|
305
|
+
else if (a && b && c) selector = (state, a1, a2, a3) => {
|
|
306
|
+
return c(a(state, a1, a2, a3), b(state, a1, a2, a3), a1, a2, a3);
|
|
307
|
+
};
|
|
308
|
+
else if (a && b) selector = (state, a1, a2, a3) => {
|
|
309
|
+
return b(a(state, a1, a2, a3), a1, a2, a3);
|
|
310
|
+
};
|
|
311
|
+
else if (a) selector = a;
|
|
312
|
+
else throw new Error("Missing arguments");
|
|
313
|
+
return selector;
|
|
314
|
+
};
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/store/useStore.mjs
|
|
317
|
+
const useStoreImplementation = isReactVersionAtLeast(19) ? useStoreFast : useStoreLegacy;
|
|
318
|
+
function useStore(store, selector, a1, a2, a3) {
|
|
319
|
+
return useStoreImplementation(store, selector, a1, a2, a3);
|
|
320
|
+
}
|
|
321
|
+
function useStoreR19(store, selector, a1, a2, a3) {
|
|
322
|
+
const getSelection = React$1.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [
|
|
323
|
+
store,
|
|
324
|
+
selector,
|
|
325
|
+
a1,
|
|
326
|
+
a2,
|
|
327
|
+
a3
|
|
328
|
+
]);
|
|
329
|
+
return useSyncExternalStore(store.subscribe, getSelection, getSelection);
|
|
330
|
+
}
|
|
331
|
+
register({
|
|
332
|
+
before(instance) {
|
|
333
|
+
instance.syncIndex = 0;
|
|
334
|
+
if (!instance.didInitialize) {
|
|
335
|
+
instance.syncTick = 1;
|
|
336
|
+
instance.syncHooks = [];
|
|
337
|
+
instance.didChangeStore = true;
|
|
338
|
+
instance.getSnapshot = () => {
|
|
339
|
+
let didChange = false;
|
|
340
|
+
for (let i = 0; i < instance.syncHooks.length; i += 1) {
|
|
341
|
+
const hook = instance.syncHooks[i];
|
|
342
|
+
const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);
|
|
343
|
+
if (!Object.is(hook.value, value)) {
|
|
344
|
+
didChange = true;
|
|
345
|
+
hook.value = value;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (didChange) instance.syncTick += 1;
|
|
349
|
+
return instance.syncTick;
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
after(instance) {
|
|
354
|
+
if (instance.syncHooks.length > 0) {
|
|
355
|
+
if (instance.didChangeStore) {
|
|
356
|
+
instance.didChangeStore = false;
|
|
357
|
+
instance.subscribe = (onStoreChange) => {
|
|
358
|
+
const stores = /* @__PURE__ */ new Set();
|
|
359
|
+
for (const hook of instance.syncHooks) stores.add(hook.store);
|
|
360
|
+
const unsubscribes = [];
|
|
361
|
+
for (const store of stores) unsubscribes.push(store.subscribe(onStoreChange));
|
|
362
|
+
return () => {
|
|
363
|
+
for (const unsubscribe of unsubscribes) unsubscribe();
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
function useStoreFast(store, selector, a1, a2, a3) {
|
|
372
|
+
const instance = getInstance();
|
|
373
|
+
if (!instance) return useStoreR19(store, selector, a1, a2, a3);
|
|
374
|
+
const index = instance.syncIndex;
|
|
375
|
+
instance.syncIndex += 1;
|
|
376
|
+
let hook;
|
|
377
|
+
if (!instance.didInitialize) {
|
|
378
|
+
hook = {
|
|
379
|
+
store,
|
|
380
|
+
selector,
|
|
381
|
+
a1,
|
|
382
|
+
a2,
|
|
383
|
+
a3,
|
|
384
|
+
value: selector(store.getSnapshot(), a1, a2, a3)
|
|
385
|
+
};
|
|
386
|
+
instance.syncHooks.push(hook);
|
|
387
|
+
} else {
|
|
388
|
+
hook = instance.syncHooks[index];
|
|
389
|
+
if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {
|
|
390
|
+
if (hook.store !== store) instance.didChangeStore = true;
|
|
391
|
+
hook.store = store;
|
|
392
|
+
hook.selector = selector;
|
|
393
|
+
hook.a1 = a1;
|
|
394
|
+
hook.a2 = a2;
|
|
395
|
+
hook.a3 = a3;
|
|
396
|
+
hook.value = selector(store.getSnapshot(), a1, a2, a3);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return hook.value;
|
|
400
|
+
}
|
|
401
|
+
function useStoreLegacy(store, selector, a1, a2, a3) {
|
|
402
|
+
return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, (state) => selector(state, a1, a2, a3));
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/store/Store.mjs
|
|
406
|
+
/**
|
|
407
|
+
* A data store implementation that allows subscribing to state changes and updating the state.
|
|
408
|
+
* It uses an observer pattern to notify subscribers when the state changes.
|
|
409
|
+
*/
|
|
410
|
+
var Store = class {
|
|
411
|
+
/**
|
|
412
|
+
* The current state of the store.
|
|
413
|
+
* This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.
|
|
414
|
+
* To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).
|
|
415
|
+
* The values can be used directly (to avoid subscribing to the store) in effects or event handlers.
|
|
416
|
+
*
|
|
417
|
+
* Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.
|
|
418
|
+
*/
|
|
419
|
+
constructor(state) {
|
|
420
|
+
this.state = state;
|
|
421
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
422
|
+
this.updateTick = 0;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Registers a listener that will be called whenever the store's state changes.
|
|
426
|
+
*
|
|
427
|
+
* @param fn The listener function to be called on state changes.
|
|
428
|
+
* @returns A function to unsubscribe the listener.
|
|
429
|
+
*/
|
|
430
|
+
subscribe = (fn) => {
|
|
431
|
+
this.listeners.add(fn);
|
|
432
|
+
return () => {
|
|
433
|
+
this.listeners.delete(fn);
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Returns the current state of the store.
|
|
438
|
+
*/
|
|
439
|
+
getSnapshot = () => {
|
|
440
|
+
return this.state;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* Updates the entire store's state and notifies all registered listeners.
|
|
444
|
+
*
|
|
445
|
+
* @param newState The new state to set for the store.
|
|
446
|
+
*/
|
|
447
|
+
setState(newState) {
|
|
448
|
+
if (this.state === newState) return;
|
|
449
|
+
this.state = newState;
|
|
450
|
+
this.updateTick += 1;
|
|
451
|
+
const currentTick = this.updateTick;
|
|
452
|
+
for (const listener of this.listeners) {
|
|
453
|
+
if (currentTick !== this.updateTick) return;
|
|
454
|
+
listener(newState);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Merges the provided changes into the current state and notifies listeners if there are changes.
|
|
459
|
+
*
|
|
460
|
+
* @param changes An object containing the changes to apply to the current state.
|
|
461
|
+
*/
|
|
462
|
+
update(changes) {
|
|
463
|
+
for (const key in changes) if (!Object.is(this.state[key], changes[key])) {
|
|
464
|
+
this.setState({
|
|
465
|
+
...this.state,
|
|
466
|
+
...changes
|
|
467
|
+
});
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
|
|
473
|
+
*
|
|
474
|
+
* @param key The key in the store's state to update.
|
|
475
|
+
* @param value The new value to set for the specified key.
|
|
476
|
+
*/
|
|
477
|
+
set(key, value) {
|
|
478
|
+
if (!Object.is(this.state[key], value)) this.setState({
|
|
479
|
+
...this.state,
|
|
480
|
+
[key]: value
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Gives the state a new reference and updates all registered listeners.
|
|
485
|
+
*/
|
|
486
|
+
notifyAll() {
|
|
487
|
+
const newState = { ...this.state };
|
|
488
|
+
this.setState(newState);
|
|
489
|
+
}
|
|
490
|
+
use(selector, a1, a2, a3) {
|
|
491
|
+
return useStore(this, selector, a1, a2, a3);
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/store/ReactStore.mjs
|
|
496
|
+
/**
|
|
497
|
+
* A Store that supports controlled state keys, non-reactive values and provides utility methods for React.
|
|
498
|
+
*/
|
|
499
|
+
var ReactStore = class extends Store {
|
|
500
|
+
/**
|
|
501
|
+
* Creates a new ReactStore instance.
|
|
502
|
+
*
|
|
503
|
+
* @param state Initial state of the store.
|
|
504
|
+
* @param context Non-reactive context values.
|
|
505
|
+
* @param selectors Optional selectors for use with `useState`.
|
|
506
|
+
*/
|
|
507
|
+
constructor(state, context = {}, selectors) {
|
|
508
|
+
super(state);
|
|
509
|
+
this.context = context;
|
|
510
|
+
this.selectors = selectors;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Non-reactive values such as refs, callbacks, etc.
|
|
514
|
+
*/
|
|
515
|
+
/**
|
|
516
|
+
* Synchronizes a single external value into the store.
|
|
517
|
+
*
|
|
518
|
+
* Note that the while the value in `state` is updated immediately, the value returned
|
|
519
|
+
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
520
|
+
*/
|
|
521
|
+
useSyncedValue(key, value) {
|
|
522
|
+
React$1.useDebugValue(key);
|
|
523
|
+
const store = this;
|
|
524
|
+
useIsoLayoutEffect(() => {
|
|
525
|
+
if (store.state[key] !== value) store.set(key, value);
|
|
526
|
+
}, [
|
|
527
|
+
store,
|
|
528
|
+
key,
|
|
529
|
+
value
|
|
530
|
+
]);
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Synchronizes a single external value into the store and
|
|
534
|
+
* cleans it up (sets to `undefined`) on unmount.
|
|
535
|
+
*
|
|
536
|
+
* Note that the while the value in `state` is updated immediately, the value returned
|
|
537
|
+
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
538
|
+
*/
|
|
539
|
+
useSyncedValueWithCleanup(key, value) {
|
|
540
|
+
const store = this;
|
|
541
|
+
useIsoLayoutEffect(() => {
|
|
542
|
+
if (store.state[key] !== value) store.set(key, value);
|
|
543
|
+
return () => {
|
|
544
|
+
store.set(key, void 0);
|
|
545
|
+
};
|
|
546
|
+
}, [
|
|
547
|
+
store,
|
|
548
|
+
key,
|
|
549
|
+
value
|
|
550
|
+
]);
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Synchronizes multiple external values into the store.
|
|
554
|
+
*
|
|
555
|
+
* Note that the while the values in `state` are updated immediately, the values returned
|
|
556
|
+
* by `useState` are updated before the next render (similarly to React's `useState`).
|
|
557
|
+
*/
|
|
558
|
+
useSyncedValues(statePart) {
|
|
559
|
+
const store = this;
|
|
560
|
+
{
|
|
561
|
+
React$1.useDebugValue(statePart, (p) => Object.keys(p));
|
|
562
|
+
const keys = React$1.useRef(Object.keys(statePart)).current;
|
|
563
|
+
const nextKeys = Object.keys(statePart);
|
|
564
|
+
if (keys.length !== nextKeys.length || keys.some((key, index) => key !== nextKeys[index])) console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
565
|
+
}
|
|
566
|
+
useIsoLayoutEffect(() => {
|
|
567
|
+
store.update(statePart);
|
|
568
|
+
}, [store, ...Object.values(statePart)]);
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`
|
|
572
|
+
* is non-undefined, the store's state at `key` is updated to match `controlled`.
|
|
573
|
+
*/
|
|
574
|
+
useControlledProp(key, controlled) {
|
|
575
|
+
React$1.useDebugValue(key);
|
|
576
|
+
const store = this;
|
|
577
|
+
const isControlled = controlled !== void 0;
|
|
578
|
+
useIsoLayoutEffect(() => {
|
|
579
|
+
if (isControlled && !Object.is(store.state[key], controlled)) store.setState({
|
|
580
|
+
...store.state,
|
|
581
|
+
[key]: controlled
|
|
582
|
+
});
|
|
583
|
+
}, [
|
|
584
|
+
store,
|
|
585
|
+
key,
|
|
586
|
+
controlled,
|
|
587
|
+
isControlled
|
|
588
|
+
]);
|
|
589
|
+
{
|
|
590
|
+
const cache = this.controlledValues ??= /* @__PURE__ */ new Map();
|
|
591
|
+
if (!cache.has(key)) cache.set(key, isControlled);
|
|
592
|
+
const previouslyControlled = cache.get(key);
|
|
593
|
+
if (previouslyControlled !== void 0 && previouslyControlled !== isControlled) console.error(`A component is changing the ${isControlled ? "" : "un"}controlled state of ${key.toString()} to be ${isControlled ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
/** Gets the current value from the store using a selector with the provided key.
|
|
597
|
+
*
|
|
598
|
+
* @param key Key of the selector to use.
|
|
599
|
+
*/
|
|
600
|
+
select(key, a1, a2, a3) {
|
|
601
|
+
const selector = this.selectors[key];
|
|
602
|
+
return selector(this.state, a1, a2, a3);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Returns a value from the store's state using a selector function.
|
|
606
|
+
* Used to subscribe to specific parts of the state.
|
|
607
|
+
* This methods causes a rerender whenever the selected state changes.
|
|
608
|
+
*
|
|
609
|
+
* @param key Key of the selector to use.
|
|
610
|
+
*/
|
|
611
|
+
useState(key, a1, a2, a3) {
|
|
612
|
+
React$1.useDebugValue(key);
|
|
613
|
+
return useStore(this, this.selectors[key], a1, a2, a3);
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Wraps a function with `useStableCallback` to ensure it has a stable reference
|
|
617
|
+
* and assigns it to the context.
|
|
618
|
+
*
|
|
619
|
+
* @param key Key of the event callback. Must be a function in the context.
|
|
620
|
+
* @param fn Function to assign.
|
|
621
|
+
*/
|
|
622
|
+
useContextCallback(key, fn) {
|
|
623
|
+
React$1.useDebugValue(key);
|
|
624
|
+
const stableFunction = useStableCallback(fn ?? NOOP);
|
|
625
|
+
this.context[key] = stableFunction;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Returns a stable setter function for a specific key in the store's state.
|
|
629
|
+
* It's commonly used to pass as a ref callback to React elements.
|
|
630
|
+
*
|
|
631
|
+
* @param key Key of the state to set.
|
|
632
|
+
*/
|
|
633
|
+
useStateSetter(key) {
|
|
634
|
+
const ref = React$1.useRef(void 0);
|
|
635
|
+
if (ref.current === void 0) ref.current = (value) => {
|
|
636
|
+
this.set(key, value);
|
|
637
|
+
};
|
|
638
|
+
return ref.current;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Observes changes derived from the store's selectors and calls the listener when the selected value changes.
|
|
642
|
+
*
|
|
643
|
+
* @param key Key of the selector to observe.
|
|
644
|
+
* @param listener Listener function called when the selector result changes.
|
|
645
|
+
*/
|
|
646
|
+
observe(selector, listener) {
|
|
647
|
+
let selectFn;
|
|
648
|
+
if (typeof selector === "function") selectFn = selector;
|
|
649
|
+
else selectFn = this.selectors[selector];
|
|
650
|
+
let prevValue = selectFn(this.state);
|
|
651
|
+
listener(prevValue, prevValue, this);
|
|
652
|
+
return this.subscribe((nextState) => {
|
|
653
|
+
const nextValue = selectFn(nextState);
|
|
654
|
+
if (!Object.is(prevValue, nextValue)) {
|
|
655
|
+
const oldValue = prevValue;
|
|
656
|
+
prevValue = nextValue;
|
|
657
|
+
listener(nextValue, oldValue, this);
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
|
|
664
|
+
const selectors = {
|
|
665
|
+
open: createSelector((state) => state.open),
|
|
666
|
+
transitionStatus: createSelector((state) => state.transitionStatus),
|
|
667
|
+
domReferenceElement: createSelector((state) => state.domReferenceElement),
|
|
668
|
+
referenceElement: createSelector((state) => state.positionReference ?? state.referenceElement),
|
|
669
|
+
floatingElement: createSelector((state) => state.floatingElement),
|
|
670
|
+
floatingId: createSelector((state) => state.floatingId)
|
|
671
|
+
};
|
|
672
|
+
var FloatingRootStore = class extends ReactStore {
|
|
673
|
+
constructor(options) {
|
|
674
|
+
const { syncOnly, nested, onOpenChange, triggerElements, ...initialState } = options;
|
|
675
|
+
super({
|
|
676
|
+
...initialState,
|
|
677
|
+
positionReference: initialState.referenceElement,
|
|
678
|
+
domReferenceElement: initialState.referenceElement
|
|
679
|
+
}, {
|
|
680
|
+
onOpenChange,
|
|
681
|
+
dataRef: { current: {} },
|
|
682
|
+
events: createEventEmitter(),
|
|
683
|
+
nested,
|
|
684
|
+
triggerElements
|
|
685
|
+
}, selectors);
|
|
686
|
+
this.syncOnly = syncOnly;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
|
|
690
|
+
*/
|
|
691
|
+
syncOpenEvent = (newOpen, event) => {
|
|
692
|
+
if (!newOpen || !this.state.open || event != null && isClickLikeEvent(event)) this.context.dataRef.current.openEvent = newOpen ? event : void 0;
|
|
693
|
+
};
|
|
694
|
+
/**
|
|
695
|
+
* Runs the root-owned side effects for an open state change.
|
|
696
|
+
*/
|
|
697
|
+
dispatchOpenChange = (newOpen, eventDetails) => {
|
|
698
|
+
this.syncOpenEvent(newOpen, eventDetails.event);
|
|
699
|
+
const details = {
|
|
700
|
+
open: newOpen,
|
|
701
|
+
reason: eventDetails.reason,
|
|
702
|
+
nativeEvent: eventDetails.event,
|
|
703
|
+
nested: this.context.nested,
|
|
704
|
+
triggerElement: eventDetails.trigger
|
|
705
|
+
};
|
|
706
|
+
this.context.events.emit("openchange", details);
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
|
|
710
|
+
*
|
|
711
|
+
* @param newOpen The new open state.
|
|
712
|
+
* @param eventDetails Details about the event that triggered the open state change.
|
|
713
|
+
*/
|
|
714
|
+
setOpen = (newOpen, eventDetails) => {
|
|
715
|
+
if (this.syncOnly) {
|
|
716
|
+
this.context.onOpenChange?.(newOpen, eventDetails);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
this.dispatchOpenChange(newOpen, eventDetails);
|
|
720
|
+
this.context.onOpenChange?.(newOpen, eventDetails);
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
//#endregion
|
|
724
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
|
|
725
|
+
/**
|
|
726
|
+
* Data structure to keep track of popup trigger elements by their IDs.
|
|
727
|
+
* Uses both a set of Elements and a map of IDs to Elements for efficient lookups.
|
|
728
|
+
*/
|
|
729
|
+
var PopupTriggerMap = class {
|
|
730
|
+
constructor() {
|
|
731
|
+
this.elementsSet = /* @__PURE__ */ new Set();
|
|
732
|
+
this.idMap = /* @__PURE__ */ new Map();
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* Adds a trigger element with the given ID.
|
|
736
|
+
*
|
|
737
|
+
* Note: The provided element is assumed to not be registered under multiple IDs.
|
|
738
|
+
*/
|
|
739
|
+
add(id, element) {
|
|
740
|
+
const existingElement = this.idMap.get(id);
|
|
741
|
+
if (existingElement === element) return;
|
|
742
|
+
if (existingElement !== void 0) this.elementsSet.delete(existingElement);
|
|
743
|
+
this.elementsSet.add(element);
|
|
744
|
+
this.idMap.set(id, element);
|
|
745
|
+
if (this.elementsSet.size !== this.idMap.size) throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Removes the trigger element with the given ID.
|
|
749
|
+
*/
|
|
750
|
+
delete(id) {
|
|
751
|
+
const element = this.idMap.get(id);
|
|
752
|
+
if (element) {
|
|
753
|
+
this.elementsSet.delete(element);
|
|
754
|
+
this.idMap.delete(id);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Whether the given element is registered as a trigger.
|
|
759
|
+
*/
|
|
760
|
+
hasElement(element) {
|
|
761
|
+
return this.elementsSet.has(element);
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Whether there is a registered trigger element matching the given predicate.
|
|
765
|
+
*/
|
|
766
|
+
hasMatchingElement(predicate) {
|
|
767
|
+
for (const element of this.elementsSet) if (predicate(element)) return true;
|
|
768
|
+
return false;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Returns the trigger element associated with the given ID, or undefined if no such element exists.
|
|
772
|
+
*/
|
|
773
|
+
getById(id) {
|
|
774
|
+
return this.idMap.get(id);
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].
|
|
778
|
+
*/
|
|
779
|
+
entries() {
|
|
780
|
+
return this.idMap.entries();
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Returns an iterable of all registered trigger elements.
|
|
784
|
+
*/
|
|
785
|
+
elements() {
|
|
786
|
+
return this.elementsSet.values();
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Returns the number of registered trigger elements.
|
|
790
|
+
*/
|
|
791
|
+
get size() {
|
|
792
|
+
return this.idMap.size;
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/utils/popupStateMapping.mjs
|
|
797
|
+
let CommonPopupDataAttributes = function(CommonPopupDataAttributes) {
|
|
798
|
+
/**
|
|
799
|
+
* Present when the popup is open.
|
|
800
|
+
*/
|
|
801
|
+
CommonPopupDataAttributes["open"] = "data-open";
|
|
802
|
+
/**
|
|
803
|
+
* Present when the popup is closed.
|
|
804
|
+
*/
|
|
805
|
+
CommonPopupDataAttributes["closed"] = "data-closed";
|
|
806
|
+
/**
|
|
807
|
+
* Present when the popup is animating in.
|
|
808
|
+
*/
|
|
809
|
+
CommonPopupDataAttributes[CommonPopupDataAttributes["startingStyle"] = TransitionStatusDataAttributes.startingStyle] = "startingStyle";
|
|
810
|
+
/**
|
|
811
|
+
* Present when the popup is animating out.
|
|
812
|
+
*/
|
|
813
|
+
CommonPopupDataAttributes[CommonPopupDataAttributes["endingStyle"] = TransitionStatusDataAttributes.endingStyle] = "endingStyle";
|
|
814
|
+
/**
|
|
815
|
+
* Present when the anchor is hidden.
|
|
816
|
+
*/
|
|
817
|
+
CommonPopupDataAttributes["anchorHidden"] = "data-anchor-hidden";
|
|
818
|
+
/**
|
|
819
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
820
|
+
* @type { 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
821
|
+
*/
|
|
822
|
+
CommonPopupDataAttributes["side"] = "data-side";
|
|
823
|
+
/**
|
|
824
|
+
* Indicates how the popup is aligned relative to specified side.
|
|
825
|
+
* @type {'start' | 'center' | 'end'}
|
|
826
|
+
*/
|
|
827
|
+
CommonPopupDataAttributes["align"] = "data-align";
|
|
828
|
+
return CommonPopupDataAttributes;
|
|
829
|
+
}({});
|
|
830
|
+
let CommonTriggerDataAttributes = /*#__PURE__*/ function(CommonTriggerDataAttributes) {
|
|
831
|
+
/**
|
|
832
|
+
* Present when the popup is open.
|
|
833
|
+
*/
|
|
834
|
+
CommonTriggerDataAttributes["popupOpen"] = "data-popup-open";
|
|
835
|
+
/**
|
|
836
|
+
* Present when a pressable trigger is pressed.
|
|
837
|
+
*/
|
|
838
|
+
CommonTriggerDataAttributes["pressed"] = "data-pressed";
|
|
839
|
+
return CommonTriggerDataAttributes;
|
|
840
|
+
}({});
|
|
841
|
+
const TRIGGER_HOOK = { [CommonTriggerDataAttributes.popupOpen]: "" };
|
|
842
|
+
const PRESSABLE_TRIGGER_HOOK = {
|
|
843
|
+
[CommonTriggerDataAttributes.popupOpen]: "",
|
|
844
|
+
[CommonTriggerDataAttributes.pressed]: ""
|
|
845
|
+
};
|
|
846
|
+
const POPUP_OPEN_HOOK = { [CommonPopupDataAttributes.open]: "" };
|
|
847
|
+
const POPUP_CLOSED_HOOK = { [CommonPopupDataAttributes.closed]: "" };
|
|
848
|
+
const ANCHOR_HIDDEN_HOOK = { [CommonPopupDataAttributes.anchorHidden]: "" };
|
|
849
|
+
const triggerOpenStateMapping = { open(value) {
|
|
850
|
+
if (value) return TRIGGER_HOOK;
|
|
851
|
+
return null;
|
|
852
|
+
} };
|
|
853
|
+
const pressableTriggerOpenStateMapping = { open(value) {
|
|
854
|
+
if (value) return PRESSABLE_TRIGGER_HOOK;
|
|
855
|
+
return null;
|
|
856
|
+
} };
|
|
857
|
+
const popupStateMapping = {
|
|
858
|
+
open(value) {
|
|
859
|
+
if (value) return POPUP_OPEN_HOOK;
|
|
860
|
+
return POPUP_CLOSED_HOOK;
|
|
861
|
+
},
|
|
862
|
+
anchorHidden(value) {
|
|
863
|
+
if (value) return ANCHOR_HIDDEN_HOOK;
|
|
864
|
+
return null;
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
//#endregion
|
|
868
|
+
export { FocusGuard as C, createAttribute as S, fastComponentRef as T, DISABLED_TRANSITIONS_STYLE as _, triggerOpenStateMapping as a, POPUP_COLLISION_AVOIDANCE as b, ReactStore as c, createSelector as d, FloatingPortal as f, CLICK_TRIGGER_IDENTIFIER as g, BASE_UI_SWIPE_IGNORE_SELECTOR as h, pressableTriggerOpenStateMapping as i, Store as l, usePortalContext as m, CommonTriggerDataAttributes as n, PopupTriggerMap as o, useFloatingPortalNode as p, popupStateMapping as r, FloatingRootStore as s, CommonPopupDataAttributes as t, useStore as u, DROPDOWN_COLLISION_AVOIDANCE as v, fastComponent as w, ownerVisuallyHidden as x, LEGACY_SWIPE_IGNORE_SELECTOR as y };
|