@womp/kookie-ui 0.26.2 → 0.27.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/components.css +165 -4
- package/dist/cjs/components/_internal/base-button.js +1 -1
- package/dist/cjs/components/_internal/base-button.js.map +2 -2
- package/dist/cjs/components/_internal/pane-band-context.d.ts +4 -3
- package/dist/cjs/components/_internal/pane-band-context.d.ts.map +1 -1
- package/dist/cjs/components/_internal/pane-band-context.js.map +2 -2
- package/dist/cjs/components/_internal/pane-chrome.d.ts +7 -1
- package/dist/cjs/components/_internal/pane-chrome.d.ts.map +1 -1
- package/dist/cjs/components/_internal/pane-chrome.js +1 -1
- package/dist/cjs/components/_internal/pane-chrome.js.map +4 -4
- package/dist/cjs/components/_internal/portal-theme.d.ts +9 -0
- package/dist/cjs/components/_internal/portal-theme.d.ts.map +1 -0
- package/dist/cjs/components/_internal/portal-theme.js +3 -0
- package/dist/cjs/components/_internal/portal-theme.js.map +7 -0
- package/dist/cjs/components/_internal/shell-page-scroll.d.ts +15 -0
- package/dist/cjs/components/_internal/shell-page-scroll.d.ts.map +1 -0
- package/dist/cjs/components/_internal/shell-page-scroll.js +3 -0
- package/dist/cjs/components/_internal/shell-page-scroll.js.map +7 -0
- package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
- package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
- package/dist/cjs/components/alert-dialog.js +1 -1
- package/dist/cjs/components/alert-dialog.js.map +4 -4
- package/dist/cjs/components/button.js +1 -1
- package/dist/cjs/components/button.js.map +4 -4
- package/dist/cjs/components/chatbar.js +1 -1
- package/dist/cjs/components/chatbar.js.map +4 -4
- package/dist/cjs/components/chip.js +1 -1
- package/dist/cjs/components/chip.js.map +4 -4
- package/dist/cjs/components/combobox.d.ts.map +1 -1
- package/dist/cjs/components/combobox.js +1 -1
- package/dist/cjs/components/combobox.js.map +4 -4
- package/dist/cjs/components/context-menu.d.ts.map +1 -1
- package/dist/cjs/components/context-menu.js +1 -1
- package/dist/cjs/components/context-menu.js.map +4 -4
- package/dist/cjs/components/dialog.js +1 -1
- package/dist/cjs/components/dialog.js.map +4 -4
- package/dist/cjs/components/dropdown-menu.d.ts.map +1 -1
- package/dist/cjs/components/dropdown-menu.js +1 -1
- package/dist/cjs/components/dropdown-menu.js.map +4 -4
- package/dist/cjs/components/index.js +2 -2
- package/dist/cjs/components/index.js.map +4 -4
- package/dist/cjs/components/message-scroller.js +1 -1
- package/dist/cjs/components/message-scroller.js.map +4 -4
- package/dist/cjs/components/notice.js +1 -1
- package/dist/cjs/components/notice.js.map +4 -4
- package/dist/cjs/components/popover.js +1 -1
- package/dist/cjs/components/popover.js.map +4 -4
- package/dist/cjs/components/schemas/index.js +1 -1
- package/dist/cjs/components/schemas/index.js.map +2 -2
- package/dist/cjs/components/schemas/shell.schema.d.ts +1 -0
- package/dist/cjs/components/schemas/shell.schema.d.ts.map +1 -1
- package/dist/cjs/components/schemas/shell.schema.js +1 -1
- package/dist/cjs/components/schemas/shell.schema.js.map +2 -2
- package/dist/cjs/components/select.d.ts.map +1 -1
- package/dist/cjs/components/select.js +1 -1
- package/dist/cjs/components/select.js.map +4 -4
- package/dist/cjs/components/sheet.js +1 -1
- package/dist/cjs/components/sheet.js.map +4 -4
- package/dist/cjs/components/shell.d.ts +11 -0
- package/dist/cjs/components/shell.d.ts.map +1 -1
- package/dist/cjs/components/shell.js +1 -1
- package/dist/cjs/components/shell.js.map +4 -4
- package/dist/cjs/components/sidebar.js +1 -1
- package/dist/cjs/components/sidebar.js.map +4 -4
- package/dist/cjs/components/spinner.d.ts.map +1 -1
- package/dist/cjs/components/spinner.js +1 -1
- package/dist/cjs/components/spinner.js.map +2 -2
- package/dist/cjs/components/text-area.d.ts.map +1 -1
- package/dist/cjs/components/text-area.js +1 -1
- package/dist/cjs/components/text-area.js.map +2 -2
- package/dist/cjs/components/text-field.d.ts.map +1 -1
- package/dist/cjs/components/text-field.js +2 -2
- package/dist/cjs/components/text-field.js.map +2 -2
- package/dist/cjs/components/theme.d.ts.map +1 -1
- package/dist/cjs/components/theme.js +1 -1
- package/dist/cjs/components/theme.js.map +4 -4
- package/dist/cjs/components/toggle.js +1 -1
- package/dist/cjs/components/toggle.js.map +4 -4
- package/dist/cjs/components/toolbar.js +1 -1
- package/dist/cjs/components/toolbar.js.map +4 -4
- package/dist/cjs/components/tooltip.js +1 -1
- package/dist/cjs/components/tooltip.js.map +4 -4
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/{chunk-6M6HGIGN.js → chunk-25ZRMILM.js} +2 -2
- package/dist/esm/chunk-2E57H3NH.js +3 -0
- package/dist/esm/chunk-2E57H3NH.js.map +7 -0
- package/dist/esm/chunk-2S7HPQVX.js +3 -0
- package/dist/esm/chunk-2S7HPQVX.js.map +7 -0
- package/dist/esm/{chunk-UG73IGRF.js → chunk-2ZKEQS76.js} +2 -2
- package/dist/esm/{chunk-H2TSRYQ5.js → chunk-324VC67W.js} +2 -2
- package/dist/esm/{chunk-UR5BUNNT.js → chunk-3MFSQ6PN.js} +2 -2
- package/dist/esm/{chunk-OTCVSJT7.js → chunk-4MNRLB57.js} +2 -2
- package/dist/esm/{chunk-TFFU435D.js → chunk-5BX2YZV6.js} +2 -2
- package/dist/esm/chunk-5BX2YZV6.js.map +7 -0
- package/dist/esm/chunk-67UEMB4K.js +3 -0
- package/dist/esm/chunk-67UEMB4K.js.map +7 -0
- package/dist/esm/chunk-6HEORZNJ.js +3 -0
- package/dist/esm/chunk-6HEORZNJ.js.map +7 -0
- package/dist/esm/{chunk-K55IQP5H.js → chunk-6YWHNLSC.js} +2 -2
- package/dist/esm/chunk-6YWHNLSC.js.map +7 -0
- package/dist/esm/{chunk-NYBE3U3V.js → chunk-7QBNXNEN.js} +2 -2
- package/dist/esm/{chunk-E6BDD3PN.js → chunk-7V6M3MIR.js} +2 -2
- package/dist/esm/{chunk-KQIZMPSW.js → chunk-ANQLWGFN.js} +1 -1
- package/dist/esm/{chunk-KQIZMPSW.js.map → chunk-ANQLWGFN.js.map} +2 -2
- package/dist/esm/chunk-AQKSO3SW.js +3 -0
- package/dist/esm/chunk-AQKSO3SW.js.map +7 -0
- package/dist/esm/{chunk-ONJYRJ66.js → chunk-B6OFKABP.js} +2 -2
- package/dist/esm/chunk-BUXK5VGR.js +3 -0
- package/dist/esm/chunk-BUXK5VGR.js.map +7 -0
- package/dist/esm/{chunk-7QP6JFPO.js → chunk-C67MM24U.js} +2 -2
- package/dist/esm/chunk-CZ24FOFS.js +3 -0
- package/dist/esm/chunk-CZ24FOFS.js.map +7 -0
- package/dist/esm/{chunk-LFAUMDU5.js → chunk-D2C2A2ZK.js} +2 -2
- package/dist/esm/{chunk-UBUGG2OB.js → chunk-DP7MPGR7.js} +2 -2
- package/dist/esm/{chunk-BVQDDN5Q.js → chunk-EB4AG3OL.js} +2 -2
- package/dist/esm/{chunk-5PQCTVZB.js → chunk-ENQV6SEA.js} +2 -2
- package/dist/esm/{chunk-VVLUY4WR.js → chunk-EPGIYTFK.js} +2 -2
- package/dist/esm/{chunk-2TWPPDII.js → chunk-FMVOB367.js} +2 -2
- package/dist/esm/chunk-FVRVBB6O.js +3 -0
- package/dist/esm/chunk-FVRVBB6O.js.map +7 -0
- package/dist/esm/{chunk-TFFMELAL.js → chunk-FYTLUDL3.js} +2 -2
- package/dist/esm/{chunk-W4CPV4PO.js → chunk-H2J25HXP.js} +2 -2
- package/dist/esm/{chunk-C2WKAIZM.js → chunk-H73AMXCH.js} +2 -2
- package/dist/esm/{chunk-AJANJ22M.js → chunk-HBO7W7SS.js} +2 -2
- package/dist/esm/{chunk-F364PDDM.js → chunk-HLIOHDEX.js} +2 -2
- package/dist/esm/{chunk-5FWEGTP6.js → chunk-HR2VHGJ5.js} +2 -2
- package/dist/esm/chunk-HR2VHGJ5.js.map +7 -0
- package/dist/esm/{chunk-ZKQCSGL3.js → chunk-ISCZ57VL.js} +2 -2
- package/dist/esm/{chunk-TFGUTYZK.js → chunk-J54GYD7A.js} +2 -2
- package/dist/esm/{chunk-HVMRB3AH.js → chunk-JD4KR6VZ.js} +2 -2
- package/dist/esm/{chunk-MS2ONKJJ.js → chunk-JKQN6QCP.js} +2 -2
- package/dist/esm/{chunk-NS573D6O.js → chunk-JP36JSNP.js} +2 -2
- package/dist/esm/chunk-K3GDM26A.js +3 -0
- package/dist/esm/{chunk-M7IQIKB4.js.map → chunk-K3GDM26A.js.map} +2 -2
- package/dist/esm/{chunk-ULCHGKI3.js → chunk-KJZSXLIX.js} +2 -2
- package/dist/esm/{chunk-N3B6EGXL.js → chunk-LABMK6Q7.js} +2 -2
- package/dist/esm/{chunk-VIVM525H.js → chunk-MGWGD6KI.js} +2 -2
- package/dist/esm/{chunk-RD4T2MCC.js → chunk-MJKVVGGV.js} +2 -2
- package/dist/esm/chunk-MJKVVGGV.js.map +7 -0
- package/dist/esm/{chunk-TXVZOS3E.js → chunk-MMDZBPSX.js} +2 -2
- package/dist/esm/{chunk-EERKYRYI.js → chunk-NWXODCTD.js} +2 -2
- package/dist/esm/{chunk-VCZ2GYOF.js → chunk-Q5SANVIW.js} +2 -2
- package/dist/esm/chunk-QEDKL23P.js +3 -0
- package/dist/esm/chunk-QEDKL23P.js.map +7 -0
- package/dist/esm/{chunk-LGZCNQBS.js → chunk-QPRUTOLI.js} +2 -2
- package/dist/esm/{chunk-TTW3EAQT.js → chunk-QRV32INS.js} +2 -2
- package/dist/esm/{chunk-3QN4C5LW.js → chunk-REORAMUH.js} +2 -2
- package/dist/esm/{chunk-GOXGRJO6.js → chunk-SUQJ7DD4.js} +2 -2
- package/dist/esm/chunk-TSWHVZ47.js +3 -0
- package/dist/esm/chunk-TSWHVZ47.js.map +7 -0
- package/dist/esm/chunk-VQDCHBZR.js +3 -0
- package/dist/esm/chunk-VQDCHBZR.js.map +7 -0
- package/dist/esm/{chunk-TF6WAIUQ.js → chunk-W4Z6ORYO.js} +2 -2
- package/dist/esm/{chunk-F2722F7B.js → chunk-WAXRIARV.js} +2 -2
- package/dist/esm/chunk-WAXRIARV.js.map +7 -0
- package/dist/esm/{chunk-ADL3LEOQ.js → chunk-WD66RYF6.js} +2 -2
- package/dist/esm/{chunk-DIY2XQKR.js → chunk-X7JHZ3HA.js} +2 -2
- package/dist/esm/{chunk-H33NTGVF.js → chunk-XD3C3GVF.js} +2 -2
- package/dist/esm/{chunk-VPUFKJQA.js → chunk-YMUERC2J.js} +2 -2
- package/dist/esm/chunk-ZOUIIO4C.js +6 -0
- package/dist/esm/chunk-ZOUIIO4C.js.map +7 -0
- package/dist/esm/components/_internal/base-button.js +1 -1
- package/dist/esm/components/_internal/base-menu.utils.js +1 -1
- package/dist/esm/components/_internal/menu-context.js +1 -1
- package/dist/esm/components/_internal/pane-band-context.d.ts +4 -3
- package/dist/esm/components/_internal/pane-band-context.d.ts.map +1 -1
- package/dist/esm/components/_internal/pane-band-context.js +1 -1
- package/dist/esm/components/_internal/pane-chrome.d.ts +7 -1
- package/dist/esm/components/_internal/pane-chrome.d.ts.map +1 -1
- package/dist/esm/components/_internal/pane-chrome.js +1 -1
- package/dist/esm/components/_internal/portal-theme.d.ts +9 -0
- package/dist/esm/components/_internal/portal-theme.d.ts.map +1 -0
- package/dist/esm/components/_internal/portal-theme.js +3 -0
- package/dist/esm/components/_internal/portal-theme.js.map +7 -0
- package/dist/esm/components/_internal/shell-bottom.js +1 -1
- package/dist/esm/components/_internal/shell-inspector.js +1 -1
- package/dist/esm/components/_internal/shell-page-scroll.d.ts +15 -0
- package/dist/esm/components/_internal/shell-page-scroll.d.ts.map +1 -0
- package/dist/esm/components/_internal/shell-page-scroll.js +3 -0
- package/dist/esm/components/_internal/shell-page-scroll.js.map +7 -0
- package/dist/esm/components/_internal/shell-sidebar.js +1 -1
- package/dist/esm/components/accordion.js +1 -1
- package/dist/esm/components/alert-dialog.js +1 -1
- package/dist/esm/components/avatar.js +1 -1
- package/dist/esm/components/blockquote.js +1 -1
- package/dist/esm/components/box.js +1 -1
- package/dist/esm/components/button.js +1 -1
- package/dist/esm/components/card.js +1 -1
- package/dist/esm/components/chatbar.js +1 -1
- package/dist/esm/components/checkbox-group.js +1 -1
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/chip.js +1 -1
- package/dist/esm/components/code.js +1 -1
- package/dist/esm/components/combobox.d.ts.map +1 -1
- package/dist/esm/components/combobox.js +1 -1
- package/dist/esm/components/context-menu.d.ts.map +1 -1
- package/dist/esm/components/context-menu.js +1 -1
- package/dist/esm/components/dialog.js +1 -1
- package/dist/esm/components/dropdown-menu.d.ts.map +1 -1
- package/dist/esm/components/dropdown-menu.js +1 -1
- package/dist/esm/components/flex.js +1 -1
- package/dist/esm/components/grid.js +1 -1
- package/dist/esm/components/heading.js +1 -1
- package/dist/esm/components/image.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/kbd.js +1 -1
- package/dist/esm/components/link.js +1 -1
- package/dist/esm/components/message-scroller.js +1 -1
- package/dist/esm/components/navbar.js +1 -1
- package/dist/esm/components/notice.js +1 -1
- package/dist/esm/components/popover.js +1 -1
- package/dist/esm/components/progress.js +1 -1
- package/dist/esm/components/radio-group.js +1 -1
- package/dist/esm/components/radio.js +1 -1
- package/dist/esm/components/schemas/index.js +1 -1
- package/dist/esm/components/schemas/shell.schema.d.ts +1 -0
- package/dist/esm/components/schemas/shell.schema.d.ts.map +1 -1
- package/dist/esm/components/schemas/shell.schema.js +1 -1
- package/dist/esm/components/scroll-area.js +1 -1
- package/dist/esm/components/segmented-control.js +1 -1
- package/dist/esm/components/select.d.ts.map +1 -1
- package/dist/esm/components/select.js +1 -1
- package/dist/esm/components/separator.js +1 -1
- package/dist/esm/components/sheet.js +1 -1
- package/dist/esm/components/shell.d.ts +11 -0
- package/dist/esm/components/shell.d.ts.map +1 -1
- package/dist/esm/components/shell.js +1 -1
- package/dist/esm/components/sidebar.js +1 -1
- package/dist/esm/components/slider.js +1 -1
- package/dist/esm/components/spinner.d.ts.map +1 -1
- package/dist/esm/components/spinner.js +1 -1
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/table.js +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/esm/components/text-area.d.ts.map +1 -1
- package/dist/esm/components/text-area.js +1 -1
- package/dist/esm/components/text-field.d.ts.map +1 -1
- package/dist/esm/components/text-field.js +1 -1
- package/dist/esm/components/text.js +1 -1
- package/dist/esm/components/theme.d.ts.map +1 -1
- package/dist/esm/components/theme.js +1 -1
- package/dist/esm/components/toggle.js +1 -1
- package/dist/esm/components/toolbar.js +1 -1
- package/dist/esm/components/tooltip.js +1 -1
- package/dist/esm/components/virtual-menu.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/schemas/index.json +6 -1
- package/schemas/shell-root.json +6 -1
- package/src/components/_internal/pane-band-context.ts +4 -3
- package/src/components/_internal/pane-chrome.tsx +15 -2
- package/src/components/_internal/portal-theme.tsx +18 -0
- package/src/components/_internal/shell-page-scroll.ts +49 -0
- package/src/components/alert-dialog.tsx +3 -3
- package/src/components/combobox.tsx +4 -3
- package/src/components/context-menu.tsx +6 -5
- package/src/components/dialog.tsx +3 -3
- package/src/components/dropdown-menu.tsx +6 -5
- package/src/components/popover.tsx +3 -3
- package/src/components/schemas/shell.schema.ts +4 -1
- package/src/components/select.tsx +4 -3
- package/src/components/sheet.tsx +3 -3
- package/src/components/shell.css +201 -0
- package/src/components/shell.tsx +128 -22
- package/src/components/spinner.css +16 -1
- package/src/components/spinner.tsx +14 -13
- package/src/components/text-area.css +7 -2
- package/src/components/text-area.tsx +10 -8
- package/src/components/text-field.css +7 -2
- package/src/components/text-field.tsx +10 -8
- package/src/components/theme.tsx +24 -30
- package/src/components/tooltip.tsx +3 -3
- package/styles.css +165 -4
- package/dist/esm/chunk-3C4Q6PMS.js +0 -3
- package/dist/esm/chunk-3C4Q6PMS.js.map +0 -7
- package/dist/esm/chunk-3ZWHKNHI.js +0 -3
- package/dist/esm/chunk-3ZWHKNHI.js.map +0 -7
- package/dist/esm/chunk-457Z4R5W.js +0 -3
- package/dist/esm/chunk-457Z4R5W.js.map +0 -7
- package/dist/esm/chunk-5FWEGTP6.js.map +0 -7
- package/dist/esm/chunk-5MEWNLNH.js +0 -3
- package/dist/esm/chunk-5MEWNLNH.js.map +0 -7
- package/dist/esm/chunk-BEHAT3GI.js +0 -3
- package/dist/esm/chunk-BEHAT3GI.js.map +0 -7
- package/dist/esm/chunk-DG2KIH54.js +0 -6
- package/dist/esm/chunk-DG2KIH54.js.map +0 -7
- package/dist/esm/chunk-DQCE7DHY.js +0 -3
- package/dist/esm/chunk-DQCE7DHY.js.map +0 -7
- package/dist/esm/chunk-F2722F7B.js.map +0 -7
- package/dist/esm/chunk-GE7FRBZ4.js +0 -3
- package/dist/esm/chunk-GE7FRBZ4.js.map +0 -7
- package/dist/esm/chunk-K55IQP5H.js.map +0 -7
- package/dist/esm/chunk-M7IQIKB4.js +0 -3
- package/dist/esm/chunk-POP5NB33.js +0 -3
- package/dist/esm/chunk-POP5NB33.js.map +0 -7
- package/dist/esm/chunk-RD4T2MCC.js.map +0 -7
- package/dist/esm/chunk-SCIFT27R.js +0 -3
- package/dist/esm/chunk-SCIFT27R.js.map +0 -7
- package/dist/esm/chunk-TFFU435D.js.map +0 -7
- /package/dist/esm/{chunk-6M6HGIGN.js.map → chunk-25ZRMILM.js.map} +0 -0
- /package/dist/esm/{chunk-UG73IGRF.js.map → chunk-2ZKEQS76.js.map} +0 -0
- /package/dist/esm/{chunk-H2TSRYQ5.js.map → chunk-324VC67W.js.map} +0 -0
- /package/dist/esm/{chunk-UR5BUNNT.js.map → chunk-3MFSQ6PN.js.map} +0 -0
- /package/dist/esm/{chunk-OTCVSJT7.js.map → chunk-4MNRLB57.js.map} +0 -0
- /package/dist/esm/{chunk-NYBE3U3V.js.map → chunk-7QBNXNEN.js.map} +0 -0
- /package/dist/esm/{chunk-E6BDD3PN.js.map → chunk-7V6M3MIR.js.map} +0 -0
- /package/dist/esm/{chunk-ONJYRJ66.js.map → chunk-B6OFKABP.js.map} +0 -0
- /package/dist/esm/{chunk-7QP6JFPO.js.map → chunk-C67MM24U.js.map} +0 -0
- /package/dist/esm/{chunk-LFAUMDU5.js.map → chunk-D2C2A2ZK.js.map} +0 -0
- /package/dist/esm/{chunk-UBUGG2OB.js.map → chunk-DP7MPGR7.js.map} +0 -0
- /package/dist/esm/{chunk-BVQDDN5Q.js.map → chunk-EB4AG3OL.js.map} +0 -0
- /package/dist/esm/{chunk-5PQCTVZB.js.map → chunk-ENQV6SEA.js.map} +0 -0
- /package/dist/esm/{chunk-VVLUY4WR.js.map → chunk-EPGIYTFK.js.map} +0 -0
- /package/dist/esm/{chunk-2TWPPDII.js.map → chunk-FMVOB367.js.map} +0 -0
- /package/dist/esm/{chunk-TFFMELAL.js.map → chunk-FYTLUDL3.js.map} +0 -0
- /package/dist/esm/{chunk-W4CPV4PO.js.map → chunk-H2J25HXP.js.map} +0 -0
- /package/dist/esm/{chunk-C2WKAIZM.js.map → chunk-H73AMXCH.js.map} +0 -0
- /package/dist/esm/{chunk-AJANJ22M.js.map → chunk-HBO7W7SS.js.map} +0 -0
- /package/dist/esm/{chunk-F364PDDM.js.map → chunk-HLIOHDEX.js.map} +0 -0
- /package/dist/esm/{chunk-ZKQCSGL3.js.map → chunk-ISCZ57VL.js.map} +0 -0
- /package/dist/esm/{chunk-TFGUTYZK.js.map → chunk-J54GYD7A.js.map} +0 -0
- /package/dist/esm/{chunk-HVMRB3AH.js.map → chunk-JD4KR6VZ.js.map} +0 -0
- /package/dist/esm/{chunk-MS2ONKJJ.js.map → chunk-JKQN6QCP.js.map} +0 -0
- /package/dist/esm/{chunk-NS573D6O.js.map → chunk-JP36JSNP.js.map} +0 -0
- /package/dist/esm/{chunk-ULCHGKI3.js.map → chunk-KJZSXLIX.js.map} +0 -0
- /package/dist/esm/{chunk-N3B6EGXL.js.map → chunk-LABMK6Q7.js.map} +0 -0
- /package/dist/esm/{chunk-VIVM525H.js.map → chunk-MGWGD6KI.js.map} +0 -0
- /package/dist/esm/{chunk-TXVZOS3E.js.map → chunk-MMDZBPSX.js.map} +0 -0
- /package/dist/esm/{chunk-EERKYRYI.js.map → chunk-NWXODCTD.js.map} +0 -0
- /package/dist/esm/{chunk-VCZ2GYOF.js.map → chunk-Q5SANVIW.js.map} +0 -0
- /package/dist/esm/{chunk-LGZCNQBS.js.map → chunk-QPRUTOLI.js.map} +0 -0
- /package/dist/esm/{chunk-TTW3EAQT.js.map → chunk-QRV32INS.js.map} +0 -0
- /package/dist/esm/{chunk-3QN4C5LW.js.map → chunk-REORAMUH.js.map} +0 -0
- /package/dist/esm/{chunk-GOXGRJO6.js.map → chunk-SUQJ7DD4.js.map} +0 -0
- /package/dist/esm/{chunk-TF6WAIUQ.js.map → chunk-W4Z6ORYO.js.map} +0 -0
- /package/dist/esm/{chunk-ADL3LEOQ.js.map → chunk-WD66RYF6.js.map} +0 -0
- /package/dist/esm/{chunk-DIY2XQKR.js.map → chunk-X7JHZ3HA.js.map} +0 -0
- /package/dist/esm/{chunk-H33NTGVF.js.map → chunk-XD3C3GVF.js.map} +0 -0
- /package/dist/esm/{chunk-VPUFKJQA.js.map → chunk-YMUERC2J.js.map} +0 -0
|
@@ -81,16 +81,18 @@ const TextArea = React.forwardRef<TextAreaElement, TextAreaProps>((ownProps, for
|
|
|
81
81
|
/>
|
|
82
82
|
</div>
|
|
83
83
|
);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
//
|
|
87
|
-
//
|
|
84
|
+
// The wrapper is always there, so a message coming or going never moves the field in the tree:
|
|
85
|
+
// moving it would remount the input, dropping focus, the caret and an uncontrolled value. With
|
|
86
|
+
// no message it is `display: contents` and the field is the box the parent lays out; with one
|
|
87
|
+
// it holds the field and the message below it, and the caller's className and style size the pair.
|
|
88
88
|
return (
|
|
89
|
-
<div className={classNames('kui-TextAreaWrapper', ownClassName)} style={ownStyle}>
|
|
89
|
+
<div className={classNames('kui-TextAreaWrapper', wrapped && ownClassName)} style={wrapped ? ownStyle : undefined} data-message={wrapped || undefined}>
|
|
90
90
|
{field}
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
|
|
91
|
+
{wrapped ? (
|
|
92
|
+
<div id={errorId} className="kui-TextAreaErrorMessage" role="alert">
|
|
93
|
+
{textAreaProps.errorMessage}
|
|
94
|
+
</div>
|
|
95
|
+
) : null}
|
|
94
96
|
</div>
|
|
95
97
|
);
|
|
96
98
|
});
|
|
@@ -645,8 +645,13 @@
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
/* Error message styling */
|
|
648
|
-
/* With an error message, one box holds the field and the message below it.
|
|
649
|
-
.
|
|
648
|
+
/* With an error message, one box holds the field and the message below it. Without one the
|
|
649
|
+
wrapper steps out of layout, and the field is the box. */
|
|
650
|
+
.kui-TextFieldWrapper:where(:not([data-message])) {
|
|
651
|
+
display: contents;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.kui-TextFieldWrapper:where([data-message]) {
|
|
650
655
|
display: flex;
|
|
651
656
|
flex-direction: column;
|
|
652
657
|
min-width: 0;
|
|
@@ -120,16 +120,18 @@ const TextFieldRoot = React.forwardRef<TextFieldRootElement, TextFieldRootProps>
|
|
|
120
120
|
<TextFieldContext.Provider value={contextValue}>{children}</TextFieldContext.Provider>
|
|
121
121
|
</div>
|
|
122
122
|
);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
//
|
|
126
|
-
//
|
|
123
|
+
// The wrapper is always there, so a message coming or going never moves the field in the tree:
|
|
124
|
+
// moving it would remount the input, dropping focus, the caret and an uncontrolled value. With
|
|
125
|
+
// no message it is `display: contents` and the field is the box the parent lays out; with one
|
|
126
|
+
// it holds the field and the message below it, and the caller's className and style size the pair.
|
|
127
127
|
return (
|
|
128
|
-
<div className={classNames('kui-TextFieldWrapper', ownClassName)} style={ownStyle}>
|
|
128
|
+
<div className={classNames('kui-TextFieldWrapper', wrapped && ownClassName)} style={wrapped ? ownStyle : undefined} data-message={wrapped || undefined}>
|
|
129
129
|
{field}
|
|
130
|
-
|
|
131
|
-
{
|
|
132
|
-
|
|
130
|
+
{wrapped ? (
|
|
131
|
+
<div id={errorId} className="kui-TextFieldErrorMessage" role="alert">
|
|
132
|
+
{inputProps.errorMessage}
|
|
133
|
+
</div>
|
|
134
|
+
) : null}
|
|
133
135
|
</div>
|
|
134
136
|
);
|
|
135
137
|
});
|
package/src/components/theme.tsx
CHANGED
|
@@ -6,7 +6,6 @@ import { Direction, Slot } from 'radix-ui';
|
|
|
6
6
|
|
|
7
7
|
import { getMatchingGrayColor } from '../helpers/get-matching-gray-color.js';
|
|
8
8
|
import { ThemeSizeContext } from '../hooks/theme-size.js';
|
|
9
|
-
import { PaneBandSizeContext } from './_internal/pane-band-context.js';
|
|
10
9
|
import { usePropSyncedState } from '../hooks/use-prop-synced-state.js';
|
|
11
10
|
import { themePropDefs } from './theme.props.js';
|
|
12
11
|
|
|
@@ -150,7 +149,6 @@ interface ThemeImplPrivateProps extends Partial<ThemeChangeHandlers> {
|
|
|
150
149
|
}
|
|
151
150
|
const ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, forwardedRef) => {
|
|
152
151
|
const context = React.useContext(ThemeContext);
|
|
153
|
-
const outerBand = React.useContext(PaneBandSizeContext);
|
|
154
152
|
const {
|
|
155
153
|
asChild,
|
|
156
154
|
isRoot,
|
|
@@ -221,34 +219,30 @@ const ThemeImpl = React.forwardRef<ThemeImplElement, ThemeImplProps>((props, for
|
|
|
221
219
|
],
|
|
222
220
|
)}
|
|
223
221
|
>
|
|
224
|
-
{/*
|
|
225
|
-
|
|
226
|
-
<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
{
|
|
241
|
-
|
|
242
|
-
'
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
)}
|
|
249
|
-
/>
|
|
250
|
-
</ThemeSizeContext.Provider>
|
|
251
|
-
</PaneBandSizeContext.Provider>
|
|
222
|
+
{/* Size travels on its own context as a bare string, so the components
|
|
223
|
+
that read it do not re-render when another theme value changes. */}
|
|
224
|
+
<ThemeSizeContext.Provider value={size}>
|
|
225
|
+
<Comp
|
|
226
|
+
data-is-root-theme={isRoot ? 'true' : 'false'}
|
|
227
|
+
data-accent-color={accentColor}
|
|
228
|
+
data-gray-color={resolvedGrayColor}
|
|
229
|
+
// for nested `Theme` background
|
|
230
|
+
data-has-background={hasBackground ? 'true' : 'false'}
|
|
231
|
+
data-radius={radius}
|
|
232
|
+
data-font-family={fontFamily}
|
|
233
|
+
data-heading-font-family={headingFontFamily}
|
|
234
|
+
ref={forwardedRef}
|
|
235
|
+
{...themeProps}
|
|
236
|
+
className={classNames(
|
|
237
|
+
'kui-theme',
|
|
238
|
+
{
|
|
239
|
+
light: appearance === 'light',
|
|
240
|
+
dark: appearance === 'dark',
|
|
241
|
+
},
|
|
242
|
+
themeProps.className,
|
|
243
|
+
)}
|
|
244
|
+
/>
|
|
245
|
+
</ThemeSizeContext.Provider>
|
|
252
246
|
</ThemeContext.Provider>
|
|
253
247
|
);
|
|
254
248
|
});
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
4
4
|
|
|
5
5
|
import { Text } from './text.js';
|
|
6
|
-
import {
|
|
6
|
+
import { PortalTheme } from './_internal/portal-theme.js';
|
|
7
7
|
import { extractProps } from '../helpers/extract-props.js';
|
|
8
8
|
import { tooltipPropDefs } from './tooltip.props.js';
|
|
9
9
|
|
|
@@ -63,7 +63,7 @@ const Tooltip = React.forwardRef<TooltipElement, TooltipProps>((props, forwarded
|
|
|
63
63
|
<TooltipPrimitive.Root {...rootProps}>
|
|
64
64
|
<TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>
|
|
65
65
|
<TooltipPrimitive.Portal container={container} forceMount={forceMount}>
|
|
66
|
-
<
|
|
66
|
+
<PortalTheme asChild>
|
|
67
67
|
<TooltipPrimitive.Content
|
|
68
68
|
sideOffset={4}
|
|
69
69
|
collisionPadding={10}
|
|
@@ -77,7 +77,7 @@ const Tooltip = React.forwardRef<TooltipElement, TooltipProps>((props, forwarded
|
|
|
77
77
|
</Text>
|
|
78
78
|
<TooltipPrimitive.Arrow className="kui-TooltipArrow" />
|
|
79
79
|
</TooltipPrimitive.Content>
|
|
80
|
-
</
|
|
80
|
+
</PortalTheme>
|
|
81
81
|
</TooltipPrimitive.Portal>
|
|
82
82
|
</TooltipPrimitive.Root>
|
|
83
83
|
);
|
package/styles.css
CHANGED
|
@@ -11321,7 +11321,10 @@
|
|
|
11321
11321
|
box-shadow: inset 0 0 0 1px var(--red-7);
|
|
11322
11322
|
}
|
|
11323
11323
|
}
|
|
11324
|
-
.kui-TextFieldWrapper {
|
|
11324
|
+
.kui-TextFieldWrapper:where(:not([data-message])) {
|
|
11325
|
+
display: contents;
|
|
11326
|
+
}
|
|
11327
|
+
.kui-TextFieldWrapper:where([data-message]) {
|
|
11325
11328
|
display: -webkit-box;
|
|
11326
11329
|
display: -ms-flexbox;
|
|
11327
11330
|
display: flex;
|
|
@@ -16725,6 +16728,7 @@
|
|
|
16725
16728
|
.kui-ShellRoot {
|
|
16726
16729
|
--shell-inset-gap: var(--space-3);
|
|
16727
16730
|
--shell-rail-offset: 0px;
|
|
16731
|
+
--kui-shell-page-top: 0px;
|
|
16728
16732
|
display: grid;
|
|
16729
16733
|
grid-template-areas: 'header header header header header' 'rail panel sidebar content inspector' 'bottom bottom bottom bottom bottom';
|
|
16730
16734
|
grid-template-columns: auto auto auto minmax(0, 1fr) auto;
|
|
@@ -16742,6 +16746,9 @@
|
|
|
16742
16746
|
height: 100dvh;
|
|
16743
16747
|
}
|
|
16744
16748
|
}
|
|
16749
|
+
.kui-ShellRoot[data-contained] {
|
|
16750
|
+
height: 100%;
|
|
16751
|
+
}
|
|
16745
16752
|
:root[data-kui-shell-lock] {
|
|
16746
16753
|
overflow: hidden;
|
|
16747
16754
|
}
|
|
@@ -16782,6 +16789,8 @@
|
|
|
16782
16789
|
--kui-pane-band-end: initial;
|
|
16783
16790
|
--kui-shell-position: initial;
|
|
16784
16791
|
--kui-shell-z: initial;
|
|
16792
|
+
--kui-shell-pin: initial;
|
|
16793
|
+
--kui-shell-pin-top: initial;
|
|
16785
16794
|
--kui-shell-row: initial;
|
|
16786
16795
|
--kui-shell-col: initial;
|
|
16787
16796
|
--kui-shell-surface: initial;
|
|
@@ -17083,6 +17092,8 @@
|
|
|
17083
17092
|
.kui-ShellRail[data-presentation='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17084
17093
|
--kui-shell-position: absolute;
|
|
17085
17094
|
--kui-shell-z: 6;
|
|
17095
|
+
--kui-shell-pin: fixed;
|
|
17096
|
+
--kui-shell-pin-top: 0px;
|
|
17086
17097
|
--kui-shell-row: 1 / -1;
|
|
17087
17098
|
--kui-shell-col: 1 / -1;
|
|
17088
17099
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17096,6 +17107,8 @@
|
|
|
17096
17107
|
.kui-ShellRail[data-presentation='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17097
17108
|
--kui-shell-position: absolute;
|
|
17098
17109
|
--kui-shell-z: 3;
|
|
17110
|
+
--kui-shell-pin: fixed;
|
|
17111
|
+
--kui-shell-pin-top: initial;
|
|
17099
17112
|
--kui-shell-row: 2 / 3;
|
|
17100
17113
|
--kui-shell-col: 1 / -1;
|
|
17101
17114
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17112,6 +17125,8 @@
|
|
|
17112
17125
|
.kui-ShellRail[data-presentation-initial='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17113
17126
|
--kui-shell-position: initial;
|
|
17114
17127
|
--kui-shell-z: initial;
|
|
17128
|
+
--kui-shell-pin: initial;
|
|
17129
|
+
--kui-shell-pin-top: initial;
|
|
17115
17130
|
--kui-shell-row: initial;
|
|
17116
17131
|
--kui-shell-col: initial;
|
|
17117
17132
|
--kui-shell-surface: initial;
|
|
@@ -17125,6 +17140,8 @@
|
|
|
17125
17140
|
.kui-ShellRail[data-presentation-initial='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17126
17141
|
--kui-shell-position: absolute;
|
|
17127
17142
|
--kui-shell-z: 6;
|
|
17143
|
+
--kui-shell-pin: fixed;
|
|
17144
|
+
--kui-shell-pin-top: 0px;
|
|
17128
17145
|
--kui-shell-row: 1 / -1;
|
|
17129
17146
|
--kui-shell-col: 1 / -1;
|
|
17130
17147
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17138,6 +17155,8 @@
|
|
|
17138
17155
|
.kui-ShellRail[data-presentation-initial='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17139
17156
|
--kui-shell-position: absolute;
|
|
17140
17157
|
--kui-shell-z: 3;
|
|
17158
|
+
--kui-shell-pin: fixed;
|
|
17159
|
+
--kui-shell-pin-top: initial;
|
|
17141
17160
|
--kui-shell-row: 2 / 3;
|
|
17142
17161
|
--kui-shell-col: 1 / -1;
|
|
17143
17162
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17163,6 +17182,8 @@
|
|
|
17163
17182
|
.kui-ShellRail[data-presentation-xs='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17164
17183
|
--kui-shell-position: initial;
|
|
17165
17184
|
--kui-shell-z: initial;
|
|
17185
|
+
--kui-shell-pin: initial;
|
|
17186
|
+
--kui-shell-pin-top: initial;
|
|
17166
17187
|
--kui-shell-row: initial;
|
|
17167
17188
|
--kui-shell-col: initial;
|
|
17168
17189
|
--kui-shell-surface: initial;
|
|
@@ -17176,6 +17197,8 @@
|
|
|
17176
17197
|
.kui-ShellRail[data-presentation-xs='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17177
17198
|
--kui-shell-position: absolute;
|
|
17178
17199
|
--kui-shell-z: 6;
|
|
17200
|
+
--kui-shell-pin: fixed;
|
|
17201
|
+
--kui-shell-pin-top: 0px;
|
|
17179
17202
|
--kui-shell-row: 1 / -1;
|
|
17180
17203
|
--kui-shell-col: 1 / -1;
|
|
17181
17204
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17189,6 +17212,8 @@
|
|
|
17189
17212
|
.kui-ShellRail[data-presentation-xs='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17190
17213
|
--kui-shell-position: absolute;
|
|
17191
17214
|
--kui-shell-z: 3;
|
|
17215
|
+
--kui-shell-pin: fixed;
|
|
17216
|
+
--kui-shell-pin-top: initial;
|
|
17192
17217
|
--kui-shell-row: 2 / 3;
|
|
17193
17218
|
--kui-shell-col: 1 / -1;
|
|
17194
17219
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17215,6 +17240,8 @@
|
|
|
17215
17240
|
.kui-ShellRail[data-presentation-sm='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17216
17241
|
--kui-shell-position: initial;
|
|
17217
17242
|
--kui-shell-z: initial;
|
|
17243
|
+
--kui-shell-pin: initial;
|
|
17244
|
+
--kui-shell-pin-top: initial;
|
|
17218
17245
|
--kui-shell-row: initial;
|
|
17219
17246
|
--kui-shell-col: initial;
|
|
17220
17247
|
--kui-shell-surface: initial;
|
|
@@ -17228,6 +17255,8 @@
|
|
|
17228
17255
|
.kui-ShellRail[data-presentation-sm='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17229
17256
|
--kui-shell-position: absolute;
|
|
17230
17257
|
--kui-shell-z: 6;
|
|
17258
|
+
--kui-shell-pin: fixed;
|
|
17259
|
+
--kui-shell-pin-top: 0px;
|
|
17231
17260
|
--kui-shell-row: 1 / -1;
|
|
17232
17261
|
--kui-shell-col: 1 / -1;
|
|
17233
17262
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17241,6 +17270,8 @@
|
|
|
17241
17270
|
.kui-ShellRail[data-presentation-sm='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17242
17271
|
--kui-shell-position: absolute;
|
|
17243
17272
|
--kui-shell-z: 3;
|
|
17273
|
+
--kui-shell-pin: fixed;
|
|
17274
|
+
--kui-shell-pin-top: initial;
|
|
17244
17275
|
--kui-shell-row: 2 / 3;
|
|
17245
17276
|
--kui-shell-col: 1 / -1;
|
|
17246
17277
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17267,6 +17298,8 @@
|
|
|
17267
17298
|
.kui-ShellRail[data-presentation-md='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17268
17299
|
--kui-shell-position: initial;
|
|
17269
17300
|
--kui-shell-z: initial;
|
|
17301
|
+
--kui-shell-pin: initial;
|
|
17302
|
+
--kui-shell-pin-top: initial;
|
|
17270
17303
|
--kui-shell-row: initial;
|
|
17271
17304
|
--kui-shell-col: initial;
|
|
17272
17305
|
--kui-shell-surface: initial;
|
|
@@ -17280,6 +17313,8 @@
|
|
|
17280
17313
|
.kui-ShellRail[data-presentation-md='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17281
17314
|
--kui-shell-position: absolute;
|
|
17282
17315
|
--kui-shell-z: 6;
|
|
17316
|
+
--kui-shell-pin: fixed;
|
|
17317
|
+
--kui-shell-pin-top: 0px;
|
|
17283
17318
|
--kui-shell-row: 1 / -1;
|
|
17284
17319
|
--kui-shell-col: 1 / -1;
|
|
17285
17320
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17293,6 +17328,8 @@
|
|
|
17293
17328
|
.kui-ShellRail[data-presentation-md='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17294
17329
|
--kui-shell-position: absolute;
|
|
17295
17330
|
--kui-shell-z: 3;
|
|
17331
|
+
--kui-shell-pin: fixed;
|
|
17332
|
+
--kui-shell-pin-top: initial;
|
|
17296
17333
|
--kui-shell-row: 2 / 3;
|
|
17297
17334
|
--kui-shell-col: 1 / -1;
|
|
17298
17335
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17319,6 +17356,8 @@
|
|
|
17319
17356
|
.kui-ShellRail[data-presentation-lg='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17320
17357
|
--kui-shell-position: initial;
|
|
17321
17358
|
--kui-shell-z: initial;
|
|
17359
|
+
--kui-shell-pin: initial;
|
|
17360
|
+
--kui-shell-pin-top: initial;
|
|
17322
17361
|
--kui-shell-row: initial;
|
|
17323
17362
|
--kui-shell-col: initial;
|
|
17324
17363
|
--kui-shell-surface: initial;
|
|
@@ -17332,6 +17371,8 @@
|
|
|
17332
17371
|
.kui-ShellRail[data-presentation-lg='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17333
17372
|
--kui-shell-position: absolute;
|
|
17334
17373
|
--kui-shell-z: 6;
|
|
17374
|
+
--kui-shell-pin: fixed;
|
|
17375
|
+
--kui-shell-pin-top: 0px;
|
|
17335
17376
|
--kui-shell-row: 1 / -1;
|
|
17336
17377
|
--kui-shell-col: 1 / -1;
|
|
17337
17378
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17345,6 +17386,8 @@
|
|
|
17345
17386
|
.kui-ShellRail[data-presentation-lg='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17346
17387
|
--kui-shell-position: absolute;
|
|
17347
17388
|
--kui-shell-z: 3;
|
|
17389
|
+
--kui-shell-pin: fixed;
|
|
17390
|
+
--kui-shell-pin-top: initial;
|
|
17348
17391
|
--kui-shell-row: 2 / 3;
|
|
17349
17392
|
--kui-shell-col: 1 / -1;
|
|
17350
17393
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17371,6 +17414,8 @@
|
|
|
17371
17414
|
.kui-ShellRail[data-presentation-xl='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17372
17415
|
--kui-shell-position: initial;
|
|
17373
17416
|
--kui-shell-z: initial;
|
|
17417
|
+
--kui-shell-pin: initial;
|
|
17418
|
+
--kui-shell-pin-top: initial;
|
|
17374
17419
|
--kui-shell-row: initial;
|
|
17375
17420
|
--kui-shell-col: initial;
|
|
17376
17421
|
--kui-shell-surface: initial;
|
|
@@ -17384,6 +17429,8 @@
|
|
|
17384
17429
|
.kui-ShellRail[data-presentation-xl='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17385
17430
|
--kui-shell-position: absolute;
|
|
17386
17431
|
--kui-shell-z: 6;
|
|
17432
|
+
--kui-shell-pin: fixed;
|
|
17433
|
+
--kui-shell-pin-top: 0px;
|
|
17387
17434
|
--kui-shell-row: 1 / -1;
|
|
17388
17435
|
--kui-shell-col: 1 / -1;
|
|
17389
17436
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17397,6 +17444,8 @@
|
|
|
17397
17444
|
.kui-ShellRail[data-presentation-xl='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
17398
17445
|
--kui-shell-position: absolute;
|
|
17399
17446
|
--kui-shell-z: 3;
|
|
17447
|
+
--kui-shell-pin: fixed;
|
|
17448
|
+
--kui-shell-pin-top: initial;
|
|
17400
17449
|
--kui-shell-row: 2 / 3;
|
|
17401
17450
|
--kui-shell-col: 1 / -1;
|
|
17402
17451
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17422,6 +17471,8 @@
|
|
|
17422
17471
|
.kui-ShellRail ~ .kui-ShellPanel[data-presentation-follows][data-peek][data-state] {
|
|
17423
17472
|
--kui-shell-position: absolute;
|
|
17424
17473
|
--kui-shell-z: 4;
|
|
17474
|
+
--kui-shell-pin: fixed;
|
|
17475
|
+
--kui-shell-pin-top: initial;
|
|
17425
17476
|
--kui-shell-row: 2 / 3;
|
|
17426
17477
|
--kui-shell-col: 1 / -1;
|
|
17427
17478
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -17495,6 +17546,96 @@
|
|
|
17495
17546
|
-webkit-margin-before: 0;
|
|
17496
17547
|
margin-block-start: 0;
|
|
17497
17548
|
}
|
|
17549
|
+
@media (max-width: 767.98px) and (pointer: coarse) {
|
|
17550
|
+
.kui-ShellRoot[data-window] {
|
|
17551
|
+
height: auto;
|
|
17552
|
+
min-height: 100vh;
|
|
17553
|
+
overflow: clip;
|
|
17554
|
+
}
|
|
17555
|
+
@supports (height: 100dvh) {
|
|
17556
|
+
.kui-ShellRoot[data-window] {
|
|
17557
|
+
min-height: 100dvh;
|
|
17558
|
+
}
|
|
17559
|
+
}
|
|
17560
|
+
.kui-ShellRoot[data-window]:has(> .kui-ShellHeader) {
|
|
17561
|
+
--kui-shell-page-top: var(--kui-shell-header-h, 64px);
|
|
17562
|
+
}
|
|
17563
|
+
.kui-ShellRoot[data-window] > .kui-ShellHeader {
|
|
17564
|
+
position: sticky;
|
|
17565
|
+
top: 0;
|
|
17566
|
+
}
|
|
17567
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent {
|
|
17568
|
+
overflow: clip;
|
|
17569
|
+
isolation: isolate;
|
|
17570
|
+
}
|
|
17571
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent :where(*) {
|
|
17572
|
+
scroll-margin-block: calc(var(--kui-shell-page-top) + var(--kui-content-float-start, 0px)) var(--kui-content-float-end, 0px);
|
|
17573
|
+
}
|
|
17574
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellPaneHeader[data-float]) {
|
|
17575
|
+
--kui-content-float-start: calc(max(var(--kui-pane-row-start), var(--kui-pane-band-start, 0px)) + 2 * var(--kui-pane-pad-start));
|
|
17576
|
+
}
|
|
17577
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellPaneFooter[data-float]) {
|
|
17578
|
+
--kui-content-float-end: calc(max(var(--kui-pane-row-end), var(--kui-pane-band-end, 0px)) + 2 * var(--kui-pane-pad-end));
|
|
17579
|
+
}
|
|
17580
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll {
|
|
17581
|
+
-webkit-box-flex: 0;
|
|
17582
|
+
-ms-flex: none;
|
|
17583
|
+
flex: none;
|
|
17584
|
+
height: auto;
|
|
17585
|
+
overflow: clip;
|
|
17586
|
+
}
|
|
17587
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll > .kui-ScrollAreaViewport {
|
|
17588
|
+
height: auto;
|
|
17589
|
+
overflow: visible !important;
|
|
17590
|
+
-webkit-mask-image: none;
|
|
17591
|
+
mask-image: none;
|
|
17592
|
+
}
|
|
17593
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll > .kui-ScrollAreaScrollbar {
|
|
17594
|
+
display: none;
|
|
17595
|
+
}
|
|
17596
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellScroll) > .kui-ShellPaneHeader[data-float] {
|
|
17597
|
+
position: sticky;
|
|
17598
|
+
top: var(--kui-shell-page-top);
|
|
17599
|
+
-webkit-box-ordinal-group: 0;
|
|
17600
|
+
-ms-flex-order: -1;
|
|
17601
|
+
order: -1;
|
|
17602
|
+
margin-bottom: calc(-1 * var(--kui-content-float-start, 0px));
|
|
17603
|
+
}
|
|
17604
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellScroll) > .kui-ShellPaneFooter[data-float] {
|
|
17605
|
+
position: sticky;
|
|
17606
|
+
bottom: 0;
|
|
17607
|
+
-webkit-box-ordinal-group: 2;
|
|
17608
|
+
-ms-flex-order: 1;
|
|
17609
|
+
order: 1;
|
|
17610
|
+
margin-top: calc(-1 * var(--kui-content-float-end, 0px));
|
|
17611
|
+
}
|
|
17612
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > :not(.kui-ShellScroll, [data-float]):has(~ .kui-ShellScroll) {
|
|
17613
|
+
position: sticky;
|
|
17614
|
+
top: var(--kui-shell-page-top);
|
|
17615
|
+
z-index: 1;
|
|
17616
|
+
}
|
|
17617
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll ~ :not([data-float]) {
|
|
17618
|
+
position: sticky;
|
|
17619
|
+
bottom: 0;
|
|
17620
|
+
z-index: 1;
|
|
17621
|
+
}
|
|
17622
|
+
.kui-ShellRoot[data-window] > :is(.kui-ShellRail, .kui-ShellPanel, .kui-ShellSidebar, .kui-ShellInspector) {
|
|
17623
|
+
position: var(--kui-shell-pin, sticky);
|
|
17624
|
+
top: var(--kui-shell-pin-top, var(--kui-shell-page-top));
|
|
17625
|
+
block-size: calc(100vh - var(--kui-shell-pin-top, var(--kui-shell-page-top)));
|
|
17626
|
+
}
|
|
17627
|
+
@supports (height: 100dvh) {
|
|
17628
|
+
.kui-ShellRoot[data-window] > :is(.kui-ShellRail, .kui-ShellPanel, .kui-ShellSidebar, .kui-ShellInspector) {
|
|
17629
|
+
block-size: calc(100dvh - var(--kui-shell-pin-top, var(--kui-shell-page-top)));
|
|
17630
|
+
}
|
|
17631
|
+
}
|
|
17632
|
+
.kui-ShellRoot[data-window] > .kui-ShellBottom {
|
|
17633
|
+
position: var(--kui-shell-pin, sticky);
|
|
17634
|
+
}
|
|
17635
|
+
.kui-ShellRoot[data-window] > .kui-ShellScrim {
|
|
17636
|
+
position: fixed;
|
|
17637
|
+
}
|
|
17638
|
+
}
|
|
17498
17639
|
.kui-ShellResizer {
|
|
17499
17640
|
position: absolute;
|
|
17500
17641
|
z-index: 1;
|
|
@@ -18151,8 +18292,25 @@
|
|
|
18151
18292
|
background-color: CanvasText;
|
|
18152
18293
|
}
|
|
18153
18294
|
}
|
|
18154
|
-
.kui-
|
|
18295
|
+
.kui-SpinnerHost:where(:not([data-loading])) {
|
|
18296
|
+
display: contents;
|
|
18297
|
+
}
|
|
18298
|
+
.kui-SpinnerHost:where([data-loading]) {
|
|
18299
|
+
position: relative;
|
|
18300
|
+
display: -webkit-box;
|
|
18301
|
+
display: -ms-flexbox;
|
|
18302
|
+
display: flex;
|
|
18303
|
+
-webkit-box-align: center;
|
|
18304
|
+
-ms-flex-align: center;
|
|
18305
|
+
align-items: center;
|
|
18306
|
+
-webkit-box-pack: center;
|
|
18307
|
+
-ms-flex-pack: center;
|
|
18308
|
+
justify-content: center;
|
|
18309
|
+
}
|
|
18310
|
+
.kui-SpinnerChildren {
|
|
18155
18311
|
display: contents;
|
|
18312
|
+
}
|
|
18313
|
+
.kui-SpinnerHiddenChildren {
|
|
18156
18314
|
visibility: hidden;
|
|
18157
18315
|
}
|
|
18158
18316
|
.kui-SwitchRoot {
|
|
@@ -19899,7 +20057,10 @@
|
|
|
19899
20057
|
box-shadow: inset 0 0 0 1px var(--red-7);
|
|
19900
20058
|
}
|
|
19901
20059
|
}
|
|
19902
|
-
.kui-TextAreaWrapper {
|
|
20060
|
+
.kui-TextAreaWrapper:where(:not([data-message])) {
|
|
20061
|
+
display: contents;
|
|
20062
|
+
}
|
|
20063
|
+
.kui-TextAreaWrapper:where([data-message]) {
|
|
19903
20064
|
display: -webkit-box;
|
|
19904
20065
|
display: -ms-flexbox;
|
|
19905
20066
|
display: flex;
|
|
@@ -19909,7 +20070,7 @@
|
|
|
19909
20070
|
flex-direction: column;
|
|
19910
20071
|
min-width: 0;
|
|
19911
20072
|
}
|
|
19912
|
-
.kui-TextAreaWrapper > :where(.kui-TextAreaRoot) {
|
|
20073
|
+
.kui-TextAreaWrapper:where([data-message]) > :where(.kui-TextAreaRoot) {
|
|
19913
20074
|
-webkit-box-flex: 1;
|
|
19914
20075
|
-ms-flex: 1 1 auto;
|
|
19915
20076
|
flex: 1 1 auto;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{b as C,c as T,d as N,e as G}from"./chunk-2ACVWLFA.js";import{a as F}from"./chunk-TGRHRMQI.js";import{b as j,c as g}from"./chunk-GE7FRBZ4.js";import{b as z,d as L,f as O}from"./chunk-GKDGNPBD.js";import{c as W}from"./chunk-5ON3XLRD.js";import{c as h,e as V,g as S,h as k,i as A}from"./chunk-ZKQCSGL3.js";import{b,c as R,d as I,e as v}from"./chunk-BVQDDN5Q.js";import{a as y}from"./chunk-VIVM525H.js";import{c as f}from"./chunk-OKQAVYW4.js";import{a as ne}from"./chunk-VQPANPMI.js";var ae={};ne(ae,{CheckboxItem:()=>Y,Content:()=>K,Group:()=>J,Item:()=>H,Label:()=>U,RadioGroup:()=>Q,RadioItem:()=>X,Root:()=>_,Separator:()=>te,Sub:()=>Z,SubContent:()=>ee,SubTrigger:()=>$,Trigger:()=>q});import*as e from"react";import s from"classnames";import{ContextMenu as i,Slot as B}from"radix-ui";import{useCallbackRef as re}from"radix-ui/internal";var _=t=>{let{open:r,onOpenChange:n}=t,[a,o]=e.useState(!1),u=r??a,p=re(n),c=e.useCallback(l=>{o(l),p(l)},[p]),m=e.useCallback(()=>c(!1),[c]);return e.createElement(V,{value:m},e.createElement(i.Root,{...t,open:u,onOpenChange:c}))};_.displayName="ContextMenu.Root";var q=e.forwardRef(({children:t,...r},n)=>e.createElement(i.Trigger,{...r,ref:n,asChild:!0},F(t)));q.displayName="ContextMenu.Trigger";var E=e.createContext({}),K=e.forwardRef((t,r)=>{let n=W(t,C.size),a=j(),{size:o=C.size.default}=n,{className:u,children:p,color:c,container:m,forceMount:l,submenuBehavior:w,virtualized:d=!1,...P}=f(n,C),x=c||a.accentColor,M=b(o,C.size.default),oe=e.useMemo(()=>({size:o,color:x}),[o,x]),D=e.createElement(h,{size:o},e.createElement(E.Provider,{value:oe},p));return e.createElement(i.Portal,{container:m,forceMount:l},e.createElement(g,{asChild:!0},e.createElement(i.Content,{"data-accent-color":x,alignOffset:R(M),collisionPadding:10,...P,asChild:!1,ref:r,className:s("kui-PopperContent","kui-BaseMenuContent","kui-variant-soft","kui-ContextMenuContent",u)},d?e.createElement("div",{className:s("kui-BaseMenuViewport","kui-ContextMenuViewport","kui-virtualized")},D):e.createElement(y,{type:"auto",scrollbars:"vertical"},e.createElement("div",{className:s("kui-BaseMenuViewport","kui-ContextMenuViewport")},D)))))});K.displayName="ContextMenu.Content";var U=e.forwardRef(({className:t,id:r,...n},a)=>{let o=A(r);return e.createElement(i.Label,{...n,id:o,asChild:!1,ref:a,className:s("kui-BaseMenuLabel","kui-ContextMenuLabel",t)})});U.displayName="ContextMenu.Label";var H=e.forwardRef((t,r)=>{let{className:n,children:a,color:o=T.color.default,shortcut:u,...p}=t;return e.createElement(i.Item,{"data-accent-color":o,"aria-keyshortcuts":u?I(u):void 0,...p,ref:r,className:s("kui-reset","kui-BaseMenuItem","kui-ContextMenuItem",n)},e.createElement(B.Slottable,null,a),u&&e.createElement(v,{shortcut:u,className:"kui-ContextMenuShortcut"}))});H.displayName="ContextMenu.Item";var J=e.forwardRef(({className:t,"aria-labelledby":r,...n},a)=>{let[o,u]=k(r);return e.createElement(S,{value:u},e.createElement(i.Group,{"aria-labelledby":o,...n,asChild:!1,ref:a,className:s("kui-BaseMenuGroup","kui-ContextMenuGroup",t)}))});J.displayName="ContextMenu.Group";var Q=e.forwardRef(({className:t,"aria-labelledby":r,...n},a)=>{let[o,u]=k(r);return e.createElement(S,{value:u},e.createElement(i.RadioGroup,{"aria-labelledby":o,...n,asChild:!1,ref:a,className:s("kui-BaseMenuRadioGroup","kui-ContextMenuRadioGroup",t)}))});Q.displayName="ContextMenu.RadioGroup";var X=e.forwardRef((t,r)=>{let{children:n,className:a,color:o=G.color.default,...u}=t;return e.createElement(i.RadioItem,{...u,asChild:!1,ref:r,"data-accent-color":o,className:s("kui-BaseMenuItem","kui-BaseMenuRadioItem","kui-ContextMenuItem","kui-ContextMenuRadioItem",a)},e.createElement(B.Slottable,null,n),e.createElement(i.ItemIndicator,{className:"kui-BaseMenuItemIndicator kui-ContextMenuItemIndicator"},e.createElement(O,{className:"kui-BaseMenuItemIndicatorIcon kui-ContextMenuItemIndicatorIcon"})))});X.displayName="ContextMenu.RadioItem";var Y=e.forwardRef((t,r)=>{let{children:n,className:a,shortcut:o,color:u=N.color.default,...p}=t;return e.createElement(i.CheckboxItem,{"aria-keyshortcuts":o?I(o):void 0,...p,asChild:!1,ref:r,"data-accent-color":u,className:s("kui-BaseMenuItem","kui-BaseMenuCheckboxItem","kui-ContextMenuItem","kui-ContextMenuCheckboxItem",a)},e.createElement(B.Slottable,null,n),e.createElement(i.ItemIndicator,{className:"kui-BaseMenuItemIndicator kui-ContextMenuItemIndicator"},e.createElement(z,{className:"kui-BaseMenuItemIndicatorIcon kui-ContextMenuItemIndicatorIcon"})),o&&e.createElement(v,{shortcut:o,className:"kui-ContextMenuShortcut"}))});Y.displayName="ContextMenu.CheckboxItem";var Z=t=>e.createElement(i.Sub,{...t});Z.displayName="ContextMenu.Sub";var $=e.forwardRef((t,r)=>{let{className:n,children:a,...o}=t;return e.createElement(i.SubTrigger,{...o,asChild:!1,ref:r,className:s("kui-BaseMenuItem","kui-BaseMenuSubTrigger","kui-ContextMenuItem","kui-ContextMenuSubTrigger",n)},a,e.createElement("div",{className:"kui-BaseMenuShortcut kui-ContextMenuShortcut"},e.createElement(L,{className:"kui-BaseMenuSubTriggerIcon kui-ContextMenuSubTriggerIcon"})))});$.displayName="ContextMenu.SubTrigger";var ee=e.forwardRef((t,r)=>{let n=e.useContext(E),a=t.size??n.size,o=t.color??n.color,{className:u,children:p,container:c,forceMount:m,color:l,virtualized:w=!1,...d}=f({...t,size:a},C),P=b(a,C.size.default),x=e.useMemo(()=>({size:a,color:o}),[a,o]),M=e.createElement(h,{size:a},e.createElement(E.Provider,{value:x},p));return e.createElement(i.Portal,{container:c,forceMount:m},e.createElement(g,{asChild:!0},e.createElement(i.SubContent,{"data-accent-color":o,alignOffset:R(P),sideOffset:1,collisionPadding:10,...d,asChild:!1,ref:r,className:s("kui-PopperContent","kui-BaseMenuContent","kui-variant-soft","kui-BaseMenuSubContent","kui-ContextMenuContent","kui-ContextMenuSubContent",u)},w?e.createElement("div",{className:s("kui-BaseMenuViewport","kui-ContextMenuViewport","kui-virtualized")},M):e.createElement(y,{type:"auto",scrollbars:"vertical"},e.createElement("div",{className:s("kui-BaseMenuViewport","kui-ContextMenuViewport")},M)))))});ee.displayName="ContextMenu.SubContent";var te=e.forwardRef(({className:t,...r},n)=>e.createElement(i.Separator,{...r,asChild:!1,ref:n,className:s("kui-BaseMenuSeparator","kui-ContextMenuSeparator",t)}));te.displayName="ContextMenu.Separator";export{_ as a,q as b,K as c,U as d,H as e,J as f,Q as g,X as h,Y as i,Z as j,$ as k,ee as l,te as m,ae as n};
|
|
3
|
-
//# sourceMappingURL=chunk-3C4Q6PMS.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/context-menu.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * Context Menu component that provides right-click menu functionality.\n * Requires client-side rendering due to event handling and portal usage.\n */\n'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ContextMenu as ContextMenuPrimitive, Slot } from 'radix-ui';\nimport { useCallbackRef } from 'radix-ui/internal';\n\nimport { ScrollArea } from './scroll-area.js';\nimport {\n contextMenuContentPropDefs,\n contextMenuSubContentPropDefs,\n contextMenuItemPropDefs,\n contextMenuCheckboxItemPropDefs,\n contextMenuRadioItemPropDefs,\n} from './context-menu.props.js';\nimport { Theme, useThemeContext } from './theme.js';\nimport { ThickCheckIcon, ThickChevronRightIcon, ThickDotIcon } from './icons.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSizeProps } from '../hooks/theme-size.js';\nimport { requireReactElement } from '../helpers/require-react-element.js';\nimport {\n MenuCloseProvider,\n MenuGroupLabelProvider,\n MenuProvider,\n useMenuGroupLabelId,\n useMenuGroupLabelledBy,\n} from './_internal/menu-context.js';\nimport {\n MenuShortcut,\n getMenuAlignOffset,\n toAriaKeyShortcuts,\n useResolvedResponsiveValue,\n} from './_internal/base-menu.utils.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes, Responsive } from '../props/prop-def.js';\n\ninterface ContextMenuRootProps\n extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Root> {}\nconst ContextMenuRoot: React.FC<ContextMenuRootProps> = (props) => {\n const { open: openProp, onOpenChange } = props;\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);\n const open = openProp ?? uncontrolledOpen;\n\n const handleOpenChangeProp = useCallbackRef(onOpenChange);\n const handleOpenChange = React.useCallback(\n (next: boolean) => {\n setUncontrolledOpen(next);\n handleOpenChangeProp(next);\n },\n [handleOpenChangeProp],\n );\n const close = React.useCallback(() => handleOpenChange(false), [handleOpenChange]);\n\n return (\n <MenuCloseProvider value={close}>\n <ContextMenuPrimitive.Root {...props} open={open} onOpenChange={handleOpenChange} />\n </MenuCloseProvider>\n );\n};\nContextMenuRoot.displayName = 'ContextMenu.Root';\n\ntype ContextMenuTriggerElement = React.ElementRef<typeof ContextMenuPrimitive.Trigger>;\ninterface ContextMenuTriggerProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Trigger, RemovedProps> {}\nconst ContextMenuTrigger = React.forwardRef<ContextMenuTriggerElement, ContextMenuTriggerProps>(\n ({ children, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Trigger {...props} ref={forwardedRef} asChild>\n {requireReactElement(children)}\n </ContextMenuPrimitive.Trigger>\n ),\n);\nContextMenuTrigger.displayName = 'ContextMenu.Trigger';\n\n/** Visual props shared by Content and SubContent. */\ntype ContextMenuSurfaceProps = GetPropDefTypes<typeof contextMenuContentPropDefs>;\n\ntype ContextMenuContentContextValue = {\n size?: ContextMenuSurfaceProps['size'];\n color?: ContextMenuSurfaceProps['color'];\n};\nconst ContextMenuContentContext = React.createContext<ContextMenuContentContextValue>({});\ntype ContextMenuContentElement = React.ElementRef<typeof ContextMenuPrimitive.Content>;\ninterface ContextMenuContentProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Content, RemovedProps>,\n ContextMenuSurfaceProps {\n container?: React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Portal>['container'];\n /**\n * When true, skips the ScrollArea wrapper to allow VirtualMenu to handle its own scrolling.\n * Use this when rendering virtualized lists inside the context menu.\n */\n virtualized?: boolean;\n /**\n * @deprecated Has no effect. ContextMenu submenus always cascade.\n */\n submenuBehavior?: Responsive<'cascade' | 'drill-down'>;\n}\nconst ContextMenuContent = React.forwardRef<ContextMenuContentElement, ContextMenuContentProps>(\n (ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, contextMenuContentPropDefs.size);\n const themeContext = useThemeContext();\n const {\n size = contextMenuContentPropDefs.size.default,\n } = props;\n const {\n className,\n children,\n color,\n container,\n forceMount,\n submenuBehavior: _submenuBehavior,\n virtualized = false,\n ...contentProps\n } = extractProps(props, contextMenuContentPropDefs);\n\n const resolvedColor = color || themeContext.accentColor;\n const scalarSize = useResolvedResponsiveValue(size, contextMenuContentPropDefs.size.default);\n\n const contextValue = React.useMemo(\n () => ({ size, color: resolvedColor }),\n [size, resolvedColor],\n );\n\n const body = (\n <MenuProvider size={size}>\n <ContextMenuContentContext.Provider value={contextValue}>{children}</ContextMenuContentContext.Provider>\n </MenuProvider>\n );\n\n return (\n <ContextMenuPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <ContextMenuPrimitive.Content\n data-accent-color={resolvedColor}\n alignOffset={getMenuAlignOffset(scalarSize)}\n collisionPadding={10}\n {...contentProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames(\n 'kui-PopperContent',\n 'kui-BaseMenuContent',\n 'kui-variant-soft',\n 'kui-ContextMenuContent',\n className,\n )}\n >\n {virtualized ? (\n <div className={classNames('kui-BaseMenuViewport', 'kui-ContextMenuViewport', 'kui-virtualized')}>\n {body}\n </div>\n ) : (\n <ScrollArea type=\"auto\" scrollbars=\"vertical\">\n <div className={classNames('kui-BaseMenuViewport', 'kui-ContextMenuViewport')}>{body}</div>\n </ScrollArea>\n )}\n </ContextMenuPrimitive.Content>\n </Theme>\n </ContextMenuPrimitive.Portal>\n );\n },\n);\nContextMenuContent.displayName = 'ContextMenu.Content';\n\ntype ContextMenuLabelElement = React.ElementRef<typeof ContextMenuPrimitive.Label>;\ninterface ContextMenuLabelProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Label, RemovedProps> {}\nconst ContextMenuLabel = React.forwardRef<ContextMenuLabelElement, ContextMenuLabelProps>(\n ({ className, id: idProp, ...props }, forwardedRef) => {\n const id = useMenuGroupLabelId(idProp);\n return (\n <ContextMenuPrimitive.Label\n {...props}\n id={id}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-BaseMenuLabel', 'kui-ContextMenuLabel', className)}\n />\n );\n },\n);\nContextMenuLabel.displayName = 'ContextMenu.Label';\n\ntype ContextMenuItemElement = React.ElementRef<typeof ContextMenuPrimitive.Item>;\ntype ContextMenuItemOwnProps = GetPropDefTypes<typeof contextMenuItemPropDefs>;\ninterface ContextMenuItemProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Item, RemovedProps>,\n ContextMenuItemOwnProps {}\nconst ContextMenuItem = React.forwardRef<ContextMenuItemElement, ContextMenuItemProps>(\n (props, forwardedRef) => {\n const {\n className,\n children,\n color = contextMenuItemPropDefs.color.default,\n shortcut,\n ...itemProps\n } = props;\n return (\n <ContextMenuPrimitive.Item\n data-accent-color={color}\n aria-keyshortcuts={shortcut ? toAriaKeyShortcuts(shortcut) : undefined}\n {...itemProps}\n ref={forwardedRef}\n className={classNames('kui-reset', 'kui-BaseMenuItem', 'kui-ContextMenuItem', className)}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n {shortcut && <MenuShortcut shortcut={shortcut} className=\"kui-ContextMenuShortcut\" />}\n </ContextMenuPrimitive.Item>\n );\n },\n);\nContextMenuItem.displayName = 'ContextMenu.Item';\n\ntype ContextMenuGroupElement = React.ElementRef<typeof ContextMenuPrimitive.Group>;\ninterface ContextMenuGroupProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Group, RemovedProps> {}\nconst ContextMenuGroup = React.forwardRef<ContextMenuGroupElement, ContextMenuGroupProps>(\n ({ className, 'aria-labelledby': ariaLabelledBy, ...props }, forwardedRef) => {\n const [labelledBy, setLabelId] = useMenuGroupLabelledBy(ariaLabelledBy);\n return (\n <MenuGroupLabelProvider value={setLabelId}>\n <ContextMenuPrimitive.Group\n aria-labelledby={labelledBy}\n {...props}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-BaseMenuGroup', 'kui-ContextMenuGroup', className)}\n />\n </MenuGroupLabelProvider>\n );\n },\n);\nContextMenuGroup.displayName = 'ContextMenu.Group';\n\ntype ContextMenuRadioGroupElement = React.ElementRef<typeof ContextMenuPrimitive.RadioGroup>;\ninterface ContextMenuRadioGroupProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.RadioGroup, RemovedProps> {}\nconst ContextMenuRadioGroup = React.forwardRef<\n ContextMenuRadioGroupElement,\n ContextMenuRadioGroupProps\n>(({ className, 'aria-labelledby': ariaLabelledBy, ...props }, forwardedRef) => {\n const [labelledBy, setLabelId] = useMenuGroupLabelledBy(ariaLabelledBy);\n return (\n <MenuGroupLabelProvider value={setLabelId}>\n <ContextMenuPrimitive.RadioGroup\n aria-labelledby={labelledBy}\n {...props}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-BaseMenuRadioGroup', 'kui-ContextMenuRadioGroup', className)}\n />\n </MenuGroupLabelProvider>\n );\n});\nContextMenuRadioGroup.displayName = 'ContextMenu.RadioGroup';\n\ntype ContextMenuRadioItemElement = React.ElementRef<typeof ContextMenuPrimitive.RadioItem>;\ntype ContextMenuRadioItemOwnProps = GetPropDefTypes<typeof contextMenuRadioItemPropDefs>;\ninterface ContextMenuRadioItemProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.RadioItem, RemovedProps>,\n ContextMenuRadioItemOwnProps {}\nconst ContextMenuRadioItem = React.forwardRef<\n ContextMenuRadioItemElement,\n ContextMenuRadioItemProps\n>((props, forwardedRef) => {\n const {\n children,\n className,\n color = contextMenuRadioItemPropDefs.color.default,\n ...itemProps\n } = props;\n return (\n <ContextMenuPrimitive.RadioItem\n {...itemProps}\n asChild={false}\n ref={forwardedRef}\n data-accent-color={color}\n className={classNames(\n 'kui-BaseMenuItem',\n 'kui-BaseMenuRadioItem',\n 'kui-ContextMenuItem',\n 'kui-ContextMenuRadioItem',\n className,\n )}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n <ContextMenuPrimitive.ItemIndicator className=\"kui-BaseMenuItemIndicator kui-ContextMenuItemIndicator\">\n <ThickDotIcon className=\"kui-BaseMenuItemIndicatorIcon kui-ContextMenuItemIndicatorIcon\" />\n </ContextMenuPrimitive.ItemIndicator>\n </ContextMenuPrimitive.RadioItem>\n );\n});\nContextMenuRadioItem.displayName = 'ContextMenu.RadioItem';\n\ntype ContextMenuCheckboxItemElement = React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>;\ntype ContextMenuCheckboxItemOwnProps = GetPropDefTypes<typeof contextMenuCheckboxItemPropDefs>;\ninterface ContextMenuCheckboxItemProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.CheckboxItem, RemovedProps>,\n ContextMenuCheckboxItemOwnProps {}\nconst ContextMenuCheckboxItem = React.forwardRef<\n ContextMenuCheckboxItemElement,\n ContextMenuCheckboxItemProps\n>((props, forwardedRef) => {\n const {\n children,\n className,\n shortcut,\n color = contextMenuCheckboxItemPropDefs.color.default,\n ...itemProps\n } = props;\n return (\n <ContextMenuPrimitive.CheckboxItem\n aria-keyshortcuts={shortcut ? toAriaKeyShortcuts(shortcut) : undefined}\n {...itemProps}\n asChild={false}\n ref={forwardedRef}\n data-accent-color={color}\n className={classNames(\n 'kui-BaseMenuItem',\n 'kui-BaseMenuCheckboxItem',\n 'kui-ContextMenuItem',\n 'kui-ContextMenuCheckboxItem',\n className,\n )}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n <ContextMenuPrimitive.ItemIndicator className=\"kui-BaseMenuItemIndicator kui-ContextMenuItemIndicator\">\n <ThickCheckIcon className=\"kui-BaseMenuItemIndicatorIcon kui-ContextMenuItemIndicatorIcon\" />\n </ContextMenuPrimitive.ItemIndicator>\n {shortcut && <MenuShortcut shortcut={shortcut} className=\"kui-ContextMenuShortcut\" />}\n </ContextMenuPrimitive.CheckboxItem>\n );\n});\nContextMenuCheckboxItem.displayName = 'ContextMenu.CheckboxItem';\n\ninterface ContextMenuSubProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Sub, RemovedProps> {}\nconst ContextMenuSub: React.FC<ContextMenuSubProps> = (props) => (\n <ContextMenuPrimitive.Sub {...props} />\n);\nContextMenuSub.displayName = 'ContextMenu.Sub';\n\ntype ContextMenuSubTriggerElement = React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>;\ninterface ContextMenuSubTriggerProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.SubTrigger, RemovedProps> {}\nconst ContextMenuSubTrigger = React.forwardRef<\n ContextMenuSubTriggerElement,\n ContextMenuSubTriggerProps\n>((props, forwardedRef) => {\n const { className, children, ...subTriggerProps } = props;\n return (\n <ContextMenuPrimitive.SubTrigger\n {...subTriggerProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames(\n 'kui-BaseMenuItem',\n 'kui-BaseMenuSubTrigger',\n 'kui-ContextMenuItem',\n 'kui-ContextMenuSubTrigger',\n className,\n )}\n >\n {children}\n <div className=\"kui-BaseMenuShortcut kui-ContextMenuShortcut\">\n <ThickChevronRightIcon className=\"kui-BaseMenuSubTriggerIcon kui-ContextMenuSubTriggerIcon\" />\n </div>\n </ContextMenuPrimitive.SubTrigger>\n );\n});\nContextMenuSubTrigger.displayName = 'ContextMenu.SubTrigger';\n\ntype ContextMenuSubContentElement = React.ElementRef<typeof ContextMenuPrimitive.SubContent>;\ninterface ContextMenuSubContentProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.SubContent, RemovedProps>,\n ContextMenuSurfaceProps {\n container?: React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Portal>['container'];\n /**\n * When true, skips the ScrollArea wrapper to allow VirtualMenu to handle its own scrolling.\n */\n virtualized?: boolean;\n}\nconst ContextMenuSubContent = React.forwardRef<\n ContextMenuSubContentElement,\n ContextMenuSubContentProps\n>((props, forwardedRef) => {\n const parent = React.useContext(ContextMenuContentContext);\n\n // A submenu inherits the parent surface, and its own props win.\n const size = props.size ?? parent.size;\n const color = props.color ?? parent.color;\n\n const {\n className,\n children,\n container,\n forceMount,\n color: _color,\n virtualized = false,\n ...subContentProps\n } = extractProps({ ...props, size }, contextMenuSubContentPropDefs);\n\n const scalarSize = useResolvedResponsiveValue(size, contextMenuSubContentPropDefs.size.default);\n\n const contextValue = React.useMemo(\n () => ({ size, color }),\n [size, color],\n );\n\n const body = (\n <MenuProvider size={size}>\n <ContextMenuContentContext.Provider value={contextValue}>{children}</ContextMenuContentContext.Provider>\n </MenuProvider>\n );\n\n return (\n <ContextMenuPrimitive.Portal container={container} forceMount={forceMount}>\n <Theme asChild>\n <ContextMenuPrimitive.SubContent\n data-accent-color={color}\n alignOffset={getMenuAlignOffset(scalarSize)}\n // Side offset accounts for the outer solid box-shadow\n sideOffset={1}\n collisionPadding={10}\n {...subContentProps}\n asChild={false}\n ref={forwardedRef}\n className={classNames(\n 'kui-PopperContent',\n 'kui-BaseMenuContent',\n 'kui-variant-soft',\n 'kui-BaseMenuSubContent',\n 'kui-ContextMenuContent',\n 'kui-ContextMenuSubContent',\n className,\n )}\n >\n {virtualized ? (\n <div className={classNames('kui-BaseMenuViewport', 'kui-ContextMenuViewport', 'kui-virtualized')}>\n {body}\n </div>\n ) : (\n <ScrollArea type=\"auto\" scrollbars=\"vertical\">\n <div className={classNames('kui-BaseMenuViewport', 'kui-ContextMenuViewport')}>{body}</div>\n </ScrollArea>\n )}\n </ContextMenuPrimitive.SubContent>\n </Theme>\n </ContextMenuPrimitive.Portal>\n );\n});\nContextMenuSubContent.displayName = 'ContextMenu.SubContent';\n\ntype ContextMenuSeparatorElement = React.ElementRef<typeof ContextMenuPrimitive.Separator>;\ninterface ContextMenuSeparatorProps\n extends ComponentPropsWithout<typeof ContextMenuPrimitive.Separator, RemovedProps> {}\nconst ContextMenuSeparator = React.forwardRef<\n ContextMenuSeparatorElement,\n ContextMenuSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n {...props}\n asChild={false}\n ref={forwardedRef}\n className={classNames('kui-BaseMenuSeparator', 'kui-ContextMenuSeparator', className)}\n />\n));\nContextMenuSeparator.displayName = 'ContextMenu.Separator';\n\nexport {\n ContextMenuRoot as Root,\n ContextMenuTrigger as Trigger,\n ContextMenuContent as Content,\n ContextMenuLabel as Label,\n ContextMenuItem as Item,\n ContextMenuGroup as Group,\n ContextMenuRadioGroup as RadioGroup,\n ContextMenuRadioItem as RadioItem,\n ContextMenuCheckboxItem as CheckboxItem,\n ContextMenuSub as Sub,\n ContextMenuSubTrigger as SubTrigger,\n ContextMenuSubContent as SubContent,\n ContextMenuSeparator as Separator,\n};\n\nexport type {\n ContextMenuRootProps as RootProps,\n ContextMenuTriggerProps as TriggerProps,\n ContextMenuContentProps as ContentProps,\n ContextMenuLabelProps as LabelProps,\n ContextMenuItemProps as ItemProps,\n ContextMenuGroupProps as GroupProps,\n ContextMenuRadioGroupProps as RadioGroupProps,\n ContextMenuRadioItemProps as RadioItemProps,\n ContextMenuCheckboxItemProps as CheckboxItemProps,\n ContextMenuSubProps as SubProps,\n ContextMenuSubTriggerProps as SubTriggerProps,\n ContextMenuSubContentProps as SubContentProps,\n ContextMenuSeparatorProps as SeparatorProps,\n};\n"],
|
|
5
|
-
"mappings": ";ueAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,kBAAAE,EAAA,YAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,eAAAC,EAAA,cAAAC,EAAA,SAAAC,EAAA,cAAAC,GAAA,QAAAC,EAAA,eAAAC,GAAA,eAAAC,EAAA,YAAAC,IAMA,UAAYC,MAAW,QACvB,OAAOC,MAAgB,aACvB,OAAS,eAAeC,EAAsB,QAAAC,MAAY,WA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B,2BAA4BhB,CAAS,EACtF,CACD,EACDkD,GAAqB,YAAc",
|
|
6
|
-
"names": ["context_menu_exports", "__export", "ContextMenuCheckboxItem", "ContextMenuContent", "ContextMenuGroup", "ContextMenuItem", "ContextMenuLabel", "ContextMenuRadioGroup", "ContextMenuRadioItem", "ContextMenuRoot", "ContextMenuSeparator", "ContextMenuSub", "ContextMenuSubContent", "ContextMenuSubTrigger", "ContextMenuTrigger", "React", "classNames", "ContextMenuPrimitive", "Slot", "useCallbackRef", "ContextMenuRoot", "props", "openProp", "onOpenChange", "uncontrolledOpen", "setUncontrolledOpen", "open", "handleOpenChangeProp", "useCallbackRef", "handleOpenChange", "next", "close", "MenuCloseProvider", "ContextMenuPrimitive", "ContextMenuTrigger", "children", "forwardedRef", "requireReactElement", "ContextMenuContentContext", "ContextMenuContent", "ownProps", "useThemeSizeProps", "baseMenuSubContentPropDefs", "themeContext", "useThemeContext", "size", "className", "color", "container", "forceMount", "_submenuBehavior", "virtualized", "contentProps", "extractProps", "resolvedColor", "scalarSize", "useResolvedResponsiveValue", "contextValue", "body", "MenuProvider", "Theme", "getMenuAlignOffset", "classNames", "ScrollArea", "ContextMenuLabel", "idProp", "id", "useMenuGroupLabelId", "ContextMenuItem", "baseMenuItemPropDefs", "shortcut", "itemProps", "toAriaKeyShortcuts", "Slot", "MenuShortcut", "ContextMenuGroup", "ariaLabelledBy", "labelledBy", "setLabelId", "useMenuGroupLabelledBy", "MenuGroupLabelProvider", "ContextMenuRadioGroup", "ContextMenuRadioItem", "baseMenuRadioItemPropDefs", "ThickDotIcon", "ContextMenuCheckboxItem", "baseMenuCheckboxItemPropDefs", "ThickCheckIcon", "ContextMenuSub", "ContextMenuSubTrigger", "subTriggerProps", "ThickChevronRightIcon", "ContextMenuSubContent", "parent", "_color", "subContentProps", "ContextMenuSeparator"]
|
|
7
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as u}from"./chunk-VIVM525H.js";import{a as s}from"./chunk-KQIZMPSW.js";import{j as m}from"./chunk-GHWEXMF6.js";import*as e from"react";import c from"classnames";var C=e.createContext(null);function d(){return e.useContext(C)}var S=e.createContext("2"),h=e.createContext(!1);function F({children:t,presentation:n}){let a=e.useContext(S),o=e.useMemo(()=>({size:a,menuVariant:"soft",presentation:n}),[a,n]);return e.createElement(C.Provider,{value:o},t)}function P(){let t=d(),n=e.useContext(S),a=t?.size??n,o=t?.menuVariant??"soft";return["kui-ShellPaneChrome",`kui-r-size-${a}`,`kui-menu-variant-${o}`]}var R={1:"2",2:"3",3:"4",4:"4"};function f(){let t=d(),n=e.useContext(S);return R[t?.size??n]}function M(){let t=e.useContext(s),n=e.useContext(m)!==null,a=f();return t!==void 0?t:n?a:null}var z=e.forwardRef(({className:t,float:n,children:a,...o},r)=>{let i=P(),l=f();return e.createElement("div",{...o,ref:r,"data-float":n||void 0,className:c("kui-ShellPaneHeader","kui-SidebarHeader","kui-SidebarHeader--container",...i,t)},e.createElement(s.Provider,{value:l},a))});z.displayName="Shell.PaneHeader";var b=e.forwardRef(({className:t,float:n,children:a,...o},r)=>{let i=P(),l=f();return e.createElement("div",{...o,ref:r,"data-float":n||void 0,className:c("kui-ShellPaneFooter","kui-SidebarFooter","kui-SidebarFooter--container",...i,t)},e.createElement(s.Provider,{value:l},a))});b.displayName="Shell.PaneFooter";var V=e.forwardRef(({className:t,style:n,dir:a,children:o,fade:r=!1,...i},l)=>{let v=P(),p=e.useContext(h),x=d();return p&&x===null?e.createElement(u,{...i,ref:l,type:"hover",fade:r,className:"kui-ShellScroll"},e.createElement("div",{style:n,dir:a,className:c("kui-ShellScrollContent",t)},o)):e.createElement(u,{...i,ref:l,type:"hover",fade:r,className:"kui-ShellScroll"},e.createElement("div",{style:n,dir:a,className:c("kui-BaseMenuContent","kui-SidebarContent",...v,t)},e.createElement(s.Provider,{value:null},e.createElement("div",{className:"kui-BaseMenuViewport"},o))))});V.displayName="Shell.Scroll";export{C as a,d as b,S as c,h as d,F as e,R as f,M as g,z as h,b as i,V as j};
|
|
3
|
-
//# sourceMappingURL=chunk-3ZWHKNHI.js.map
|