@womp/kookie-ui 0.17.0 → 0.18.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 +1397 -2626
- package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
- package/dist/cjs/components/_internal/base-button.js +1 -1
- package/dist/cjs/components/_internal/base-button.js.map +4 -4
- package/dist/cjs/components/_internal/base-checkbox.props.d.ts +1 -1
- package/dist/cjs/components/_internal/base-checkbox.props.js +1 -1
- package/dist/cjs/components/_internal/base-checkbox.props.js.map +2 -2
- package/dist/cjs/components/_internal/base-radio.props.d.ts +1 -1
- package/dist/cjs/components/_internal/base-radio.props.js +1 -1
- package/dist/cjs/components/_internal/base-radio.props.js.map +2 -2
- package/dist/cjs/components/_internal/pane-chrome.js +1 -1
- package/dist/cjs/components/_internal/pane-chrome.js.map +3 -3
- package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
- package/dist/cjs/components/_internal/shell-sidebar.js.map +3 -3
- package/dist/cjs/components/accordion.d.ts.map +1 -1
- package/dist/cjs/components/accordion.js +1 -1
- package/dist/cjs/components/accordion.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/badge.js +1 -1
- package/dist/cjs/components/badge.js.map +4 -4
- package/dist/cjs/components/badge.props.d.ts +1 -1
- package/dist/cjs/components/badge.props.js +1 -1
- package/dist/cjs/components/badge.props.js.map +1 -1
- package/dist/cjs/components/button.js +2 -2
- package/dist/cjs/components/button.js.map +4 -4
- package/dist/cjs/components/chatbar.d.ts.map +1 -1
- package/dist/cjs/components/chatbar.js +2 -2
- package/dist/cjs/components/chatbar.js.map +4 -4
- package/dist/cjs/components/checkbox-cards.js +1 -1
- package/dist/cjs/components/checkbox-cards.js.map +2 -2
- package/dist/cjs/components/checkbox-group.d.ts.map +1 -1
- package/dist/cjs/components/checkbox-group.js +1 -1
- package/dist/cjs/components/checkbox-group.js.map +4 -4
- package/dist/cjs/components/checkbox-group.props.d.ts +1 -1
- package/dist/cjs/components/checkbox-group.props.js +1 -1
- package/dist/cjs/components/checkbox-group.props.js.map +2 -2
- package/dist/cjs/components/checkbox.d.ts.map +1 -1
- package/dist/cjs/components/checkbox.js +1 -1
- package/dist/cjs/components/checkbox.js.map +4 -4
- package/dist/cjs/components/checkbox.props.js +1 -1
- package/dist/cjs/components/checkbox.props.js.map +2 -2
- 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/data-list.d.ts.map +1 -1
- package/dist/cjs/components/data-list.js +1 -1
- package/dist/cjs/components/data-list.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/hover-card.d.ts.map +1 -1
- package/dist/cjs/components/hover-card.js +1 -1
- package/dist/cjs/components/hover-card.js.map +4 -4
- package/dist/cjs/components/icon-button.js +2 -2
- package/dist/cjs/components/icon-button.js.map +4 -4
- package/dist/cjs/components/index.js +5 -5
- package/dist/cjs/components/index.js.map +4 -4
- package/dist/cjs/components/message-scroller.js +2 -2
- package/dist/cjs/components/message-scroller.js.map +4 -4
- package/dist/cjs/components/navbar.d.ts.map +1 -1
- package/dist/cjs/components/navbar.js +1 -1
- package/dist/cjs/components/navbar.js.map +4 -4
- package/dist/cjs/components/notice.d.ts +1 -1
- package/dist/cjs/components/notice.d.ts.map +1 -1
- package/dist/cjs/components/notice.js +2 -2
- package/dist/cjs/components/notice.js.map +4 -4
- package/dist/cjs/components/popover.d.ts.map +1 -1
- package/dist/cjs/components/popover.js +1 -1
- package/dist/cjs/components/popover.js.map +4 -4
- package/dist/cjs/components/progress.js +1 -1
- package/dist/cjs/components/progress.js.map +3 -3
- package/dist/cjs/components/progress.props.d.ts +0 -7
- package/dist/cjs/components/progress.props.d.ts.map +1 -1
- package/dist/cjs/components/progress.props.js +1 -1
- package/dist/cjs/components/progress.props.js.map +3 -3
- package/dist/cjs/components/radio-group.d.ts.map +1 -1
- package/dist/cjs/components/radio-group.js +1 -1
- package/dist/cjs/components/radio-group.js.map +4 -4
- package/dist/cjs/components/radio-group.props.d.ts +1 -1
- package/dist/cjs/components/radio-group.props.js +1 -1
- package/dist/cjs/components/radio-group.props.js.map +2 -2
- package/dist/cjs/components/radio.d.ts.map +1 -1
- package/dist/cjs/components/radio.js +1 -1
- package/dist/cjs/components/radio.js.map +4 -4
- package/dist/cjs/components/radio.props.js +1 -1
- package/dist/cjs/components/radio.props.js.map +2 -2
- package/dist/cjs/components/scroll-area.d.ts.map +1 -1
- package/dist/cjs/components/scroll-area.js +1 -1
- package/dist/cjs/components/scroll-area.js.map +3 -3
- package/dist/cjs/components/scroll-area.props.d.ts +0 -7
- package/dist/cjs/components/scroll-area.props.d.ts.map +1 -1
- package/dist/cjs/components/scroll-area.props.js +1 -1
- package/dist/cjs/components/scroll-area.props.js.map +3 -3
- package/dist/cjs/components/segmented-control.d.ts.map +1 -1
- package/dist/cjs/components/segmented-control.js +1 -1
- package/dist/cjs/components/segmented-control.js.map +4 -4
- 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/separator.js +1 -1
- package/dist/cjs/components/separator.js.map +3 -3
- package/dist/cjs/components/separator.props.d.ts +0 -7
- package/dist/cjs/components/separator.props.d.ts.map +1 -1
- package/dist/cjs/components/separator.props.js +1 -1
- package/dist/cjs/components/separator.props.js.map +3 -3
- package/dist/cjs/components/sheet.js +1 -1
- package/dist/cjs/components/sheet.js.map +4 -4
- package/dist/cjs/components/shell.d.ts +1 -1
- 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/slider.d.ts.map +1 -1
- package/dist/cjs/components/slider.js +1 -1
- package/dist/cjs/components/slider.js.map +4 -4
- package/dist/cjs/components/spinner.js +1 -1
- package/dist/cjs/components/spinner.js.map +3 -3
- package/dist/cjs/components/spinner.props.d.ts +0 -7
- package/dist/cjs/components/spinner.props.d.ts.map +1 -1
- package/dist/cjs/components/spinner.props.js +1 -1
- package/dist/cjs/components/spinner.props.js.map +3 -3
- package/dist/cjs/components/switch.d.ts.map +1 -1
- package/dist/cjs/components/switch.js +1 -1
- package/dist/cjs/components/switch.js.map +4 -4
- package/dist/cjs/components/tab-nav.d.ts.map +1 -1
- package/dist/cjs/components/tab-nav.js +1 -1
- package/dist/cjs/components/tab-nav.js.map +4 -4
- package/dist/cjs/components/table.d.ts.map +1 -1
- package/dist/cjs/components/table.js +1 -1
- package/dist/cjs/components/table.js.map +4 -4
- package/dist/cjs/components/table.props.d.ts +1 -1
- package/dist/cjs/components/table.props.js +1 -1
- package/dist/cjs/components/table.props.js.map +2 -2
- package/dist/cjs/components/tabs.d.ts.map +1 -1
- package/dist/cjs/components/tabs.js +1 -1
- package/dist/cjs/components/tabs.js.map +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/cjs/components/theme-panel.js +3 -3
- package/dist/cjs/components/theme-panel.js.map +4 -4
- package/dist/cjs/components/theme.d.ts +3 -0
- 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/theme.props.d.ts +12 -0
- package/dist/cjs/components/theme.props.d.ts.map +1 -1
- package/dist/cjs/components/theme.props.js +1 -1
- package/dist/cjs/components/theme.props.js.map +3 -3
- package/dist/cjs/components/toggle-button.js +3 -3
- package/dist/cjs/components/toggle-button.js.map +4 -4
- package/dist/cjs/components/toggle-icon-button.js +3 -3
- package/dist/cjs/components/toggle-icon-button.js.map +4 -4
- package/dist/cjs/components/toolbar.d.ts.map +1 -1
- package/dist/cjs/components/toolbar.js +2 -2
- 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/helpers/index.d.ts +1 -0
- package/dist/cjs/helpers/index.d.ts.map +1 -1
- package/dist/cjs/helpers/index.js +3 -3
- package/dist/cjs/helpers/index.js.map +4 -4
- package/dist/cjs/helpers/map-prop-values.d.ts +1 -4
- package/dist/cjs/helpers/map-prop-values.d.ts.map +1 -1
- package/dist/cjs/helpers/map-prop-values.js +1 -1
- package/dist/cjs/helpers/map-prop-values.js.map +3 -3
- package/dist/cjs/helpers/theme-size.d.ts +41 -0
- package/dist/cjs/helpers/theme-size.d.ts.map +1 -0
- package/dist/cjs/helpers/theme-size.js +2 -0
- package/dist/cjs/helpers/theme-size.js.map +7 -0
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/props/index.js +1 -1
- package/dist/cjs/props/index.js.map +3 -3
- package/dist/esm/{chunk-XZ5XZS5O.js → chunk-35HNDWWM.js} +2 -2
- package/dist/esm/chunk-3YLYGKFB.js +2 -0
- package/dist/esm/chunk-3YLYGKFB.js.map +7 -0
- package/dist/esm/chunk-4DE3ONED.js +2 -0
- package/dist/esm/chunk-4DE3ONED.js.map +7 -0
- package/dist/esm/chunk-4M55YJMR.js +2 -0
- package/dist/esm/chunk-4M55YJMR.js.map +7 -0
- package/dist/esm/chunk-4YQXYWDQ.js +2 -0
- package/dist/esm/chunk-4YQXYWDQ.js.map +7 -0
- package/dist/esm/chunk-54KMG7NX.js +2 -0
- package/dist/esm/chunk-54KMG7NX.js.map +7 -0
- package/dist/esm/chunk-5R2WX2FU.js +2 -0
- package/dist/esm/chunk-5R2WX2FU.js.map +7 -0
- package/dist/esm/chunk-5VBJT2VY.js +2 -0
- package/dist/esm/chunk-5VBJT2VY.js.map +7 -0
- package/dist/esm/chunk-6AZV4VFW.js +2 -0
- package/dist/esm/chunk-6AZV4VFW.js.map +7 -0
- package/dist/esm/{chunk-YDRFILTX.js → chunk-6YWDEANN.js} +2 -2
- package/dist/esm/{chunk-MZQDDG5K.js → chunk-7FZPCM7W.js} +2 -2
- package/dist/esm/chunk-7J2QS2UT.js +5 -0
- package/dist/esm/chunk-7J2QS2UT.js.map +7 -0
- package/dist/esm/chunk-ABS275QZ.js +2 -0
- package/dist/esm/chunk-AKPAHQYE.js +2 -0
- package/dist/esm/chunk-AKPAHQYE.js.map +7 -0
- package/dist/esm/chunk-BN24ZBO7.js +2 -0
- package/dist/esm/chunk-BN24ZBO7.js.map +7 -0
- package/dist/esm/chunk-BZ6YBP2S.js +2 -0
- package/dist/esm/chunk-BZ6YBP2S.js.map +7 -0
- package/dist/esm/chunk-CHPZ3LNC.js +2 -0
- package/dist/esm/chunk-CHPZ3LNC.js.map +7 -0
- package/dist/esm/chunk-CRK34MWY.js +2 -0
- package/dist/esm/chunk-CRK34MWY.js.map +7 -0
- package/dist/esm/{chunk-YZABQ4LS.js → chunk-DFSW4QR4.js} +2 -2
- package/dist/esm/{chunk-SM27AC7E.js → chunk-DJFTDR6Y.js} +2 -2
- package/dist/esm/chunk-EA2XSEFH.js +2 -0
- package/dist/esm/chunk-EA2XSEFH.js.map +7 -0
- package/dist/esm/{chunk-CRYT55SY.js → chunk-EHUSLPWN.js} +2 -2
- package/dist/esm/chunk-ENSDQ3XQ.js +2 -0
- package/dist/esm/chunk-ENSDQ3XQ.js.map +7 -0
- package/dist/esm/chunk-F3XBIUXB.js +2 -0
- package/dist/esm/chunk-F3XBIUXB.js.map +7 -0
- package/dist/esm/chunk-GHD3TKCA.js +2 -0
- package/dist/esm/chunk-GHD3TKCA.js.map +7 -0
- package/dist/esm/chunk-GQBQHGEF.js +2 -0
- package/dist/esm/chunk-GQBQHGEF.js.map +7 -0
- package/dist/esm/{chunk-6XHM724Y.js → chunk-GTVFQXLJ.js} +2 -2
- package/dist/esm/chunk-HIEGLLY7.js +2 -0
- package/dist/esm/chunk-HIEGLLY7.js.map +7 -0
- package/dist/esm/chunk-HZYE46V2.js +2 -0
- package/dist/esm/chunk-HZYE46V2.js.map +7 -0
- package/dist/esm/chunk-IWT3Q2PD.js +2 -0
- package/dist/esm/chunk-IWT3Q2PD.js.map +7 -0
- package/dist/esm/chunk-JCRBBT4X.js +2 -0
- package/dist/esm/chunk-JCRBBT4X.js.map +7 -0
- package/dist/esm/chunk-KFQ4B5YC.js +2 -0
- package/dist/esm/chunk-KFQ4B5YC.js.map +7 -0
- package/dist/esm/{chunk-6HRBG5H2.js → chunk-KPPIW4OJ.js} +2 -2
- package/dist/esm/{chunk-6WFEMPCF.js → chunk-KRXCFIRK.js} +2 -2
- package/dist/esm/{chunk-5SQL4ZRC.js → chunk-KSZOVI57.js} +2 -2
- package/dist/esm/{chunk-5SQL4ZRC.js.map → chunk-KSZOVI57.js.map} +1 -1
- package/dist/esm/{chunk-COSHAOEK.js → chunk-MJEYJI5G.js} +2 -2
- package/dist/esm/chunk-MLXHD7YF.js +2 -0
- package/dist/esm/chunk-MLXHD7YF.js.map +7 -0
- package/dist/esm/{chunk-CG54MBMW.js → chunk-MPN33CKR.js} +2 -2
- package/dist/esm/chunk-MQDZBF4J.js +2 -0
- package/dist/esm/chunk-MQDZBF4J.js.map +7 -0
- package/dist/esm/{chunk-IGBEDJBC.js → chunk-NFVOEHZS.js} +2 -2
- package/dist/esm/{chunk-ORMCQAPS.js → chunk-PAQS6C2A.js} +2 -2
- package/dist/esm/chunk-PUVZFRTQ.js +2 -0
- package/dist/esm/chunk-PUVZFRTQ.js.map +7 -0
- package/dist/esm/chunk-QAUYOVVL.js +2 -0
- package/dist/esm/chunk-QAUYOVVL.js.map +7 -0
- package/dist/esm/chunk-RC7TBVLO.js +2 -0
- package/dist/esm/chunk-RC7TBVLO.js.map +7 -0
- package/dist/esm/chunk-STMTXK7U.js +2 -0
- package/dist/esm/chunk-STMTXK7U.js.map +7 -0
- package/dist/esm/chunk-U7PDXTRX.js +2 -0
- package/dist/esm/chunk-U7PDXTRX.js.map +7 -0
- package/dist/esm/chunk-UNRG6Z5I.js +2 -0
- package/dist/esm/chunk-UNRG6Z5I.js.map +7 -0
- package/dist/esm/chunk-UONSKZQT.js +2 -0
- package/dist/esm/chunk-UONSKZQT.js.map +7 -0
- package/dist/esm/{chunk-2IPVLV6B.js → chunk-UQZHW3EJ.js} +2 -2
- package/dist/esm/chunk-VIDXAECE.js +2 -0
- package/dist/esm/chunk-VIDXAECE.js.map +7 -0
- package/dist/esm/chunk-VLLJ7A6P.js +2 -0
- package/dist/esm/chunk-VLLJ7A6P.js.map +7 -0
- package/dist/esm/{chunk-DP3OWU5T.js → chunk-VT4AAF7Q.js} +2 -2
- package/dist/esm/chunk-XVKFQSLI.js +2 -0
- package/dist/esm/chunk-XVKFQSLI.js.map +7 -0
- package/dist/esm/{chunk-RFURPE7W.js → chunk-YF3MFME4.js} +2 -2
- package/dist/esm/{chunk-4STOJSJZ.js → chunk-YVMQWSHA.js} +2 -2
- package/dist/esm/{chunk-4STOJSJZ.js.map → chunk-YVMQWSHA.js.map} +2 -2
- package/dist/esm/chunk-ZCAI2PRH.js +2 -0
- package/dist/esm/chunk-ZCAI2PRH.js.map +7 -0
- package/dist/esm/{chunk-S53ZQNHK.js → chunk-ZFBLPW3X.js} +2 -2
- package/dist/esm/chunk-ZH2B7WEH.js +2 -0
- package/dist/esm/chunk-ZH2B7WEH.js.map +7 -0
- package/dist/esm/chunk-ZJZIV2JH.js +2 -0
- package/dist/esm/chunk-ZJZIV2JH.js.map +7 -0
- package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
- package/dist/esm/components/_internal/base-button.js +1 -1
- package/dist/esm/components/_internal/base-checkbox.props.d.ts +1 -1
- package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
- package/dist/esm/components/_internal/base-radio.props.d.ts +1 -1
- package/dist/esm/components/_internal/base-radio.props.js +1 -1
- package/dist/esm/components/_internal/pane-chrome.js +1 -1
- package/dist/esm/components/_internal/shell-sidebar.js +1 -1
- package/dist/esm/components/accordion.d.ts.map +1 -1
- package/dist/esm/components/accordion.js +1 -1
- package/dist/esm/components/alert-dialog.js +1 -1
- package/dist/esm/components/badge.js +1 -1
- package/dist/esm/components/badge.props.d.ts +1 -1
- package/dist/esm/components/badge.props.js +1 -1
- package/dist/esm/components/button.js +1 -1
- package/dist/esm/components/chatbar.d.ts.map +1 -1
- package/dist/esm/components/chatbar.js +1 -1
- package/dist/esm/components/checkbox-cards.js +1 -1
- package/dist/esm/components/checkbox-group.d.ts.map +1 -1
- package/dist/esm/components/checkbox-group.js +1 -1
- package/dist/esm/components/checkbox-group.props.d.ts +1 -1
- package/dist/esm/components/checkbox-group.props.js +1 -1
- package/dist/esm/components/checkbox.d.ts.map +1 -1
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/checkbox.props.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/data-list.d.ts.map +1 -1
- package/dist/esm/components/data-list.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/hover-card.d.ts.map +1 -1
- package/dist/esm/components/hover-card.js +1 -1
- package/dist/esm/components/icon-button.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/message-scroller.js +1 -1
- package/dist/esm/components/navbar.d.ts.map +1 -1
- package/dist/esm/components/navbar.js +1 -1
- package/dist/esm/components/notice.d.ts +1 -1
- package/dist/esm/components/notice.d.ts.map +1 -1
- package/dist/esm/components/notice.js +1 -1
- package/dist/esm/components/popover.d.ts.map +1 -1
- package/dist/esm/components/popover.js +1 -1
- package/dist/esm/components/progress.js +1 -1
- package/dist/esm/components/progress.props.d.ts +0 -7
- package/dist/esm/components/progress.props.d.ts.map +1 -1
- package/dist/esm/components/progress.props.js +1 -1
- package/dist/esm/components/radio-group.d.ts.map +1 -1
- package/dist/esm/components/radio-group.js +1 -1
- package/dist/esm/components/radio-group.props.d.ts +1 -1
- package/dist/esm/components/radio-group.props.js +1 -1
- package/dist/esm/components/radio.d.ts.map +1 -1
- package/dist/esm/components/radio.js +1 -1
- package/dist/esm/components/radio.props.js +1 -1
- package/dist/esm/components/scroll-area.d.ts.map +1 -1
- package/dist/esm/components/scroll-area.js +1 -1
- package/dist/esm/components/scroll-area.props.d.ts +0 -7
- package/dist/esm/components/scroll-area.props.d.ts.map +1 -1
- package/dist/esm/components/scroll-area.props.js +1 -1
- package/dist/esm/components/segmented-control.d.ts.map +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/separator.props.d.ts +0 -7
- package/dist/esm/components/separator.props.d.ts.map +1 -1
- package/dist/esm/components/separator.props.js +1 -1
- package/dist/esm/components/sheet.js +1 -1
- package/dist/esm/components/shell.d.ts +1 -1
- 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.d.ts.map +1 -1
- package/dist/esm/components/slider.js +1 -1
- package/dist/esm/components/spinner.js +1 -1
- package/dist/esm/components/spinner.props.d.ts +0 -7
- package/dist/esm/components/spinner.props.d.ts.map +1 -1
- package/dist/esm/components/spinner.props.js +1 -1
- package/dist/esm/components/switch.d.ts.map +1 -1
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/tab-nav.d.ts.map +1 -1
- package/dist/esm/components/tab-nav.js +1 -1
- package/dist/esm/components/table.d.ts.map +1 -1
- package/dist/esm/components/table.js +1 -1
- package/dist/esm/components/table.props.d.ts +1 -1
- package/dist/esm/components/table.props.js +1 -1
- package/dist/esm/components/tabs.d.ts.map +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/theme-panel.js +1 -1
- package/dist/esm/components/theme.d.ts +3 -0
- package/dist/esm/components/theme.d.ts.map +1 -1
- package/dist/esm/components/theme.js +1 -1
- package/dist/esm/components/theme.props.d.ts +12 -0
- package/dist/esm/components/theme.props.d.ts.map +1 -1
- package/dist/esm/components/theme.props.js +1 -1
- package/dist/esm/components/toggle-button.js +1 -1
- package/dist/esm/components/toggle-icon-button.js +1 -1
- package/dist/esm/components/toolbar.d.ts.map +1 -1
- package/dist/esm/components/toolbar.js +1 -1
- package/dist/esm/components/tooltip.js +1 -1
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.d.ts.map +1 -1
- package/dist/esm/helpers/index.js +1 -1
- package/dist/esm/helpers/map-prop-values.d.ts +1 -4
- package/dist/esm/helpers/map-prop-values.d.ts.map +1 -1
- package/dist/esm/helpers/map-prop-values.js +1 -1
- package/dist/esm/helpers/theme-size.d.ts +41 -0
- package/dist/esm/helpers/theme-size.d.ts.map +1 -0
- package/dist/esm/helpers/theme-size.js +2 -0
- package/dist/esm/helpers/theme-size.js.map +7 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/props/index.js +1 -1
- package/layout/tokens.css +14 -0
- package/layout.css +14 -0
- package/package.json +1 -1
- package/src/components/_internal/base-button.css +114 -78
- package/src/components/_internal/base-button.tsx +48 -9
- package/src/components/_internal/base-checkbox.css +91 -8
- package/src/components/_internal/base-checkbox.props.ts +1 -1
- package/src/components/_internal/base-radio.css +68 -6
- package/src/components/_internal/base-radio.props.ts +1 -1
- package/src/components/_internal/base-tab-list.css +33 -25
- package/src/components/accordion.tsx +3 -1
- package/src/components/avatar.css +21 -15
- package/src/components/badge.css +14 -23
- package/src/components/badge.props.tsx +1 -1
- package/src/components/button.css +5 -175
- package/src/components/chatbar.tsx +9 -4
- package/src/components/checkbox-group.css +6 -11
- package/src/components/checkbox-group.tsx +3 -1
- package/src/components/checkbox.css +6 -11
- package/src/components/checkbox.tsx +3 -1
- package/src/components/combobox.tsx +3 -1
- package/src/components/context-menu.tsx +3 -1
- package/src/components/data-list.tsx +3 -1
- package/src/components/dropdown-menu.tsx +3 -1
- package/src/components/hover-card.tsx +3 -1
- package/src/components/icon-button.css +4 -152
- package/src/components/message-scroller.tsx +1 -1
- package/src/components/navbar.tsx +3 -1
- package/src/components/notice.tsx +7 -3
- package/src/components/popover.tsx +3 -1
- package/src/components/progress.css +4 -37
- package/src/components/progress.props.tsx +0 -3
- package/src/components/radio-group.props.tsx +1 -1
- package/src/components/radio-group.tsx +3 -1
- package/src/components/radio.tsx +3 -1
- package/src/components/scroll-area.css +2 -23
- package/src/components/scroll-area.props.tsx +0 -3
- package/src/components/scroll-area.tsx +2 -18
- package/src/components/segmented-control.css +34 -27
- package/src/components/segmented-control.tsx +3 -1
- package/src/components/select.css +76 -74
- package/src/components/select.tsx +4 -2
- package/src/components/separator.css +2 -23
- package/src/components/separator.props.tsx +0 -3
- package/src/components/shell.tsx +8 -2
- package/src/components/slider.css +19 -11
- package/src/components/slider.tsx +3 -1
- package/src/components/spinner.css +2 -23
- package/src/components/spinner.props.tsx +0 -4
- package/src/components/switch.css +51 -17
- package/src/components/switch.tsx +3 -1
- package/src/components/tab-nav.tsx +3 -1
- package/src/components/table.props.tsx +1 -1
- package/src/components/table.tsx +3 -1
- package/src/components/tabs.css +2 -1
- package/src/components/tabs.tsx +3 -1
- package/src/components/text-area.css +55 -107
- package/src/components/text-area.tsx +8 -6
- package/src/components/text-field.css +129 -127
- package/src/components/text-field.tsx +8 -6
- package/src/components/theme.props.tsx +10 -0
- package/src/components/theme.tsx +86 -71
- package/src/components/toolbar.tsx +3 -1
- package/src/helpers/index.ts +1 -0
- package/src/helpers/map-prop-values.ts +1 -18
- package/src/helpers/theme-size.ts +73 -0
- package/src/styles/tokens/constants.css +4 -0
- package/src/styles/tokens/space.css +16 -0
- package/styles.css +1428 -2641
- package/tokens/base.css +14 -0
- package/tokens.css +16 -0
- package/dist/esm/chunk-2HUAVZZL.js +0 -2
- package/dist/esm/chunk-2HUAVZZL.js.map +0 -7
- package/dist/esm/chunk-2XSRO44Q.js +0 -2
- package/dist/esm/chunk-2XSRO44Q.js.map +0 -7
- package/dist/esm/chunk-3KB2XWBE.js +0 -2
- package/dist/esm/chunk-3KB2XWBE.js.map +0 -7
- package/dist/esm/chunk-4D7OU2UA.js +0 -2
- package/dist/esm/chunk-4D7OU2UA.js.map +0 -7
- package/dist/esm/chunk-5GYIQIPW.js +0 -2
- package/dist/esm/chunk-5GYIQIPW.js.map +0 -7
- package/dist/esm/chunk-655TAWHX.js +0 -2
- package/dist/esm/chunk-655TAWHX.js.map +0 -7
- package/dist/esm/chunk-6VPYP3VN.js +0 -2
- package/dist/esm/chunk-6VPYP3VN.js.map +0 -7
- package/dist/esm/chunk-7BE6N3KY.js +0 -2
- package/dist/esm/chunk-7BE6N3KY.js.map +0 -7
- package/dist/esm/chunk-AHOUZS3V.js +0 -2
- package/dist/esm/chunk-AHOUZS3V.js.map +0 -7
- package/dist/esm/chunk-BALS3AVM.js +0 -2
- package/dist/esm/chunk-BALS3AVM.js.map +0 -7
- package/dist/esm/chunk-BOLRYGFQ.js +0 -2
- package/dist/esm/chunk-BOLRYGFQ.js.map +0 -7
- package/dist/esm/chunk-BUEYZEAY.js +0 -2
- package/dist/esm/chunk-BUEYZEAY.js.map +0 -7
- package/dist/esm/chunk-DKALDTCN.js +0 -2
- package/dist/esm/chunk-DKALDTCN.js.map +0 -7
- package/dist/esm/chunk-EJOVE3JH.js +0 -2
- package/dist/esm/chunk-EJOVE3JH.js.map +0 -7
- package/dist/esm/chunk-FPDLBLO3.js +0 -2
- package/dist/esm/chunk-FPDLBLO3.js.map +0 -7
- package/dist/esm/chunk-GOYI2U6F.js +0 -2
- package/dist/esm/chunk-GOYI2U6F.js.map +0 -7
- package/dist/esm/chunk-HKRQ3E3I.js +0 -2
- package/dist/esm/chunk-HKRQ3E3I.js.map +0 -7
- package/dist/esm/chunk-HSFQO4QM.js +0 -2
- package/dist/esm/chunk-HSFQO4QM.js.map +0 -7
- package/dist/esm/chunk-HVQ3SLQC.js +0 -2
- package/dist/esm/chunk-HVQ3SLQC.js.map +0 -7
- package/dist/esm/chunk-JCOALADA.js +0 -5
- package/dist/esm/chunk-JCOALADA.js.map +0 -7
- package/dist/esm/chunk-K7J23OPW.js +0 -2
- package/dist/esm/chunk-K7J23OPW.js.map +0 -7
- package/dist/esm/chunk-M55KFXYV.js +0 -2
- package/dist/esm/chunk-M55KFXYV.js.map +0 -7
- package/dist/esm/chunk-MGSHX5N5.js +0 -2
- package/dist/esm/chunk-MGSHX5N5.js.map +0 -7
- package/dist/esm/chunk-MJC4NKYG.js +0 -2
- package/dist/esm/chunk-MJC4NKYG.js.map +0 -7
- package/dist/esm/chunk-MOYLXCMW.js +0 -2
- package/dist/esm/chunk-MOYLXCMW.js.map +0 -7
- package/dist/esm/chunk-MVW2SY4F.js +0 -2
- package/dist/esm/chunk-MVW2SY4F.js.map +0 -7
- package/dist/esm/chunk-NOSR2XWD.js +0 -2
- package/dist/esm/chunk-NOSR2XWD.js.map +0 -7
- package/dist/esm/chunk-OMUUPPJO.js +0 -2
- package/dist/esm/chunk-OMUUPPJO.js.map +0 -7
- package/dist/esm/chunk-PNIVUG5D.js +0 -2
- package/dist/esm/chunk-PNIVUG5D.js.map +0 -7
- package/dist/esm/chunk-PSS45RHX.js +0 -2
- package/dist/esm/chunk-PSS45RHX.js.map +0 -7
- package/dist/esm/chunk-PYYI64XK.js +0 -2
- package/dist/esm/chunk-PYYI64XK.js.map +0 -7
- package/dist/esm/chunk-QJFAGWBO.js +0 -2
- package/dist/esm/chunk-QJFAGWBO.js.map +0 -7
- package/dist/esm/chunk-QWFFYUFH.js +0 -2
- package/dist/esm/chunk-QWFFYUFH.js.map +0 -7
- package/dist/esm/chunk-RVHKSNMJ.js +0 -2
- package/dist/esm/chunk-RVHKSNMJ.js.map +0 -7
- package/dist/esm/chunk-RYURXQLJ.js +0 -2
- package/dist/esm/chunk-RYURXQLJ.js.map +0 -7
- package/dist/esm/chunk-UA6FP7HS.js +0 -2
- package/dist/esm/chunk-V7UP4SLZ.js +0 -2
- package/dist/esm/chunk-V7UP4SLZ.js.map +0 -7
- package/dist/esm/chunk-X5KCVLKG.js +0 -2
- package/dist/esm/chunk-X5KCVLKG.js.map +0 -7
- package/dist/esm/chunk-XPRPYCII.js +0 -2
- package/dist/esm/chunk-XPRPYCII.js.map +0 -7
- /package/dist/esm/{chunk-XZ5XZS5O.js.map → chunk-35HNDWWM.js.map} +0 -0
- /package/dist/esm/{chunk-YDRFILTX.js.map → chunk-6YWDEANN.js.map} +0 -0
- /package/dist/esm/{chunk-MZQDDG5K.js.map → chunk-7FZPCM7W.js.map} +0 -0
- /package/dist/esm/{chunk-UA6FP7HS.js.map → chunk-ABS275QZ.js.map} +0 -0
- /package/dist/esm/{chunk-YZABQ4LS.js.map → chunk-DFSW4QR4.js.map} +0 -0
- /package/dist/esm/{chunk-SM27AC7E.js.map → chunk-DJFTDR6Y.js.map} +0 -0
- /package/dist/esm/{chunk-CRYT55SY.js.map → chunk-EHUSLPWN.js.map} +0 -0
- /package/dist/esm/{chunk-6XHM724Y.js.map → chunk-GTVFQXLJ.js.map} +0 -0
- /package/dist/esm/{chunk-6HRBG5H2.js.map → chunk-KPPIW4OJ.js.map} +0 -0
- /package/dist/esm/{chunk-6WFEMPCF.js.map → chunk-KRXCFIRK.js.map} +0 -0
- /package/dist/esm/{chunk-COSHAOEK.js.map → chunk-MJEYJI5G.js.map} +0 -0
- /package/dist/esm/{chunk-CG54MBMW.js.map → chunk-MPN33CKR.js.map} +0 -0
- /package/dist/esm/{chunk-IGBEDJBC.js.map → chunk-NFVOEHZS.js.map} +0 -0
- /package/dist/esm/{chunk-ORMCQAPS.js.map → chunk-PAQS6C2A.js.map} +0 -0
- /package/dist/esm/{chunk-2IPVLV6B.js.map → chunk-UQZHW3EJ.js.map} +0 -0
- /package/dist/esm/{chunk-DP3OWU5T.js.map → chunk-VT4AAF7Q.js.map} +0 -0
- /package/dist/esm/{chunk-RFURPE7W.js.map → chunk-YF3MFME4.js.map} +0 -0
- /package/dist/esm/{chunk-S53ZQNHK.js.map → chunk-ZFBLPW3X.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";"use client";var G=Object.create;var y=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var U=(o,e)=>{for(var t in e)y(o,t,{get:e[t],enumerable:!0})},N=(o,e,t,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of K(e))!H.call(o,a)&&a!==t&&y(o,a,{get:()=>e[a],enumerable:!(l=W(e,a))||l.enumerable});return o};var h=(o,e,t)=>(t=o!=null?G(z(o)):{},N(e||!o||!o.__esModule?y(t,"default",{value:o,enumerable:!0}):t,o)),A=o=>N(y({},"__esModule",{value:!0}),o);var ce={};U(ce,{Checkbox:()=>$});module.exports=A(ce);var g=h(require("react")),M=h(require("classnames")),R=require("radix-ui"),B=require("radix-ui/internal");var Z=["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 T={color:{type:"enum",values:Z,default:void 0}};var _=["1","2","3"],q=["raised","solid","soft","outline","surface"],v={size:{type:"enum",className:"rt-r-size",values:_,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:q,default:"raised"},...T};var n=h(require("react")),C=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));C.displayName="ThickDividerHorizontalIcon";var D=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));D.displayName="ThickCheckIcon";var F=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));F.displayName="ChevronDownIcon";var Y=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));Y.displayName="ThickChevronRightIcon";var J=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));J.displayName="ThickChevronLeftIcon";var Q=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.default.createElement("circle",{cx:"4.5",cy:"4.5",r:"2"})));Q.displayName="ThickDotIcon";var X=n.default.forwardRef((o,e)=>n.default.createElement("svg",{...o,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"},n.default.createElement("path",{d:"M18 6 6 18"}),n.default.createElement("path",{d:"m6 6 12 12"})));X.displayName="CloseIcon";var ee=n.default.forwardRef((o,e)=>n.default.createElement("svg",{...o,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"},n.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"})));ee.displayName="PaperclipIcon";var oe=n.default.forwardRef((o,e)=>n.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"},n.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),n.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})));oe.displayName="FileIcon";var te=n.default.forwardRef((o,e)=>n.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"},n.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),n.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),n.default.createElement("path",{d:"M10 9H8"}),n.default.createElement("path",{d:"M16 13H8"}),n.default.createElement("path",{d:"M16 17H8"})));te.displayName="FileTextIcon";var E=h(require("classnames"));var re=[],ne=new Set;function se(o){let e=Object.assign({},...o),t=[],l=[],a=new Set;for(let i in e){let s=e[i],f=s.values??re,p={key:i,type:s.type,default:s.default,hasDefault:s.default!==void 0,responsive:"responsive"in s,className:s.className,customProperties:s.customProperties,parseValue:s.parseValue,values:f,valueSet:f.length>0?new Set(f):ne,enumValueSet:s.type==="enum"?new Set([s.default,...f]):void 0};s.className?(t.push(p),a.add(i)):(p.hasDefault||s.type==="enum")&&l.push(p)}return{styling:t,passthrough:l,stylingKeys:a}}var ie={children:new WeakMap};function I(o){let e=ie;for(let t=0;t<o.length;t++){let l=o[t],a=e.children.get(l);a===void 0&&(a={children:new WeakMap},e.children.set(l,a)),e=a}return e.compiled??(e.compiled=se(o))}var pe=["initial","xs","sm","md","lg","xl"],b=new Set(pe);function k(o,e){return Object.prototype.hasOwnProperty.call(o,e)}var ae=new Set(["initial","xs","sm","md","lg","xl"]);function d(o){if(typeof o!="object"||o===null)return!1;for(let e in o)if(ae.has(e))return!0;return!1}function P(o,e,t){return e!==void 0?e.has(t):o.includes(t)}function j({className:o,customProperties:e,...t}){let l=x({allowArbitraryValues:!0,className:o,...t}),a=le({customProperties:e,...t});return[l,a]}function x({allowArbitraryValues:o,value:e,className:t,propValues:l,propValueSet:a,parseValue:i=s=>s}){if(e){if(typeof e=="string")return P(l,a,e)?V(t,e,i):o?t:void 0;if(d(e)){let s=e,f=[];for(let p in s){if(!k(s,p)||!b.has(p))continue;let r=s[p];if(r!==void 0){if(P(l,a,r)){let c=V(t,r,i),u=p==="initial"?c:`${p}:${c}`;f.push(u)}else if(o){let c=p==="initial"?t:`${p}:${t}`;f.push(c)}}}return f.length>0?f.join(" "):""}if(o)return t}}function V(o,e,t){let l=o?"-":"",a=t(e),i=a?.startsWith("-"),s=i?"-":"",f=i?a?.substring(1):a;return`${s}${o}${l}${f}`}function le({customProperties:o,value:e,propValues:t,propValueSet:l,parseValue:a=i=>i}){if(!e||typeof e=="string"&&P(t,l,e))return;let i;if(typeof e=="string"){let s=a(e);i={};for(let f of o)i[f]=s;return i}if(d(e)){let s=e;for(let f in s){if(!k(s,f)||!b.has(f))continue;let p=s[f];if(p===void 0||P(t,l,p))continue;let r=a(p);i??(i={});for(let c of o){let u=f==="initial"?c:`${c}-${f}`;i[u]=r}}}return i??{}}function w(...o){let e;for(let t of o)t&&(e===void 0&&(e={}),Object.assign(e,t));return e}function fe(o,e){let t=o.initial,l=!1;return e.hasDefault&&t===void 0&&(t=e.default,l=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(t)&&(t=e.default,l=!0),l?{...o,initial:t}:o}function L(o,...e){let{styling:t,passthrough:l,stylingKeys:a}=I(e),i={};for(let p in o)a.has(p)||(i[p]=o[p]);for(let p=0;p<l.length;p++){let r=l[p],c=i[r.key];if(c===void 0){r.hasDefault&&(i[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(c)&&!d(c)&&(i[r.key]=r.default)}let s,f=[];for(let p=0;p<t.length;p++){let r=t[p],c=o[r.key];if(c===void 0&&r.hasDefault&&(c=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(c)&&!d(c)&&(c=r.default),!!c){if(d(c)){if(!r.responsive)continue;c=fe(c,r)}if(r.type==="enum"){let u=x({allowArbitraryValues:!1,value:c,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});u&&f.push(u);continue}if(r.type==="string"||r.type==="enum | string"){let[u,S]=j({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:c});S&&(s=w(s,S)),u&&f.push(u);continue}if(r.type==="boolean"){f.push(r.className);continue}}}return i.className=(0,E.default)(f.length>0?f.join(" "):void 0,o.className),i.style=w(s,o.style),i}var m=["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"],O={m:{type:"enum | string",values:m,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:m,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:m,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var $=g.forwardRef((o,e)=>{let{className:t,color:l,checked:a,defaultChecked:i,onCheckedChange:s,...f}=L(o,v,O),[p,r]=(0,B.useControllableState)({prop:a,defaultProp:i??!1,onChange:s});return g.createElement(R.Checkbox.Root,{"data-accent-color":l,...f,defaultChecked:i,checked:p,onCheckedChange:r,asChild:!1,ref:e,className:(0,M.default)("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxRoot",t)},g.createElement(R.Checkbox.Indicator,{asChild:!0,className:"rt-BaseCheckboxIndicator rt-CheckboxIndicator"},p==="indeterminate"?g.createElement(C,null):g.createElement(D,null)))});$.displayName="Checkbox";
|
|
1
|
+
"use strict";"use client";var H=Object.create;var h=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var _=(o,e)=>{for(var t in e)h(o,t,{get:e[t],enumerable:!0})},N=(o,e,t,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of U(e))!Z.call(o,a)&&a!==t&&h(o,a,{get:()=>e[a],enumerable:!(p=K(e,a))||p.enumerable});return o};var y=(o,e,t)=>(t=o!=null?H(A(o)):{},N(e||!o||!o.__esModule?h(t,"default",{value:o,enumerable:!0}):t,o)),q=o=>N(h({},"__esModule",{value:!0}),o);var ye={};_(ye,{Checkbox:()=>W});module.exports=q(ye);var g=y(require("react")),$=y(require("classnames")),S=require("radix-ui"),G=require("radix-ui/internal");var F=["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 I={color:{type:"enum",values:F,default:void 0}};var Y=["1","2","3","4"],J=["raised","solid","soft","outline","surface"],P={size:{type:"enum",className:"rt-r-size",values:Y,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:J,default:"raised"},...I};var n=y(require("react")),D=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));D.displayName="ThickDividerHorizontalIcon";var b=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));b.displayName="ThickCheckIcon";var Q=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));Q.displayName="ChevronDownIcon";var X=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));X.displayName="ThickChevronRightIcon";var ee=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.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"})));ee.displayName="ThickChevronLeftIcon";var oe=n.default.forwardRef((o,e)=>n.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...o,ref:e},n.default.createElement("circle",{cx:"4.5",cy:"4.5",r:"2"})));oe.displayName="ThickDotIcon";var te=n.default.forwardRef((o,e)=>n.default.createElement("svg",{...o,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"},n.default.createElement("path",{d:"M18 6 6 18"}),n.default.createElement("path",{d:"m6 6 12 12"})));te.displayName="CloseIcon";var re=n.default.forwardRef((o,e)=>n.default.createElement("svg",{...o,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"},n.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"})));re.displayName="PaperclipIcon";var ne=n.default.forwardRef((o,e)=>n.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"},n.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),n.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})));ne.displayName="FileIcon";var se=n.default.forwardRef((o,e)=>n.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"},n.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),n.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),n.default.createElement("path",{d:"M10 9H8"}),n.default.createElement("path",{d:"M16 13H8"}),n.default.createElement("path",{d:"M16 17H8"})));se.displayName="FileTextIcon";var z=y(require("classnames"));var ie=[],pe=new Set;function ae(o){let e=Object.assign({},...o),t=[],p=[],a=new Set;for(let i in e){let s=e[i],f=s.values??ie,l={key:i,type:s.type,default:s.default,hasDefault:s.default!==void 0,responsive:"responsive"in s,className:s.className,customProperties:s.customProperties,parseValue:s.parseValue,values:f,valueSet:f.length>0?new Set(f):pe,enumValueSet:s.type==="enum"?new Set([s.default,...f]):void 0};s.className?(t.push(l),a.add(i)):(l.hasDefault||s.type==="enum")&&p.push(l)}return{styling:t,passthrough:p,stylingKeys:a}}var le={children:new WeakMap};function V(o){let e=le;for(let t=0;t<o.length;t++){let p=o[t],a=e.children.get(p);a===void 0&&(a={children:new WeakMap},e.children.set(p,a)),e=a}return e.compiled??(e.compiled=ae(o))}var fe=["initial","xs","sm","md","lg","xl"],x=new Set(fe);function k(o,e){return Object.prototype.hasOwnProperty.call(o,e)}var ce=new Set(["initial","xs","sm","md","lg","xl"]);function d(o){if(typeof o!="object"||o===null)return!1;for(let e in o)if(ce.has(e))return!0;return!1}function v(o,e,t){return e!==void 0?e.has(t):o.includes(t)}function j({className:o,customProperties:e,...t}){let p=R({allowArbitraryValues:!0,className:o,...t}),a=ue({customProperties:e,...t});return[p,a]}function R({allowArbitraryValues:o,value:e,className:t,propValues:p,propValueSet:a,parseValue:i=s=>s}){if(e){if(typeof e=="string")return v(p,a,e)?E(t,e,i):o?t:void 0;if(d(e)){let s=e,f=[];for(let l in s){if(!k(s,l)||!x.has(l))continue;let r=s[l];if(r!==void 0){if(v(p,a,r)){let c=E(t,r,i),u=l==="initial"?c:`${l}:${c}`;f.push(u)}else if(o){let c=l==="initial"?t:`${l}:${t}`;f.push(c)}}}return f.length>0?f.join(" "):""}if(o)return t}}function E(o,e,t){let p=o?"-":"",a=t(e),i=a?.startsWith("-"),s=i?"-":"",f=i?a?.substring(1):a;return`${s}${o}${p}${f}`}function ue({customProperties:o,value:e,propValues:t,propValueSet:p,parseValue:a=i=>i}){if(!e||typeof e=="string"&&v(t,p,e))return;let i;if(typeof e=="string"){let s=a(e);i={};for(let f of o)i[f]=s;return i}if(d(e)){let s=e;for(let f in s){if(!k(s,f)||!x.has(f))continue;let l=s[f];if(l===void 0||v(t,p,l))continue;let r=a(l);i??(i={});for(let c of o){let u=f==="initial"?c:`${c}-${f}`;i[u]=r}}}return i??{}}function w(...o){let e;for(let t of o)t&&(e===void 0&&(e={}),Object.assign(e,t));return e}function de(o,e){let t=o.initial,p=!1;return e.hasDefault&&t===void 0&&(t=e.default,p=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(t)&&(t=e.default,p=!0),p?{...o,initial:t}:o}function L(o,...e){let{styling:t,passthrough:p,stylingKeys:a}=V(e),i={};for(let l in o)a.has(l)||(i[l]=o[l]);for(let l=0;l<p.length;l++){let r=p[l],c=i[r.key];if(c===void 0){r.hasDefault&&(i[r.key]=r.default);continue}r.enumValueSet!==void 0&&!r.enumValueSet.has(c)&&!d(c)&&(i[r.key]=r.default)}let s,f=[];for(let l=0;l<t.length;l++){let r=t[l],c=o[r.key];if(c===void 0&&r.hasDefault&&(c=r.default),r.enumValueSet!==void 0&&!r.enumValueSet.has(c)&&!d(c)&&(c=r.default),!!c){if(d(c)){if(!r.responsive)continue;c=de(c,r)}if(r.type==="enum"){let u=R({allowArbitraryValues:!1,value:c,className:r.className,propValues:r.values,propValueSet:r.valueSet,parseValue:r.parseValue});u&&f.push(u);continue}if(r.type==="string"||r.type==="enum | string"){let[u,T]=j({className:r.className,customProperties:r.customProperties,propValues:r.type==="string"?[]:r.values,propValueSet:r.type==="string"?void 0:r.valueSet,parseValue:r.parseValue,value:c});T&&(s=w(s,T)),u&&f.push(u);continue}if(r.type==="boolean"){f.push(r.className);continue}}}return i.className=(0,z.default)(f.length>0?f.join(" "):void 0,o.className),i.style=w(s,o.style),i}var C=y(require("react")),me="2",M=C.createContext(me);M.displayName="ThemeSizeContext";function ge(o,e){if(e.includes(o))return o;let t=Number(o),p=e[0],a=1/0;for(let i=0;i<e.length;i++){let s=Math.abs(Number(e[i])-t);s<a&&(a=s,p=e[i])}return p}function O(o,e){let t=C.useContext(M);if(o.size!==void 0)return o;let p=ge(t,e.values);return p===e.default?o:{...o,size:p}}var m=["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"],B={m:{type:"enum | string",values:m,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:m,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:m,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:m,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var W=g.forwardRef((o,e)=>{let t=O(o,P.size),{className:p,color:a,checked:i,defaultChecked:s,onCheckedChange:f,...l}=L(t,P,B),[r,c]=(0,G.useControllableState)({prop:i,defaultProp:s??!1,onChange:f});return g.createElement(S.Checkbox.Root,{"data-accent-color":a,...l,defaultChecked:s,checked:r,onCheckedChange:c,asChild:!1,ref:e,className:(0,$.default)("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxRoot",p)},g.createElement(S.Checkbox.Indicator,{asChild:!0,className:"rt-BaseCheckboxIndicator rt-CheckboxIndicator"},r==="indeterminate"?g.createElement(D,null):g.createElement(b,null)))});W.displayName="Checkbox";
|
|
2
2
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/checkbox.tsx", "../../../src/props/color.prop.ts", "../../../src/components/_internal/base-checkbox.props.ts", "../../../src/components/icons.tsx", "../../../src/helpers/extract-props.ts", "../../../src/helpers/compile-prop-defs.ts", "../../../src/props/prop-def.ts", "../../../src/helpers/has-own-property.ts", "../../../src/helpers/is-responsive-object.ts", "../../../src/helpers/get-responsive-styles.ts", "../../../src/helpers/merge-styles.ts", "../../../src/props/margin.props.ts"],
|
|
4
|
-
"sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Checkbox as CheckboxPrimitive } from 'radix-ui';\nimport { useControllableState } from 'radix-ui/internal';\n\nimport { checkboxPropDefs } from './checkbox.props.js';\nimport { ThickCheckIcon, ThickDividerHorizontalIcon } from './icons.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype CheckboxElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxOwnProps = GetPropDefTypes<typeof checkboxPropDefs>;\ninterface CheckboxProps\n extends ComponentPropsWithout<\n typeof CheckboxPrimitive.Root,\n 'asChild' | 'color' | 'defaultValue' | 'children'\n >,\n MarginProps,\n CheckboxOwnProps {}\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>((props, forwardedRef) => {\n const {\n className,\n color,\n checked: checkedProp,\n defaultChecked: defaultCheckedProp,\n onCheckedChange,\n ...checkboxProps\n } = extractProps(props, checkboxPropDefs, marginPropDefs);\n\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultCheckedProp ?? false,\n onChange: onCheckedChange,\n });\n\n return (\n <CheckboxPrimitive.Root\n data-accent-color={color}\n {...checkboxProps}\n defaultChecked={defaultCheckedProp}\n checked={checked}\n onCheckedChange={setChecked}\n asChild={false}\n ref={forwardedRef}\n className={classNames('rt-reset', 'rt-BaseCheckboxRoot', 'rt-CheckboxRoot', className)}\n >\n <CheckboxPrimitive.Indicator\n asChild\n className=\"rt-BaseCheckboxIndicator rt-CheckboxIndicator\"\n >\n {checked === 'indeterminate' ? <ThickDividerHorizontalIcon /> : <ThickCheckIcon />}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n );\n});\nCheckbox.displayName = 'Checkbox';\n\nexport { Checkbox };\nexport type { CheckboxProps };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['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'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseCheckboxPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseCheckboxPropDefs };\n", "import React from 'react';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype IconElement = React.ElementRef<'svg'>;\ninterface IconProps extends ComponentPropsWithout<'svg', RemovedProps | 'children'> {}\n\nconst ThickDividerHorizontalIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\n\nThickDividerHorizontalIcon.displayName = 'ThickDividerHorizontalIcon';\n\nconst ThickCheckIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\nThickCheckIcon.displayName = 'ThickCheckIcon';\n\nconst ChevronDownIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <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\" />\n </svg>\n );\n});\nChevronDownIcon.displayName = 'ChevronDownIcon';\n\nconst ThickChevronRightIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\nThickChevronRightIcon.displayName = 'ThickChevronRightIcon';\n\nconst ThickChevronLeftIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\nThickChevronLeftIcon.displayName = 'ThickChevronLeftIcon';\n\nconst ThickDotIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <circle cx=\"4.5\" cy=\"4.5\" r=\"2\" />\n </svg>\n );\n});\nThickDotIcon.displayName = 'ThickDotIcon';\n\nexport { ChevronDownIcon, ThickCheckIcon, ThickChevronLeftIcon, ThickChevronRightIcon, ThickDividerHorizontalIcon, ThickDotIcon };\nexport type { IconProps };\n\n// Additional minimal icons\nconst CloseIcon = React.forwardRef<IconElement, IconProps>((_props, _forwardedRef) => {\n return (\n <svg\n {..._props}\n ref={_forwardedRef}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n});\nCloseIcon.displayName = 'CloseIcon';\n\nconst PaperclipIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg\n {...props}\n ref={forwardedRef}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <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\" />\n </svg>\n );\n});\nPaperclipIcon.displayName = 'PaperclipIcon';\n\nconst FileIcon = React.forwardRef<IconElement, IconProps>((_props, _forwardedRef) => {\n return (\n <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\">\n <path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" />\n <path d=\"M14 2v4a2 2 0 0 0 2 2h4\" />\n </svg>\n );\n});\nFileIcon.displayName = 'FileIcon';\n\nconst FileTextIcon = React.forwardRef<IconElement, IconProps>((_props, _forwardedRef) => {\n return (\n <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\">\n <path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" />\n <path d=\"M14 2v4a2 2 0 0 0 2 2h4\" />\n <path d=\"M10 9H8\" />\n <path d=\"M16 13H8\" />\n <path d=\"M16 17H8\" />\n </svg>\n );\n});\nFileTextIcon.displayName = 'FileTextIcon';\n\nexport { CloseIcon, PaperclipIcon, FileIcon, FileTextIcon };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['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'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n"],
|
|
5
|
-
"mappings": "ukBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,cAAAE,IAAA,eAAAC,EAAAH,IAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,EAA8C,oBAC9CC,EAAqC,6BCFrC,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,MACX,CACF,ECTA,IAAMC,EAAQ,CAAC,IAAK,IAAK,GAAG,EACtBC,EAAW,CAAC,SAAU,QAAS,OAAQ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,EAAS,YAAc",
|
|
6
|
-
"names": ["checkbox_exports", "__export", "Checkbox", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "import_internal", "accentColors", "colorPropDef", "accentColors", "sizes", "variants", "baseCheckboxPropDefs", "colorPropDef", "import_react", "ThickDividerHorizontalIcon", "React", "props", "forwardedRef", "ThickCheckIcon", "ChevronDownIcon", "ThickChevronRightIcon", "ThickChevronLeftIcon", "ThickDotIcon", "CloseIcon", "React", "_props", "_forwardedRef", "PaperclipIcon", "props", "forwardedRef", "FileIcon", "FileTextIcon", "import_classnames", "EMPTY_VALUES", "EMPTY_SET", "compile", "propDefs", "merged", "styling", "passthrough", "stylingKeys", "key", "def", "values", "compiled", "cacheRoot", "getCompiledPropDefs", "node", "i", "propDef", "child", "breakpoints", "breakpointSet", "hasOwnProperty", "obj", "key", "breakpointSet", "isResponsiveObject", "obj", "key", "includesValue", "propValues", "propValueSet", "value", "getResponsiveStyles", "className", "customProperties", "args", "responsiveClassNames", "getResponsiveClassNames", "responsiveCustomProperties", "getResponsiveCustomProperties", "allowArbitraryValues", "parseValue", "getBaseClassName", "isResponsiveObject", "object", "classNames", "bp", "hasOwnProperty", "breakpointSet", "baseClassName", "bpClassName", "delimiter", "matchedValue", "isNegative", "minus", "absoluteValue", "styles", "parsed", "customProperty", "bpProperty", "mergeStyles", "styles", "result", "style", "normalizeResponsiveValue", "value", "propDef", "initial", "changed", "extractProps", "props", "propDefs", "styling", "passthrough", "stylingKeys", "getCompiledPropDefs", "extractedProps", "key", "i", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "marginValues", "marginPropDefs", "Checkbox", "
|
|
3
|
+
"sources": ["../../../src/components/checkbox.tsx", "../../../src/props/color.prop.ts", "../../../src/components/_internal/base-checkbox.props.ts", "../../../src/components/icons.tsx", "../../../src/helpers/extract-props.ts", "../../../src/helpers/compile-prop-defs.ts", "../../../src/props/prop-def.ts", "../../../src/helpers/has-own-property.ts", "../../../src/helpers/is-responsive-object.ts", "../../../src/helpers/get-responsive-styles.ts", "../../../src/helpers/merge-styles.ts", "../../../src/helpers/theme-size.ts", "../../../src/props/margin.props.ts"],
|
|
4
|
+
"sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Checkbox as CheckboxPrimitive } from 'radix-ui';\nimport { useControllableState } from 'radix-ui/internal';\n\nimport { checkboxPropDefs } from './checkbox.props.js';\nimport { ThickCheckIcon, ThickDividerHorizontalIcon } from './icons.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { useThemeSizeProps } from '../helpers/theme-size.js';\nimport { marginPropDefs } from '../props/margin.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ComponentPropsWithout } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype CheckboxElement = React.ElementRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxOwnProps = GetPropDefTypes<typeof checkboxPropDefs>;\ninterface CheckboxProps\n extends ComponentPropsWithout<\n typeof CheckboxPrimitive.Root,\n 'asChild' | 'color' | 'defaultValue' | 'children'\n >,\n MarginProps,\n CheckboxOwnProps {}\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>((ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, checkboxPropDefs.size);\n const {\n className,\n color,\n checked: checkedProp,\n defaultChecked: defaultCheckedProp,\n onCheckedChange,\n ...checkboxProps\n } = extractProps(props, checkboxPropDefs, marginPropDefs);\n\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultCheckedProp ?? false,\n onChange: onCheckedChange,\n });\n\n return (\n <CheckboxPrimitive.Root\n data-accent-color={color}\n {...checkboxProps}\n defaultChecked={defaultCheckedProp}\n checked={checked}\n onCheckedChange={setChecked}\n asChild={false}\n ref={forwardedRef}\n className={classNames('rt-reset', 'rt-BaseCheckboxRoot', 'rt-CheckboxRoot', className)}\n >\n <CheckboxPrimitive.Indicator\n asChild\n className=\"rt-BaseCheckboxIndicator rt-CheckboxIndicator\"\n >\n {checked === 'indeterminate' ? <ThickDividerHorizontalIcon /> : <ThickCheckIcon />}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n );\n});\nCheckbox.displayName = 'Checkbox';\n\nexport { Checkbox };\nexport type { CheckboxProps };\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['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'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseCheckboxPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseCheckboxPropDefs };\n", "import React from 'react';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype IconElement = React.ElementRef<'svg'>;\ninterface IconProps extends ComponentPropsWithout<'svg', RemovedProps | 'children'> {}\n\nconst ThickDividerHorizontalIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\n\nThickDividerHorizontalIcon.displayName = 'ThickDividerHorizontalIcon';\n\nconst ThickCheckIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\nThickCheckIcon.displayName = 'ThickCheckIcon';\n\nconst ChevronDownIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <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\" />\n </svg>\n );\n});\nChevronDownIcon.displayName = 'ChevronDownIcon';\n\nconst ThickChevronRightIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\nThickChevronRightIcon.displayName = 'ThickChevronRightIcon';\n\nconst ThickChevronLeftIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n 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\"\n />\n </svg>\n );\n});\nThickChevronLeftIcon.displayName = 'ThickChevronLeftIcon';\n\nconst ThickDotIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg width=\"9\" height=\"9\" viewBox=\"0 0 9 9\" fill=\"currentcolor\" xmlns=\"http://www.w3.org/2000/svg\" {...props} ref={forwardedRef}>\n <circle cx=\"4.5\" cy=\"4.5\" r=\"2\" />\n </svg>\n );\n});\nThickDotIcon.displayName = 'ThickDotIcon';\n\nexport { ChevronDownIcon, ThickCheckIcon, ThickChevronLeftIcon, ThickChevronRightIcon, ThickDividerHorizontalIcon, ThickDotIcon };\nexport type { IconProps };\n\n// Additional minimal icons\nconst CloseIcon = React.forwardRef<IconElement, IconProps>((_props, _forwardedRef) => {\n return (\n <svg\n {..._props}\n ref={_forwardedRef}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n});\nCloseIcon.displayName = 'CloseIcon';\n\nconst PaperclipIcon = React.forwardRef<IconElement, IconProps>((props, forwardedRef) => {\n return (\n <svg\n {...props}\n ref={forwardedRef}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <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\" />\n </svg>\n );\n});\nPaperclipIcon.displayName = 'PaperclipIcon';\n\nconst FileIcon = React.forwardRef<IconElement, IconProps>((_props, _forwardedRef) => {\n return (\n <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\">\n <path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" />\n <path d=\"M14 2v4a2 2 0 0 0 2 2h4\" />\n </svg>\n );\n});\nFileIcon.displayName = 'FileIcon';\n\nconst FileTextIcon = React.forwardRef<IconElement, IconProps>((_props, _forwardedRef) => {\n return (\n <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\">\n <path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" />\n <path d=\"M14 2v4a2 2 0 0 0 2 2h4\" />\n <path d=\"M10 9H8\" />\n <path d=\"M16 13H8\" />\n <path d=\"M16 17H8\" />\n </svg>\n );\n});\nFileTextIcon.displayName = 'FileTextIcon';\n\nexport { CloseIcon, PaperclipIcon, FileIcon, FileTextIcon };\n", "import classNames from 'classnames';\n\nimport { getCompiledPropDefs } from './compile-prop-defs.js';\nimport { getResponsiveClassNames, getResponsiveStyles } from './get-responsive-styles.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\nimport { mergeStyles } from './merge-styles.js';\n\nimport type { CompiledPropDef } from './compile-prop-defs.js';\nimport type * as React from 'react';\nimport type { PropDef } from '../props/prop-def.js';\n\ntype PropDefsWithClassName<T> = T extends Record<string, PropDef> ? { [K in keyof T]: T[K] extends { className: string } ? K : never }[keyof T] : never;\n\ntype ResponsiveValue = Record<string, string | undefined>;\n\n/**\n * Fills in the `initial` breakpoint of a responsive value from the prop def's\n * default, and coerces an invalid `initial` enum value back to that default.\n *\n * Returns the value untouched when nothing needs changing, and a copy otherwise\n * \u2014 callers routinely hoist responsive objects to module scope, so mutating the\n * caller's object would corrupt it for every later render.\n */\nfunction normalizeResponsiveValue(value: ResponsiveValue, propDef: CompiledPropDef) {\n let initial = value.initial;\n let changed = false;\n\n if (propDef.hasDefault && initial === undefined) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(initial)) {\n initial = propDef.default as string | undefined;\n changed = true;\n }\n\n return changed ? { ...value, initial } : value;\n}\n\n/**\n * Takes props, checks them against prop defs that have a `className` on them,\n * adds necessary CSS classes and inline styles, and returns the props without\n * the corresponding prop defs that were used to formulate the new `className`\n * and `style` values. Also applies prop def defaults to every prop.\n */\nfunction extractProps<P extends { className?: string; style?: React.CSSProperties; [key: string]: any }, T extends Record<string, PropDef>[]>(\n props: P,\n ...propDefs: T\n): Omit<P & { className?: string; style?: React.CSSProperties }, PropDefsWithClassName<T[number]>> {\n const { styling, passthrough, stylingKeys } = getCompiledPropDefs(propDefs);\n\n // Copy the props that survive to the element rather than spreading and then\n // deleting the styling keys. Deleting off a spread demotes the object to\n // dictionary mode in V8, and this object is on the render path of every\n // component in the library.\n const extractedProps: Record<string, any> = {};\n for (const key in props) {\n if (stylingKeys.has(key)) continue;\n extractedProps[key] = props[key];\n }\n\n for (let i = 0; i < passthrough.length; i++) {\n const propDef = passthrough[i];\n const value = extractedProps[propDef.key];\n\n if (value === undefined) {\n if (propDef.hasDefault) extractedProps[propDef.key] = propDef.default;\n continue;\n }\n\n // Fall back to the default when the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n extractedProps[propDef.key] = propDef.default;\n }\n }\n\n let style: ReturnType<typeof mergeStyles>;\n const classes: string[] = [];\n\n for (let i = 0; i < styling.length; i++) {\n const propDef = styling[i];\n let value = props[propDef.key];\n\n // Apply prop def defaults\n if (value === undefined && propDef.hasDefault) {\n value = propDef.default;\n }\n\n // Apply the default value if the value is not a valid enum value\n if (propDef.enumValueSet !== undefined && !propDef.enumValueSet.has(value) && !isResponsiveObject(value)) {\n value = propDef.default;\n }\n\n if (!value) continue;\n\n if (isResponsiveObject(value)) {\n // Make sure we are not threading through responsive values for non-responsive prop defs\n if (!propDef.responsive) continue;\n value = normalizeResponsiveValue(value, propDef);\n }\n\n if (propDef.type === 'enum') {\n const propClassName = getResponsiveClassNames({\n allowArbitraryValues: false,\n value,\n className: propDef.className!,\n propValues: propDef.values,\n propValueSet: propDef.valueSet,\n parseValue: propDef.parseValue,\n });\n\n if (propClassName) classes.push(propClassName);\n continue;\n }\n\n if (propDef.type === 'string' || propDef.type === 'enum | string') {\n const [propClassNames, propCustomProperties] = getResponsiveStyles({\n className: propDef.className!,\n customProperties: propDef.customProperties!,\n // `string` prop defs have no enum values, so every value is arbitrary\n propValues: propDef.type === 'string' ? [] : propDef.values,\n propValueSet: propDef.type === 'string' ? undefined : propDef.valueSet,\n parseValue: propDef.parseValue,\n value,\n });\n\n if (propCustomProperties) style = mergeStyles(style, propCustomProperties);\n if (propClassNames) classes.push(propClassNames);\n continue;\n }\n\n if (propDef.type === 'boolean') {\n // TODO handle responsive boolean props\n classes.push(propDef.className!);\n continue;\n }\n }\n\n extractedProps.className = classNames(classes.length > 0 ? classes.join(' ') : undefined, props.className);\n extractedProps.style = mergeStyles(style, props.style);\n return extractedProps as ReturnType<typeof extractProps<P, T>>;\n}\n\nexport { extractProps };\n", "import type { PropDef } from '../props/prop-def.js';\n\n/**\n * A prop def pre-processed into the exact shape `extractProps` needs at render\n * time. Everything that can be derived from the static prop def \u2014 enum\n * membership sets, whether the def is responsive, whether it carries a default\n * \u2014 is computed once here instead of on every render.\n */\ninterface CompiledPropDef {\n key: string;\n type: PropDef['type'];\n default: unknown;\n hasDefault: boolean;\n responsive: boolean;\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n /** The prop def's own enum values, kept for the responsive class name helpers. */\n values: readonly string[];\n /** O(1) membership for `values`. */\n valueSet: ReadonlySet<string>;\n /**\n * `values` plus the default, used to coerce invalid enum values back to the\n * default. Only present for `type: 'enum'` \u2014 `'enum | string'` props accept\n * arbitrary strings and must not be coerced.\n */\n enumValueSet?: ReadonlySet<unknown>;\n}\n\ninterface CompiledPropDefs {\n /** Defs that contribute a class name and/or custom properties. */\n styling: CompiledPropDef[];\n /**\n * Defs that pass through to the element but still need a default applied or\n * an invalid enum value coerced. Defs that can do neither are omitted\n * entirely \u2014 they are already correct as passed.\n */\n passthrough: CompiledPropDef[];\n /** Keys consumed by `styling`, so they can be skipped when copying props. */\n stylingKeys: ReadonlySet<string>;\n}\n\nconst EMPTY_VALUES: readonly string[] = [];\nconst EMPTY_SET: ReadonlySet<string> = new Set();\n\nfunction compile(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n const merged: Record<string, PropDef> = Object.assign({}, ...propDefs);\n const styling: CompiledPropDef[] = [];\n const passthrough: CompiledPropDef[] = [];\n const stylingKeys = new Set<string>();\n\n for (const key in merged) {\n // The PropDef union is narrowed per-field below; reading the optional\n // members off the union directly is what the runtime actually needs.\n const def = merged[key] as PropDef & {\n default?: unknown;\n values?: readonly string[];\n className?: string;\n customProperties?: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n responsive?: true;\n };\n\n const values = def.values ?? EMPTY_VALUES;\n const compiled: CompiledPropDef = {\n key,\n type: def.type,\n default: def.default,\n hasDefault: def.default !== undefined,\n responsive: 'responsive' in def,\n className: def.className,\n customProperties: def.customProperties,\n parseValue: def.parseValue,\n values,\n valueSet: values.length > 0 ? new Set(values) : EMPTY_SET,\n enumValueSet: def.type === 'enum' ? new Set<unknown>([def.default, ...values]) : undefined,\n };\n\n if (def.className) {\n styling.push(compiled);\n stylingKeys.add(key);\n } else if (compiled.hasDefault || def.type === 'enum') {\n // Anything else is copied through untouched, so there is nothing to do.\n passthrough.push(compiled);\n }\n }\n\n return { styling, passthrough, stylingKeys };\n}\n\ninterface CacheNode {\n children: WeakMap<object, CacheNode>;\n compiled?: CompiledPropDefs;\n}\n\nconst cacheRoot: CacheNode = { children: new WeakMap() };\n\n/**\n * Compiles a set of prop defs, memoized on the identity of the prop def objects\n * themselves. Components always pass the same module-level constants, so after\n * the first render of a given component this is a couple of WeakMap lookups\n * instead of merging 50-odd prop defs into a fresh object.\n */\nfunction getCompiledPropDefs(propDefs: readonly Record<string, PropDef>[]): CompiledPropDefs {\n let node = cacheRoot;\n\n for (let i = 0; i < propDefs.length; i++) {\n const propDef = propDefs[i];\n let child = node.children.get(propDef);\n if (child === undefined) {\n child = { children: new WeakMap() };\n node.children.set(propDef, child);\n }\n node = child;\n }\n\n return (node.compiled ??= compile(propDefs));\n}\n\nexport { getCompiledPropDefs };\nexport type { CompiledPropDef, CompiledPropDefs };\n", "import type React from 'react';\n\n// Creates a union type of string literals with strings, but retains intellisense for the literals.\n// Union<string, 'foo' | 'bar'> => string | Omit<string, 'foo' | 'bar'>\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>;\n\nconst breakpoints = ['initial', 'xs', 'sm', 'md', 'lg', 'xl'] as const;\nconst breakpointSet: Set<string> = new Set(breakpoints);\ntype Breakpoint = (typeof breakpoints)[number];\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>;\n\ntype BooleanPropDef = {\n type: 'boolean';\n default?: boolean;\n required?: boolean;\n className?: string;\n};\ntype StringPropDef = {\n type: 'string';\n default?: string;\n required?: boolean;\n};\ntype ReactNodePropDef = {\n type: 'ReactNode';\n default?: React.ReactNode;\n required?: boolean;\n};\ntype EnumPropDef<T> = {\n type: 'enum';\n values: readonly T[];\n default?: T;\n required?: boolean;\n};\ntype EnumOrStringPropDef<T> = {\n type: 'enum | string';\n values: readonly T[];\n default?: T | string;\n required?: boolean;\n};\n\ntype NonStylingPropDef = {\n className?: never;\n customProperties?: never;\n parseValue?: never;\n};\n\ntype StylingPropDef = {\n className: string;\n parseValue?: (value: string) => string | undefined;\n};\n\ntype ArbitraryStylingPropDef = {\n className: string;\n customProperties: `--${string}`[];\n parseValue?: (value: string) => string | undefined;\n};\n\ntype RegularPropDef<T> =\n | ReactNodePropDef\n | BooleanPropDef\n | (StringPropDef & ArbitraryStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & ArbitraryStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef);\ntype ResponsivePropDef<T = any> = RegularPropDef<T> & { responsive: true };\ntype PropDef<T = any> = RegularPropDef<T> | ResponsivePropDef<T>;\n\n// prettier-ignore\ntype GetPropDefType<Def> =\n Def extends BooleanPropDef ? (Def extends ResponsivePropDef ? Responsive<boolean> : boolean)\n : Def extends StringPropDef ? (Def extends ResponsivePropDef ? Responsive<string> : string)\n : Def extends ReactNodePropDef ? (Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode)\n : Def extends EnumOrStringPropDef<infer Type> ?\n Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Type\n : Def extends EnumPropDef<infer Type> ? (Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type)\n : never;\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>;\n};\n\nexport { breakpoints, breakpointSet };\nexport type {\n PropDef,\n GetPropDefTypes,\n ResponsivePropDef,\n //\n Breakpoint,\n Responsive,\n Union,\n};\n", "/** A util to check whether the object has a key, while inferring the correct key type */\nfunction hasOwnProperty<K extends string | number | symbol>(\n obj: Record<K, unknown>,\n key: string | number | symbol\n): key is K {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport { hasOwnProperty };\n", "import type { Responsive, Breakpoint } from '../props/prop-def.js';\n\n// Use a Set for O(1) lookup instead of array.includes() which is O(n)\nconst breakpointSet = new Set<string>(['initial', 'xs', 'sm', 'md', 'lg', 'xl']);\n\nexport function isResponsiveObject<Value extends string>(\n obj: Responsive<Value | Omit<string, Value>> | undefined\n): obj is Record<Breakpoint, string> {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n // Use for...in to avoid Object.keys() array allocation\n for (const key in obj) {\n if (breakpointSet.has(key)) {\n return true;\n }\n }\n return false;\n}\n", "import { breakpointSet } from '../props/prop-def.js';\nimport { hasOwnProperty } from './has-own-property.js';\nimport { isResponsiveObject } from './is-responsive-object.js';\n\nimport type { Responsive, Union } from '../props/prop-def.js';\n\n/**\n * Membership test against a prop def's enum values. Callers that already hold a\n * compiled prop def pass `propValueSet` for an O(1) lookup; the handful of call\n * sites that build options inline fall back to scanning the array.\n */\nfunction includesValue(propValues: string[] | readonly string[], propValueSet: ReadonlySet<string> | undefined, value: string): boolean {\n return propValueSet !== undefined ? propValueSet.has(value) : propValues.includes(value);\n}\n\ninterface GetResponsiveStylesOptions {\n className: string;\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveStyles({ className, customProperties, ...args }: GetResponsiveStylesOptions) {\n const responsiveClassNames = getResponsiveClassNames({\n allowArbitraryValues: true,\n className,\n ...args,\n });\n\n const responsiveCustomProperties = getResponsiveCustomProperties({ customProperties, ...args });\n return [responsiveClassNames, responsiveCustomProperties] as const;\n}\n\ninterface GetResponsiveClassNamesOptions {\n allowArbitraryValues?: boolean;\n className: string;\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveClassNames({ allowArbitraryValues, value, className, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveClassNamesOptions): string | undefined {\n if (!value) {\n return undefined;\n }\n\n if (typeof value === 'string') {\n if (includesValue(propValues, propValueSet, value)) {\n return getBaseClassName(className, value, parseValue);\n }\n return allowArbitraryValues ? className : undefined;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n const classNames: string[] = [];\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n if (value !== undefined) {\n if (includesValue(propValues, propValueSet, value)) {\n const baseClassName = getBaseClassName(className, value, parseValue);\n const bpClassName = bp === 'initial' ? baseClassName : `${bp}:${baseClassName}`;\n classNames.push(bpClassName);\n } else if (allowArbitraryValues) {\n const bpClassName = bp === 'initial' ? className : `${bp}:${className}`;\n classNames.push(bpClassName);\n }\n }\n }\n\n return classNames.length > 0 ? classNames.join(' ') : '';\n }\n\n if (allowArbitraryValues) {\n return className;\n }\n}\n\nfunction getBaseClassName(className: string, value: string, parseValue: (value: string) => string | undefined): string {\n const delimiter = className ? '-' : '';\n const matchedValue = parseValue(value);\n const isNegative = matchedValue?.startsWith('-');\n const minus = isNegative ? '-' : '';\n const absoluteValue = isNegative ? matchedValue?.substring(1) : matchedValue;\n return `${minus}${className}${delimiter}${absoluteValue}`;\n}\n\ninterface GetResponsiveCustomPropertiesOptions {\n customProperties: `--${string}`[];\n value: Responsive<Union> | Responsive<string> | undefined;\n propValues: string[] | readonly string[];\n propValueSet?: ReadonlySet<string>;\n parseValue?: (value: string) => string | undefined;\n}\n\nfunction getResponsiveCustomProperties({ customProperties, value, propValues, propValueSet, parseValue = (value) => value }: GetResponsiveCustomPropertiesOptions) {\n // Don't generate custom properties if the value is not arbitrary\n if (!value || (typeof value === 'string' && includesValue(propValues, propValueSet, value))) {\n return undefined;\n }\n\n let styles: Record<string, string | undefined> | undefined;\n\n if (typeof value === 'string') {\n const parsed = parseValue(value);\n styles = {};\n for (const customProperty of customProperties) {\n styles[customProperty] = parsed;\n }\n return styles;\n }\n\n if (isResponsiveObject(value)) {\n const object = value;\n\n for (const bp in object) {\n // Make sure we are not iterating over keys that aren't breakpoints\n if (!hasOwnProperty(object, bp) || !breakpointSet.has(bp)) {\n continue;\n }\n\n const value = object[bp];\n\n // Don't generate a custom property if the value is not arbitrary\n if (value === undefined || includesValue(propValues, propValueSet, value)) {\n continue;\n }\n\n const parsed = parseValue(value);\n styles ??= {};\n for (const customProperty of customProperties) {\n const bpProperty = bp === 'initial' ? customProperty : `${customProperty}-${bp}`;\n styles[bpProperty] = parsed;\n }\n }\n }\n\n return styles ?? {};\n}\n\nexport { getResponsiveStyles, getResponsiveCustomProperties, getResponsiveClassNames };\n", "type InlineStyle =\n | React.CSSProperties\n | Record<string, string | number | null | undefined>\n | undefined;\n\n// Merges CSS styles like `classNames` merges CSS classes\n// Optimized to avoid object spread in loop - uses Object.assign for in-place mutation\nexport function mergeStyles(...styles: Array<InlineStyle>): InlineStyle {\n let result: Record<string, string | number | null | undefined> | undefined;\n\n for (const style of styles) {\n if (style) {\n if (result === undefined) {\n // First non-empty style - create result object\n result = {};\n }\n Object.assign(result, style);\n }\n }\n\n return result;\n}\n", "'use client';\n\nimport * as React from 'react';\n\ntype ThemeSize = '1' | '2' | '3' | '4';\n\n/** The rest of the 1-4 index when no Theme states a size. */\nconst THEME_SIZE_DEFAULT: ThemeSize = '2';\n\n/**\n * The app-wide size index, provided by `Theme` beside `ThemeContext`.\n *\n * It is its own context, holding one string, so a component that only needs\n * the size does not re-render when the accent colour or appearance changes.\n */\nconst ThemeSizeContext = React.createContext<ThemeSize>(THEME_SIZE_DEFAULT);\nThemeSizeContext.displayName = 'ThemeSizeContext';\n\ninterface SizePropDef {\n values: readonly string[];\n default?: string;\n}\n\n/**\n * Maps the theme size onto a component's own range: the value itself when the\n * component has it, otherwise the nearest end of the range (`4` on a 1-3 scale\n * is `3`, on a 1-2 scale it is `2`).\n */\nfunction clampSize(size: ThemeSize, values: readonly string[]): string {\n if (values.includes(size)) return size;\n const n = Number(size);\n let nearest = values[0];\n let distance = Infinity;\n for (let i = 0; i < values.length; i++) {\n const d = Math.abs(Number(values[i]) - n);\n if (d < distance) {\n distance = d;\n nearest = values[i];\n }\n }\n return nearest;\n}\n\n/**\n * The size a component on the 1-4 index takes: what the caller said, else the\n * nearest Theme's size, mapped into the component's range.\n */\nfunction useThemeSize<V>(explicit: V | undefined, propDef: SizePropDef): V {\n const themeSize = React.useContext(ThemeSizeContext);\n if (explicit !== undefined) return explicit;\n // The clamped value is one of `propDef.values`, which is what `V` ranges over.\n return clampSize(themeSize, propDef.values) as V;\n}\n\n/**\n * Fills `size` from the nearest Theme when the caller left it unset, so the\n * result can go straight into `extractProps`. An explicit size, responsive\n * object included, wins.\n *\n * Returns the same props object when there is nothing to fill: when a size is\n * set, or when the theme size resolves to the prop def's own default (the\n * common case, a Theme with no size), so `extractProps` applies it as before.\n */\nfunction useThemeSizeProps<P extends { size?: unknown }>(props: P, propDef: SizePropDef): P {\n const themeSize = React.useContext(ThemeSizeContext);\n if (props.size !== undefined) return props;\n const size = clampSize(themeSize, propDef.values);\n if (size === propDef.default) return props;\n return { ...props, size };\n}\n\nexport { ThemeSizeContext, THEME_SIZE_DEFAULT, clampSize, useThemeSize, useThemeSizeProps };\nexport type { ThemeSize };\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\n// prettier-ignore\nconst marginValues = ['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'] as const;\n\nconst marginPropDefs = {\n /**\n * Sets the CSS **margin** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * m=\"4\"\n * m=\"100px\"\n * m={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n */\n m: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-m',\n customProperties: ['--m'],\n },\n /**\n * Sets the CSS **margin-left** and **margin-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mx=\"4\"\n * mx=\"100px\"\n * mx={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mx: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mx',\n customProperties: ['--ml', '--mr'],\n },\n /**\n * Sets the CSS **margin-top** and **margin-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * my=\"4\"\n * my=\"100px\"\n * my={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n my: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-my',\n customProperties: ['--mt', '--mb'],\n },\n /**\n * Sets the CSS **margin-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mt=\"4\"\n * mt=\"100px\"\n * mt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n */\n mt: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mt',\n customProperties: ['--mt'],\n },\n /**\n * Sets the CSS **margin-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mr=\"4\"\n * mr=\"100px\"\n * mr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n */\n mr: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mr',\n customProperties: ['--mr'],\n },\n /**\n * Sets the CSS **margin-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * mb=\"4\"\n * mb=\"100px\"\n * mb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n */\n mb: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-mb',\n customProperties: ['--mb'],\n },\n /**\n * Sets the CSS **margin-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * ml=\"4\"\n * ml=\"100px\"\n * ml={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n */\n ml: {\n type: 'enum | string',\n values: marginValues,\n responsive: true,\n className: 'rt-r-ml',\n customProperties: ['--ml'],\n },\n} satisfies {\n m: PropDef<(typeof marginValues)[number]>;\n mx: PropDef<(typeof marginValues)[number]>;\n my: PropDef<(typeof marginValues)[number]>;\n mt: PropDef<(typeof marginValues)[number]>;\n mr: PropDef<(typeof marginValues)[number]>;\n mb: PropDef<(typeof marginValues)[number]>;\n ml: PropDef<(typeof marginValues)[number]>;\n};\n\ntype MarginProps = GetPropDefTypes<typeof marginPropDefs>;\n\nexport { marginPropDefs };\nexport type { MarginProps };\n"],
|
|
5
|
+
"mappings": "ukBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,cAAAE,IAAA,eAAAC,EAAAH,IAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,EAA8C,oBAC9CC,EAAqC,6BCFrC,IAAMC,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,C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,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,EAaA,GAAI,CACF,KAAM,gBACN,OAAQA,EACR,WAAY,GACZ,UAAW,UACX,iBAAkB,CAAC,MAAM,CAC3B,CACF,EZnHA,IAAME,EAAiB,aAA2C,CAACC,EAAUC,IAAiB,CAC5F,IAAMC,EAAQC,EAAkBH,EAAUI,EAAiB,IAAI,EACzD,CACJ,UAAAC,EACA,MAAAC,EACA,QAASC,EACT,eAAgBC,EAChB,gBAAAC,EACA,GAAGC,CACL,EAAIC,EAAaT,EAAOE,EAAkBQ,CAAc,EAElD,CAACC,EAASC,CAAU,KAAI,wBAAqB,CACjD,KAAMP,EACN,YAAaC,GAAsB,GACnC,SAAUC,CACZ,CAAC,EAED,OACE,gBAAC,EAAAM,SAAkB,KAAlB,CACC,oBAAmBT,EAClB,GAAGI,EACJ,eAAgBF,EAChB,QAASK,EACT,gBAAiBC,EACjB,QAAS,GACT,IAAKb,EACL,aAAW,EAAAe,SAAW,WAAY,sBAAuB,kBAAmBX,CAAS,GAErF,gBAAC,EAAAU,SAAkB,UAAlB,CACC,QAAO,GACP,UAAU,iDAETF,IAAY,gBAAkB,gBAACI,EAAA,IAA2B,EAAK,gBAACC,EAAA,IAAe,CAClF,CACF,CAEJ,CAAC,EACDnB,EAAS,YAAc",
|
|
6
|
+
"names": ["checkbox_exports", "__export", "Checkbox", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "import_internal", "accentColors", "colorPropDef", "accentColors", "sizes", "variants", "baseCheckboxPropDefs", "colorPropDef", "import_react", "ThickDividerHorizontalIcon", "React", "props", "forwardedRef", "ThickCheckIcon", "ChevronDownIcon", "ThickChevronRightIcon", "ThickChevronLeftIcon", "ThickDotIcon", "CloseIcon", "React", "_props", "_forwardedRef", "PaperclipIcon", "props", "forwardedRef", "FileIcon", "FileTextIcon", "import_classnames", "EMPTY_VALUES", "EMPTY_SET", "compile", "propDefs", "merged", "styling", "passthrough", "stylingKeys", "key", "def", "values", "compiled", "cacheRoot", "getCompiledPropDefs", "node", "i", "propDef", "child", "breakpoints", "breakpointSet", "hasOwnProperty", "obj", "key", "breakpointSet", "isResponsiveObject", "obj", "key", "includesValue", "propValues", "propValueSet", "value", "getResponsiveStyles", "className", "customProperties", "args", "responsiveClassNames", "getResponsiveClassNames", "responsiveCustomProperties", "getResponsiveCustomProperties", "allowArbitraryValues", "parseValue", "getBaseClassName", "isResponsiveObject", "object", "classNames", "bp", "hasOwnProperty", "breakpointSet", "baseClassName", "bpClassName", "delimiter", "matchedValue", "isNegative", "minus", "absoluteValue", "styles", "parsed", "customProperty", "bpProperty", "mergeStyles", "styles", "result", "style", "normalizeResponsiveValue", "value", "propDef", "initial", "changed", "extractProps", "props", "propDefs", "styling", "passthrough", "stylingKeys", "getCompiledPropDefs", "extractedProps", "key", "i", "isResponsiveObject", "style", "classes", "propClassName", "getResponsiveClassNames", "propClassNames", "propCustomProperties", "getResponsiveStyles", "mergeStyles", "classNames", "React", "THEME_SIZE_DEFAULT", "ThemeSizeContext", "clampSize", "size", "values", "n", "nearest", "distance", "d", "useThemeSizeProps", "props", "propDef", "themeSize", "ThemeSizeContext", "size", "clampSize", "marginValues", "marginPropDefs", "Checkbox", "ownProps", "forwardedRef", "props", "useThemeSizeProps", "baseCheckboxPropDefs", "className", "color", "checkedProp", "defaultCheckedProp", "onCheckedChange", "checkboxProps", "extractProps", "marginPropDefs", "checked", "setChecked", "CheckboxPrimitive", "classNames", "ThickDividerHorizontalIcon", "ThickCheckIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(o,e)=>{for(var s in e)t(o,s,{get:e[s],enumerable:!0})},u=(o,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!f.call(o,r)&&r!==s&&t(o,r,{get:()=>e[r],enumerable:!(a=p(e,r))||a.enumerable});return o};var m=o=>u(t({},"__esModule",{value:!0}),o);var v={};i(v,{checkboxPropDefs:()=>c});module.exports=m(v);var y=["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 n={color:{type:"enum",values:y,default:void 0}};var d=["1","2","3"],b=["raised","solid","soft","outline","surface"],c={size:{type:"enum",className:"rt-r-size",values:d,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:b,default:"raised"},...n};
|
|
1
|
+
"use strict";var t=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(o,e)=>{for(var s in e)t(o,s,{get:e[s],enumerable:!0})},u=(o,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!f.call(o,r)&&r!==s&&t(o,r,{get:()=>e[r],enumerable:!(a=p(e,r))||a.enumerable});return o};var m=o=>u(t({},"__esModule",{value:!0}),o);var v={};i(v,{checkboxPropDefs:()=>c});module.exports=m(v);var y=["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 n={color:{type:"enum",values:y,default:void 0}};var d=["1","2","3","4"],b=["raised","solid","soft","outline","surface"],c={size:{type:"enum",className:"rt-r-size",values:d,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:b,default:"raised"},...n};
|
|
2
2
|
//# sourceMappingURL=checkbox.props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/checkbox.props.tsx", "../../../src/props/color.prop.ts", "../../../src/components/_internal/base-checkbox.props.ts"],
|
|
4
|
-
"sourcesContent": ["export { baseCheckboxPropDefs as checkboxPropDefs } from './_internal/base-checkbox.props.js';\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['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'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseCheckboxPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseCheckboxPropDefs };\n"],
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAMI,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,MACX,CACF,ECTA,IAAMC,EAAQ,CAAC,IAAK,IAAK,GAAG,
|
|
4
|
+
"sourcesContent": ["export { baseCheckboxPropDefs as checkboxPropDefs } from './_internal/base-checkbox.props.js';\n", "import type { PropDef } from './prop-def.js';\n\n// prettier-ignore\nconst accentColors = ['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'] as const;\n\nconst grayColors = ['auto', 'gray', 'mauve', 'slate', 'sage', 'olive', 'sand'] as const;\n\nconst colorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: undefined as (typeof accentColors)[number] | undefined,\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// 1. When used on components that compose Text, sets the color of the text to the current accent.\n// 2. Re-declares the accent role tokens (`--accent-ink`, `--accent-solid`, ...) that descendants read.\nconst accentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: '' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\n// For components whose colour comes from their content (Badge, Avatar, Code): they rest gray, and `color` picks a category when it means something.\nconst grayAccentColorPropDef = {\n color: {\n type: 'enum',\n values: accentColors,\n default: 'gray' as (typeof accentColors)[number],\n },\n} satisfies {\n color: PropDef<(typeof accentColors)[number]>;\n};\n\nexport {\n accentColorPropDef,\n grayAccentColorPropDef,\n colorPropDef,\n //\n accentColors,\n grayColors,\n};\n", "import { colorPropDef } from '../../props/color.prop.js';\n\nimport type { PropDef } from '../../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'solid', 'soft', 'outline', 'surface'] as const;\n\nconst baseCheckboxPropDefs = {\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'raised' },\n ...colorPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n};\n\nexport { baseCheckboxPropDefs };\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAMI,EAAe,CAAC,OAAQ,OAAQ,SAAU,QAAS,SAAU,QAAS,SAAU,SAAU,MAAO,OAAQ,UAAW,OAAQ,OAAQ,SAAU,SAAU,OAAQ,SAAU,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,QAAS,OAAQ,OAAQ,KAAK,EAIvP,IAAMC,EAAe,CACnB,MAAO,CACL,KAAM,OACN,OAAQC,EACR,QAAS,MACX,CACF,ECTA,IAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,SAAU,QAAS,OAAQ,UAAW,SAAS,EAE3DC,EAAuB,CAC3B,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQF,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,QAAS,EACtF,GAAGE,CACL",
|
|
6
6
|
"names": ["checkbox_props_exports", "__export", "baseCheckboxPropDefs", "__toCommonJS", "accentColors", "colorPropDef", "accentColors", "sizes", "variants", "baseCheckboxPropDefs", "colorPropDef"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/components/combobox.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAmB,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/components/combobox.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAmB,MAAM,MAAM,CAAC;AAIpE,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAK7G,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAIxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,KAAK,gBAAgB,GAAG,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,KAAK,aAAa,GAAG,MAAM,GAAG,IAAI,CAAC;AACnC,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;AAuGpF,KA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,EACtB,iBAAiB,IAAI,SAAS,EAC9B,YAAY,IAAI,IAAI,GACrB,CAAC;AAEF,YAAY,EACV,iBAAiB,IAAI,SAAS,EAC9B,oBAAoB,IAAI,YAAY,EACpC,kBAAkB,IAAI,UAAU,EAChC,oBAAoB,IAAI,YAAY,EACpC,kBAAkB,IAAI,UAAU,EAChC,iBAAiB,IAAI,SAAS,EAC9B,kBAAkB,IAAI,UAAU,EAChC,kBAAkB,IAAI,UAAU,EAChC,kBAAkB,IAAI,UAAU,EAChC,sBAAsB,IAAI,cAAc,EACxC,iBAAiB,IAAI,SAAS,GAC/B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";"use client";var ho=Object.create;var J=Object.defineProperty;var vo=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty;var Do=(e,o)=>{for(var t in o)J(e,t,{get:o[t],enumerable:!0})},Ee=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of xo(o))!To.call(e,n)&&n!==t&&J(e,n,{get:()=>o[n],enumerable:!(s=vo(o,n))||s.enumerable});return e};var L=(e,o,t)=>(t=e!=null?ho(Ro(e)):{},Ee(o||!e||!e.__esModule?J(t,"default",{value:e,enumerable:!0}):t,e)),wo=e=>Ee(J({},"__esModule",{value:!0}),e);var at={};Do(at,{Content:()=>lo,Empty:()=>mo,Group:()=>uo,Input:()=>po,Item:()=>bo,Label:()=>fo,List:()=>co,Root:()=>so,Separator:()=>Po,Trigger:()=>ao,Value:()=>io});module.exports=wo(at);var r=L(require("react")),S=L(require("classnames")),Te=require("radix-ui"),N=require("radix-ui/internal"),k=require("cmdk");var ke=L(require("classnames"));var So=[],No=new Set;function Eo(e){let o=Object.assign({},...e),t=[],s=[],n=new Set;for(let a in o){let l=o[a],c=l.values??So,p={key:a,type:l.type,default:l.default,hasDefault:l.default!==void 0,responsive:"responsive"in l,className:l.className,customProperties:l.customProperties,parseValue:l.parseValue,values:c,valueSet:c.length>0?new Set(c):No,enumValueSet:l.type==="enum"?new Set([l.default,...c]):void 0};l.className?(t.push(p),n.add(a)):(p.hasDefault||l.type==="enum")&&s.push(p)}return{styling:t,passthrough:s,stylingKeys:n}}var Vo={children:new WeakMap};function Ve(e){let o=Vo;for(let t=0;t<e.length;t++){let s=e[t],n=o.children.get(s);n===void 0&&(n={children:new WeakMap},o.children.set(s,n)),o=n}return o.compiled??(o.compiled=Eo(e))}var Io=["initial","xs","sm","md","lg","xl"],pe=new Set(Io);function ce(e,o){return Object.prototype.hasOwnProperty.call(e,o)}var Fo=new Set(["initial","xs","sm","md","lg","xl"]);function A(e){if(typeof e!="object"||e===null)return!1;for(let o in e)if(Fo.has(o))return!0;return!1}function Q(e,o,t){return o!==void 0?o.has(t):e.includes(t)}function Fe({className:e,customProperties:o,...t}){let s=me({allowArbitraryValues:!0,className:e,...t}),n=ko({customProperties:o,...t});return[s,n]}function me({allowArbitraryValues:e,value:o,className:t,propValues:s,propValueSet:n,parseValue:a=l=>l}){if(o){if(typeof o=="string")return Q(s,n,o)?Ie(t,o,a):e?t:void 0;if(A(o)){let l=o,c=[];for(let p in l){if(!ce(l,p)||!pe.has(p))continue;let i=l[p];if(i!==void 0){if(Q(s,n,i)){let m=Ie(t,i,a),d=p==="initial"?m:`${p}:${m}`;c.push(d)}else if(e){let m=p==="initial"?t:`${p}:${t}`;c.push(m)}}}return c.length>0?c.join(" "):""}if(e)return t}}function Ie(e,o,t){let s=e?"-":"",n=t(o),a=n?.startsWith("-"),l=a?"-":"",c=a?n?.substring(1):n;return`${l}${e}${s}${c}`}function ko({customProperties:e,value:o,propValues:t,propValueSet:s,parseValue:n=a=>a}){if(!o||typeof o=="string"&&Q(t,s,o))return;let a;if(typeof o=="string"){let l=n(o);a={};for(let c of e)a[c]=l;return a}if(A(o)){let l=o;for(let c in l){if(!ce(l,c)||!pe.has(c))continue;let p=l[c];if(p===void 0||Q(t,s,p))continue;let i=n(p);a??(a={});for(let m of e){let d=c==="initial"?m:`${m}-${c}`;a[d]=i}}}return a??{}}function ue(...e){let o;for(let t of e)t&&(o===void 0&&(o={}),Object.assign(o,t));return o}function Lo(e,o){let t=e.initial,s=!1;return o.hasDefault&&t===void 0&&(t=o.default,s=!0),o.enumValueSet!==void 0&&!o.enumValueSet.has(t)&&(t=o.default,s=!0),s?{...e,initial:t}:e}function $(e,...o){let{styling:t,passthrough:s,stylingKeys:n}=Ve(o),a={};for(let p in e)n.has(p)||(a[p]=e[p]);for(let p=0;p<s.length;p++){let i=s[p],m=a[i.key];if(m===void 0){i.hasDefault&&(a[i.key]=i.default);continue}i.enumValueSet!==void 0&&!i.enumValueSet.has(m)&&!A(m)&&(a[i.key]=i.default)}let l,c=[];for(let p=0;p<t.length;p++){let i=t[p],m=e[i.key];if(m===void 0&&i.hasDefault&&(m=i.default),i.enumValueSet!==void 0&&!i.enumValueSet.has(m)&&!A(m)&&(m=i.default),!!m){if(A(m)){if(!i.responsive)continue;m=Lo(m,i)}if(i.type==="enum"){let d=me({allowArbitraryValues:!1,value:m,className:i.className,propValues:i.values,propValueSet:i.valueSet,parseValue:i.parseValue});d&&c.push(d);continue}if(i.type==="string"||i.type==="enum | string"){let[d,P]=Fe({className:i.className,customProperties:i.customProperties,propValues:i.type==="string"?[]:i.values,propValueSet:i.type==="string"?void 0:i.valueSet,parseValue:i.parseValue,value:m});P&&(l=ue(l,P)),d&&c.push(d);continue}if(i.type==="boolean"){c.push(i.className);continue}}}return a.className=(0,ke.default)(c.length>0?c.join(" "):void 0,e.className),a.style=ue(l,e.style),a}var fe=["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"],Le=["auto","gray","mauve","slate","sage","olive","sand"],de={color:{type:"enum",values:fe,default:void 0}};var Pe=["none","small","medium","large","full"],Oe={radius:{type:"enum",values:Pe,default:void 0}};var M={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var X={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}};var Oo=["1","2","3","4"],be={size:{type:"enum",className:"rt-r-size",values:Oo,default:"2",responsive:!0}},Mo=["raised","surface","soft","outline","ghost"],Me={variant:{type:"enum",className:"rt-variant",values:Mo,default:"raised"},error:{type:"boolean"},loading:{type:"boolean"},disabled:{type:"boolean"},readOnly:{type:"boolean"},...de,...Oe,width:M.width,placeholder:{type:"string"}},Ao=["1","2","3"],ee={size:{type:"enum",className:"rt-r-size",values:Ao,default:"2",responsive:!0},...de,width:M.width,minWidth:M.minWidth,maxWidth:{...M.maxWidth,default:"480px"},...X};var H=["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"],Ae={m:{type:"enum | string",values:H,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:H,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:H,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:H,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var f=L(require("react")),Ho=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));Ho.displayName="ThickDividerHorizontalIcon";var ge=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));ge.displayName="ThickCheckIcon";var ye=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));ye.displayName="ChevronDownIcon";var Wo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));Wo.displayName="ThickChevronRightIcon";var jo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));jo.displayName="ThickChevronLeftIcon";var Go=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.default.createElement("circle",{cx:"4.5",cy:"4.5",r:"2"})));Go.displayName="ThickDotIcon";var Bo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{...e,ref:o,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"},f.default.createElement("path",{d:"M18 6 6 18"}),f.default.createElement("path",{d:"m6 6 12 12"})));Bo.displayName="CloseIcon";var zo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{...e,ref:o,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"},f.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"})));zo.displayName="PaperclipIcon";var $o=f.default.forwardRef((e,o)=>f.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"},f.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),f.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})));$o.displayName="FileIcon";var Ko=f.default.forwardRef((e,o)=>f.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"},f.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),f.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),f.default.createElement("path",{d:"M10 9H8"}),f.default.createElement("path",{d:"M16 13H8"}),f.default.createElement("path",{d:"M16 17H8"})));Ko.displayName="FileTextIcon";var g=L(require("react")),je=L(require("classnames")),j=require("radix-ui"),re=require("radix-ui/internal");function He(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}var Ce=L(require("react"));function W(e){let[o,t]=Ce.useState(e),[s,n]=Ce.useState(e);return Object.is(e,s)||(n(e),t(e)),[o,t]}var oe={asChild:{type:"boolean"}};var qo=["inherit","light","dark"],We=["sans","mono","serif"],h={...oe,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:qo,default:"inherit"},accentColor:{type:"enum",values:fe,default:"gray"},grayColor:{type:"enum",values:Le,default:"gray"},radius:{type:"enum",values:Pe,default:"full"},fontFamily:{type:"enum",values:We,default:"sans"},headingFontFamily:{type:"enum",values:We}};var I=()=>{},_o={appearance:h.appearance.default,accentColor:h.accentColor.default,grayColor:h.grayColor.default,resolvedGrayColor:h.grayColor.default,radius:h.radius.default,fontFamily:h.fontFamily.default,headingFontFamily:void 0,onAppearanceChange:I,onAccentColorChange:I,onGrayColorChange:I,onRadiusChange:I,onFontFamilyChange:I,onHeadingFontFamilyChange:I},te=g.createContext(void 0);function Ge(){return g.useContext(te)??_o}var q=g.forwardRef((e,o)=>{let t=g.useContext(te),s=j.Direction.useDirection();return t===void 0?g.createElement(j.Tooltip.Provider,{delayDuration:200},g.createElement(j.Direction.Provider,{dir:s},g.createElement(Be,{...e,ref:o}))):g.createElement(he,{...e,ref:o})});q.displayName="Theme";var Be=g.forwardRef((e,o)=>{let{appearance:t=h.appearance.default,accentColor:s=h.accentColor.default,grayColor:n=h.grayColor.default,radius:a=h.radius.default,fontFamily:l=h.fontFamily.default,headingFontFamily:c,hasBackground:p=h.hasBackground.default,...i}=e,[m,d]=W(t),[P,x]=W(s),[R,C]=W(n),[y,v]=W(a),[T,D]=W(l),[E,w]=W(c);return g.createElement(he,{...i,ref:o,isRoot:!0,hasBackground:p,appearance:m,accentColor:P,grayColor:R,radius:y,fontFamily:T,headingFontFamily:E,onAppearanceChange:d,onAccentColorChange:x,onGrayColorChange:C,onRadiusChange:v,onFontFamilyChange:D,onHeadingFontFamilyChange:w})});Be.displayName="ThemeRoot";function Uo(){if(typeof navigator>"u")return;let e=navigator.userAgent;if(e.includes("Win"))return"windows";if(e.includes("Mac"))return"macos";if(e.includes("Linux"))return"linux"}var he=g.forwardRef((e,o)=>{let t=g.useContext(te),{asChild:s,isRoot:n,hasBackground:a,appearance:l=e.appearance??t?.appearance??h.appearance.default,accentColor:c=e.accentColor??t?.accentColor??h.accentColor.default,grayColor:p=e.grayColor??t?.resolvedGrayColor??h.grayColor.default,radius:i=e.radius??t?.radius??h.radius.default,fontFamily:m=e.fontFamily??t?.fontFamily??h.fontFamily.default,headingFontFamily:d=e.headingFontFamily??t?.headingFontFamily,onAppearanceChange:P=I,onAccentColorChange:x=I,onGrayColorChange:R=I,onRadiusChange:C=I,onFontFamilyChange:y=I,onHeadingFontFamilyChange:v=I,...T}=e,D=s?j.Slot.Root:"div",E=p==="auto"?He(c):p,w=e.appearance==="light"||e.appearance==="dark",O=a===void 0?n||w:a,F=g.useRef(null),V=(0,re.useComposedRefs)(o,F),b="data-os"in T;return(0,re.useLayoutEffect)(()=>{if(!n||b)return;let z=F.current;if(!z)return;let K=Uo();if(K)return z.setAttribute("data-os",K),()=>z.removeAttribute("data-os")},[n,b]),g.createElement(te.Provider,{value:g.useMemo(()=>({appearance:l,accentColor:c,grayColor:p,resolvedGrayColor:E,radius:i,fontFamily:m,headingFontFamily:d,onAppearanceChange:P,onAccentColorChange:x,onGrayColorChange:R,onRadiusChange:C,onFontFamilyChange:y,onHeadingFontFamilyChange:v}),[l,c,p,E,i,m,d,P,x,R,C,y,v])},g.createElement(D,{"data-is-root-theme":n?"true":"false","data-accent-color":c,"data-gray-color":E,"data-has-background":O?"true":"false","data-radius":i,"data-font-family":m,"data-heading-font-family":d,ref:V,...T,className:(0,je.default)("radix-themes",{light:l==="light",dark:l==="dark"},T.className)}))});he.displayName="ThemeImpl";var ne=L(require("react")),_=e=>{if(!ne.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${ne.Children.toArray(e).map(t=>typeof t=="object"&&"type"in t&&typeof t.type=="string"?t.type:typeof t).join(", ")}`);return e};var u=L(require("react")),B=L(require("classnames")),G=require("radix-ui");var Zo=["1","2","3","4"],ze={...oe,size:{type:"enum",className:"rt-r-size",values:Zo,default:"2",responsive:!0},width:M.width,minWidth:M.minWidth,maxWidth:{...M.maxWidth,default:"480px"},...X};var $e=u.createContext(null),Ke=e=>{let o=u.useContext($e);return o},ve=e=>u.createElement(G.Popover.Root,{...e});ve.displayName="Popover.Root";var xe=u.forwardRef(({children:e,...o},t)=>u.createElement(G.Popover.Trigger,{...o,ref:t,asChild:!0},_(e)));xe.displayName="Popover.Trigger";var Yo=u.forwardRef((e,o)=>{let{className:t,forceMount:s,container:n,...a}=$(e,ze),l=u.useRef(null),c=u.useCallback(d=>{l.current=d,typeof o=="function"?o(d):o&&(o.current=d)},[o]),[p,i]=u.useState(void 0),m=u.useCallback(d=>{let P=l.current;P&&(d>0?(P.style.setProperty("--popover-toolbar-offset",`${d}px`),P.setAttribute("data-has-toolbar","true")):(P.style.removeProperty("--popover-toolbar-offset"),P.removeAttribute("data-has-toolbar")))},[]);return u.createElement(G.Popover.Portal,{container:n,forceMount:s},u.createElement(q,{asChild:!0},u.createElement(G.Popover.Content,{align:"start",sideOffset:8,collisionPadding:10,...a,ref:c,"aria-labelledby":p,className:(0,B.default)("rt-PopperContent","rt-PopoverContent",t)},u.createElement($e.Provider,{value:u.useMemo(()=>({contentRef:l,setToolbarOffset:m,setLabelId:i}),[m])},e.children))))});Yo.displayName="Popover.Content";var Jo=u.forwardRef(({children:e,...o},t)=>u.createElement(G.Popover.Close,{...o,ref:t,asChild:!0},_(e)));Jo.displayName="Popover.Close";var Qo=u.forwardRef(({children:e,...o},t)=>u.createElement(G.Popover.Anchor,{...o,ref:t}));Qo.displayName="Popover.Anchor";var qe=u.forwardRef(({className:e,children:o,...t},s)=>{let n=Ke("Popover.Toolbar"),a=u.useRef(null),l=u.useCallback(c=>{a.current=c,typeof s=="function"?s(c):s&&(s.current=c)},[s]);return u.useEffect(()=>{if(!n||!a.current)return;let c=a.current,p=()=>{let m=c.getBoundingClientRect().height;n.setToolbarOffset(m)};p();let i=new ResizeObserver(p);return i.observe(c),()=>{i.disconnect(),n.setToolbarOffset(0)}},[n]),u.createElement("div",{...t,ref:l,className:(0,B.default)("rt-PopoverToolbar",e)},o)});qe.displayName="Popover.Toolbar";var _e=u.forwardRef(({className:e,...o},t)=>u.createElement("div",{...o,ref:t,className:(0,B.default)("rt-PopoverToolbarSection","rt-PopoverToolbarLeft",e)}));_e.displayName="Popover.Toolbar.Left";var Ue=u.forwardRef(({className:e,...o},t)=>u.createElement("div",{...o,ref:t,className:(0,B.default)("rt-PopoverToolbarSection","rt-PopoverToolbarCenter",e)}));Ue.displayName="Popover.Toolbar.Center";var Ze=u.forwardRef(({className:e,...o},t)=>u.createElement("div",{...o,ref:t,className:(0,B.default)("rt-PopoverToolbarSection","rt-PopoverToolbarRight",e)}));Ze.displayName="Popover.Toolbar.Right";var Ye=u.forwardRef(({className:e,id:o,...t},s)=>{let n=Ke("Popover.Toolbar.Title"),a=u.useId(),l=o??`rt-popover-toolbar-title-${a}`;return u.useEffect(()=>(n?.setLabelId(l),()=>n?.setLabelId(void 0)),[n,l]),u.createElement("span",{...t,id:l,ref:s,className:(0,B.default)("rt-PopoverToolbarTitle",e)})});Ye.displayName="Popover.Toolbar.Title";var Xt=Object.assign(qe,{Left:_e,Center:Ue,Right:Ze,Title:Ye});var se=require("radix-ui"),er=se.Slot.Root,or=se.Slot.Root,Je=se.Slot.Slottable;var Re=require("radix-ui"),Qe=Re.VisuallyHidden.Root,rr=Re.VisuallyHidden.Root;var et={size:be.size},ot={size:ee.size},Xe=new Set;function tt(e){Xe.has(e)||(Xe.add(e),console.warn(e))}function rt(e){let o=e,t=new Set;return{get:()=>o,set:s=>{Object.is(s,o)||(o=s,t.forEach(n=>n()))},subscribe:s=>(t.add(s),()=>{t.delete(s)})}}var eo=r.createContext(null),ae=e=>{let o=r.useContext(eo);if(!o)throw new Error(`Combobox.${e} must be used within Combobox.Root`);return o},oo=r.createContext(null),to=r.createContext(null),ro=r.createContext(null),no=()=>r.useContext(ro);function nt(e){let o=e.getAttribute("aria-label")?.trim();if(o)return o;let t=e.getAttribute("aria-labelledby");if(t){let n=t.split(/\s+/).map(a=>e.ownerDocument.getElementById(a)?.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}let s=e.labels;if(s&&s.length>0){let n=Array.from(s).map(a=>a.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}}var so=e=>{let{children:o,size:t=be.size.default,value:s,defaultValue:n=null,onValueChange:a,open:l,defaultOpen:c=!1,onOpenChange:p,placeholder:i="Select an option",searchPlaceholder:m="Search...",searchValue:d,defaultSearchValue:P="",onSearchValueChange:x,filter:R,shouldFilter:C=!0,loop:y=!0,disabled:v,resetSearchOnSelect:T=!0,resetSearchOnClose:D=!0,color:E,displayValue:w,...O}=e,[F,V]=(0,N.useControllableState)({prop:l,defaultProp:c,onChange:p}),[b,z]=(0,N.useControllableState)({prop:s,defaultProp:n,onChange:a}),[K,U]=(0,N.useControllableState)({prop:d,defaultProp:P,onChange:x}),we=typeof w=="function"?w(b):w,[Z]=r.useState(()=>rt(b));(0,N.useLayoutEffect)(()=>{Z.set(b)},[Z,b]);let ie=(0,N.useCallbackRef)(Y=>{V(Y),!Y&&D&&U("")}),Se=(0,N.useCallbackRef)(Y=>{z(Y),V(!1),T&&U("")}),le=r.useRef(null),Ne=r.useCallback(()=>le.current?nt(le.current):void 0,[]),go=r.useMemo(()=>({value:b,displayValue:we,setOpen:ie,size:t,placeholder:i,searchPlaceholder:m,disabled:v,color:E,loop:y,shouldFilter:C,filter:R,triggerRef:le,getTriggerLabel:Ne}),[b,we,ie,t,i,m,v,E,y,C,R,Ne]),yo=r.useMemo(()=>({value:K,setValue:U}),[K,U]),Co=r.useMemo(()=>({store:Z,onSelect:Se,disabled:v}),[Z,Se,v]);return r.createElement(eo.Provider,{value:go},r.createElement(oo.Provider,{value:yo},r.createElement(to.Provider,{value:Co},r.createElement(ve,{open:F,onOpenChange:ie,...O},o))))};so.displayName="Combobox.Root";var ao=r.forwardRef((e,o)=>{let t=ae("Trigger"),{children:s,className:n,placeholder:a,disabled:l,readOnly:c,error:p,loading:i,color:m,radius:d,onClick:P,onKeyDown:x,type:R,...C}=$({size:t.size,...e},et,Me,Ae),y=l??t.disabled,v=m??t.color,T=!!(c||i),D=t.value==null&&t.displayValue==null,E=(0,N.useComposedRefs)(o,t.triggerRef),{getTriggerLabel:w}=t;r.useEffect(()=>{},[w]);let O=b=>{P?.(b),T&&b.preventDefault()},F=b=>{x?.(b),!(b.defaultPrevented||T||y)&&b.key==="ArrowDown"&&(b.preventDefault(),t.setOpen(!0))},V=r.createElement(r.Fragment,null,r.createElement("span",{className:"rt-SelectTriggerInner"},r.createElement("span",{className:"rt-ComboboxValue"},t.displayValue??t.value??a??t.placeholder)),i?r.createElement("div",{className:"rt-SelectIcon rt-SelectLoadingIcon","aria-hidden":"true"},r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"32",className:"rt-SelectLoadingIconCircle"}))):r.createElement(ye,{className:"rt-SelectIcon"}));return r.createElement(xe,{disabled:y},r.createElement("button",{"data-accent-color":v,"data-radius":d,"data-error":p,"data-loading":i,"data-disabled":y||void 0,"data-read-only":c||void 0,"data-placeholder":D?"":void 0,...C,role:"combobox","aria-disabled":y||void 0,"aria-readonly":c||void 0,"aria-invalid":p||void 0,"aria-busy":i||void 0,type:R??"button",disabled:y,onClick:O,onKeyDown:F,ref:E,className:(0,S.default)("rt-reset","rt-SelectTrigger","rt-ComboboxTrigger",n)},s?_(s):V))});ao.displayName="Combobox.Trigger";var io=r.forwardRef(({placeholder:e,children:o,className:t,...s},n)=>{let a=ae("Value"),l=a.displayValue??a.value??void 0;return r.createElement("span",{...s,ref:n,className:(0,S.default)("rt-ComboboxValue",t)},l??o??e??a.placeholder)});io.displayName="Combobox.Value";function st(){let e=(0,k.useCommandState)(n=>n.filtered.count),o=(0,k.useCommandState)(n=>n.search),[t,s]=r.useState("");return r.useEffect(()=>{let n=o?e===0?"No results":`${e} result${e===1?"":"s"}`:"",a=window.setTimeout(()=>s(n),o?400:0);return()=>window.clearTimeout(a)},[e,o]),r.createElement(Qe,{role:"status","aria-live":"polite","aria-atomic":"true"},t)}var lo=r.forwardRef((e,o)=>{let t=ae("Content"),s=Ge(),n=t.size==="4"?"3":t.size,a=e.size??n??ee.size.default,{className:l,children:c,color:p,forceMount:i,container:m,onOpenAutoFocus:d,"aria-label":P,"aria-labelledby":x,...R}=$({...e,size:a},ee),C=p||t.color||s.accentColor,{getTriggerLabel:y}=t,[v,T]=r.useState(y);(0,N.useLayoutEffect)(()=>{if(v!==void 0)return;let V=y();V!==void 0&&T(V)},[y,v]);let D=e["aria-label"]??v,E=r.useMemo(()=>({sizeClassName:$({size:a},ot).className||void 0,color:C,label:D}),[a,C,D]),w=r.useRef(null),O=V=>{if(d?.(V),V.defaultPrevented)return;let b=w.current;if(!b||b.querySelector("[cmdk-input]"))return;V.preventDefault(),(b.querySelector("[cmdk-list]")??b).focus({preventScroll:!0})},F=t.value?.trim()||void 0;return r.createElement(Te.Popover.Portal,{container:m,forceMount:i?!0:void 0},r.createElement(q,{asChild:!0},r.createElement(Te.Popover.Content,{"data-accent-color":C,align:"start",sideOffset:4,collisionPadding:10,"aria-label":x?void 0:D,"aria-labelledby":x,...R,forceMount:i?!0:void 0,onOpenAutoFocus:O,ref:o,className:(0,S.default)("rt-PopperContent","rt-BaseMenuContent","rt-variant-soft","rt-ComboboxContent",l)},r.createElement(ro.Provider,{value:E},r.createElement(k.Command,{ref:w,loop:t.loop,shouldFilter:t.shouldFilter,filter:t.filter,label:D,defaultValue:F,className:"rt-ComboboxCommand"},c,r.createElement(st,null))))))});lo.displayName="Combobox.Content";var po=r.forwardRef(({className:e,startAdornment:o,endAdornment:t,placeholder:s,variant:n,value:a,onValueChange:l,...c},p)=>{let i=ae("Input"),m=r.useContext(oo),d=no(),P=n??"soft",x=a??m?.value??"",R=l??m?.setValue,C=r.createElement("div",{className:(0,S.default)("rt-TextFieldRoot","rt-ComboboxInputRoot",d?.sizeClassName,`rt-variant-${P}`),"data-accent-color":d?.color},o?r.createElement("div",{className:"rt-TextFieldSlot"},o):null,r.createElement(k.Command.Input,{...c,ref:p,value:x,onValueChange:R,placeholder:s??i.searchPlaceholder,className:(0,S.default)("rt-reset","rt-TextFieldInput",e)}),t?r.createElement("div",{className:"rt-TextFieldSlot","data-side":"right"},t):null);return d?r.createElement("div",{className:"rt-ComboboxSearch"},C):C});po.displayName="Combobox.Input";var co=r.forwardRef(({className:e,children:o,label:t,...s},n)=>{let a=no();return r.createElement("div",{className:"rt-ComboboxScrollArea"},r.createElement("div",{className:(0,S.default)("rt-BaseMenuViewport","rt-ComboboxViewport")},r.createElement(k.Command.List,{...s,label:t??a?.label,ref:n,className:(0,S.default)("rt-ComboboxList",e)},o)))});co.displayName="Combobox.List";var mo=r.forwardRef(({className:e,...o},t)=>r.createElement(k.Command.Empty,{...o,ref:t,className:(0,S.default)("rt-ComboboxEmpty",e)}));mo.displayName="Combobox.Empty";var uo=r.forwardRef(({className:e,...o},t)=>r.createElement(k.Command.Group,{...o,ref:t,className:(0,S.default)("rt-BaseMenuGroup","rt-ComboboxGroup",e)}));uo.displayName="Combobox.Group";var fo=r.forwardRef(({className:e,id:o,...t},s)=>{let n=r.useId(),a=o??n,l=r.useRef(null),c=(0,N.useComposedRefs)(s,l);return(0,N.useLayoutEffect)(()=>{let p=l.current?.closest("[cmdk-group-items]");if(!(!p||p.hasAttribute("aria-labelledby")))return p.setAttribute("aria-labelledby",a),()=>{p.getAttribute("aria-labelledby")===a&&p.removeAttribute("aria-labelledby")}},[a]),r.createElement("div",{...t,id:a,ref:c,className:(0,S.default)("rt-BaseMenuLabel","rt-ComboboxLabel",e)})});fo.displayName="Combobox.Label";var Po=r.forwardRef(({className:e,...o},t)=>r.createElement(k.Command.Separator,{...o,ref:t,className:(0,S.default)("rt-BaseMenuSeparator","rt-ComboboxSeparator",e)}));Po.displayName="Combobox.Separator";function De(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(De).join(""):r.isValidElement(e)?De(e.props.children):""}var bo=r.forwardRef(({className:e,children:o,label:t,value:s,disabled:n,onSelect:a,keywords:l,...c},p)=>{let i=r.useContext(to);if(!i)throw new Error("Combobox.Item must be used within Combobox.Root");let{store:m,onSelect:d,disabled:P}=i,x=s??(typeof o=="string"?o.trim():void 0),R=()=>x!==void 0&&m.get()===x,C=r.useSyncExternalStore(m.subscribe,R,R),y=(0,N.useCallbackRef)(a),v=r.useCallback(O=>{let F=s??O;d(F),y(F)},[s,d,y]),T=(t??De(o)).replace(/\s+/g," ").trim(),D=T?l?[T,...l]:[T]:l,E=D?D.join("\0"):"",w=n??P??!1;return r.createElement(k.Command.Item,{key:E,...c,value:s,keywords:D,"aria-checked":C,disabled:w||void 0,ref:p,onSelect:v,className:(0,S.default)("rt-reset","rt-BaseMenuItem","rt-ComboboxItem",e)},C?r.createElement("span",{className:(0,S.default)("rt-BaseMenuItemIndicator","rt-ComboboxItemIndicator")},r.createElement(ge,{className:(0,S.default)("rt-BaseMenuItemIndicatorIcon","rt-ComboboxItemIndicatorIcon")})):null,r.createElement(Je,null,o))});bo.displayName="Combobox.Item";
|
|
1
|
+
"use strict";"use client";var So=Object.create;var ee=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Eo=Object.getPrototypeOf,Vo=Object.prototype.hasOwnProperty;var Io=(e,o)=>{for(var t in o)ee(e,t,{get:o[t],enumerable:!0})},ke=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of No(o))!Vo.call(e,s)&&s!==t&&ee(e,s,{get:()=>o[s],enumerable:!(n=wo(o,s))||n.enumerable});return e};var L=(e,o,t)=>(t=e!=null?So(Eo(e)):{},ke(o||!e||!e.__esModule?ee(t,"default",{value:e,enumerable:!0}):t,e)),Fo=e=>ke(ee({},"__esModule",{value:!0}),e);var dt={};Io(dt,{Content:()=>Po,Empty:()=>yo,Group:()=>Co,Input:()=>bo,Item:()=>xo,Label:()=>ho,List:()=>go,Root:()=>mo,Separator:()=>vo,Trigger:()=>uo,Value:()=>fo});module.exports=Fo(dt);var r=L(require("react")),w=L(require("classnames")),Ne=require("radix-ui"),N=require("radix-ui/internal"),z=require("cmdk");var Me=L(require("classnames"));var ko=[],Lo=new Set;function zo(e){let o=Object.assign({},...e),t=[],n=[],s=new Set;for(let a in o){let l=o[a],p=l.values??ko,c={key:a,type:l.type,default:l.default,hasDefault:l.default!==void 0,responsive:"responsive"in l,className:l.className,customProperties:l.customProperties,parseValue:l.parseValue,values:p,valueSet:p.length>0?new Set(p):Lo,enumValueSet:l.type==="enum"?new Set([l.default,...p]):void 0};l.className?(t.push(c),s.add(a)):(c.hasDefault||l.type==="enum")&&n.push(c)}return{styling:t,passthrough:n,stylingKeys:s}}var Oo={children:new WeakMap};function Le(e){let o=Oo;for(let t=0;t<e.length;t++){let n=e[t],s=o.children.get(n);s===void 0&&(s={children:new WeakMap},o.children.set(n,s)),o=s}return o.compiled??(o.compiled=zo(e))}var Mo=["initial","xs","sm","md","lg","xl"],ue=new Set(Mo);function fe(e,o){return Object.prototype.hasOwnProperty.call(e,o)}var Ao=new Set(["initial","xs","sm","md","lg","xl"]);function W(e){if(typeof e!="object"||e===null)return!1;for(let o in e)if(Ao.has(o))return!0;return!1}function oe(e,o,t){return o!==void 0?o.has(t):e.includes(t)}function Oe({className:e,customProperties:o,...t}){let n=de({allowArbitraryValues:!0,className:e,...t}),s=Ho({customProperties:o,...t});return[n,s]}function de({allowArbitraryValues:e,value:o,className:t,propValues:n,propValueSet:s,parseValue:a=l=>l}){if(o){if(typeof o=="string")return oe(n,s,o)?ze(t,o,a):e?t:void 0;if(W(o)){let l=o,p=[];for(let c in l){if(!fe(l,c)||!ue.has(c))continue;let i=l[c];if(i!==void 0){if(oe(n,s,i)){let m=ze(t,i,a),d=c==="initial"?m:`${c}:${m}`;p.push(d)}else if(e){let m=c==="initial"?t:`${c}:${t}`;p.push(m)}}}return p.length>0?p.join(" "):""}if(e)return t}}function ze(e,o,t){let n=e?"-":"",s=t(o),a=s?.startsWith("-"),l=a?"-":"",p=a?s?.substring(1):s;return`${l}${e}${n}${p}`}function Ho({customProperties:e,value:o,propValues:t,propValueSet:n,parseValue:s=a=>a}){if(!o||typeof o=="string"&&oe(t,n,o))return;let a;if(typeof o=="string"){let l=s(o);a={};for(let p of e)a[p]=l;return a}if(W(o)){let l=o;for(let p in l){if(!fe(l,p)||!ue.has(p))continue;let c=l[p];if(c===void 0||oe(t,n,c))continue;let i=s(c);a??(a={});for(let m of e){let d=p==="initial"?m:`${m}-${p}`;a[d]=i}}}return a??{}}function Pe(...e){let o;for(let t of e)t&&(o===void 0&&(o={}),Object.assign(o,t));return o}function Wo(e,o){let t=e.initial,n=!1;return o.hasDefault&&t===void 0&&(t=o.default,n=!0),o.enumValueSet!==void 0&&!o.enumValueSet.has(t)&&(t=o.default,n=!0),n?{...e,initial:t}:e}function q(e,...o){let{styling:t,passthrough:n,stylingKeys:s}=Le(o),a={};for(let c in e)s.has(c)||(a[c]=e[c]);for(let c=0;c<n.length;c++){let i=n[c],m=a[i.key];if(m===void 0){i.hasDefault&&(a[i.key]=i.default);continue}i.enumValueSet!==void 0&&!i.enumValueSet.has(m)&&!W(m)&&(a[i.key]=i.default)}let l,p=[];for(let c=0;c<t.length;c++){let i=t[c],m=e[i.key];if(m===void 0&&i.hasDefault&&(m=i.default),i.enumValueSet!==void 0&&!i.enumValueSet.has(m)&&!W(m)&&(m=i.default),!!m){if(W(m)){if(!i.responsive)continue;m=Wo(m,i)}if(i.type==="enum"){let d=de({allowArbitraryValues:!1,value:m,className:i.className,propValues:i.values,propValueSet:i.valueSet,parseValue:i.parseValue});d&&p.push(d);continue}if(i.type==="string"||i.type==="enum | string"){let[d,P]=Oe({className:i.className,customProperties:i.customProperties,propValues:i.type==="string"?[]:i.values,propValueSet:i.type==="string"?void 0:i.valueSet,parseValue:i.parseValue,value:m});P&&(l=Pe(l,P)),d&&p.push(d);continue}if(i.type==="boolean"){p.push(i.className);continue}}}return a.className=(0,Me.default)(p.length>0?p.join(" "):void 0,e.className),a.style=Pe(l,e.style),a}var _=L(require("react")),jo="2",U=_.createContext(jo);U.displayName="ThemeSizeContext";function Ae(e,o){if(o.includes(e))return e;let t=Number(e),n=o[0],s=1/0;for(let a=0;a<o.length;a++){let l=Math.abs(Number(o[a])-t);l<s&&(s=l,n=o[a])}return n}function He(e,o){let t=_.useContext(U);return e!==void 0?e:Ae(t,o.values)}function We(e,o){let t=_.useContext(U);if(e.size!==void 0)return e;let n=Ae(t,o.values);return n===o.default?e:{...e,size:n}}var be=["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"],je=["auto","gray","mauve","slate","sage","olive","sand"],ge={color:{type:"enum",values:be,default:void 0}};var ye=["none","small","medium","large","full"],Ge={radius:{type:"enum",values:ye,default:void 0}};var M={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}};var te={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}};var Go=["1","2","3","4"],Ce={size:{type:"enum",className:"rt-r-size",values:Go,default:"2",responsive:!0}},Bo=["raised","surface","soft","outline","ghost"],Be={variant:{type:"enum",className:"rt-variant",values:Bo,default:"raised"},error:{type:"boolean"},loading:{type:"boolean"},disabled:{type:"boolean"},readOnly:{type:"boolean"},...ge,...Ge,width:M.width,placeholder:{type:"string"}},$o=["1","2","3"],re={size:{type:"enum",className:"rt-r-size",values:$o,default:"2",responsive:!0},...ge,width:M.width,minWidth:M.minWidth,maxWidth:{...M.maxWidth,default:"480px"},...te};var j=["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"],$e={m:{type:"enum | string",values:j,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:j,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:j,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:j,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:j,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:j,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:j,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var f=L(require("react")),Ko=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));Ko.displayName="ThickDividerHorizontalIcon";var he=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));he.displayName="ThickCheckIcon";var ve=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));ve.displayName="ChevronDownIcon";var qo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));qo.displayName="ThickChevronRightIcon";var _o=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.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"})));_o.displayName="ThickChevronLeftIcon";var Uo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:o},f.default.createElement("circle",{cx:"4.5",cy:"4.5",r:"2"})));Uo.displayName="ThickDotIcon";var Zo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{...e,ref:o,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"},f.default.createElement("path",{d:"M18 6 6 18"}),f.default.createElement("path",{d:"m6 6 12 12"})));Zo.displayName="CloseIcon";var Yo=f.default.forwardRef((e,o)=>f.default.createElement("svg",{...e,ref:o,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"},f.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"})));Yo.displayName="PaperclipIcon";var Jo=f.default.forwardRef((e,o)=>f.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"},f.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),f.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})));Jo.displayName="FileIcon";var Qo=f.default.forwardRef((e,o)=>f.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"},f.default.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),f.default.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),f.default.createElement("path",{d:"M10 9H8"}),f.default.createElement("path",{d:"M16 13H8"}),f.default.createElement("path",{d:"M16 17H8"})));Qo.displayName="FileTextIcon";var b=L(require("react")),_e=L(require("classnames")),G=require("radix-ui"),ae=require("radix-ui/internal");function Ke(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}var xe=L(require("react"));function A(e){let[o,t]=xe.useState(e),[n,s]=xe.useState(e);return Object.is(e,n)||(s(e),t(e)),[o,t]}var ne={asChild:{type:"boolean"}};var Xo=["inherit","light","dark"],qe=["sans","mono","serif"],et=["1","2","3","4"],y={...ne,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:Xo,default:"inherit"},accentColor:{type:"enum",values:be,default:"gray"},grayColor:{type:"enum",values:je,default:"gray"},radius:{type:"enum",values:ye,default:"full"},fontFamily:{type:"enum",values:qe,default:"sans"},headingFontFamily:{type:"enum",values:qe},size:{type:"enum",values:et,default:"2"}};var I=()=>{},ot={appearance:y.appearance.default,accentColor:y.accentColor.default,grayColor:y.grayColor.default,resolvedGrayColor:y.grayColor.default,radius:y.radius.default,fontFamily:y.fontFamily.default,headingFontFamily:void 0,size:y.size.default,onAppearanceChange:I,onAccentColorChange:I,onGrayColorChange:I,onRadiusChange:I,onFontFamilyChange:I,onHeadingFontFamilyChange:I,onSizeChange:I},se=b.createContext(void 0);function Ue(){return b.useContext(se)??ot}var Z=b.forwardRef((e,o)=>{let t=b.useContext(se),n=G.Direction.useDirection();return t===void 0?b.createElement(G.Tooltip.Provider,{delayDuration:200},b.createElement(G.Direction.Provider,{dir:n},b.createElement(Ze,{...e,ref:o}))):b.createElement(Re,{...e,ref:o})});Z.displayName="Theme";var Ze=b.forwardRef((e,o)=>{let{appearance:t=y.appearance.default,accentColor:n=y.accentColor.default,grayColor:s=y.grayColor.default,radius:a=y.radius.default,fontFamily:l=y.fontFamily.default,headingFontFamily:p,size:c=y.size.default,hasBackground:i=y.hasBackground.default,...m}=e,[d,P]=A(t),[g,T]=A(n),[h,C]=A(s),[x,D]=A(a),[R,E]=A(l),[S,F]=A(p),[k,V]=A(c);return b.createElement(Re,{...m,ref:o,isRoot:!0,hasBackground:i,appearance:d,accentColor:g,grayColor:h,radius:x,fontFamily:R,headingFontFamily:S,size:k,onAppearanceChange:P,onAccentColorChange:T,onGrayColorChange:C,onRadiusChange:D,onFontFamilyChange:E,onHeadingFontFamilyChange:F,onSizeChange:V})});Ze.displayName="ThemeRoot";function tt(){if(typeof navigator>"u")return;let e=navigator.userAgent;if(e.includes("Win"))return"windows";if(e.includes("Mac"))return"macos";if(e.includes("Linux"))return"linux"}var Re=b.forwardRef((e,o)=>{let t=b.useContext(se),{asChild:n,isRoot:s,hasBackground:a,appearance:l=e.appearance??t?.appearance??y.appearance.default,accentColor:p=e.accentColor??t?.accentColor??y.accentColor.default,grayColor:c=e.grayColor??t?.resolvedGrayColor??y.grayColor.default,radius:i=e.radius??t?.radius??y.radius.default,fontFamily:m=e.fontFamily??t?.fontFamily??y.fontFamily.default,headingFontFamily:d=e.headingFontFamily??t?.headingFontFamily,size:P=e.size??t?.size??y.size.default,onAppearanceChange:g=I,onAccentColorChange:T=I,onGrayColorChange:h=I,onRadiusChange:C=I,onFontFamilyChange:x=I,onHeadingFontFamilyChange:D=I,onSizeChange:R=I,...E}=e,S=n?G.Slot.Root:"div",F=c==="auto"?Ke(p):c,k=e.appearance==="light"||e.appearance==="dark",V=a===void 0?s||k:a,v=b.useRef(null),O=(0,ae.useComposedRefs)(o,v),J="data-os"in E;return(0,ae.useLayoutEffect)(()=>{if(!s||J)return;let K=v.current;if(!K)return;let H=tt();if(H)return K.setAttribute("data-os",H),()=>K.removeAttribute("data-os")},[s,J]),b.createElement(se.Provider,{value:b.useMemo(()=>({appearance:l,accentColor:p,grayColor:c,resolvedGrayColor:F,radius:i,fontFamily:m,headingFontFamily:d,size:P,onAppearanceChange:g,onAccentColorChange:T,onGrayColorChange:h,onRadiusChange:C,onFontFamilyChange:x,onHeadingFontFamilyChange:D,onSizeChange:R}),[l,p,c,F,i,m,d,P,g,T,h,C,x,D,R])},b.createElement(U.Provider,{value:P},b.createElement(S,{"data-is-root-theme":s?"true":"false","data-accent-color":p,"data-gray-color":F,"data-has-background":V?"true":"false","data-radius":i,"data-font-family":m,"data-heading-font-family":d,ref:O,...E,className:(0,_e.default)("radix-themes",{light:l==="light",dark:l==="dark"},E.className)})))});Re.displayName="ThemeImpl";var ie=L(require("react")),Y=e=>{if(!ie.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${ie.Children.toArray(e).map(t=>typeof t=="object"&&"type"in t&&typeof t.type=="string"?t.type:typeof t).join(", ")}`);return e};var u=L(require("react")),$=L(require("classnames")),B=require("radix-ui");var rt=["1","2","3","4"],Te={...ne,size:{type:"enum",className:"rt-r-size",values:rt,default:"2",responsive:!0},width:M.width,minWidth:M.minWidth,maxWidth:{...M.maxWidth,default:"480px"},...te};var Ye=u.createContext(null),Je=e=>{let o=u.useContext(Ye);return o},De=e=>u.createElement(B.Popover.Root,{...e});De.displayName="Popover.Root";var Se=u.forwardRef(({children:e,...o},t)=>u.createElement(B.Popover.Trigger,{...o,ref:t,asChild:!0},Y(e)));Se.displayName="Popover.Trigger";var nt=u.forwardRef((e,o)=>{let t=We(e,Te.size),{className:n,forceMount:s,container:a,...l}=q(t,Te),p=u.useRef(null),c=u.useCallback(P=>{p.current=P,typeof o=="function"?o(P):o&&(o.current=P)},[o]),[i,m]=u.useState(void 0),d=u.useCallback(P=>{let g=p.current;g&&(P>0?(g.style.setProperty("--popover-toolbar-offset",`${P}px`),g.setAttribute("data-has-toolbar","true")):(g.style.removeProperty("--popover-toolbar-offset"),g.removeAttribute("data-has-toolbar")))},[]);return u.createElement(B.Popover.Portal,{container:a,forceMount:s},u.createElement(Z,{asChild:!0},u.createElement(B.Popover.Content,{align:"start",sideOffset:8,collisionPadding:10,...l,ref:c,"aria-labelledby":i,className:(0,$.default)("rt-PopperContent","rt-PopoverContent",n)},u.createElement(Ye.Provider,{value:u.useMemo(()=>({contentRef:p,setToolbarOffset:d,setLabelId:m}),[d])},t.children))))});nt.displayName="Popover.Content";var st=u.forwardRef(({children:e,...o},t)=>u.createElement(B.Popover.Close,{...o,ref:t,asChild:!0},Y(e)));st.displayName="Popover.Close";var at=u.forwardRef(({children:e,...o},t)=>u.createElement(B.Popover.Anchor,{...o,ref:t}));at.displayName="Popover.Anchor";var Qe=u.forwardRef(({className:e,children:o,...t},n)=>{let s=Je("Popover.Toolbar"),a=u.useRef(null),l=u.useCallback(p=>{a.current=p,typeof n=="function"?n(p):n&&(n.current=p)},[n]);return u.useEffect(()=>{if(!s||!a.current)return;let p=a.current,c=()=>{let m=p.getBoundingClientRect().height;s.setToolbarOffset(m)};c();let i=new ResizeObserver(c);return i.observe(p),()=>{i.disconnect(),s.setToolbarOffset(0)}},[s]),u.createElement("div",{...t,ref:l,className:(0,$.default)("rt-PopoverToolbar",e)},o)});Qe.displayName="Popover.Toolbar";var Xe=u.forwardRef(({className:e,...o},t)=>u.createElement("div",{...o,ref:t,className:(0,$.default)("rt-PopoverToolbarSection","rt-PopoverToolbarLeft",e)}));Xe.displayName="Popover.Toolbar.Left";var eo=u.forwardRef(({className:e,...o},t)=>u.createElement("div",{...o,ref:t,className:(0,$.default)("rt-PopoverToolbarSection","rt-PopoverToolbarCenter",e)}));eo.displayName="Popover.Toolbar.Center";var oo=u.forwardRef(({className:e,...o},t)=>u.createElement("div",{...o,ref:t,className:(0,$.default)("rt-PopoverToolbarSection","rt-PopoverToolbarRight",e)}));oo.displayName="Popover.Toolbar.Right";var to=u.forwardRef(({className:e,id:o,...t},n)=>{let s=Je("Popover.Toolbar.Title"),a=u.useId(),l=o??`rt-popover-toolbar-title-${a}`;return u.useEffect(()=>(s?.setLabelId(l),()=>s?.setLabelId(void 0)),[s,l]),u.createElement("span",{...t,id:l,ref:n,className:(0,$.default)("rt-PopoverToolbarTitle",e)})});to.displayName="Popover.Toolbar.Title";var cr=Object.assign(Qe,{Left:Xe,Center:eo,Right:oo,Title:to});var le=require("radix-ui"),mr=le.Slot.Root,ur=le.Slot.Root,ro=le.Slot.Slottable;var we=require("radix-ui"),no=we.VisuallyHidden.Root,dr=we.VisuallyHidden.Root;var lt={size:Ce.size},pt={size:re.size},so=new Set;function ct(e){so.has(e)||(so.add(e),console.warn(e))}function mt(e){let o=e,t=new Set;return{get:()=>o,set:n=>{Object.is(n,o)||(o=n,t.forEach(s=>s()))},subscribe:n=>(t.add(n),()=>{t.delete(n)})}}var ao=r.createContext(null),pe=e=>{let o=r.useContext(ao);if(!o)throw new Error(`Combobox.${e} must be used within Combobox.Root`);return o},io=r.createContext(null),lo=r.createContext(null),po=r.createContext(null),co=()=>r.useContext(po);function ut(e){let o=e.getAttribute("aria-label")?.trim();if(o)return o;let t=e.getAttribute("aria-labelledby");if(t){let s=t.split(/\s+/).map(a=>e.ownerDocument.getElementById(a)?.textContent?.trim()).filter(Boolean).join(" ");if(s)return s}let n=e.labels;if(n&&n.length>0){let s=Array.from(n).map(a=>a.textContent?.trim()).filter(Boolean).join(" ");if(s)return s}}var mo=e=>{let{children:o,size:t,value:n,defaultValue:s=null,onValueChange:a,open:l,defaultOpen:p=!1,onOpenChange:c,placeholder:i="Select an option",searchPlaceholder:m="Search...",searchValue:d,defaultSearchValue:P="",onSearchValueChange:g,filter:T,shouldFilter:h=!0,loop:C=!0,disabled:x,resetSearchOnSelect:D=!0,resetSearchOnClose:R=!0,color:E,displayValue:S,...F}=e,k=He(t,Ce.size),[V,v]=(0,N.useControllableState)({prop:l,defaultProp:p,onChange:c}),[O,J]=(0,N.useControllableState)({prop:n,defaultProp:s,onChange:a}),[K,H]=(0,N.useControllableState)({prop:d,defaultProp:P,onChange:g}),Ve=typeof S=="function"?S(O):S,[Q]=r.useState(()=>mt(O));(0,N.useLayoutEffect)(()=>{Q.set(O)},[Q,O]);let ce=(0,N.useCallbackRef)(X=>{v(X),!X&&R&&H("")}),Ie=(0,N.useCallbackRef)(X=>{J(X),v(!1),D&&H("")}),me=r.useRef(null),Fe=r.useCallback(()=>me.current?ut(me.current):void 0,[]),Ro=r.useMemo(()=>({value:O,displayValue:Ve,setOpen:ce,size:k,placeholder:i,searchPlaceholder:m,disabled:x,color:E,loop:C,shouldFilter:h,filter:T,triggerRef:me,getTriggerLabel:Fe}),[O,Ve,ce,k,i,m,x,E,C,h,T,Fe]),To=r.useMemo(()=>({value:K,setValue:H}),[K,H]),Do=r.useMemo(()=>({store:Q,onSelect:Ie,disabled:x}),[Q,Ie,x]);return r.createElement(ao.Provider,{value:Ro},r.createElement(io.Provider,{value:To},r.createElement(lo.Provider,{value:Do},r.createElement(De,{open:V,onOpenChange:ce,...F},o))))};mo.displayName="Combobox.Root";var uo=r.forwardRef((e,o)=>{let t=pe("Trigger"),{children:n,className:s,placeholder:a,disabled:l,readOnly:p,error:c,loading:i,color:m,radius:d,onClick:P,onKeyDown:g,type:T,...h}=q({size:t.size,...e},lt,Be,$e),C=l??t.disabled,x=m??t.color,D=!!(p||i),R=t.value==null&&t.displayValue==null,E=(0,N.useComposedRefs)(o,t.triggerRef),{getTriggerLabel:S}=t;r.useEffect(()=>{},[S]);let F=v=>{P?.(v),D&&v.preventDefault()},k=v=>{g?.(v),!(v.defaultPrevented||D||C)&&v.key==="ArrowDown"&&(v.preventDefault(),t.setOpen(!0))},V=r.createElement(r.Fragment,null,r.createElement("span",{className:"rt-SelectTriggerInner"},r.createElement("span",{className:"rt-ComboboxValue"},t.displayValue??t.value??a??t.placeholder)),i?r.createElement("div",{className:"rt-SelectIcon rt-SelectLoadingIcon","aria-hidden":"true"},r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"32",className:"rt-SelectLoadingIconCircle"}))):r.createElement(ve,{className:"rt-SelectIcon"}));return r.createElement(Se,{disabled:C},r.createElement("button",{"data-accent-color":x,"data-radius":d,"data-error":c,"data-loading":i,"data-disabled":C||void 0,"data-read-only":p||void 0,"data-placeholder":R?"":void 0,...h,role:"combobox","aria-disabled":C||void 0,"aria-readonly":p||void 0,"aria-invalid":c||void 0,"aria-busy":i||void 0,type:T??"button",disabled:C,onClick:F,onKeyDown:k,ref:E,className:(0,w.default)("rt-reset","rt-SelectTrigger","rt-ComboboxTrigger",s)},n?Y(n):V))});uo.displayName="Combobox.Trigger";var fo=r.forwardRef(({placeholder:e,children:o,className:t,...n},s)=>{let a=pe("Value"),l=a.displayValue??a.value??void 0;return r.createElement("span",{...n,ref:s,className:(0,w.default)("rt-ComboboxValue",t)},l??o??e??a.placeholder)});fo.displayName="Combobox.Value";function ft(){let e=(0,z.useCommandState)(s=>s.filtered.count),o=(0,z.useCommandState)(s=>s.search),[t,n]=r.useState("");return r.useEffect(()=>{let s=o?e===0?"No results":`${e} result${e===1?"":"s"}`:"",a=window.setTimeout(()=>n(s),o?400:0);return()=>window.clearTimeout(a)},[e,o]),r.createElement(no,{role:"status","aria-live":"polite","aria-atomic":"true"},t)}var Po=r.forwardRef((e,o)=>{let t=pe("Content"),n=Ue(),s=t.size==="4"?"3":t.size,a=e.size??s??re.size.default,{className:l,children:p,color:c,forceMount:i,container:m,onOpenAutoFocus:d,"aria-label":P,"aria-labelledby":g,...T}=q({...e,size:a},re),h=c||t.color||n.accentColor,{getTriggerLabel:C}=t,[x,D]=r.useState(C);(0,N.useLayoutEffect)(()=>{if(x!==void 0)return;let V=C();V!==void 0&&D(V)},[C,x]);let R=e["aria-label"]??x,E=r.useMemo(()=>({sizeClassName:q({size:a},pt).className||void 0,color:h,label:R}),[a,h,R]),S=r.useRef(null),F=V=>{if(d?.(V),V.defaultPrevented)return;let v=S.current;if(!v||v.querySelector("[cmdk-input]"))return;V.preventDefault(),(v.querySelector("[cmdk-list]")??v).focus({preventScroll:!0})},k=t.value?.trim()||void 0;return r.createElement(Ne.Popover.Portal,{container:m,forceMount:i?!0:void 0},r.createElement(Z,{asChild:!0},r.createElement(Ne.Popover.Content,{"data-accent-color":h,align:"start",sideOffset:4,collisionPadding:10,"aria-label":g?void 0:R,"aria-labelledby":g,...T,forceMount:i?!0:void 0,onOpenAutoFocus:F,ref:o,className:(0,w.default)("rt-PopperContent","rt-BaseMenuContent","rt-variant-soft","rt-ComboboxContent",l)},r.createElement(po.Provider,{value:E},r.createElement(z.Command,{ref:S,loop:t.loop,shouldFilter:t.shouldFilter,filter:t.filter,label:R,defaultValue:k,className:"rt-ComboboxCommand"},p,r.createElement(ft,null))))))});Po.displayName="Combobox.Content";var bo=r.forwardRef(({className:e,startAdornment:o,endAdornment:t,placeholder:n,variant:s,value:a,onValueChange:l,...p},c)=>{let i=pe("Input"),m=r.useContext(io),d=co(),P=s??"soft",g=a??m?.value??"",T=l??m?.setValue,h=r.createElement("div",{className:(0,w.default)("rt-TextFieldRoot","rt-ComboboxInputRoot",d?.sizeClassName,`rt-variant-${P}`),"data-accent-color":d?.color},o?r.createElement("div",{className:"rt-TextFieldSlot"},o):null,r.createElement(z.Command.Input,{...p,ref:c,value:g,onValueChange:T,placeholder:n??i.searchPlaceholder,className:(0,w.default)("rt-reset","rt-TextFieldInput",e)}),t?r.createElement("div",{className:"rt-TextFieldSlot","data-side":"right"},t):null);return d?r.createElement("div",{className:"rt-ComboboxSearch"},h):h});bo.displayName="Combobox.Input";var go=r.forwardRef(({className:e,children:o,label:t,...n},s)=>{let a=co();return r.createElement("div",{className:"rt-ComboboxScrollArea"},r.createElement("div",{className:(0,w.default)("rt-BaseMenuViewport","rt-ComboboxViewport")},r.createElement(z.Command.List,{...n,label:t??a?.label,ref:s,className:(0,w.default)("rt-ComboboxList",e)},o)))});go.displayName="Combobox.List";var yo=r.forwardRef(({className:e,...o},t)=>r.createElement(z.Command.Empty,{...o,ref:t,className:(0,w.default)("rt-ComboboxEmpty",e)}));yo.displayName="Combobox.Empty";var Co=r.forwardRef(({className:e,...o},t)=>r.createElement(z.Command.Group,{...o,ref:t,className:(0,w.default)("rt-BaseMenuGroup","rt-ComboboxGroup",e)}));Co.displayName="Combobox.Group";var ho=r.forwardRef(({className:e,id:o,...t},n)=>{let s=r.useId(),a=o??s,l=r.useRef(null),p=(0,N.useComposedRefs)(n,l);return(0,N.useLayoutEffect)(()=>{let c=l.current?.closest("[cmdk-group-items]");if(!(!c||c.hasAttribute("aria-labelledby")))return c.setAttribute("aria-labelledby",a),()=>{c.getAttribute("aria-labelledby")===a&&c.removeAttribute("aria-labelledby")}},[a]),r.createElement("div",{...t,id:a,ref:p,className:(0,w.default)("rt-BaseMenuLabel","rt-ComboboxLabel",e)})});ho.displayName="Combobox.Label";var vo=r.forwardRef(({className:e,...o},t)=>r.createElement(z.Command.Separator,{...o,ref:t,className:(0,w.default)("rt-BaseMenuSeparator","rt-ComboboxSeparator",e)}));vo.displayName="Combobox.Separator";function Ee(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Ee).join(""):r.isValidElement(e)?Ee(e.props.children):""}var xo=r.forwardRef(({className:e,children:o,label:t,value:n,disabled:s,onSelect:a,keywords:l,...p},c)=>{let i=r.useContext(lo);if(!i)throw new Error("Combobox.Item must be used within Combobox.Root");let{store:m,onSelect:d,disabled:P}=i,g=n??(typeof o=="string"?o.trim():void 0),T=()=>g!==void 0&&m.get()===g,h=r.useSyncExternalStore(m.subscribe,T,T),C=(0,N.useCallbackRef)(a),x=r.useCallback(F=>{let k=n??F;d(k),C(k)},[n,d,C]),D=(t??Ee(o)).replace(/\s+/g," ").trim(),R=D?l?[D,...l]:[D]:l,E=R?R.join("\0"):"",S=s??P??!1;return r.createElement(z.Command.Item,{key:E,...p,value:n,keywords:R,"aria-checked":h,disabled:S||void 0,ref:c,onSelect:x,className:(0,w.default)("rt-reset","rt-BaseMenuItem","rt-ComboboxItem",e)},h?r.createElement("span",{className:(0,w.default)("rt-BaseMenuItemIndicator","rt-ComboboxItemIndicator")},r.createElement(he,{className:(0,w.default)("rt-BaseMenuItemIndicatorIcon","rt-ComboboxItemIndicatorIcon")})):null,r.createElement(ro,null,o))});xo.displayName="Combobox.Item";
|
|
2
2
|
//# sourceMappingURL=combobox.js.map
|