@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
package/components.css
CHANGED
|
@@ -6191,7 +6191,10 @@
|
|
|
6191
6191
|
box-shadow: inset 0 0 0 1px var(--red-7);
|
|
6192
6192
|
}
|
|
6193
6193
|
}
|
|
6194
|
-
.kui-TextFieldWrapper {
|
|
6194
|
+
.kui-TextFieldWrapper:where(:not([data-message])) {
|
|
6195
|
+
display: contents;
|
|
6196
|
+
}
|
|
6197
|
+
.kui-TextFieldWrapper:where([data-message]) {
|
|
6195
6198
|
display: -webkit-box;
|
|
6196
6199
|
display: -ms-flexbox;
|
|
6197
6200
|
display: flex;
|
|
@@ -11609,6 +11612,7 @@
|
|
|
11609
11612
|
.kui-ShellRoot {
|
|
11610
11613
|
--shell-inset-gap: var(--space-3);
|
|
11611
11614
|
--shell-rail-offset: 0px;
|
|
11615
|
+
--kui-shell-page-top: 0px;
|
|
11612
11616
|
display: grid;
|
|
11613
11617
|
grid-template-areas: 'header header header header header' 'rail panel sidebar content inspector' 'bottom bottom bottom bottom bottom';
|
|
11614
11618
|
grid-template-columns: auto auto auto minmax(0, 1fr) auto;
|
|
@@ -11626,6 +11630,9 @@
|
|
|
11626
11630
|
height: 100dvh;
|
|
11627
11631
|
}
|
|
11628
11632
|
}
|
|
11633
|
+
.kui-ShellRoot[data-contained] {
|
|
11634
|
+
height: 100%;
|
|
11635
|
+
}
|
|
11629
11636
|
:root[data-kui-shell-lock] {
|
|
11630
11637
|
overflow: hidden;
|
|
11631
11638
|
}
|
|
@@ -11666,6 +11673,8 @@
|
|
|
11666
11673
|
--kui-pane-band-end: initial;
|
|
11667
11674
|
--kui-shell-position: initial;
|
|
11668
11675
|
--kui-shell-z: initial;
|
|
11676
|
+
--kui-shell-pin: initial;
|
|
11677
|
+
--kui-shell-pin-top: initial;
|
|
11669
11678
|
--kui-shell-row: initial;
|
|
11670
11679
|
--kui-shell-col: initial;
|
|
11671
11680
|
--kui-shell-surface: initial;
|
|
@@ -11967,6 +11976,8 @@
|
|
|
11967
11976
|
.kui-ShellRail[data-presentation='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
11968
11977
|
--kui-shell-position: absolute;
|
|
11969
11978
|
--kui-shell-z: 6;
|
|
11979
|
+
--kui-shell-pin: fixed;
|
|
11980
|
+
--kui-shell-pin-top: 0px;
|
|
11970
11981
|
--kui-shell-row: 1 / -1;
|
|
11971
11982
|
--kui-shell-col: 1 / -1;
|
|
11972
11983
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -11980,6 +11991,8 @@
|
|
|
11980
11991
|
.kui-ShellRail[data-presentation='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
11981
11992
|
--kui-shell-position: absolute;
|
|
11982
11993
|
--kui-shell-z: 3;
|
|
11994
|
+
--kui-shell-pin: fixed;
|
|
11995
|
+
--kui-shell-pin-top: initial;
|
|
11983
11996
|
--kui-shell-row: 2 / 3;
|
|
11984
11997
|
--kui-shell-col: 1 / -1;
|
|
11985
11998
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -11996,6 +12009,8 @@
|
|
|
11996
12009
|
.kui-ShellRail[data-presentation-initial='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
11997
12010
|
--kui-shell-position: initial;
|
|
11998
12011
|
--kui-shell-z: initial;
|
|
12012
|
+
--kui-shell-pin: initial;
|
|
12013
|
+
--kui-shell-pin-top: initial;
|
|
11999
12014
|
--kui-shell-row: initial;
|
|
12000
12015
|
--kui-shell-col: initial;
|
|
12001
12016
|
--kui-shell-surface: initial;
|
|
@@ -12009,6 +12024,8 @@
|
|
|
12009
12024
|
.kui-ShellRail[data-presentation-initial='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12010
12025
|
--kui-shell-position: absolute;
|
|
12011
12026
|
--kui-shell-z: 6;
|
|
12027
|
+
--kui-shell-pin: fixed;
|
|
12028
|
+
--kui-shell-pin-top: 0px;
|
|
12012
12029
|
--kui-shell-row: 1 / -1;
|
|
12013
12030
|
--kui-shell-col: 1 / -1;
|
|
12014
12031
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12022,6 +12039,8 @@
|
|
|
12022
12039
|
.kui-ShellRail[data-presentation-initial='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12023
12040
|
--kui-shell-position: absolute;
|
|
12024
12041
|
--kui-shell-z: 3;
|
|
12042
|
+
--kui-shell-pin: fixed;
|
|
12043
|
+
--kui-shell-pin-top: initial;
|
|
12025
12044
|
--kui-shell-row: 2 / 3;
|
|
12026
12045
|
--kui-shell-col: 1 / -1;
|
|
12027
12046
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12047,6 +12066,8 @@
|
|
|
12047
12066
|
.kui-ShellRail[data-presentation-xs='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12048
12067
|
--kui-shell-position: initial;
|
|
12049
12068
|
--kui-shell-z: initial;
|
|
12069
|
+
--kui-shell-pin: initial;
|
|
12070
|
+
--kui-shell-pin-top: initial;
|
|
12050
12071
|
--kui-shell-row: initial;
|
|
12051
12072
|
--kui-shell-col: initial;
|
|
12052
12073
|
--kui-shell-surface: initial;
|
|
@@ -12060,6 +12081,8 @@
|
|
|
12060
12081
|
.kui-ShellRail[data-presentation-xs='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12061
12082
|
--kui-shell-position: absolute;
|
|
12062
12083
|
--kui-shell-z: 6;
|
|
12084
|
+
--kui-shell-pin: fixed;
|
|
12085
|
+
--kui-shell-pin-top: 0px;
|
|
12063
12086
|
--kui-shell-row: 1 / -1;
|
|
12064
12087
|
--kui-shell-col: 1 / -1;
|
|
12065
12088
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12073,6 +12096,8 @@
|
|
|
12073
12096
|
.kui-ShellRail[data-presentation-xs='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12074
12097
|
--kui-shell-position: absolute;
|
|
12075
12098
|
--kui-shell-z: 3;
|
|
12099
|
+
--kui-shell-pin: fixed;
|
|
12100
|
+
--kui-shell-pin-top: initial;
|
|
12076
12101
|
--kui-shell-row: 2 / 3;
|
|
12077
12102
|
--kui-shell-col: 1 / -1;
|
|
12078
12103
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12099,6 +12124,8 @@
|
|
|
12099
12124
|
.kui-ShellRail[data-presentation-sm='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12100
12125
|
--kui-shell-position: initial;
|
|
12101
12126
|
--kui-shell-z: initial;
|
|
12127
|
+
--kui-shell-pin: initial;
|
|
12128
|
+
--kui-shell-pin-top: initial;
|
|
12102
12129
|
--kui-shell-row: initial;
|
|
12103
12130
|
--kui-shell-col: initial;
|
|
12104
12131
|
--kui-shell-surface: initial;
|
|
@@ -12112,6 +12139,8 @@
|
|
|
12112
12139
|
.kui-ShellRail[data-presentation-sm='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12113
12140
|
--kui-shell-position: absolute;
|
|
12114
12141
|
--kui-shell-z: 6;
|
|
12142
|
+
--kui-shell-pin: fixed;
|
|
12143
|
+
--kui-shell-pin-top: 0px;
|
|
12115
12144
|
--kui-shell-row: 1 / -1;
|
|
12116
12145
|
--kui-shell-col: 1 / -1;
|
|
12117
12146
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12125,6 +12154,8 @@
|
|
|
12125
12154
|
.kui-ShellRail[data-presentation-sm='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12126
12155
|
--kui-shell-position: absolute;
|
|
12127
12156
|
--kui-shell-z: 3;
|
|
12157
|
+
--kui-shell-pin: fixed;
|
|
12158
|
+
--kui-shell-pin-top: initial;
|
|
12128
12159
|
--kui-shell-row: 2 / 3;
|
|
12129
12160
|
--kui-shell-col: 1 / -1;
|
|
12130
12161
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12151,6 +12182,8 @@
|
|
|
12151
12182
|
.kui-ShellRail[data-presentation-md='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12152
12183
|
--kui-shell-position: initial;
|
|
12153
12184
|
--kui-shell-z: initial;
|
|
12185
|
+
--kui-shell-pin: initial;
|
|
12186
|
+
--kui-shell-pin-top: initial;
|
|
12154
12187
|
--kui-shell-row: initial;
|
|
12155
12188
|
--kui-shell-col: initial;
|
|
12156
12189
|
--kui-shell-surface: initial;
|
|
@@ -12164,6 +12197,8 @@
|
|
|
12164
12197
|
.kui-ShellRail[data-presentation-md='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12165
12198
|
--kui-shell-position: absolute;
|
|
12166
12199
|
--kui-shell-z: 6;
|
|
12200
|
+
--kui-shell-pin: fixed;
|
|
12201
|
+
--kui-shell-pin-top: 0px;
|
|
12167
12202
|
--kui-shell-row: 1 / -1;
|
|
12168
12203
|
--kui-shell-col: 1 / -1;
|
|
12169
12204
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12177,6 +12212,8 @@
|
|
|
12177
12212
|
.kui-ShellRail[data-presentation-md='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12178
12213
|
--kui-shell-position: absolute;
|
|
12179
12214
|
--kui-shell-z: 3;
|
|
12215
|
+
--kui-shell-pin: fixed;
|
|
12216
|
+
--kui-shell-pin-top: initial;
|
|
12180
12217
|
--kui-shell-row: 2 / 3;
|
|
12181
12218
|
--kui-shell-col: 1 / -1;
|
|
12182
12219
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12203,6 +12240,8 @@
|
|
|
12203
12240
|
.kui-ShellRail[data-presentation-lg='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12204
12241
|
--kui-shell-position: initial;
|
|
12205
12242
|
--kui-shell-z: initial;
|
|
12243
|
+
--kui-shell-pin: initial;
|
|
12244
|
+
--kui-shell-pin-top: initial;
|
|
12206
12245
|
--kui-shell-row: initial;
|
|
12207
12246
|
--kui-shell-col: initial;
|
|
12208
12247
|
--kui-shell-surface: initial;
|
|
@@ -12216,6 +12255,8 @@
|
|
|
12216
12255
|
.kui-ShellRail[data-presentation-lg='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12217
12256
|
--kui-shell-position: absolute;
|
|
12218
12257
|
--kui-shell-z: 6;
|
|
12258
|
+
--kui-shell-pin: fixed;
|
|
12259
|
+
--kui-shell-pin-top: 0px;
|
|
12219
12260
|
--kui-shell-row: 1 / -1;
|
|
12220
12261
|
--kui-shell-col: 1 / -1;
|
|
12221
12262
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12229,6 +12270,8 @@
|
|
|
12229
12270
|
.kui-ShellRail[data-presentation-lg='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12230
12271
|
--kui-shell-position: absolute;
|
|
12231
12272
|
--kui-shell-z: 3;
|
|
12273
|
+
--kui-shell-pin: fixed;
|
|
12274
|
+
--kui-shell-pin-top: initial;
|
|
12232
12275
|
--kui-shell-row: 2 / 3;
|
|
12233
12276
|
--kui-shell-col: 1 / -1;
|
|
12234
12277
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12255,6 +12298,8 @@
|
|
|
12255
12298
|
.kui-ShellRail[data-presentation-xl='fixed'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12256
12299
|
--kui-shell-position: initial;
|
|
12257
12300
|
--kui-shell-z: initial;
|
|
12301
|
+
--kui-shell-pin: initial;
|
|
12302
|
+
--kui-shell-pin-top: initial;
|
|
12258
12303
|
--kui-shell-row: initial;
|
|
12259
12304
|
--kui-shell-col: initial;
|
|
12260
12305
|
--kui-shell-surface: initial;
|
|
@@ -12268,6 +12313,8 @@
|
|
|
12268
12313
|
.kui-ShellRail[data-presentation-xl='overlay'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12269
12314
|
--kui-shell-position: absolute;
|
|
12270
12315
|
--kui-shell-z: 6;
|
|
12316
|
+
--kui-shell-pin: fixed;
|
|
12317
|
+
--kui-shell-pin-top: 0px;
|
|
12271
12318
|
--kui-shell-row: 1 / -1;
|
|
12272
12319
|
--kui-shell-col: 1 / -1;
|
|
12273
12320
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12281,6 +12328,8 @@
|
|
|
12281
12328
|
.kui-ShellRail[data-presentation-xl='stacked'] ~ .kui-ShellPanel[data-presentation-follows] {
|
|
12282
12329
|
--kui-shell-position: absolute;
|
|
12283
12330
|
--kui-shell-z: 3;
|
|
12331
|
+
--kui-shell-pin: fixed;
|
|
12332
|
+
--kui-shell-pin-top: initial;
|
|
12284
12333
|
--kui-shell-row: 2 / 3;
|
|
12285
12334
|
--kui-shell-col: 1 / -1;
|
|
12286
12335
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12306,6 +12355,8 @@
|
|
|
12306
12355
|
.kui-ShellRail ~ .kui-ShellPanel[data-presentation-follows][data-peek][data-state] {
|
|
12307
12356
|
--kui-shell-position: absolute;
|
|
12308
12357
|
--kui-shell-z: 4;
|
|
12358
|
+
--kui-shell-pin: fixed;
|
|
12359
|
+
--kui-shell-pin-top: initial;
|
|
12309
12360
|
--kui-shell-row: 2 / 3;
|
|
12310
12361
|
--kui-shell-col: 1 / -1;
|
|
12311
12362
|
--kui-shell-surface: var(--color-surface);
|
|
@@ -12379,6 +12430,96 @@
|
|
|
12379
12430
|
-webkit-margin-before: 0;
|
|
12380
12431
|
margin-block-start: 0;
|
|
12381
12432
|
}
|
|
12433
|
+
@media (max-width: 767.98px) and (pointer: coarse) {
|
|
12434
|
+
.kui-ShellRoot[data-window] {
|
|
12435
|
+
height: auto;
|
|
12436
|
+
min-height: 100vh;
|
|
12437
|
+
overflow: clip;
|
|
12438
|
+
}
|
|
12439
|
+
@supports (height: 100dvh) {
|
|
12440
|
+
.kui-ShellRoot[data-window] {
|
|
12441
|
+
min-height: 100dvh;
|
|
12442
|
+
}
|
|
12443
|
+
}
|
|
12444
|
+
.kui-ShellRoot[data-window]:has(> .kui-ShellHeader) {
|
|
12445
|
+
--kui-shell-page-top: var(--kui-shell-header-h, 64px);
|
|
12446
|
+
}
|
|
12447
|
+
.kui-ShellRoot[data-window] > .kui-ShellHeader {
|
|
12448
|
+
position: sticky;
|
|
12449
|
+
top: 0;
|
|
12450
|
+
}
|
|
12451
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent {
|
|
12452
|
+
overflow: clip;
|
|
12453
|
+
isolation: isolate;
|
|
12454
|
+
}
|
|
12455
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent :where(*) {
|
|
12456
|
+
scroll-margin-block: calc(var(--kui-shell-page-top) + var(--kui-content-float-start, 0px)) var(--kui-content-float-end, 0px);
|
|
12457
|
+
}
|
|
12458
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellPaneHeader[data-float]) {
|
|
12459
|
+
--kui-content-float-start: calc(max(var(--kui-pane-row-start), var(--kui-pane-band-start, 0px)) + 2 * var(--kui-pane-pad-start));
|
|
12460
|
+
}
|
|
12461
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellPaneFooter[data-float]) {
|
|
12462
|
+
--kui-content-float-end: calc(max(var(--kui-pane-row-end), var(--kui-pane-band-end, 0px)) + 2 * var(--kui-pane-pad-end));
|
|
12463
|
+
}
|
|
12464
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll {
|
|
12465
|
+
-webkit-box-flex: 0;
|
|
12466
|
+
-ms-flex: none;
|
|
12467
|
+
flex: none;
|
|
12468
|
+
height: auto;
|
|
12469
|
+
overflow: clip;
|
|
12470
|
+
}
|
|
12471
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll > .kui-ScrollAreaViewport {
|
|
12472
|
+
height: auto;
|
|
12473
|
+
overflow: visible !important;
|
|
12474
|
+
-webkit-mask-image: none;
|
|
12475
|
+
mask-image: none;
|
|
12476
|
+
}
|
|
12477
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll > .kui-ScrollAreaScrollbar {
|
|
12478
|
+
display: none;
|
|
12479
|
+
}
|
|
12480
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellScroll) > .kui-ShellPaneHeader[data-float] {
|
|
12481
|
+
position: sticky;
|
|
12482
|
+
top: var(--kui-shell-page-top);
|
|
12483
|
+
-webkit-box-ordinal-group: 0;
|
|
12484
|
+
-ms-flex-order: -1;
|
|
12485
|
+
order: -1;
|
|
12486
|
+
margin-bottom: calc(-1 * var(--kui-content-float-start, 0px));
|
|
12487
|
+
}
|
|
12488
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent:has(> .kui-ShellScroll) > .kui-ShellPaneFooter[data-float] {
|
|
12489
|
+
position: sticky;
|
|
12490
|
+
bottom: 0;
|
|
12491
|
+
-webkit-box-ordinal-group: 2;
|
|
12492
|
+
-ms-flex-order: 1;
|
|
12493
|
+
order: 1;
|
|
12494
|
+
margin-top: calc(-1 * var(--kui-content-float-end, 0px));
|
|
12495
|
+
}
|
|
12496
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > :not(.kui-ShellScroll, [data-float]):has(~ .kui-ShellScroll) {
|
|
12497
|
+
position: sticky;
|
|
12498
|
+
top: var(--kui-shell-page-top);
|
|
12499
|
+
z-index: 1;
|
|
12500
|
+
}
|
|
12501
|
+
.kui-ShellRoot[data-window] > .kui-ShellContent > .kui-ShellScroll ~ :not([data-float]) {
|
|
12502
|
+
position: sticky;
|
|
12503
|
+
bottom: 0;
|
|
12504
|
+
z-index: 1;
|
|
12505
|
+
}
|
|
12506
|
+
.kui-ShellRoot[data-window] > :is(.kui-ShellRail, .kui-ShellPanel, .kui-ShellSidebar, .kui-ShellInspector) {
|
|
12507
|
+
position: var(--kui-shell-pin, sticky);
|
|
12508
|
+
top: var(--kui-shell-pin-top, var(--kui-shell-page-top));
|
|
12509
|
+
block-size: calc(100vh - var(--kui-shell-pin-top, var(--kui-shell-page-top)));
|
|
12510
|
+
}
|
|
12511
|
+
@supports (height: 100dvh) {
|
|
12512
|
+
.kui-ShellRoot[data-window] > :is(.kui-ShellRail, .kui-ShellPanel, .kui-ShellSidebar, .kui-ShellInspector) {
|
|
12513
|
+
block-size: calc(100dvh - var(--kui-shell-pin-top, var(--kui-shell-page-top)));
|
|
12514
|
+
}
|
|
12515
|
+
}
|
|
12516
|
+
.kui-ShellRoot[data-window] > .kui-ShellBottom {
|
|
12517
|
+
position: var(--kui-shell-pin, sticky);
|
|
12518
|
+
}
|
|
12519
|
+
.kui-ShellRoot[data-window] > .kui-ShellScrim {
|
|
12520
|
+
position: fixed;
|
|
12521
|
+
}
|
|
12522
|
+
}
|
|
12382
12523
|
.kui-ShellResizer {
|
|
12383
12524
|
position: absolute;
|
|
12384
12525
|
z-index: 1;
|
|
@@ -13035,8 +13176,25 @@
|
|
|
13035
13176
|
background-color: CanvasText;
|
|
13036
13177
|
}
|
|
13037
13178
|
}
|
|
13038
|
-
.kui-
|
|
13179
|
+
.kui-SpinnerHost:where(:not([data-loading])) {
|
|
13039
13180
|
display: contents;
|
|
13181
|
+
}
|
|
13182
|
+
.kui-SpinnerHost:where([data-loading]) {
|
|
13183
|
+
position: relative;
|
|
13184
|
+
display: -webkit-box;
|
|
13185
|
+
display: -ms-flexbox;
|
|
13186
|
+
display: flex;
|
|
13187
|
+
-webkit-box-align: center;
|
|
13188
|
+
-ms-flex-align: center;
|
|
13189
|
+
align-items: center;
|
|
13190
|
+
-webkit-box-pack: center;
|
|
13191
|
+
-ms-flex-pack: center;
|
|
13192
|
+
justify-content: center;
|
|
13193
|
+
}
|
|
13194
|
+
.kui-SpinnerChildren {
|
|
13195
|
+
display: contents;
|
|
13196
|
+
}
|
|
13197
|
+
.kui-SpinnerHiddenChildren {
|
|
13040
13198
|
visibility: hidden;
|
|
13041
13199
|
}
|
|
13042
13200
|
.kui-SwitchRoot {
|
|
@@ -14783,7 +14941,10 @@
|
|
|
14783
14941
|
box-shadow: inset 0 0 0 1px var(--red-7);
|
|
14784
14942
|
}
|
|
14785
14943
|
}
|
|
14786
|
-
.kui-TextAreaWrapper {
|
|
14944
|
+
.kui-TextAreaWrapper:where(:not([data-message])) {
|
|
14945
|
+
display: contents;
|
|
14946
|
+
}
|
|
14947
|
+
.kui-TextAreaWrapper:where([data-message]) {
|
|
14787
14948
|
display: -webkit-box;
|
|
14788
14949
|
display: -ms-flexbox;
|
|
14789
14950
|
display: flex;
|
|
@@ -14793,7 +14954,7 @@
|
|
|
14793
14954
|
flex-direction: column;
|
|
14794
14955
|
min-width: 0;
|
|
14795
14956
|
}
|
|
14796
|
-
.kui-TextAreaWrapper > :where(.kui-TextAreaRoot) {
|
|
14957
|
+
.kui-TextAreaWrapper:where([data-message]) > :where(.kui-TextAreaRoot) {
|
|
14797
14958
|
-webkit-box-flex: 1;
|
|
14798
14959
|
-ms-flex: 1 1 auto;
|
|
14799
14960
|
flex: 1 1 auto;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var Ue=Object.create;var E=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var Je=(t,e)=>{for(var s in e)E(t,s,{get:e[s],enumerable:!0})},ae=(t,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of qe(e))!Ye.call(t,r)&&r!==s&&E(t,r,{get:()=>e[r],enumerable:!(a=Ze(e,r))||a.enumerable});return t};var D=(t,e,s)=>(s=t!=null?Ue(Xe(t)):{},ae(e||!t||!t.__esModule?E(s,"default",{value:t,enumerable:!0}):s,t)),Qe=t=>ae(E({},"__esModule",{value:!0}),t);var Mt={};Je(Mt,{BaseButton:()=>Be});module.exports=Qe(Mt);var n=D(require("react")),Ve=D(require("classnames")),Ee=require("radix-ui"),O=require("radix-ui/internal");var B={asChild:{type:"boolean"}};var et=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var le={color:{type:"enum",values:et,default:""}};var tt=["none","small","medium","large","full"],ue={radius:{type:"enum",values:tt,default:void 0}};var st=["1","2","3","4"],ot=["raised","solid","soft","surface","outline","ghost"],H={...B,size:{type:"enum",className:"kui-r-size",values:st,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:ot,default:"solid"},...le,...ue,loading:{type:"boolean",className:"kui-loading",default:!1},fullWidth:{type:"boolean",className:"kui-full-width",default:!1}};var L=D(require("react")),we=D(require("classnames"));var de=D(require("classnames"));var rt=[],nt=new Set;function it(t){let e=Object.assign({},...t),s=[],a=[],r=new Set;for(let o in e){let p=e[o],u=p.values??rt,f={key:o,type:p.type,default:p.default,hasDefault:p.default!==void 0,responsive:"responsive"in p,className:p.className,customProperties:p.customProperties,parseValue:p.parseValue,values:u,valueSet:u.length>0?new Set(u):nt,enumValueSet:p.type==="enum"?new Set([p.default,...u]):void 0};p.className?(s.push(f),r.add(o)):(f.hasDefault||p.type==="enum")&&a.push(f)}return{styling:s,passthrough:a,stylingKeys:r}}var pt={children:new WeakMap};function fe(t){let e=pt;for(let s=0;s<t.length;s++){let a=t[s],r=e.children.get(a);r===void 0&&(r={children:new WeakMap},e.children.set(a,r)),e=r}return e.compiled??(e.compiled=it(t))}var at=["initial","xs","sm","md","lg","xl"],$=new Set(at);function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var lt=new Set(["initial","xs","sm","md","lg","xl"]);function R(t){if(typeof t!="object"||t===null)return!1;for(let e in t)if(lt.has(e))return!0;return!1}function I(t,e,s){return e!==void 0?e.has(s):t.includes(s)}function me({className:t,customProperties:e,...s}){let a=_({allowArbitraryValues:!0,className:t,...s}),r=ut({customProperties:e,...s});return[a,r]}function _({allowArbitraryValues:t,value:e,className:s,propValues:a,propValueSet:r,parseValue:o=p=>p}){if(e){if(typeof e=="string")return I(a,r,e)?ce(s,e,o):t?s:void 0;if(R(e)){let p=e,u=[];for(let f in p){if(!A(p,f)||!$.has(f))continue;let i=p[f];if(i!==void 0){if(I(a,r,i)){let c=ce(s,i,o),g=f==="initial"?c:`${f}:${c}`;u.push(g)}else if(t){let c=f==="initial"?s:`${f}:${s}`;u.push(c)}}}return u.length>0?u.join(" "):""}if(t)return s}}function ce(t,e,s){let a=t?"-":"",r=s(e),o=r?.startsWith("-"),p=o?"-":"",u=o?r?.substring(1):r;return`${p}${t}${a}${u}`}function ut({customProperties:t,value:e,propValues:s,propValueSet:a,parseValue:r=o=>o}){if(!e||typeof e=="string"&&I(s,a,e))return;let o;if(typeof e=="string"){let p=r(e);o={};for(let u of t)o[u]=p;return o}if(R(e)){let p=e;for(let u in p){if(!A(p,u)||!$.has(u))continue;let f=p[u];if(f===void 0||I(s,a,f))continue;let i=r(f);o??(o={});for(let c of t){let g=u==="initial"?c:`${c}-${u}`;o[g]=i}}}return o??{}}function K(...t){let e;for(let s of t)s&&(e===void 0&&(e={}),Object.assign(e,s));return e}function ft(t,e){let s=t.initial,a=!1;return e.hasDefault&&s===void 0&&(s=e.default,a=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&(s=e.default,a=!0),a?{...t,initial:s}:t}function x(t,...e){let{styling:s,passthrough:a,stylingKeys:r}=fe(e),o={};for(let f in t)r.has(f)||(o[f]=t[f]);for(let f=0;f<a.length;f++){let i=a[f],c=o[i.key];if(c===void 0){i.hasDefault&&(o[i.key]=i.default);continue}i.enumValueSet!==void 0&&!i.enumValueSet.has(c)&&!R(c)&&(o[i.key]=i.default)}let p,u=[];for(let f=0;f<s.length;f++){let i=s[f],c=t[i.key];if(c===void 0&&i.hasDefault&&(c=i.default),i.enumValueSet!==void 0&&!i.enumValueSet.has(c)&&!R(c)&&(c=i.default),!!c){if(R(c)){if(!i.responsive)continue;c=ft(c,i)}if(i.type==="enum"){let g=_({allowArbitraryValues:!1,value:c,className:i.className,propValues:i.values,propValueSet:i.valueSet,parseValue:i.parseValue});g&&u.push(g);continue}if(i.type==="string"||i.type==="enum | string"){let[g,h]=me({className:i.className,customProperties:i.customProperties,propValues:i.type==="string"?[]:i.values,propValueSet:i.type==="string"?void 0:i.valueSet,parseValue:i.parseValue,value:c});h&&(p=K(p,h)),g&&u.push(g);continue}if(i.type==="boolean"){u.push(i.className);continue}}}return o.className=(0,de.default)(u.length>0?u.join(" "):void 0,t.className),o.style=K(p,t.style),o}var w=["0","1","2","3","4","5","6","7","8","9","10","11","12"],ge={p:{type:"enum | string",className:"kui-r-p",customProperties:["--p"],values:w,responsive:!0},px:{type:"enum | string",className:"kui-r-px",customProperties:["--pl","--pr"],values:w,responsive:!0},py:{type:"enum | string",className:"kui-r-py",customProperties:["--pt","--pb"],values:w,responsive:!0},pt:{type:"enum | string",className:"kui-r-pt",customProperties:["--pt"],values:w,responsive:!0},pr:{type:"enum | string",className:"kui-r-pr",customProperties:["--pr"],values:w,responsive:!0},pb:{type:"enum | string",className:"kui-r-pb",customProperties:["--pb"],values:w,responsive:!0},pl:{type:"enum | string",className:"kui-r-pl",customProperties:["--pl"],values:w,responsive:!0}};var ye={height:{type:"string",className:"kui-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"kui-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"kui-r-max-h",customProperties:["--max-height"],responsive:!0}};var Pe={width:{type:"string",className:"kui-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"kui-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"kui-r-max-w",customProperties:["--max-width"],responsive:!0}};var U=["visible","hidden","clip","scroll","auto"],ct=["static","relative","absolute","fixed","sticky"],T=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9"],mt=["0","1"],dt=["0","1"],gt=["start","center","end","baseline","stretch"],yt=["start","center","end","baseline","stretch"],he={...ge,...Pe,...ye,position:{type:"enum",className:"kui-r-position",values:ct,responsive:!0},inset:{type:"enum | string",className:"kui-r-inset",customProperties:["--inset"],values:T,responsive:!0},top:{type:"enum | string",className:"kui-r-top",customProperties:["--top"],values:T,responsive:!0},right:{type:"enum | string",className:"kui-r-right",customProperties:["--right"],values:T,responsive:!0},bottom:{type:"enum | string",className:"kui-r-bottom",customProperties:["--bottom"],values:T,responsive:!0},left:{type:"enum | string",className:"kui-r-left",customProperties:["--left"],values:T,responsive:!0},overflow:{type:"enum",className:"kui-r-overflow",values:U,responsive:!0},overflowX:{type:"enum",className:"kui-r-ox",values:U,responsive:!0},overflowY:{type:"enum",className:"kui-r-oy",values:U,responsive:!0},flexBasis:{type:"string",className:"kui-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"kui-r-fs",customProperties:["--flex-shrink"],values:mt,responsive:!0},flexGrow:{type:"enum | string",className:"kui-r-fg",customProperties:["--flex-grow"],values:dt,responsive:!0},gridArea:{type:"string",className:"kui-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"kui-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"kui-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"kui-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"kui-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"kui-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"kui-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"kui-r-as",values:gt,responsive:!0},justifySelf:{type:"enum",className:"kui-r-js",values:yt,responsive:!0}};var k=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12","bleed"],ve={m:{type:"enum | string",values:k,responsive:!0,className:"kui-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:k,responsive:!0,className:"kui-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:k,responsive:!0,className:"kui-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:k,responsive:!0,className:"kui-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:k,responsive:!0,className:"kui-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:k,responsive:!0,className:"kui-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:k,responsive:!0,className:"kui-r-ml",customProperties:["--ml"]}};var j=require("radix-ui"),ds=j.Slot.Root,De=j.Slot.Root,gs=j.Slot.Slottable;var Z=["0","1","2","3","4","5","6","7","8","9","10","11","12"],be={gap:{type:"enum | string",className:"kui-r-gap",customProperties:["--gap"],values:Z,responsive:!0},gapX:{type:"enum | string",className:"kui-r-cg",customProperties:["--column-gap"],values:Z,responsive:!0},gapY:{type:"enum | string",className:"kui-r-rg",customProperties:["--row-gap"],values:Z,responsive:!0}};var Pt=["div","span"],ht=["none","inline-flex","flex"],vt=["row","column","row-reverse","column-reverse"],Dt=["start","center","end","baseline","stretch"],bt=["start","center","end","between"],Rt=["nowrap","wrap","wrap-reverse"],Re={as:{type:"enum",values:Pt,default:"div"},...B,display:{type:"enum",className:"kui-r-display",values:ht,responsive:!0},direction:{type:"enum",className:"kui-r-fd",values:vt,responsive:!0},align:{type:"enum",className:"kui-r-ai",values:Dt,responsive:!0},justify:{type:"enum",className:"kui-r-jc",values:bt,parseValue:wt,responsive:!0},wrap:{type:"enum",className:"kui-r-fw",values:Rt,responsive:!0},...be};function wt(t){return t==="between"?"space-between":t}var N=L.forwardRef((t,e)=>{let{className:s,asChild:a,as:r="div",...o}=x(t,Re,he,ve);return L.createElement(a?De:r,{...o,ref:e,className:(0,we.default)("kui-Flex",s)})});N.displayName="Flex";var d=D(require("react")),xe=D(require("classnames"));var ke={loading:{type:"boolean",default:!0}};var q=d.forwardRef((t,e)=>{let{className:s,children:a,loading:r,...o}=x(t,ke);if(!r)return a;let p=o["aria-label"]!==void 0||o["aria-labelledby"]!==void 0,u=d.createElement("span",{role:p?"status":void 0,"aria-hidden":p?void 0:!0,...o,ref:e,className:(0,xe.default)("kui-Spinner",s)},d.createElement("span",{className:"kui-SpinnerWheel"},d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"})),typeof o["aria-label"]=="string"?d.createElement("span",{className:"kui-sr-only"},o["aria-label"]):null);return a===void 0?u:d.createElement(N,{asChild:!0,position:"relative",align:"center",justify:"center"},d.createElement("span",{"aria-busy":"true"},d.createElement("span",{"aria-hidden":!0,className:"kui-SpinnerHiddenChildren"},a),d.createElement(N,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},d.createElement("span",null,u))))});q.displayName="Spinner";var l=D(require("react")),kt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"})));kt.displayName="ThickDividerHorizontalIcon";var xt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"})));xt.displayName="ThickCheckIcon";var Nt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{d:"M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z"})));Nt.displayName="ChevronDownIcon";var Ct=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"})));Ct.displayName="ThickChevronRightIcon";var St=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.76174 0.201711C5.45892 -0.0809141 4.98433 -0.0645489 4.70171 0.238264L1.20171 3.98826C0.932757 4.27642 0.932757 4.72359 1.20171 5.01174L4.70171 8.76174C4.98433 9.06455 5.45892 9.08092 5.76174 8.79829C6.06455 8.51567 6.08091 8.04108 5.79829 7.73826L2.77591 4.5L5.79829 1.26174C6.08091 0.958928 6.06455 0.484337 5.76174 0.201711Z"})));St.displayName="ThickChevronLeftIcon";var Tt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("circle",{cx:"4.5",cy:"4.5",r:"2"})));Tt.displayName="ThickDotIcon";var Vt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{...t,ref:e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"M18 6 6 18"}),l.default.createElement("path",{d:"m6 6 12 12"})));Vt.displayName="CloseIcon";var Et=l.default.forwardRef((t,e)=>l.default.createElement("svg",{...t,ref:e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"})));Et.displayName="PaperclipIcon";var Bt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),l.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})));Bt.displayName="FileIcon";var It=l.default.forwardRef((t,e)=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),l.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),l.default.createElement("path",{d:"M10 9H8"}),l.default.createElement("path",{d:"M16 13H8"}),l.default.createElement("path",{d:"M16 17H8"})));It.displayName="FileTextIcon";var X=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{d:"M5 12.75L9.5 17.25L19 7.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})));X.displayName="TickIcon";var M=D(require("react"));function Ne(t,e){if(e.includes(t))return t;let s=Number(t),a=e[0],r=1/0;for(let o=0;o<e.length;o++){let p=Math.abs(Number(e[o])-s);p<r&&(r=p,a=e[o])}return a}var Ce=M.createContext("2");Ce.displayName="ThemeSizeContext";function Se(t,e){let s=M.useContext(Ce);if(t.size!==void 0)return t;let a=Ne(s,e.values);return a===e.default?t:{...t,size:a}}var Be=n.forwardRef((t,e)=>{let s=Se(t,H.size),{className:a,children:r,asChild:o,as:p,color:u,radius:f,disabled:i,done:c=!1,...g}=x(s,H),h=!!s.loading,Q=s.loading!==void 0,C=!!i||h,{onClick:ee,"aria-describedby":te}=g,Ie=n.useCallback(m=>{if(C){m.preventDefault();return}ee?.(m)},[C,ee]),je=n.useMemo(()=>{let m=o&&n.isValidElement(r)?r.props.children:r,P=J(m),v=y=>n.isValidElement(y)&&(y.type==="svg"||typeof y.type!="string"&&y.type!==n.Fragment&&!Lt.has(Y(y.type)));return{iconStart:v(P[0]),iconEnd:v(P[P.length-1])}},[o,r]),[F,Le]=n.useState(null),se=n.useRef(null),Me=(0,O.useComposedRefs)(e,se);(0,O.useLayoutEffect)(()=>{let m=se.current;if(!m||h||c)return;let P=m.querySelector(":scope > .kui-BaseButtonContent")??m,v=Te(P,"start"),y=Te(P,"end");Le(b=>b&&b.iconStart===v&&b.iconEnd===y?b:{iconStart:v,iconEnd:y})});let{iconStart:z,iconEnd:Oe}=F??je,oe=!!g["data-icon-only"],S=n.useMemo(()=>{if(!c)return r;let m=n.createElement(X,{key:"kui-done-tick",className:"kui-BaseButtonTick","aria-hidden":!0}),P=v=>{if(oe)return m;let y=J(v),b=y.findIndex(V=>!(typeof V=="string"&&!V.trim())),pe=y[b];return b!==-1&&z&&(F!==null||n.isValidElement(pe)&&pe.type==="svg")?y.map((V,Ke)=>Ke===b?m:V):[m,...y]};if(o&&n.isValidElement(r)){let v=r;return n.cloneElement(v,void 0,P(v.props.children))}return P(r)},[c,r,oe,z,F,o]),Fe=o?Ee.Slot.Root:p||"button",ze=["button","input","textarea","select"],re=o?n.isValidElement(r)?r.type:void 0:p||"button",G=typeof re=="string"&&ze.includes(re),{onClickCapture:ne}=g,Ge=n.useCallback(m=>{if(o&&C){m.preventDefault(),m.stopPropagation();return}ne?.(m)},[o,C,ne]),We=!o&&(!p||p==="button"),He="type"in g,$e=n.useId(),W=h?`${$e}-loading`:void 0,Ae=n.useMemo(()=>h?{"aria-busy":!0,"aria-disabled":!0,"aria-describedby":[te,W].filter(Boolean).join(" ")}:i&&(!G||o)?{"aria-disabled":!0}:{},[h,W,te,i,G,o]),ie=(m,P)=>Q?n.createElement(n.Fragment,null,n.createElement("span",{className:"kui-BaseButtonContent","aria-hidden":h||void 0},m),h?n.createElement(n.Fragment,null,n.createElement("span",{className:"kui-sr-only"},n.createElement("span",{id:W,"aria-hidden":!0},"Loading"),P),n.createElement(N,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},n.createElement("span",null,n.createElement(q,{"aria-hidden":"true"})))):null):m,_e=o&&Q&&n.isValidElement(S)?n.cloneElement(S,void 0,ie(S.props.children,n.isValidElement(r)?r.props.children:null)):S;return n.createElement(Fe,{"data-accent-color":u,"data-radius":f,"data-icon-start":z||void 0,"data-icon-end":Oe||void 0,"data-done":c||void 0,...g,...Ae,"data-disabled":C||void 0,onClick:Ie,onClickCapture:Ge,ref:Me,className:(0,Ve.default)("kui-reset","kui-BaseButton",a),...G&&{disabled:i},...We&&!He?{type:"button"}:{}},o?_e:ie(S,r))});Be.displayName="BaseButton";var Lt=new Set(["Text","Kbd","Code","Link","Em","Strong","Quote","Badge","Trans"]);function Y(t){if(!t||typeof t!="function"&&typeof t!="object")return"";let e=t;return e.displayName||e.name||Y(e.render)||Y(e.type)}function J(t){return n.Children.toArray(t).flatMap(e=>n.isValidElement(e)&&e.type===n.Fragment?J(e.props.children):[e])}function Te(t,e){let s=e==="start"?t.firstChild:t.lastChild;for(;s&&(s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!s.textContent?.trim());)s=e==="start"?s.nextSibling:s.previousSibling;return s?.nodeType===Node.ELEMENT_NODE&&s.localName==="svg"}
|
|
2
|
+
"use strict";var Ue=Object.create;var E=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var Je=(t,e)=>{for(var s in e)E(t,s,{get:e[s],enumerable:!0})},le=(t,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of qe(e))!Ye.call(t,o)&&o!==s&&E(t,o,{get:()=>e[o],enumerable:!(a=Ze(e,o))||a.enumerable});return t};var D=(t,e,s)=>(s=t!=null?Ue(Xe(t)):{},le(e||!t||!t.__esModule?E(s,"default",{value:t,enumerable:!0}):s,t)),Qe=t=>le(E({},"__esModule",{value:!0}),t);var Mt={};Je(Mt,{BaseButton:()=>Be});module.exports=Qe(Mt);var n=D(require("react")),Ve=D(require("classnames")),Ee=require("radix-ui"),O=require("radix-ui/internal");var B={asChild:{type:"boolean"}};var et=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"];var ue={color:{type:"enum",values:et,default:""}};var tt=["none","small","medium","large","full"],fe={radius:{type:"enum",values:tt,default:void 0}};var st=["1","2","3","4"],ot=["raised","solid","soft","surface","outline","ghost"],H={...B,size:{type:"enum",className:"kui-r-size",values:st,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:ot,default:"solid"},...ue,...fe,loading:{type:"boolean",className:"kui-loading",default:!1},fullWidth:{type:"boolean",className:"kui-full-width",default:!1}};var L=D(require("react")),we=D(require("classnames"));var ge=D(require("classnames"));var rt=[],nt=new Set;function it(t){let e=Object.assign({},...t),s=[],a=[],o=new Set;for(let r in e){let p=e[r],u=p.values??rt,f={key:r,type:p.type,default:p.default,hasDefault:p.default!==void 0,responsive:"responsive"in p,className:p.className,customProperties:p.customProperties,parseValue:p.parseValue,values:u,valueSet:u.length>0?new Set(u):nt,enumValueSet:p.type==="enum"?new Set([p.default,...u]):void 0};p.className?(s.push(f),o.add(r)):(f.hasDefault||p.type==="enum")&&a.push(f)}return{styling:s,passthrough:a,stylingKeys:o}}var pt={children:new WeakMap};function ce(t){let e=pt;for(let s=0;s<t.length;s++){let a=t[s],o=e.children.get(a);o===void 0&&(o={children:new WeakMap},e.children.set(a,o)),e=o}return e.compiled??(e.compiled=it(t))}var at=["initial","xs","sm","md","lg","xl"],$=new Set(at);function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var lt=new Set(["initial","xs","sm","md","lg","xl"]);function R(t){if(typeof t!="object"||t===null)return!1;for(let e in t)if(lt.has(e))return!0;return!1}function I(t,e,s){return e!==void 0?e.has(s):t.includes(s)}function de({className:t,customProperties:e,...s}){let a=_({allowArbitraryValues:!0,className:t,...s}),o=ut({customProperties:e,...s});return[a,o]}function _({allowArbitraryValues:t,value:e,className:s,propValues:a,propValueSet:o,parseValue:r=p=>p}){if(e){if(typeof e=="string")return I(a,o,e)?me(s,e,r):t?s:void 0;if(R(e)){let p=e,u=[];for(let f in p){if(!A(p,f)||!$.has(f))continue;let i=p[f];if(i!==void 0){if(I(a,o,i)){let c=me(s,i,r),g=f==="initial"?c:`${f}:${c}`;u.push(g)}else if(t){let c=f==="initial"?s:`${f}:${s}`;u.push(c)}}}return u.length>0?u.join(" "):""}if(t)return s}}function me(t,e,s){let a=t?"-":"",o=s(e),r=o?.startsWith("-"),p=r?"-":"",u=r?o?.substring(1):o;return`${p}${t}${a}${u}`}function ut({customProperties:t,value:e,propValues:s,propValueSet:a,parseValue:o=r=>r}){if(!e||typeof e=="string"&&I(s,a,e))return;let r;if(typeof e=="string"){let p=o(e);r={};for(let u of t)r[u]=p;return r}if(R(e)){let p=e;for(let u in p){if(!A(p,u)||!$.has(u))continue;let f=p[u];if(f===void 0||I(s,a,f))continue;let i=o(f);r??(r={});for(let c of t){let g=u==="initial"?c:`${c}-${u}`;r[g]=i}}}return r??{}}function K(...t){let e;for(let s of t)s&&(e===void 0&&(e={}),Object.assign(e,s));return e}function ft(t,e){let s=t.initial,a=!1;return e.hasDefault&&s===void 0&&(s=e.default,a=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&(s=e.default,a=!0),a?{...t,initial:s}:t}function x(t,...e){let{styling:s,passthrough:a,stylingKeys:o}=ce(e),r={};for(let f in t)o.has(f)||(r[f]=t[f]);for(let f=0;f<a.length;f++){let i=a[f],c=r[i.key];if(c===void 0){i.hasDefault&&(r[i.key]=i.default);continue}i.enumValueSet!==void 0&&!i.enumValueSet.has(c)&&!R(c)&&(r[i.key]=i.default)}let p,u=[];for(let f=0;f<s.length;f++){let i=s[f],c=t[i.key];if(c===void 0&&i.hasDefault&&(c=i.default),i.enumValueSet!==void 0&&!i.enumValueSet.has(c)&&!R(c)&&(c=i.default),!!c){if(R(c)){if(!i.responsive)continue;c=ft(c,i)}if(i.type==="enum"){let g=_({allowArbitraryValues:!1,value:c,className:i.className,propValues:i.values,propValueSet:i.valueSet,parseValue:i.parseValue});g&&u.push(g);continue}if(i.type==="string"||i.type==="enum | string"){let[g,h]=de({className:i.className,customProperties:i.customProperties,propValues:i.type==="string"?[]:i.values,propValueSet:i.type==="string"?void 0:i.valueSet,parseValue:i.parseValue,value:c});h&&(p=K(p,h)),g&&u.push(g);continue}if(i.type==="boolean"){u.push(i.className);continue}}}return r.className=(0,ge.default)(u.length>0?u.join(" "):void 0,t.className),r.style=K(p,t.style),r}var k=["0","1","2","3","4","5","6","7","8","9","10","11","12"],ye={p:{type:"enum | string",className:"kui-r-p",customProperties:["--p"],values:k,responsive:!0},px:{type:"enum | string",className:"kui-r-px",customProperties:["--pl","--pr"],values:k,responsive:!0},py:{type:"enum | string",className:"kui-r-py",customProperties:["--pt","--pb"],values:k,responsive:!0},pt:{type:"enum | string",className:"kui-r-pt",customProperties:["--pt"],values:k,responsive:!0},pr:{type:"enum | string",className:"kui-r-pr",customProperties:["--pr"],values:k,responsive:!0},pb:{type:"enum | string",className:"kui-r-pb",customProperties:["--pb"],values:k,responsive:!0},pl:{type:"enum | string",className:"kui-r-pl",customProperties:["--pl"],values:k,responsive:!0}};var Pe={height:{type:"string",className:"kui-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"kui-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"kui-r-max-h",customProperties:["--max-height"],responsive:!0}};var he={width:{type:"string",className:"kui-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"kui-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"kui-r-max-w",customProperties:["--max-width"],responsive:!0}};var U=["visible","hidden","clip","scroll","auto"],ct=["static","relative","absolute","fixed","sticky"],S=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9"],mt=["0","1"],dt=["0","1"],gt=["start","center","end","baseline","stretch"],yt=["start","center","end","baseline","stretch"],ve={...ye,...he,...Pe,position:{type:"enum",className:"kui-r-position",values:ct,responsive:!0},inset:{type:"enum | string",className:"kui-r-inset",customProperties:["--inset"],values:S,responsive:!0},top:{type:"enum | string",className:"kui-r-top",customProperties:["--top"],values:S,responsive:!0},right:{type:"enum | string",className:"kui-r-right",customProperties:["--right"],values:S,responsive:!0},bottom:{type:"enum | string",className:"kui-r-bottom",customProperties:["--bottom"],values:S,responsive:!0},left:{type:"enum | string",className:"kui-r-left",customProperties:["--left"],values:S,responsive:!0},overflow:{type:"enum",className:"kui-r-overflow",values:U,responsive:!0},overflowX:{type:"enum",className:"kui-r-ox",values:U,responsive:!0},overflowY:{type:"enum",className:"kui-r-oy",values:U,responsive:!0},flexBasis:{type:"string",className:"kui-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"kui-r-fs",customProperties:["--flex-shrink"],values:mt,responsive:!0},flexGrow:{type:"enum | string",className:"kui-r-fg",customProperties:["--flex-grow"],values:dt,responsive:!0},gridArea:{type:"string",className:"kui-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"kui-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"kui-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"kui-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"kui-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"kui-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"kui-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"kui-r-as",values:gt,responsive:!0},justifySelf:{type:"enum",className:"kui-r-js",values:yt,responsive:!0}};var w=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12","bleed"],De={m:{type:"enum | string",values:w,responsive:!0,className:"kui-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:w,responsive:!0,className:"kui-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:w,responsive:!0,className:"kui-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:w,responsive:!0,className:"kui-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:w,responsive:!0,className:"kui-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:w,responsive:!0,className:"kui-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:w,responsive:!0,className:"kui-r-ml",customProperties:["--ml"]}};var j=require("radix-ui"),ds=j.Slot.Root,be=j.Slot.Root,gs=j.Slot.Slottable;var Z=["0","1","2","3","4","5","6","7","8","9","10","11","12"],Re={gap:{type:"enum | string",className:"kui-r-gap",customProperties:["--gap"],values:Z,responsive:!0},gapX:{type:"enum | string",className:"kui-r-cg",customProperties:["--column-gap"],values:Z,responsive:!0},gapY:{type:"enum | string",className:"kui-r-rg",customProperties:["--row-gap"],values:Z,responsive:!0}};var Pt=["div","span"],ht=["none","inline-flex","flex"],vt=["row","column","row-reverse","column-reverse"],Dt=["start","center","end","baseline","stretch"],bt=["start","center","end","between"],Rt=["nowrap","wrap","wrap-reverse"],ke={as:{type:"enum",values:Pt,default:"div"},...B,display:{type:"enum",className:"kui-r-display",values:ht,responsive:!0},direction:{type:"enum",className:"kui-r-fd",values:vt,responsive:!0},align:{type:"enum",className:"kui-r-ai",values:Dt,responsive:!0},justify:{type:"enum",className:"kui-r-jc",values:bt,parseValue:kt,responsive:!0},wrap:{type:"enum",className:"kui-r-fw",values:Rt,responsive:!0},...Re};function kt(t){return t==="between"?"space-between":t}var T=L.forwardRef((t,e)=>{let{className:s,asChild:a,as:o="div",...r}=x(t,ke,ve,De);return L.createElement(a?be:o,{...r,ref:e,className:(0,we.default)("kui-Flex",s)})});T.displayName="Flex";var d=D(require("react")),q=D(require("classnames"));var xe={loading:{type:"boolean",default:!0}};var X=d.forwardRef((t,e)=>{let{className:s,children:a,loading:o,...r}=x(t,xe);if(a===void 0&&!o)return null;let p=r["aria-label"]!==void 0||r["aria-labelledby"]!==void 0,u=d.createElement("span",{role:p?"status":void 0,"aria-hidden":p?void 0:!0,...r,ref:e,className:(0,q.default)("kui-Spinner",s)},d.createElement("span",{className:"kui-SpinnerWheel"},d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"}),d.createElement("span",{className:"kui-SpinnerLeaf"})),typeof r["aria-label"]=="string"?d.createElement("span",{className:"kui-sr-only"},r["aria-label"]):null);return a===void 0?u:d.createElement("span",{className:"kui-SpinnerHost","data-loading":o||void 0,"aria-busy":o||void 0},d.createElement("span",{"aria-hidden":o||void 0,className:(0,q.default)("kui-SpinnerChildren",o&&"kui-SpinnerHiddenChildren")},a),o?d.createElement(T,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},d.createElement("span",null,u)):null)});X.displayName="Spinner";var l=D(require("react")),wt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"})));wt.displayName="ThickDividerHorizontalIcon";var xt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"})));xt.displayName="ThickCheckIcon";var Nt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{d:"M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z"})));Nt.displayName="ChevronDownIcon";var Ct=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"})));Ct.displayName="ThickChevronRightIcon";var St=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.76174 0.201711C5.45892 -0.0809141 4.98433 -0.0645489 4.70171 0.238264L1.20171 3.98826C0.932757 4.27642 0.932757 4.72359 1.20171 5.01174L4.70171 8.76174C4.98433 9.06455 5.45892 9.08092 5.76174 8.79829C6.06455 8.51567 6.08091 8.04108 5.79829 7.73826L2.77591 4.5L5.79829 1.26174C6.08091 0.958928 6.06455 0.484337 5.76174 0.201711Z"})));St.displayName="ThickChevronLeftIcon";var Tt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("circle",{cx:"4.5",cy:"4.5",r:"2"})));Tt.displayName="ThickDotIcon";var Vt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{...t,ref:e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"M18 6 6 18"}),l.default.createElement("path",{d:"m6 6 12 12"})));Vt.displayName="CloseIcon";var Et=l.default.forwardRef((t,e)=>l.default.createElement("svg",{...t,ref:e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"})));Et.displayName="PaperclipIcon";var Bt=l.default.forwardRef((t,e)=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),l.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})));Bt.displayName="FileIcon";var It=l.default.forwardRef((t,e)=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),l.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),l.default.createElement("path",{d:"M10 9H8"}),l.default.createElement("path",{d:"M16 13H8"}),l.default.createElement("path",{d:"M16 17H8"})));It.displayName="FileTextIcon";var Y=l.default.forwardRef((t,e)=>l.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:e},l.default.createElement("path",{d:"M5 12.75L9.5 17.25L19 7.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})));Y.displayName="TickIcon";var M=D(require("react"));function Ne(t,e){if(e.includes(t))return t;let s=Number(t),a=e[0],o=1/0;for(let r=0;r<e.length;r++){let p=Math.abs(Number(e[r])-s);p<o&&(o=p,a=e[r])}return a}var Ce=M.createContext("2");Ce.displayName="ThemeSizeContext";function Se(t,e){let s=M.useContext(Ce);if(t.size!==void 0)return t;let a=Ne(s,e.values);return a===e.default?t:{...t,size:a}}var Be=n.forwardRef((t,e)=>{let s=Se(t,H.size),{className:a,children:o,asChild:r,as:p,color:u,radius:f,disabled:i,done:c=!1,...g}=x(s,H),h=!!s.loading,ee=s.loading!==void 0,N=!!i||h,{onClick:te,"aria-describedby":se}=g,Ie=n.useCallback(m=>{if(N){m.preventDefault();return}te?.(m)},[N,te]),je=n.useMemo(()=>{let m=r&&n.isValidElement(o)?o.props.children:o,P=Q(m),v=y=>n.isValidElement(y)&&(y.type==="svg"||typeof y.type!="string"&&y.type!==n.Fragment&&!Lt.has(J(y.type)));return{iconStart:v(P[0]),iconEnd:v(P[P.length-1])}},[r,o]),[F,Le]=n.useState(null),oe=n.useRef(null),Me=(0,O.useComposedRefs)(e,oe);(0,O.useLayoutEffect)(()=>{let m=oe.current;if(!m||h||c)return;let P=m.querySelector(":scope > .kui-BaseButtonContent")??m,v=Te(P,"start"),y=Te(P,"end");Le(b=>b&&b.iconStart===v&&b.iconEnd===y?b:{iconStart:v,iconEnd:y})});let{iconStart:z,iconEnd:Oe}=F??je,re=!!g["data-icon-only"],C=n.useMemo(()=>{if(!c)return o;let m=n.createElement(Y,{key:"kui-done-tick",className:"kui-BaseButtonTick","aria-hidden":!0}),P=v=>{if(re)return m;let y=Q(v),b=y.findIndex(V=>!(typeof V=="string"&&!V.trim())),ae=y[b];return b!==-1&&z&&(F!==null||n.isValidElement(ae)&&ae.type==="svg")?y.map((V,Ke)=>Ke===b?m:V):[m,...y]};if(r&&n.isValidElement(o)){let v=o;return n.cloneElement(v,void 0,P(v.props.children))}return P(o)},[c,o,re,z,F,r]),Fe=r?Ee.Slot.Root:p||"button",ze=["button","input","textarea","select"],ne=r?n.isValidElement(o)?o.type:void 0:p||"button",G=typeof ne=="string"&&ze.includes(ne),{onClickCapture:ie}=g,Ge=n.useCallback(m=>{if(r&&N){m.preventDefault(),m.stopPropagation();return}ie?.(m)},[r,N,ie]),We=!r&&(!p||p==="button"),He="type"in g,$e=n.useId(),W=h?`${$e}-loading`:void 0,Ae=n.useMemo(()=>h?{"aria-busy":!0,"aria-disabled":!0,"aria-describedby":[se,W].filter(Boolean).join(" ")}:i&&(!G||r)?{"aria-disabled":!0}:{},[h,W,se,i,G,r]),pe=(m,P)=>ee?n.createElement(n.Fragment,null,n.createElement("span",{className:"kui-BaseButtonContent","aria-hidden":h||void 0},m),h?n.createElement(n.Fragment,null,n.createElement("span",{className:"kui-sr-only"},n.createElement("span",{id:W,"aria-hidden":!0},"Loading"),P),n.createElement(T,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},n.createElement("span",null,n.createElement(X,{"aria-hidden":"true"})))):null):m,_e=r&&ee&&n.isValidElement(C)?n.cloneElement(C,void 0,pe(C.props.children,n.isValidElement(o)?o.props.children:null)):C;return n.createElement(Fe,{"data-accent-color":u,"data-radius":f,"data-icon-start":z||void 0,"data-icon-end":Oe||void 0,"data-done":c||void 0,...g,...Ae,"data-disabled":N||void 0,onClick:Ie,onClickCapture:Ge,ref:Me,className:(0,Ve.default)("kui-reset","kui-BaseButton",a),...G&&{disabled:i},...We&&!He?{type:"button"}:{}},r?_e:pe(C,o))});Be.displayName="BaseButton";var Lt=new Set(["Text","Kbd","Code","Link","Em","Strong","Quote","Badge","Trans"]);function J(t){if(!t||typeof t!="function"&&typeof t!="object")return"";let e=t;return e.displayName||e.name||J(e.render)||J(e.type)}function Q(t){return n.Children.toArray(t).flatMap(e=>n.isValidElement(e)&&e.type===n.Fragment?Q(e.props.children):[e])}function Te(t,e){let s=e==="start"?t.firstChild:t.lastChild;for(;s&&(s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!s.textContent?.trim());)s=e==="start"?s.nextSibling:s.previousSibling;return s?.nodeType===Node.ELEMENT_NODE&&s.localName==="svg"}
|
|
3
3
|
//# sourceMappingURL=base-button.js.map
|