@cloudflare/kumo 2.10.0 → 2.12.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 +58 -0
- package/ai/component-registry.json +64 -282
- package/ai/component-registry.md +78 -115
- package/ai/schemas.ts +6 -5
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +12 -4
- package/dist/ai/schemas.js +9 -1
- package/dist/chunks/{AlertDialogTrigger-fn9yjykev9h5l12q.js → AlertDialogTrigger-k3f8nevrda6awa4s.js} +2 -2
- package/dist/chunks/{AutocompleteItem-clgm7u7zzgjy1hvb.js → AutocompleteItem-ksckpihly1c23f3j.js} +3 -3
- package/dist/chunks/{CheckboxGroup-h9w1c6bo2nlcc4uj.js → CheckboxGroup-g5xn5gnq8ocqyoum.js} +2 -2
- package/dist/chunks/{CheckboxIndicator-gz18hapnzraxyz9a.js → CheckboxIndicator-igofmpn0wcfdqooa.js} +1 -1
- package/dist/chunks/{ComboboxChipRemove-opf1zyu9yyp98dqd.js → ComboboxChipRemove-ksyozjezihhstmbu.js} +6 -6
- package/dist/chunks/{ComboboxClear-fi4op1n12c99ktca.js → ComboboxClear-glm805v81uaaf3su.js} +2 -2
- package/dist/chunks/{ComboboxEmpty-dr78bn7zilhqbkgc.js → ComboboxEmpty-hwv2kjxnf9un635e.js} +9 -9
- package/dist/chunks/{ComboboxPopup-bugeajuqjattk1n7.js → ComboboxPopup-fx7xex6g75t9u0gm.js} +6 -6
- package/dist/chunks/{CompositeRoot-jm9n0rrea12rfny1.js → CompositeRoot-l6ot8jo0umdics5m.js} +2 -2
- package/dist/chunks/{DialogHandle-o964gplvp59qqv23.js → DialogHandle-b3froel96o9fwjmm.js} +2 -2
- package/dist/chunks/{DialogPopup-cz73mkiyi9c33mhn.js → DialogPopup-mp89aob2nown2akq.js} +5 -5
- package/dist/chunks/{DialogRoot-kfhbouiouenljp3q.js → DialogRoot-fp7d16uxogvye294.js} +1 -1
- package/dist/chunks/{DialogTrigger-gzxvssie7e5e1iba.js → DialogTrigger-cmok07cf3ks0kzug.js} +4 -4
- package/dist/chunks/{FloatingPortalLite-ld4o97z16w23x6za.js → FloatingPortalLite-mlt7ztrvhzepwi5y.js} +2 -2
- package/dist/chunks/{MenuBackdrop-m0tfcr6sg50f9sn5.js → MenuBackdrop-dlntmavtopj7wv0l.js} +2 -2
- package/dist/chunks/{MenuSubmenuTrigger-n281iqpstcnacsk6.js → MenuSubmenuTrigger-fzubf5xr7ohsgsi7.js} +12 -12
- package/dist/chunks/{MenuTrigger-dwh2ewyxp5j3ml02.js → MenuTrigger-ntugq34yppc8ouwe.js} +7 -7
- package/dist/chunks/{Menubar-m8euwx8biy1qpo44.js → Menubar-d57cyjuztbge4dvv.js} +3 -3
- package/dist/chunks/{PopoverClose-inm8xliypc51murq.js → PopoverClose-e91n3nkw16qnyese.js} +10 -10
- package/dist/chunks/{RadioGroup-h25jrjmet0gxrvex.js → RadioGroup-lsix4haqxfigpuv8.js} +2 -2
- package/dist/chunks/{SelectGroupLabel-mug19qcz2k67qule.js → SelectGroupLabel-m4h5hrft9043nsd1.js} +11 -11
- package/dist/chunks/{TabsList-obzldrvfzo50uqr4.js → TabsList-c0inft3sf8gi2o4v.js} +3 -3
- package/dist/chunks/{ToggleGroup-l8tfcwe33tlqqm8a.js → ToggleGroup-xz9zrh7t1htn6ht4.js} +2 -2
- package/dist/chunks/{ToolbarInput-oy7o682hhn2jdjen.js → ToolbarInput-gxep3ixoe8r6v2to.js} +2 -2
- package/dist/chunks/{TooltipPopup-ehusafczcky9jvae.js → TooltipPopup-l2zrbjavf1cqclfx.js} +9 -9
- package/dist/chunks/{TooltipProvider-iq6hgymrn3b68h50.js → TooltipProvider-eyhgia63aq2x4frl.js} +3 -3
- package/dist/chunks/{autocomplete-m8n1c775n0iilomf.js → autocomplete-msex8kc8sw3fp373.js} +6 -6
- package/dist/chunks/{badge-e16yhhe9xibra5k7.js → badge-xw5ydgdjx2o5qxbl.js} +22 -9
- package/dist/chunks/{banner-cu2mip76zfx0gf27.js → banner-nz02b60ech1e2m6f.js} +3 -3
- package/dist/chunks/{breadcrumbs-hxibrxjtvudy0ir9.js → breadcrumbs-jvlyp3bw0u8qx4fi.js} +4 -4
- package/dist/chunks/{button-eikucjpgqbsn5m5m.js → button-iqaz1uluabeo18f0.js} +7 -7
- package/dist/chunks/{chart-bxxlck50zlsbj3kl.js → chart-qmls2klknm1pd6hs.js} +8 -8
- package/dist/chunks/{checkbox-fovnhs7f1sekaxrh.js → checkbox-crxoyqsxiupt9kmi.js} +7 -7
- package/dist/chunks/{clipboard-text-fuyj4apm2xry4hkk.js → clipboard-text-osbgah3jz16ma2vv.js} +8 -8
- package/dist/chunks/{collapsible-gjmdaxlo8t3vi14b.js → collapsible-jyajpe40jcca357s.js} +3 -3
- package/dist/chunks/{combobox-l4pucshucau0qvrl.js → combobox-nosdsxdxe2abnqzr.js} +9 -9
- package/dist/chunks/{command-palette-jjrbvylvvbj0qusg.js → command-palette-iomiziccabzh4ogg.js} +9 -9
- package/dist/chunks/{createToastManager-kjd838m8jog8pddj.js → createToastManager-kv89sv0xhhsvmq54.js} +4 -4
- package/dist/chunks/{dialog-b4r3dv8uvgl2pqem.js → dialog-nas75qs6d8gj5dxm.js} +8 -8
- package/dist/chunks/{dropdown-k0y5j6iuad7tvqgx.js → dropdown-d5qrzj1w1a96w2we.js} +6 -6
- package/dist/chunks/{empty-hmu7x39lnp0z2qm6.js → empty-kfofsb6khrn1s26v.js} +2 -2
- package/dist/chunks/{field-dxe9ne8fqy5whws2.js → field-i7lxgmtio7nutt7c.js} +3 -3
- package/dist/chunks/{flow-fbsv3yek3w7v5a6p.js → flow-fmfb3ri8cxo7w9ci.js} +3 -3
- package/dist/chunks/{getEmptyRootContext-2utawetz04dqkzyn.js → getEmptyRootContext-ekvv3rp5w16ewoqx.js} +1 -1
- package/dist/chunks/{index.parts-pb65142mbin4hpc7.js → index.parts-bmzuqorz0tmneh7t.js} +2 -2
- package/dist/chunks/{index.parts-nq06i1gji6fjnmln.js → index.parts-bv57na43ve93uz3x.js} +4 -4
- package/dist/chunks/{index.parts-buqjmx1pfsd225r7.js → index.parts-cpviii2nt413tb8k.js} +1 -1
- package/dist/chunks/{index.parts-lojnx790s6z0mi1f.js → index.parts-ef9111sjk9e3al87.js} +2 -2
- package/dist/chunks/{index.parts-c4kz48uuogge3k9g.js → index.parts-fl4zaorc97ed3keb.js} +9 -9
- package/dist/chunks/{index.parts-bzlq2foymrigspiz.js → index.parts-gj1k50tf9fcs7nru.js} +3 -3
- package/dist/chunks/{index.parts-gcwd6ds0od2n1i0p.js → index.parts-gslyp9n88qdh38n1.js} +1 -1
- package/dist/chunks/{index.parts-cou5w8shwfwuk6wo.js → index.parts-hve0zir3biaolih0.js} +4 -4
- package/dist/chunks/{index.parts-g27bw668q8dtcjz8.js → index.parts-hxjt52jbictdzgad.js} +2 -2
- package/dist/chunks/{index.parts-giu46tgp0ypgfq6a.js → index.parts-i4lbjqdnhsnjtny6.js} +6 -6
- package/dist/chunks/{index.parts-ghwrm31fyo614381.js → index.parts-i5twygaksh86erb7.js} +5 -5
- package/dist/chunks/{index.parts-omt7bu8mbte48ulb.js → index.parts-ieuelcd4z5e0mcb7.js} +6 -6
- package/dist/chunks/{index.parts-hi0bbzsnswj74v28.js → index.parts-j2ecf25zajyd5ia3.js} +1 -1
- package/dist/chunks/{index.parts-kwx43zlomuu96clc.js → index.parts-jmb5ztstw4xlfyp9.js} +5 -5
- package/dist/chunks/{index.parts-jmkwypigix07dit1.js → index.parts-jv5kiaeixrjah9js.js} +3 -3
- package/dist/chunks/{index.parts-kwqb2nzc7u2zzxqs.js → index.parts-k7ezm98skegahepw.js} +8 -8
- package/dist/chunks/{index.parts-j775zfdbhcd9ypeb.js → index.parts-komdbdvf823cm5jw.js} +1 -1
- package/dist/chunks/{index.parts-ngc39crwuz80oiij.js → index.parts-kt0w73ciea6adi2i.js} +1 -1
- package/dist/chunks/{index.parts-kdoulw17e9zk96yw.js → index.parts-lhpuh6pw7rjcddnl.js} +3 -3
- package/dist/chunks/{index.parts-ixizrcasario34jo.js → index.parts-lz9cnngidxppvhz7.js} +2 -2
- package/dist/chunks/{index.parts-kh9waplhfwlszcyp.js → index.parts-mr7tgwe4pgfozkt5.js} +3 -3
- package/dist/chunks/{index.parts-etb66t5m85rhhipe.js → index.parts-nc6jzjq91z2nye75.js} +2 -2
- package/dist/chunks/{index.parts-n6t1aj932fytioz8.js → index.parts-nd3mitrhxf806lsa.js} +11 -11
- package/dist/chunks/{index.parts-f3xvfc67ai7txeru.js → index.parts-nzwjx603vcq1kryz.js} +1 -1
- package/dist/chunks/{index2.parts-k2au6nzued1wgy6t.js → index2.parts-epkfat8l4pvwpd1a.js} +2 -2
- package/dist/chunks/{index2.parts-noiw2eweufmplfsp.js → index2.parts-mv7x6w0p2splvf6b.js} +1 -1
- package/dist/chunks/{input-group-otq3m9lach1jyxl0.js → input-group-ksh61axy2qgkxl5y.js} +6 -6
- package/dist/chunks/{input-o3mtvvtqf69j5k10.js → input-jthoux2vfxltqtdh.js} +3 -3
- package/dist/chunks/{input-dwl9oy1f1ufah0bx.js → input-oc9u4galsdrwy00s.js} +3 -3
- package/dist/chunks/{label-opyibemromjwmd0s.js → label-ow6ait7o31g1umgy.js} +2 -2
- package/dist/chunks/{layer-card-nah241sxhj6i7i03.js → layer-card-dnikj7emx8qeaspz.js} +2 -2
- package/dist/chunks/{link-1b3jda6cdzl4lkeo.js → link-gp4swsrd3vfnvori.js} +2 -2
- package/dist/chunks/{menubar-m0h31eymts6exeke.js → menubar-fu5u76o529yi19kp.js} +4 -2
- package/dist/chunks/{meter-iauic8ww87xxqf74.js → meter-fl03ece4glrrzizj.js} +1 -1
- package/dist/chunks/{pagination-bya4kmtn4rqbexjb.js → pagination-hu8y5b8zpef2z4lp.js} +5 -5
- package/dist/chunks/{popover-l0xg7b854w7txyoz.js → popover-jal8z9sv176703lf.js} +5 -5
- package/dist/chunks/{popupStateMapping-jpzw7eyzl8ghiv8s.js → popupStateMapping-hdv48wmkzb2mqful.js} +5 -5
- package/dist/chunks/{popupStoreUtils-fpjh6veok5pa2hd1.js → popupStoreUtils-jrxqkz5jmlijlr91.js} +2 -2
- package/dist/chunks/{radio-igpo6t2t2tpe08d5.js → radio-gvy6ekh5hu9awlru.js} +4 -4
- package/dist/chunks/{safePolygon-flrfpyc6fpidq4fb.js → safePolygon-szbj0u31i6mpt36d.js} +2 -2
- package/dist/chunks/{select-cqgxro9via28v4u8.js → select-jdz3yg2pvcjlkroy.js} +8 -8
- package/dist/chunks/{sensitive-input-karaei12un7z7nep.js → sensitive-input-lba9qvv3ai4xwgux.js} +5 -5
- package/dist/chunks/{sidebar-c5otog7ms7rb19cr.js → sidebar-enm5suo7wq163iw5.js} +118 -66
- package/dist/chunks/{store-i9l3lkcl6auhkpfl.js → store-9b2cp7rx1dvq90fp.js} +2 -2
- package/dist/chunks/{surface-jwwh5xl06kv9tp7b.js → surface-ef2kr5pn7r1y3ipk.js} +2 -2
- package/dist/chunks/{switch-cusffup6w3tan5ot.js → switch-bstb0wl1bi8hjt4z.js} +4 -4
- package/dist/chunks/{table-ds3nzcffm3pu9o0l.js → table-ebfyk2rmebrn82k0.js} +7 -7
- package/dist/chunks/{tabs-n7bpptah74dbh8kw.js → tabs-mr2dsloqfe0io4a5.js} +3 -3
- package/dist/chunks/{text-e1ko7r96hsoz2tor.js → text-fsaeol90bjy3pnik.js} +30 -13
- package/dist/chunks/{toast-itl6qo5oy1vy6d36.js → toast-byzrdv104awqbkjh.js} +7 -7
- package/dist/chunks/{toolbar-o25cb9lcznranewe.js → toolbar-djjwqq141iealxa6.js} +6 -5
- package/dist/chunks/{tooltip-maelyxs1y7a78vje.js → tooltip-k9f7io0k22k5jorq.js} +6 -6
- package/dist/chunks/{useAnchoredPopupScrollLock-bx8vvwcdp25ix0kj.js → useAnchoredPopupScrollLock-lbrqp1zm5z821z20.js} +1 -1
- package/dist/chunks/{useDismiss-l2gbj4cain4zqtne.js → useDismiss-kbtx2o3ruyh3jwgn.js} +2 -2
- package/dist/chunks/{useFilteredItems-ckor5h4rcmztfgt1.js → useFilteredItems-ns32d3hpp626kt73.js} +4 -4
- package/dist/chunks/{useFloatingRootContext-jo582qzez5k9gbgk.js → useFloatingRootContext-o6mk8fvodtbbm2v1.js} +2 -2
- package/dist/chunks/{useFocus-e8drzpkl9flxq1o1.js → useFocus-gdfx28bn90keg8cf.js} +1 -1
- package/dist/chunks/{useListNavigation-iyo9r9vug2g1clmc.js → useListNavigation-jnxpvegv3ak857b1.js} +2 -2
- package/dist/chunks/{usePositioner-h1n5q86am1sjo5hn.js → usePositioner-fz9uswhkhg22lo42.js} +3 -3
- package/dist/chunks/{useRenderDialogRoot-ecyv072j7yj8q0w3.js → useRenderDialogRoot-hhowqeoreyr6uuc7.js} +6 -6
- package/dist/chunks/{useScrollLock-lj0spjth12xjeap0.js → useScrollLock-mpns3u42eks8hhex.js} +4 -4
- package/dist/code.js +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/cloudflare-logo.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/menubar.d.ts +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table-of-contents.js +1 -1
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.d.ts +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-DCA5tjHa.d.ts → index-B7epkoHc.d.ts} +4 -0
- package/dist/{index-Bgl_czT12.d.ts → index-BHclAeEt2.d.ts} +2 -2
- package/dist/{index-BkyMHk632.d.ts → index-Bl6QyQDi2.d.ts} +26 -12
- package/dist/{index-DpzpArsi2.d.ts → index-CMiftS8L2.d.ts} +45 -3
- package/dist/{index-DnbdiagK.d.ts → index-CdSf6Vfc.d.ts} +32 -14
- package/dist/index.d.ts +6 -6
- package/dist/index.js +48 -48
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/otp-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +38 -38
- package/dist/scripts/theme-generator/config.js +6 -4
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-kumo.css +7 -10
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/scripts/theme-generator/config.ts +8 -4
- package/dist/chunks/{CSPProvider-ogozggb4nr6evned.js → CSPProvider-f3it239kgztzgryk.js} +1 -1
- package/dist/chunks/{CheckboxRoot-g6fb44xqgc0qxusf.js → CheckboxRoot-o5bfpje6e4p6pdgm.js} +1 -1
- package/dist/chunks/{CollapsiblePanel-mnjlf99v79k3yabx.js → CollapsiblePanel-e80n35tnsb2cskt9.js} +1 -1
- package/dist/chunks/{CompositeList-bek8pmx9o8cu36ig.js → CompositeList-tx08unuok7wsl2d9.js} +1 -1
- package/dist/chunks/{DirectionProvider-gdktkteyrlpnokak.js → DirectionProvider-ihtfgxd5qpm6oth1.js} +1 -1
- package/dist/chunks/{FieldDescription-go88jdymmj9o0ugi.js → FieldDescription-ju607ea6gwgzga8p.js} +1 -1
- package/dist/chunks/{FieldLabel-junk2aczkvogpv5d.js → FieldLabel-f6vwzm8nefzxwlh8.js} +1 -1
- package/dist/chunks/{FieldsetLegend-ch85hugankjah152.js → FieldsetLegend-j5piwq1giyhrr8s4.js} +1 -1
- package/dist/chunks/{FloatingTree-jdm71b3m43e34hk7.js → FloatingTree-oosjswl1s9q4obvg.js} +1 -1
- package/dist/chunks/{Form-f1ibju5npd1qqowg.js → Form-is7d5c1kbk1wn39s.js} +1 -1
- package/dist/chunks/{Input-opaph7rt3w2vx3c0.js → Input-ovqfhsmpfcrg5czm.js} +1 -1
- package/dist/chunks/{MeterLabel-efe4koezlgg05cv8.js → MeterLabel-c40b0q8r81cftkjj.js} +1 -1
- package/dist/chunks/{RadioIndicator-lvpixnzpkxpq7rp1.js → RadioIndicator-mwkahpwyqfc6yk1i.js} +1 -1
- package/dist/chunks/{ScrollAreaThumb-jydo7azxxwjn1cqf.js → ScrollAreaThumb-kmhan411yxfo0362.js} +1 -1
- package/dist/chunks/{SwitchRoot-gumgk7356eqv7dve.js → SwitchRoot-e3hnyh3mf8qd30hj.js} +1 -1
- package/dist/chunks/{Toggle-hlf7recxsq6mxvax.js → Toggle-c8p9m3puz8l4mav7.js} +1 -1
- package/dist/chunks/{cloudflare-logo-g0aimzpllornl0rc.js → cloudflare-logo-boafurcbm5ttoo4o.js} +1 -1
- package/dist/chunks/{date-picker-njfirc1m165k6yax.js → date-picker-fwe3vllwco4u1utz.js} +1 -1
- package/dist/chunks/{date-range-picker-g6sje1ua7n7jerkq.js → date-range-picker-iymdx410i1hpvxai.js} +1 -1
- package/dist/chunks/{grid-d43q1qme6ffbbcl1.js → grid-fjlo3wlpkwgw56y9.js} +1 -1
- package/dist/chunks/{index.parts-9xtishx4m3j6sbg9.js → index.parts-7z8hqx6zl9yajzvs.js} +1 -1
- package/dist/chunks/{index.parts-bsarfaby0ttw67bb.js → index.parts-c5yto0l67i7ok5fd.js} +1 -1
- package/dist/chunks/{index.parts-g0wrrbkxyh0oo730.js → index.parts-i4iu310eo65d7lfc.js} +1 -1
- package/dist/chunks/{link-provider-l9ohtet4pj559eg0.js → link-provider-kbwllpbo24fvgioj.js} +1 -1
- package/dist/chunks/{portal-provider-langu3fqwfr9tlhm.js → portal-provider-gznk6snyqj6egd6d.js} +1 -1
- package/dist/chunks/{resolveValueLabel-i36fqhi09ki67hx5.js → resolveValueLabel-bq3nrzord518kp9q.js} +1 -1
- package/dist/chunks/{skeleton-line-f6sju1dxawm8h9tg.js → skeleton-line-hlk5vauzo7xsalbo.js} +1 -1
- package/dist/chunks/{table-of-contents-l66abisn473qzd07.js → table-of-contents-cvduqgssxdcbpagh.js} +1 -1
- package/dist/chunks/{usePopupViewport-at3zpph46apa78a3.js → usePopupViewport-hu0kn0ziyf1vqzrs.js} +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { n as usePortalContainer } from "./portal-provider-
|
|
4
|
-
import { i as buttonVariants } from "./button-
|
|
5
|
-
import { r as Label } from "./label-
|
|
6
|
-
import { t as Field } from "./field-
|
|
7
|
-
import { n as KUMO_INPUT_VARIANTS } from "./input-
|
|
3
|
+
import { n as usePortalContainer } from "./portal-provider-gznk6snyqj6egd6d.js";
|
|
4
|
+
import { i as buttonVariants } from "./button-iqaz1uluabeo18f0.js";
|
|
5
|
+
import { r as Label } from "./label-ow6ait7o31g1umgy.js";
|
|
6
|
+
import { t as Field } from "./field-i7lxgmtio7nutt7c.js";
|
|
7
|
+
import { n as KUMO_INPUT_VARIANTS } from "./input-jthoux2vfxltqtdh.js";
|
|
8
8
|
import { t as Separator$1 } from "./Separator-b8wf5rea6m1cei8k.js";
|
|
9
|
-
import { t as SkeletonLine } from "./skeleton-line-
|
|
10
|
-
import { a as SelectItem, c as SelectPositioner, d as SelectIcon, f as SelectValue, h as SelectRoot, i as SelectItemIndicator, m as SelectLabel, n as SelectGroup, o as SelectList, p as SelectTrigger, r as SelectItemText, s as SelectPopup, t as SelectGroupLabel, u as SelectPortal } from "./SelectGroupLabel-
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { t as SkeletonLine } from "./skeleton-line-hlk5vauzo7xsalbo.js";
|
|
10
|
+
import { a as SelectItem, c as SelectPositioner, d as SelectIcon, f as SelectValue, h as SelectRoot, i as SelectItemIndicator, m as SelectLabel, n as SelectGroup, o as SelectList, p as SelectTrigger, r as SelectItemText, s as SelectPopup, t as SelectGroupLabel, u as SelectPortal } from "./SelectGroupLabel-m4h5hrft9043nsd1.js";
|
|
12
11
|
import { forwardRef, useId } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { CaretUpDownIcon, CheckIcon } from "@phosphor-icons/react";
|
|
14
14
|
KUMO_INPUT_VARIANTS.size;
|
|
15
15
|
const KUMO_SELECT_DEFAULT_VARIANTS = { size: "base" };
|
package/dist/chunks/{sensitive-input-karaei12un7z7nep.js → sensitive-input-lba9qvv3ai4xwgux.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Input } from "./Input-
|
|
4
|
-
import { t as Field } from "./field-
|
|
5
|
-
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { t as Input } from "./Input-ovqfhsmpfcrg5czm.js";
|
|
4
|
+
import { t as Field } from "./field-i7lxgmtio7nutt7c.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-jthoux2vfxltqtdh.js";
|
|
7
6
|
import { forwardRef, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Eye, EyeSlash } from "@phosphor-icons/react";
|
|
9
9
|
//#region src/components/sensitive-input/sensitive-input.tsx
|
|
10
10
|
const KUMO_SENSITIVE_INPUT_VARIANTS = KUMO_INPUT_VARIANTS;
|
|
@@ -154,7 +154,7 @@ const SensitiveInput = forwardRef(({ value: controlledValue, defaultValue = "",
|
|
|
154
154
|
variant,
|
|
155
155
|
parentFocusIndicator: true
|
|
156
156
|
}), "group/container relative flex w-full items-center", "focus-within:outline-2 focus-within:outline-kumo-focus", isMaskedWithValue && !disabled && "cursor-pointer", disabled && "cursor-not-allowed", className);
|
|
157
|
-
const containerContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
157
|
+
const containerContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
158
158
|
/* @__PURE__ */ jsx(Input, {
|
|
159
159
|
ref: mergedRef,
|
|
160
160
|
id: inputId,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { n as useLinkComponent } from "./link-provider-
|
|
4
|
-
import { n as TooltipProvider, t as Tooltip } from "./tooltip-
|
|
5
|
-
import { t as Button } from "./button-
|
|
6
|
-
import { t as SkeletonLine } from "./skeleton-line-
|
|
7
|
-
import { a as ScrollAreaRoot, i as ScrollAreaViewport, n as ScrollAreaContent, r as ScrollAreaScrollbar, t as ScrollAreaThumb } from "./ScrollAreaThumb-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
3
|
+
import { n as useLinkComponent } from "./link-provider-kbwllpbo24fvgioj.js";
|
|
4
|
+
import { n as TooltipProvider, t as Tooltip } from "./tooltip-k9f7io0k22k5jorq.js";
|
|
5
|
+
import { t as Button } from "./button-iqaz1uluabeo18f0.js";
|
|
6
|
+
import { t as SkeletonLine } from "./skeleton-line-hlk5vauzo7xsalbo.js";
|
|
7
|
+
import { a as ScrollAreaRoot, i as ScrollAreaViewport, n as ScrollAreaContent, r as ScrollAreaScrollbar, t as ScrollAreaThumb } from "./ScrollAreaThumb-kmhan411yxfo0362.js";
|
|
8
|
+
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { CaretRightIcon, XIcon } from "@phosphor-icons/react";
|
|
11
11
|
//#region src/components/sidebar/sidebar.tsx
|
|
12
12
|
/** Sidebar variant definitions mapping layout, collapse, and side options. */
|
|
@@ -69,18 +69,12 @@ const SIDEBAR_ANIMATION_DURATION_MS = 250;
|
|
|
69
69
|
const MOBILE_BREAKPOINT = 768;
|
|
70
70
|
const FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
71
71
|
function useIsMobile(breakpoint = MOBILE_BREAKPOINT) {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const onChange = () => setIsMobile(mql.matches);
|
|
79
|
-
mql.addEventListener("change", onChange);
|
|
80
|
-
setIsMobile(mql.matches);
|
|
81
|
-
return () => mql.removeEventListener("change", onChange);
|
|
82
|
-
}, [breakpoint]);
|
|
83
|
-
return isMobile;
|
|
72
|
+
const query = `(max-width: ${breakpoint - 1}px)`;
|
|
73
|
+
return useSyncExternalStore(useCallback((callback) => {
|
|
74
|
+
const mql = window.matchMedia(query);
|
|
75
|
+
mql.addEventListener("change", callback);
|
|
76
|
+
return () => mql.removeEventListener("change", callback);
|
|
77
|
+
}, [query]), useCallback(() => window.matchMedia(query).matches, [query]), useCallback(() => false, []));
|
|
84
78
|
}
|
|
85
79
|
const SidebarContext = createContext(null);
|
|
86
80
|
/**
|
|
@@ -168,6 +162,38 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
168
162
|
}, []);
|
|
169
163
|
const state = isPeeking ? "peeking" : open ? "expanded" : "collapsed";
|
|
170
164
|
const sidebarWidthValue = resizable ? `${width}px` : SIDEBAR_WIDTH;
|
|
165
|
+
const itemsRef = useRef(/* @__PURE__ */ new Map());
|
|
166
|
+
const registerItem = useCallback((id, node) => {
|
|
167
|
+
const items = itemsRef.current;
|
|
168
|
+
if (node) items.set(id, node);
|
|
169
|
+
else items.delete(id);
|
|
170
|
+
}, []);
|
|
171
|
+
const scrollToItem = useCallback((id, options = {}) => {
|
|
172
|
+
const { align = "auto", behavior = "auto" } = options;
|
|
173
|
+
const target = itemsRef.current.get(id);
|
|
174
|
+
if (!target) return;
|
|
175
|
+
const viewport = target.closest("[data-sidebar=\"viewport\"]");
|
|
176
|
+
if (!viewport) return;
|
|
177
|
+
const targetRect = target.getBoundingClientRect();
|
|
178
|
+
const viewportRect = viewport.getBoundingClientRect();
|
|
179
|
+
const itemScrollOffset = targetRect.top - viewportRect.top + viewport.scrollTop;
|
|
180
|
+
let desired;
|
|
181
|
+
if (align === "center") desired = itemScrollOffset - (viewport.clientHeight - target.offsetHeight) / 2;
|
|
182
|
+
else if (align === "end") desired = itemScrollOffset - (viewport.clientHeight - target.offsetHeight);
|
|
183
|
+
else if (align === "auto") {
|
|
184
|
+
const itemBottom = itemScrollOffset + target.offsetHeight;
|
|
185
|
+
const viewBottom = viewport.scrollTop + viewport.clientHeight;
|
|
186
|
+
if (itemScrollOffset < viewport.scrollTop) desired = itemScrollOffset;
|
|
187
|
+
else if (itemBottom > viewBottom) desired = itemBottom - viewport.clientHeight;
|
|
188
|
+
else return;
|
|
189
|
+
} else desired = itemScrollOffset;
|
|
190
|
+
const clamped = Math.max(0, Math.min(desired, viewport.scrollHeight - viewport.clientHeight));
|
|
191
|
+
const reducedMotion = typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
192
|
+
viewport.scrollTo({
|
|
193
|
+
top: clamped,
|
|
194
|
+
behavior: reducedMotion ? "auto" : behavior
|
|
195
|
+
});
|
|
196
|
+
}, []);
|
|
171
197
|
const contextValue = useMemo(() => ({
|
|
172
198
|
state,
|
|
173
199
|
open,
|
|
@@ -191,7 +217,9 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
191
217
|
startPeek,
|
|
192
218
|
stopPeek,
|
|
193
219
|
contained,
|
|
194
|
-
animationDuration
|
|
220
|
+
animationDuration,
|
|
221
|
+
registerItem,
|
|
222
|
+
scrollToItem
|
|
195
223
|
}), [
|
|
196
224
|
state,
|
|
197
225
|
open,
|
|
@@ -307,7 +335,7 @@ const SidebarRoot = forwardRef(({ className, contentClassName, children, fullScr
|
|
|
307
335
|
...props,
|
|
308
336
|
children
|
|
309
337
|
});
|
|
310
|
-
if (isMobile) return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
338
|
+
if (isMobile) return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
311
339
|
"data-sidebar-backdrop": "",
|
|
312
340
|
className: cn(contained ? "absolute inset-0 z-40 bg-kumo-recessed" : "fixed inset-0 z-40 bg-kumo-recessed", "transition-opacity duration-(--sidebar-animation-duration) ease-(--sidebar-easing)", "motion-reduce:transition-none", openMobile && !fullScreenOnMobile ? "opacity-80" : "pointer-events-none opacity-0"),
|
|
313
341
|
onClick: () => {
|
|
@@ -399,24 +427,27 @@ SidebarHeader.displayName = "Sidebar.Header";
|
|
|
399
427
|
* </Sidebar.Content>
|
|
400
428
|
* ```
|
|
401
429
|
*/
|
|
402
|
-
const SidebarContent = forwardRef(({ className, children, ...props }, ref) =>
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
className: "
|
|
412
|
-
children
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
})
|
|
430
|
+
const SidebarContent = forwardRef(({ className, children, ...props }, ref) => {
|
|
431
|
+
return /* @__PURE__ */ jsxs(ScrollAreaRoot, {
|
|
432
|
+
ref,
|
|
433
|
+
"data-sidebar": "content",
|
|
434
|
+
className: cn("relative min-w-0 flex-1 overflow-hidden", className),
|
|
435
|
+
...props,
|
|
436
|
+
children: [/* @__PURE__ */ jsx(ScrollAreaViewport, {
|
|
437
|
+
tabIndex: -1,
|
|
438
|
+
"data-sidebar": "viewport",
|
|
439
|
+
className: cn("h-full px-[11px] py-3 group-not-data-[state=collapsed]/sidebar:px-3.5", "transition-[padding] duration-(--sidebar-animation-duration)", "overflow-x-hidden!", "[mask-image:linear-gradient(to_bottom,transparent_0,black_min(24px,var(--scroll-area-overflow-y-start,24px)),black_calc(100%-min(24px,var(--scroll-area-overflow-y-end,24px))),transparent_100%)]"),
|
|
440
|
+
children: /* @__PURE__ */ jsx(ScrollAreaContent, {
|
|
441
|
+
className: "flex min-w-0! flex-col",
|
|
442
|
+
children
|
|
443
|
+
})
|
|
444
|
+
}), /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
|
|
445
|
+
orientation: "vertical",
|
|
446
|
+
className: cn("flex w-1.5 touch-none p-px select-none", "opacity-0 transition-opacity duration-150", "data-[hovering]:opacity-100 data-[scrolling]:opacity-100", "group-data-[state=collapsed]/sidebar:hidden"),
|
|
447
|
+
children: /* @__PURE__ */ jsx(ScrollAreaThumb, { className: "flex-1 rounded-full bg-kumo-line" })
|
|
448
|
+
})]
|
|
449
|
+
});
|
|
450
|
+
});
|
|
420
451
|
SidebarContent.displayName = "Sidebar.Content";
|
|
421
452
|
/**
|
|
422
453
|
* Bottom-pinned section of the sidebar. Rendered outside the peek zone
|
|
@@ -561,30 +592,29 @@ const SidebarMenu = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
561
592
|
...props
|
|
562
593
|
}));
|
|
563
594
|
SidebarMenu.displayName = "Sidebar.Menu";
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
* ```tsx
|
|
573
|
-
* <Sidebar.MenuItem>
|
|
574
|
-
* <Sidebar.Collapsible>...</Sidebar.Collapsible>
|
|
575
|
-
* </Sidebar.MenuItem>
|
|
576
|
-
* ```
|
|
577
|
-
*/
|
|
578
|
-
const SidebarMenuItem = forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(MenuItemContext.Provider, {
|
|
579
|
-
value: true,
|
|
580
|
-
children: /* @__PURE__ */ jsx("li", {
|
|
595
|
+
const SidebarMenuItem = forwardRef(({ className, children, itemId, ...props }, ref) => {
|
|
596
|
+
const { registerItem } = useSidebar();
|
|
597
|
+
const setRef = useCallback((node) => {
|
|
598
|
+
if (itemId) registerItem(itemId, node);
|
|
599
|
+
if (typeof ref === "function") ref(node);
|
|
600
|
+
else if (ref) ref.current = node;
|
|
601
|
+
}, [
|
|
602
|
+
itemId,
|
|
581
603
|
ref,
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
604
|
+
registerItem
|
|
605
|
+
]);
|
|
606
|
+
return /* @__PURE__ */ jsx(MenuItemContext.Provider, {
|
|
607
|
+
value: true,
|
|
608
|
+
children: /* @__PURE__ */ jsx("li", {
|
|
609
|
+
ref: setRef,
|
|
610
|
+
"data-sidebar": "menu-item",
|
|
611
|
+
"data-sidebar-item-id": itemId,
|
|
612
|
+
className: cn("relative group-data-[state=collapsed]/sidebar:overflow-hidden", className),
|
|
613
|
+
...props,
|
|
614
|
+
children
|
|
615
|
+
})
|
|
616
|
+
});
|
|
617
|
+
});
|
|
588
618
|
SidebarMenuItem.displayName = "Sidebar.MenuItem";
|
|
589
619
|
/**
|
|
590
620
|
* Primary interactive element inside a menu item. Renders as a `<button>` or link.
|
|
@@ -611,10 +641,27 @@ SidebarMenuItem.displayName = "Sidebar.MenuItem";
|
|
|
611
641
|
* </Sidebar.MenuItem>
|
|
612
642
|
* ```
|
|
613
643
|
*/
|
|
614
|
-
const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = false, size = "base", href, target, tooltip, children, ...props }, ref) => {
|
|
615
|
-
const { state, peekable } = useSidebar();
|
|
644
|
+
const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = false, size = "base", href, target, tooltip, itemId, children, ...props }, ref) => {
|
|
645
|
+
const { state, peekable, registerItem } = useSidebar();
|
|
616
646
|
const LinkComponent = useLinkComponent();
|
|
617
647
|
const isInsideMenuItem = useContext(MenuItemContext);
|
|
648
|
+
const registerAutoWrap = useCallback((node) => {
|
|
649
|
+
if (itemId && !isInsideMenuItem) registerItem(itemId, node);
|
|
650
|
+
}, [
|
|
651
|
+
itemId,
|
|
652
|
+
isInsideMenuItem,
|
|
653
|
+
registerItem
|
|
654
|
+
]);
|
|
655
|
+
const registerInteractive = useCallback((node) => {
|
|
656
|
+
if (itemId && isInsideMenuItem) registerItem(itemId, node);
|
|
657
|
+
if (typeof ref === "function") ref(node);
|
|
658
|
+
else if (ref) ref.current = node;
|
|
659
|
+
}, [
|
|
660
|
+
itemId,
|
|
661
|
+
isInsideMenuItem,
|
|
662
|
+
ref,
|
|
663
|
+
registerItem
|
|
664
|
+
]);
|
|
618
665
|
const iconNode = (() => {
|
|
619
666
|
if (!IconProp) return null;
|
|
620
667
|
if (React.isValidElement(IconProp)) return IconProp;
|
|
@@ -632,8 +679,9 @@ const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = fals
|
|
|
632
679
|
});
|
|
633
680
|
const buttonClasses = cn("group/menu-button relative flex w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg outline-none", "before:absolute before:inset-x-0 before:-inset-y-px", size === "base" && "min-h-8.5 px-3 py-0 text-sm font-medium", size === "sm" && "min-h-7 px-2 py-0 text-sm", "text-kumo-default", "transition-[color,box-shadow,outline] duration-(--sidebar-animation-duration)", !active && "hover:bg-(--sidebar-active-bg)", active && "bg-(--sidebar-active-bg)", "has-[[data-active]]:bg-transparent has-[[data-active]]:hover:bg-(--sidebar-active-bg)", "focus:outline-none focus-visible:bg-(--sidebar-active-bg) focus-visible:text-kumo-strong", className);
|
|
634
681
|
let button;
|
|
682
|
+
const itemIdOnButton = isInsideMenuItem ? itemId : void 0;
|
|
635
683
|
if (href) button = /* @__PURE__ */ jsx(LinkComponent, {
|
|
636
|
-
ref,
|
|
684
|
+
ref: registerInteractive,
|
|
637
685
|
...props,
|
|
638
686
|
className: cn(buttonClasses, "no-underline!"),
|
|
639
687
|
href,
|
|
@@ -641,17 +689,19 @@ const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = fals
|
|
|
641
689
|
target,
|
|
642
690
|
"data-active": active || void 0,
|
|
643
691
|
"data-sidebar": "menu-button",
|
|
692
|
+
"data-sidebar-item-id": itemIdOnButton,
|
|
644
693
|
"data-kumo-component": "Sidebar",
|
|
645
694
|
"data-kumo-part": "menu-button-link",
|
|
646
695
|
"data-size": size,
|
|
647
696
|
children: content
|
|
648
697
|
});
|
|
649
698
|
else button = /* @__PURE__ */ jsx("button", {
|
|
650
|
-
ref,
|
|
699
|
+
ref: registerInteractive,
|
|
651
700
|
type: "button",
|
|
652
701
|
className: buttonClasses,
|
|
653
702
|
"data-active": active || void 0,
|
|
654
703
|
"data-sidebar": "menu-button",
|
|
704
|
+
"data-sidebar-item-id": itemIdOnButton,
|
|
655
705
|
"data-kumo-component": "Sidebar",
|
|
656
706
|
"data-kumo-part": "menu-button",
|
|
657
707
|
"data-size": size,
|
|
@@ -666,7 +716,9 @@ const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = fals
|
|
|
666
716
|
render: button
|
|
667
717
|
});
|
|
668
718
|
if (!isInsideMenuItem) return /* @__PURE__ */ jsx("li", {
|
|
719
|
+
ref: registerAutoWrap,
|
|
669
720
|
"data-sidebar": "menu-item",
|
|
721
|
+
"data-sidebar-item-id": itemId,
|
|
670
722
|
className: "relative group-data-[state=collapsed]/sidebar:overflow-hidden",
|
|
671
723
|
children: button
|
|
672
724
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { o as EMPTY_OBJECT } from "./useRenderElement-m8kc7jyuczp71mq8.js";
|
|
3
|
-
import { d as createSelector, s as FloatingRootStore } from "./popupStateMapping-
|
|
4
|
-
import { t as getEmptyRootContext } from "./getEmptyRootContext-
|
|
3
|
+
import { d as createSelector, s as FloatingRootStore } from "./popupStateMapping-hdv48wmkzb2mqful.js";
|
|
4
|
+
import { t as getEmptyRootContext } from "./getEmptyRootContext-ekvv3rp5w16ewoqx.js";
|
|
5
5
|
//#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/store.mjs
|
|
6
6
|
/**
|
|
7
7
|
* State common to all popup stores.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as LayerCard } from "./layer-card-
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as LayerCard } from "./layer-card-dnikj7emx8qeaspz.js";
|
|
5
4
|
import { createElement } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/surface/surface.tsx
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use `LayerCard` instead.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { n as FieldsetRoot, t as FieldsetLegend } from "./FieldsetLegend-
|
|
4
|
-
import { t as Field } from "./field-
|
|
5
|
-
import { t as SwitchRoot } from "./SwitchRoot-
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { n as FieldsetRoot, t as FieldsetLegend } from "./FieldsetLegend-j5piwq1giyhrr8s4.js";
|
|
4
|
+
import { t as Field } from "./field-i7lxgmtio7nutt7c.js";
|
|
5
|
+
import { t as SwitchRoot } from "./SwitchRoot-e3hnyh3mf8qd30hj.js";
|
|
7
6
|
import { createContext, forwardRef, useContext } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/switch/switch.tsx
|
|
9
9
|
/** Switch size and variant definitions mapping names to their Tailwind classes. */
|
|
10
10
|
const KUMO_SWITCH_VARIANTS = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
|
-
import { t as Checkbox } from "./checkbox-
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { t as Checkbox } from "./checkbox-crxoyqsxiupt9kmi.js";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/table/table.tsx
|
|
8
8
|
/** Table layout and row variant definitions mapping names to their Tailwind classes. */
|
|
9
9
|
const KUMO_TABLE_VARIANTS = {
|
|
@@ -19,11 +19,11 @@ const KUMO_TABLE_VARIANTS = {
|
|
|
19
19
|
},
|
|
20
20
|
variant: {
|
|
21
21
|
default: {
|
|
22
|
-
classes: "",
|
|
22
|
+
classes: "even:bg-kumo-tint [--kumo-table-row-bg:var(--color-kumo-base)] even:[--kumo-table-row-bg:var(--color-kumo-tint)]",
|
|
23
23
|
description: "Default row variant"
|
|
24
24
|
},
|
|
25
25
|
selected: {
|
|
26
|
-
classes: "bg-kumo-tint",
|
|
26
|
+
classes: "bg-kumo-tint [--kumo-table-row-bg:var(--color-kumo-tint)]",
|
|
27
27
|
description: "Selected row variant"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
@@ -56,7 +56,7 @@ const stickyColumnClasses = (side, element) => {
|
|
|
56
56
|
const z = element === "head" ? "z-2" : "z-1";
|
|
57
57
|
const fadePosition = side === "right" ? "before:-left-6" : "before:-right-6";
|
|
58
58
|
const fadeBase = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
|
|
59
|
-
if (element === "cell") return cn(base, z, "bg-kumo-
|
|
59
|
+
if (element === "cell") return cn(base, z, "bg-(--kumo-table-row-bg)", fadeBase, fadePosition, side === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-(--kumo-table-row-bg)" : "before:bg-gradient-to-l before:from-transparent before:to-(--kumo-table-row-bg)");
|
|
60
60
|
return cn(base, z, "bg-kumo-base group-data-[compact]/header:bg-kumo-elevated", fadeBase, fadePosition, side === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-kumo-base group-data-[compact]/header:before:to-kumo-elevated" : "before:bg-gradient-to-l before:from-transparent before:to-kumo-base group-data-[compact]/header:before:to-kumo-elevated");
|
|
61
61
|
};
|
|
62
62
|
const KUMO_TABLE_DEFAULT_VARIANTS = {
|
|
@@ -64,7 +64,7 @@ const KUMO_TABLE_DEFAULT_VARIANTS = {
|
|
|
64
64
|
variant: "default"
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
|
-
* Table root — applies layout,
|
|
67
|
+
* Table root — applies layout, padding, and header styles.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* ```tsx
|
|
@@ -85,7 +85,7 @@ const KUMO_TABLE_DEFAULT_VARIANTS = {
|
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
87
|
const TableRoot = forwardRef(({ layout = "auto", ...props }, ref) => {
|
|
88
|
-
const className = cn("isolate w-full", resolveVariant(KUMO_TABLE_VARIANTS.layout, layout, KUMO_TABLE_DEFAULT_VARIANTS.layout).classes, "[&_td]:
|
|
88
|
+
const className = cn("isolate w-full", resolveVariant(KUMO_TABLE_VARIANTS.layout, layout, KUMO_TABLE_DEFAULT_VARIANTS.layout).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-kumo-fill [&_th]:p-3 [&_th]:text-base [&_th]:font-semibold", "[&_th]:bg-kumo-base", "text-left text-base text-kumo-default", props.className);
|
|
89
89
|
return /* @__PURE__ */ jsx("table", {
|
|
90
90
|
ref,
|
|
91
91
|
...props,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { i as TabsRoot, n as TabsIndicator, r as TabsTab, t as TabsList } from "./TabsList-
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { i as TabsRoot, n as TabsIndicator, r as TabsTab, t as TabsList } from "./TabsList-c0inft3sf8gi2o4v.js";
|
|
5
4
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/tabs/tabs.tsx
|
|
7
7
|
const KUMO_TABS_DEFAULT_VARIANTS = {
|
|
8
8
|
variant: "segmented",
|
|
@@ -80,7 +80,7 @@ function Tabs({ tabs, value, selectedValue, onValueChange, activateOnFocus, clas
|
|
|
80
80
|
className: cn("absolute left-0 z-1", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", isSegmented && cn("top-(--active-tab-top) h-(--active-tab-height) bg-kumo-base shadow-sm ring ring-kumo-line", isSm ? "rounded" : "rounded-md"), isUnderline && "bottom-0 h-0.5 bg-kumo-brand", indicatorClassName)
|
|
81
81
|
}) })]
|
|
82
82
|
}),
|
|
83
|
-
isSegmented && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(TabsOverflowControl, {
|
|
83
|
+
isSegmented && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(TabsOverflowControl, {
|
|
84
84
|
side: "start",
|
|
85
85
|
visible: canScrollStart,
|
|
86
86
|
variant,
|
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useMemo } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/text/text.tsx
|
|
7
7
|
/** Text variant and size definitions mapping names to their Tailwind classes. */
|
|
8
8
|
const KUMO_TEXT_VARIANTS = {
|
|
9
9
|
variant: {
|
|
10
|
+
heading: {
|
|
11
|
+
classes: "text-lg font-semibold",
|
|
12
|
+
description: "Heading text (16px by default, 20px at large size)"
|
|
13
|
+
},
|
|
14
|
+
/** @deprecated Use `heading` and set `size` and `as` explicitly. */
|
|
10
15
|
heading1: {
|
|
11
16
|
classes: "text-3xl font-semibold",
|
|
12
|
-
description: "
|
|
17
|
+
description: "Deprecated large heading for page titles; use heading instead"
|
|
13
18
|
},
|
|
19
|
+
/** @deprecated Use `heading` and set `size` and `as` explicitly. */
|
|
14
20
|
heading2: {
|
|
15
21
|
classes: "text-2xl font-semibold",
|
|
16
|
-
description: "
|
|
22
|
+
description: "Deprecated medium heading for section titles; use heading instead"
|
|
17
23
|
},
|
|
24
|
+
/** @deprecated Use `heading` and set `size` and `as` explicitly. */
|
|
18
25
|
heading3: {
|
|
19
26
|
classes: "text-lg font-semibold",
|
|
20
|
-
description: "
|
|
27
|
+
description: "Deprecated small heading for subsections; use heading instead"
|
|
21
28
|
},
|
|
22
29
|
body: {
|
|
23
30
|
classes: "text-kumo-default",
|
|
@@ -67,6 +74,20 @@ const KUMO_TEXT_DEFAULT_VARIANTS = {
|
|
|
67
74
|
variant: "body",
|
|
68
75
|
size: "base"
|
|
69
76
|
};
|
|
77
|
+
const DEPRECATED_HEADING_VARIANTS = [
|
|
78
|
+
"heading1",
|
|
79
|
+
"heading2",
|
|
80
|
+
"heading3"
|
|
81
|
+
];
|
|
82
|
+
function isDeprecatedHeadingVariant(variant) {
|
|
83
|
+
return DEPRECATED_HEADING_VARIANTS.includes(variant);
|
|
84
|
+
}
|
|
85
|
+
function resolveTextSizeClasses(variant, size) {
|
|
86
|
+
if (variant === "heading") return size === "lg" ? "text-xl" : "";
|
|
87
|
+
if (isDeprecatedHeadingVariant(variant)) return "";
|
|
88
|
+
if (["mono", "mono-secondary"].includes(variant)) return size === "lg" ? KUMO_TEXT_VARIANTS.size.base.classes : KUMO_TEXT_VARIANTS.size.sm.classes;
|
|
89
|
+
return resolveVariant(KUMO_TEXT_VARIANTS.size, size, KUMO_TEXT_DEFAULT_VARIANTS.size).classes;
|
|
90
|
+
}
|
|
70
91
|
/**
|
|
71
92
|
* Typography component for rendering text with consistent styling.
|
|
72
93
|
* Renders as `<p>` for body variants and `<span>` for headings/mono.
|
|
@@ -74,8 +95,8 @@ const KUMO_TEXT_DEFAULT_VARIANTS = {
|
|
|
74
95
|
*
|
|
75
96
|
* @example
|
|
76
97
|
* ```tsx
|
|
77
|
-
* <Text variant="
|
|
78
|
-
* <Text variant="
|
|
98
|
+
* <Text variant="heading" size="lg" as="h1">Page Title</Text>
|
|
99
|
+
* <Text variant="heading" as="h2">Section Title</Text>
|
|
79
100
|
* <Text>Default body text</Text>
|
|
80
101
|
* ```
|
|
81
102
|
*/
|
|
@@ -86,19 +107,15 @@ function _Text({ variant = "body", bold = false, size = "base", truncate = false
|
|
|
86
107
|
"success",
|
|
87
108
|
"error"
|
|
88
109
|
].includes(variant);
|
|
89
|
-
|
|
110
|
+
if (isDeprecatedHeadingVariant(variant)) console.warn(`[Kumo Text]: variant="${variant}" is deprecated. Use variant="heading" and set size and as explicitly.`);
|
|
90
111
|
return /* @__PURE__ */ jsx(useMemo(() => {
|
|
91
112
|
if (as) return as;
|
|
92
113
|
if (["mono", "mono-secondary"].includes(variant)) return "span";
|
|
93
|
-
if (
|
|
94
|
-
"heading1",
|
|
95
|
-
"heading2",
|
|
96
|
-
"heading3"
|
|
97
|
-
].includes(variant)) return "span";
|
|
114
|
+
if (variant === "heading" || isDeprecatedHeadingVariant(variant)) return "span";
|
|
98
115
|
return "p";
|
|
99
116
|
}, [variant, as]), {
|
|
100
117
|
ref,
|
|
101
|
-
className: cn("text-kumo-default", resolveVariant(KUMO_TEXT_VARIANTS.variant, variant, KUMO_TEXT_DEFAULT_VARIANTS.variant).classes,
|
|
118
|
+
className: cn("text-kumo-default", resolveVariant(KUMO_TEXT_VARIANTS.variant, variant, KUMO_TEXT_DEFAULT_VARIANTS.variant).classes, resolveTextSizeClasses(variant, size), isCopy && bold ? "font-medium" : "", truncate && "min-w-0 truncate", DANGEROUS_className),
|
|
102
119
|
style: DANGEROUS_style,
|
|
103
120
|
...props,
|
|
104
121
|
children
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
|
-
import { n as usePortalContainer } from "./portal-provider-
|
|
5
|
-
import { t as Button } from "./button-
|
|
6
|
-
import { a as ToastDescription, c as ToastViewport, l as ToastProvider$1, n as useToastManager, o as ToastRoot, t as createToastManager } from "./createToastManager-
|
|
7
|
-
import { a as ToastContent, i as ToastTitle, n as ToastPortal, r as ToastClose } from "./index.parts-
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { n as usePortalContainer } from "./portal-provider-gznk6snyqj6egd6d.js";
|
|
5
|
+
import { t as Button } from "./button-iqaz1uluabeo18f0.js";
|
|
6
|
+
import { a as ToastDescription, c as ToastViewport, l as ToastProvider$1, n as useToastManager, o as ToastRoot, t as createToastManager } from "./createToastManager-kv89sv0xhhsvmq54.js";
|
|
7
|
+
import { a as ToastContent, i as ToastTitle, n as ToastPortal, r as ToastClose } from "./index.parts-lz9cnngidxppvhz7.js";
|
|
9
8
|
import * as e$4 from "react";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@phosphor-icons/react/dist/lib/SSRBase.es.js
|
|
11
11
|
const w = e$4.forwardRef((l, s) => {
|
|
12
12
|
const { alt: r, color: a = "currentColor", size: t = "1em", weight: o = "regular", mirrored: i = !1, children: n, weights: c, ...m } = l;
|
|
@@ -263,7 +263,7 @@ function ToastList() {
|
|
|
263
263
|
className: cn("absolute right-0 bottom-0 left-auto z-[calc(1000-var(--toast-index))] mr-0 h-[var(--height)] w-full origin-bottom select-none", toastVariants({ variant: toast.variant }), "[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]", "[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s]", "after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']", "data-[ending-style]:opacity-0 data-[expanded]:h-[var(--toast-height)] data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-[limited]:opacity-0 data-[starting-style]:[transform:translateY(150%)]", "data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]", "data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]", "data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-[expanded]:data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]", "data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))] data-[expanded]:data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]", "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]", toast.bump && "animate-toast-bump"),
|
|
264
264
|
children: [/* @__PURE__ */ jsx(ToastBackground, { variant: toast.variant }), /* @__PURE__ */ jsxs(ToastContent, {
|
|
265
265
|
className: "isolate flex flex-col gap-1 transition-opacity [transition-duration:250ms] data-[behind]:pointer-events-none data-[behind]:opacity-0 data-[expanded]:pointer-events-auto data-[expanded]:opacity-100",
|
|
266
|
-
children: [toast.content ?? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", {
|
|
266
|
+
children: [toast.content ?? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", {
|
|
267
267
|
className: "flex items-start gap-2",
|
|
268
268
|
children: [/* @__PURE__ */ jsx(ToastIcon, { variant: toast.variant }), /* @__PURE__ */ jsxs("div", {
|
|
269
269
|
className: "flex flex-col gap-1 overflow-hidden",
|
|
@@ -307,7 +307,7 @@ const TOAST_BACKGROUND_CLASSES = {
|
|
|
307
307
|
info: "bg-kumo-info-tint/50"
|
|
308
308
|
};
|
|
309
309
|
function ToastBackground({ variant }) {
|
|
310
|
-
return /* @__PURE__ */ jsx("div", { className: cn("absolute inset-0 rounded-
|
|
310
|
+
return /* @__PURE__ */ jsx("div", { className: cn("absolute inset-0 rounded-xl bg-kumo-base/90", variant && TOAST_BACKGROUND_CLASSES[variant]) });
|
|
311
311
|
}
|
|
312
312
|
function ToastIcon({ variant }) {
|
|
313
313
|
if (!variant || variant === "default") return null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Button$1 } from "./button-
|
|
4
|
-
import { t as Input$1 } from "./input-
|
|
5
|
-
import { t as InputGroup } from "./input-group-
|
|
6
|
-
import { n as ToolbarButton, r as ToolbarRoot, t as ToolbarInput } from "./ToolbarInput-
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as Button$1 } from "./button-iqaz1uluabeo18f0.js";
|
|
4
|
+
import { t as Input$1 } from "./input-jthoux2vfxltqtdh.js";
|
|
5
|
+
import { t as InputGroup } from "./input-group-ksh61axy2qgkxl5y.js";
|
|
6
|
+
import { n as ToolbarButton, r as ToolbarRoot, t as ToolbarInput } from "./ToolbarInput-gxep3ixoe8r6v2to.js";
|
|
8
7
|
import React, { Children, cloneElement, createContext, isValidElement } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/toolbar/toolbar.tsx
|
|
10
10
|
/** @deprecated Toolbar size customization is deprecated. Omit `size` to use the default base size. */
|
|
11
11
|
const KUMO_TOOLBAR_VARIANTS = { size: {
|
|
@@ -67,6 +67,7 @@ const Button = React.forwardRef(({ children, className, disabled, loading, shape
|
|
|
67
67
|
return /* @__PURE__ */ jsx(ToolbarButton, {
|
|
68
68
|
ref,
|
|
69
69
|
"data-kumo-component": "Toolbar.Button",
|
|
70
|
+
disabled: loading || disabled,
|
|
70
71
|
className: cn(className, TOOLBAR_CONTROL_STYLES),
|
|
71
72
|
render: button,
|
|
72
73
|
...props,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { a as TooltipTrigger, i as TooltipPortal, n as TooltipPositioner, s as TooltipRoot, t as TooltipPopup } from "./TooltipPopup-
|
|
4
|
-
import { n as TooltipArrow, t as TooltipProvider$1 } from "./TooltipProvider-
|
|
5
|
-
import { n as usePortalContainer } from "./portal-provider-
|
|
3
|
+
import { a as TooltipTrigger, i as TooltipPortal, n as TooltipPositioner, s as TooltipRoot, t as TooltipPopup } from "./TooltipPopup-l2zrbjavf1cqclfx.js";
|
|
4
|
+
import { n as TooltipArrow, t as TooltipProvider$1 } from "./TooltipProvider-eyhgia63aq2x4frl.js";
|
|
5
|
+
import { n as usePortalContainer } from "./portal-provider-gznk6snyqj6egd6d.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/tooltip/tooltip.tsx
|
|
8
8
|
const TooltipProvider = TooltipProvider$1;
|
|
@@ -38,7 +38,7 @@ function Tooltip({ content, children, align, asChild, render, side, className, c
|
|
|
38
38
|
sideOffset: 10,
|
|
39
39
|
className: "max-w-[var(--available-width)]",
|
|
40
40
|
children: /* @__PURE__ */ jsxs(TooltipPopup, {
|
|
41
|
-
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default", "shadow-
|
|
41
|
+
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default", "shadow-md outline outline-kumo-line", "transition-[transform,scale,opacity] duration-150", "data-[starting-style]:scale-90 data-[starting-style]:opacity-0", "data-[ending-style]:scale-90 data-[ending-style]:opacity-0", "data-[instant]:duration-0", "kumo-tooltip-popup"),
|
|
42
42
|
children: [/* @__PURE__ */ jsx(TooltipArrow, {
|
|
43
43
|
className: cn("flex", "data-[side=bottom]:top-[-8px]", "data-[side=left]:right-[-13px] data-[side=left]:rotate-90", "data-[side=right]:left-[-13px] data-[side=right]:-rotate-90", "data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"),
|
|
44
44
|
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
@@ -77,11 +77,11 @@ function ArrowSvg(props) {
|
|
|
77
77
|
}),
|
|
78
78
|
/* @__PURE__ */ jsx("path", {
|
|
79
79
|
d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",
|
|
80
|
-
className: "fill-kumo-
|
|
80
|
+
className: "fill-kumo-arrow-edge"
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ jsx("path", {
|
|
83
83
|
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
84
|
-
className: "fill-kumo-
|
|
84
|
+
className: "fill-kumo-arrow-stroke"
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
87
|
});
|