@womp/kookie-ui 0.19.0 → 0.21.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/README.md +2 -18
- package/codemods/components-0.21.py +123 -0
- package/codemods/type-0.20.py +73 -0
- package/components.css +1575 -4699
- package/dist/cjs/components/_internal/base-button.d.ts +2 -4
- 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 +3 -3
- package/dist/cjs/components/_internal/base-button.props.d.ts +1 -9
- package/dist/cjs/components/_internal/base-button.props.d.ts.map +1 -1
- package/dist/cjs/components/_internal/base-button.props.js +1 -1
- package/dist/cjs/components/_internal/base-button.props.js.map +2 -2
- package/dist/cjs/components/_internal/base-checkbox.props.js.map +1 -1
- package/dist/cjs/components/_internal/base-menu.props.d.ts +2 -2
- package/dist/cjs/components/_internal/base-menu.props.js +1 -1
- package/dist/cjs/components/_internal/base-menu.props.js.map +2 -2
- package/dist/cjs/components/_internal/base-menu.utils.d.ts.map +1 -1
- package/dist/cjs/components/_internal/base-menu.utils.js +1 -1
- package/dist/cjs/components/_internal/base-menu.utils.js.map +4 -4
- package/dist/cjs/components/_internal/base-radio.props.js.map +1 -1
- package/dist/cjs/components/_internal/base-tab-list.props.js.map +1 -1
- package/dist/cjs/components/_internal/menu-context.d.ts +5 -2
- package/dist/cjs/components/_internal/menu-context.d.ts.map +1 -1
- package/dist/cjs/components/_internal/menu-context.js +1 -1
- package/dist/cjs/components/_internal/menu-context.js.map +2 -2
- package/dist/cjs/components/_internal/pane-chrome.js +1 -1
- package/dist/cjs/components/_internal/pane-chrome.js.map +4 -4
- package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
- package/dist/cjs/components/_internal/shell-sidebar.js.map +4 -4
- 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 +3 -3
- package/dist/cjs/components/accordion.props.d.ts +0 -5
- package/dist/cjs/components/accordion.props.d.ts.map +1 -1
- package/dist/cjs/components/accordion.props.js +1 -1
- package/dist/cjs/components/accordion.props.js.map +2 -2
- package/dist/cjs/components/alert-dialog.js +1 -1
- package/dist/cjs/components/alert-dialog.js.map +4 -4
- package/dist/cjs/components/avatar.d.ts +1 -2
- package/dist/cjs/components/avatar.d.ts.map +1 -1
- package/dist/cjs/components/avatar.js +1 -1
- package/dist/cjs/components/avatar.js.map +4 -4
- package/dist/cjs/components/avatar.props.d.ts.map +1 -1
- package/dist/cjs/components/avatar.props.js.map +1 -1
- package/dist/cjs/components/blockquote.d.ts +1 -2
- package/dist/cjs/components/blockquote.d.ts.map +1 -1
- package/dist/cjs/components/blockquote.js +1 -1
- package/dist/cjs/components/blockquote.js.map +4 -4
- package/dist/cjs/components/blockquote.props.d.ts +2 -2
- package/dist/cjs/components/blockquote.props.js +1 -1
- package/dist/cjs/components/blockquote.props.js.map +2 -2
- package/dist/cjs/components/button.d.ts +23 -7
- package/dist/cjs/components/button.d.ts.map +1 -1
- package/dist/cjs/components/button.js +1 -4
- package/dist/cjs/components/button.js.map +3 -3
- package/dist/cjs/components/button.props.js +1 -1
- package/dist/cjs/components/button.props.js.map +2 -2
- package/dist/cjs/components/card.d.ts +1 -2
- package/dist/cjs/components/card.d.ts.map +1 -1
- package/dist/cjs/components/card.js +1 -1
- package/dist/cjs/components/card.js.map +4 -4
- package/dist/cjs/components/chatbar.d.ts +2 -3
- package/dist/cjs/components/chatbar.d.ts.map +1 -1
- package/dist/cjs/components/chatbar.js +1 -4
- package/dist/cjs/components/chatbar.js.map +4 -4
- package/dist/cjs/components/checkbox-group.d.ts +2 -3
- 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.js.map +1 -1
- package/dist/cjs/components/checkbox.d.ts +1 -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.map +1 -1
- package/dist/cjs/components/chip.d.ts +18 -0
- package/dist/cjs/components/chip.d.ts.map +1 -0
- package/dist/cjs/components/chip.js +2 -0
- package/dist/cjs/components/chip.js.map +7 -0
- package/dist/cjs/components/{badge.props.d.ts → chip.props.d.ts} +3 -3
- package/dist/cjs/components/chip.props.d.ts.map +1 -0
- package/dist/cjs/components/chip.props.js +2 -0
- package/dist/cjs/components/chip.props.js.map +7 -0
- package/dist/cjs/components/code.d.ts +1 -2
- package/dist/cjs/components/code.d.ts.map +1 -1
- package/dist/cjs/components/code.js +1 -1
- package/dist/cjs/components/code.js.map +4 -4
- package/dist/cjs/components/code.props.d.ts +2 -2
- package/dist/cjs/components/code.props.js +1 -1
- package/dist/cjs/components/code.props.js.map +2 -2
- package/dist/cjs/components/combobox.d.ts +1 -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/combobox.props.d.ts +1 -1
- package/dist/cjs/components/combobox.props.js +1 -1
- package/dist/cjs/components/combobox.props.js.map +2 -2
- package/dist/cjs/components/context-menu.js +1 -1
- package/dist/cjs/components/context-menu.js.map +4 -4
- package/dist/cjs/components/context-menu.props.js +1 -1
- package/dist/cjs/components/context-menu.props.js.map +2 -2
- package/dist/cjs/components/dialog.js +1 -1
- package/dist/cjs/components/dialog.js.map +4 -4
- package/dist/cjs/components/dropdown-menu.js +1 -1
- package/dist/cjs/components/dropdown-menu.js.map +4 -4
- package/dist/cjs/components/dropdown-menu.props.js +1 -1
- package/dist/cjs/components/dropdown-menu.props.js.map +2 -2
- package/dist/cjs/components/heading.d.ts +1 -2
- package/dist/cjs/components/heading.d.ts.map +1 -1
- package/dist/cjs/components/heading.js +1 -1
- package/dist/cjs/components/heading.js.map +4 -4
- package/dist/cjs/components/heading.props.d.ts +2 -2
- package/dist/cjs/components/heading.props.js +1 -1
- package/dist/cjs/components/heading.props.js.map +2 -2
- package/dist/cjs/components/index.d.ts +2 -18
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +3 -14
- package/dist/cjs/components/index.js.map +4 -4
- package/dist/cjs/components/kbd.d.ts +1 -2
- package/dist/cjs/components/kbd.d.ts.map +1 -1
- package/dist/cjs/components/kbd.js +1 -1
- package/dist/cjs/components/kbd.js.map +4 -4
- package/dist/cjs/components/kbd.props.d.ts +1 -1
- package/dist/cjs/components/kbd.props.js +1 -1
- package/dist/cjs/components/kbd.props.js.map +2 -2
- package/dist/cjs/components/link.d.ts +1 -2
- package/dist/cjs/components/link.d.ts.map +1 -1
- package/dist/cjs/components/link.js +1 -1
- package/dist/cjs/components/link.js.map +4 -4
- package/dist/cjs/components/link.props.d.ts +2 -2
- package/dist/cjs/components/link.props.js +1 -1
- package/dist/cjs/components/link.props.js.map +2 -2
- package/dist/cjs/components/message-scroller.d.ts +2 -3
- package/dist/cjs/components/message-scroller.d.ts.map +1 -1
- package/dist/cjs/components/message-scroller.js +1 -4
- package/dist/cjs/components/message-scroller.js.map +4 -4
- package/dist/cjs/components/navbar.d.ts +14 -6
- 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 +2 -2
- package/dist/cjs/components/notice.d.ts.map +1 -1
- package/dist/cjs/components/notice.js +1 -4
- package/dist/cjs/components/notice.js.map +4 -4
- package/dist/cjs/components/popover.js.map +1 -1
- package/dist/cjs/components/progress.d.ts +1 -2
- package/dist/cjs/components/progress.d.ts.map +1 -1
- package/dist/cjs/components/progress.js +1 -1
- package/dist/cjs/components/progress.js.map +4 -4
- package/dist/cjs/components/progress.props.js.map +1 -1
- package/dist/cjs/components/radio-group.d.ts +2 -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.js.map +1 -1
- package/dist/cjs/components/radio.d.ts +1 -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.map +1 -1
- package/dist/cjs/components/schemas/base-button.schema.d.ts +2 -3
- package/dist/cjs/components/schemas/base-button.schema.d.ts.map +1 -1
- package/dist/cjs/components/schemas/base-button.schema.js +1 -1
- package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
- package/dist/cjs/components/schemas/button.schema.d.ts +0 -1
- package/dist/cjs/components/schemas/button.schema.d.ts.map +1 -1
- package/dist/cjs/components/schemas/button.schema.js +1 -1
- package/dist/cjs/components/schemas/button.schema.js.map +2 -2
- package/dist/cjs/components/schemas/index.d.ts +2 -6
- package/dist/cjs/components/schemas/index.d.ts.map +1 -1
- package/dist/cjs/components/schemas/index.js +1 -1
- package/dist/cjs/components/schemas/index.js.map +4 -4
- package/dist/cjs/components/schemas/{toggle-button.schema.d.ts → toggle.schema.d.ts} +13 -38
- package/dist/cjs/components/schemas/toggle.schema.d.ts.map +1 -0
- package/dist/cjs/components/schemas/toggle.schema.js +2 -0
- package/dist/cjs/components/schemas/toggle.schema.js.map +7 -0
- package/dist/cjs/components/scroll-area.d.ts +1 -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 +4 -4
- package/dist/cjs/components/segmented-control.d.ts +1 -2
- 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 +1 -2
- package/dist/cjs/components/select.d.ts.map +1 -1
- package/dist/cjs/components/select.js +1 -1
- package/dist/cjs/components/select.js.map +4 -4
- package/dist/cjs/components/select.props.js.map +1 -1
- package/dist/cjs/components/separator.d.ts +1 -2
- package/dist/cjs/components/separator.d.ts.map +1 -1
- package/dist/cjs/components/separator.js +1 -1
- package/dist/cjs/components/separator.js.map +4 -4
- package/dist/cjs/components/separator.props.js.map +1 -1
- package/dist/cjs/components/sheet.js +1 -1
- package/dist/cjs/components/sheet.js.map +4 -4
- package/dist/cjs/components/shell.js +1 -1
- package/dist/cjs/components/shell.js.map +4 -4
- package/dist/cjs/components/sidebar.d.ts +5 -5
- package/dist/cjs/components/sidebar.d.ts.map +1 -1
- package/dist/cjs/components/sidebar.js +1 -1
- package/dist/cjs/components/sidebar.js.map +4 -4
- package/dist/cjs/components/slider.d.ts +1 -2
- 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/slider.props.js.map +1 -1
- package/dist/cjs/components/spinner.d.ts +1 -2
- package/dist/cjs/components/spinner.d.ts.map +1 -1
- package/dist/cjs/components/spinner.js +1 -1
- package/dist/cjs/components/spinner.js.map +3 -3
- package/dist/cjs/components/switch.d.ts +1 -2
- 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/switch.props.js.map +1 -1
- package/dist/cjs/components/table.d.ts +1 -2
- 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/tabs.d.ts +3 -4
- 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/tabs.props.js.map +1 -1
- package/dist/cjs/components/text-area.d.ts +1 -2
- package/dist/cjs/components/text-area.d.ts.map +1 -1
- package/dist/cjs/components/text-area.js +1 -1
- package/dist/cjs/components/text-area.js.map +4 -4
- package/dist/cjs/components/text-area.props.js.map +1 -1
- package/dist/cjs/components/text-field.d.ts +1 -2
- package/dist/cjs/components/text-field.d.ts.map +1 -1
- package/dist/cjs/components/text-field.js +2 -2
- package/dist/cjs/components/text-field.js.map +4 -4
- package/dist/cjs/components/text-field.props.js.map +1 -1
- package/dist/cjs/components/text.d.ts +1 -2
- package/dist/cjs/components/text.d.ts.map +1 -1
- package/dist/cjs/components/text.js +1 -1
- package/dist/cjs/components/text.js.map +4 -4
- package/dist/cjs/components/text.props.d.ts +2 -2
- package/dist/cjs/components/text.props.js +1 -1
- package/dist/cjs/components/text.props.js.map +2 -2
- package/dist/cjs/components/theme.js.map +1 -1
- package/dist/cjs/components/theme.props.js.map +1 -1
- package/dist/cjs/components/toggle.d.ts +35 -0
- package/dist/cjs/components/toggle.d.ts.map +1 -0
- package/dist/cjs/components/toggle.js +10 -0
- package/dist/cjs/components/toggle.js.map +7 -0
- package/dist/cjs/components/toolbar.d.ts +2 -3
- package/dist/cjs/components/toolbar.d.ts.map +1 -1
- package/dist/cjs/components/toolbar.js +1 -4
- 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/components/virtual-menu.d.ts +2 -1
- package/dist/cjs/components/virtual-menu.d.ts.map +1 -1
- package/dist/cjs/components/virtual-menu.js +1 -1
- package/dist/cjs/components/virtual-menu.js.map +2 -2
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/use-prop-synced-state.d.ts +1 -1
- package/dist/cjs/hooks/use-prop-synced-state.js.map +1 -1
- package/dist/cjs/hooks/use-toggle-state.d.ts +1 -1
- package/dist/cjs/hooks/use-toggle-state.js.map +1 -1
- package/dist/cjs/index.js +5 -16
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/props/color.prop.js.map +1 -1
- package/dist/cjs/props/emphasis.prop.js.map +1 -1
- package/dist/cjs/props/index.d.ts +1 -14
- package/dist/cjs/props/index.d.ts.map +1 -1
- package/dist/cjs/props/index.js +1 -1
- package/dist/cjs/props/index.js.map +4 -4
- package/dist/cjs/props/weight.prop.d.ts +1 -1
- package/dist/cjs/props/weight.prop.d.ts.map +1 -1
- package/dist/cjs/props/weight.prop.js +1 -1
- package/dist/cjs/props/weight.prop.js.map +2 -2
- package/dist/esm/{chunk-STMTXK7U.js → chunk-24CVW6P7.js} +2 -2
- package/dist/esm/chunk-2KZ44I6T.js +2 -0
- package/dist/esm/chunk-2KZ44I6T.js.map +7 -0
- package/dist/esm/chunk-2WSD2H23.js +2 -0
- package/dist/esm/chunk-2WSD2H23.js.map +7 -0
- package/dist/esm/chunk-36GV4H3C.js +2 -0
- package/dist/esm/chunk-36GV4H3C.js.map +7 -0
- package/dist/esm/chunk-4I4NJNYO.js +2 -0
- package/dist/esm/chunk-4I4NJNYO.js.map +7 -0
- package/dist/esm/chunk-4VBH3W2S.js +2 -0
- package/dist/esm/chunk-4ZAJVYU6.js +2 -0
- package/dist/esm/{chunk-5AHQJB6H.js.map → chunk-4ZAJVYU6.js.map} +2 -2
- package/dist/esm/{chunk-YVHRWMSZ.js → chunk-5B6JDZ3S.js} +2 -2
- package/dist/esm/chunk-5B6JDZ3S.js.map +7 -0
- package/dist/esm/{chunk-NCDOMH5I.js → chunk-5P4JTWBK.js} +2 -2
- package/dist/esm/chunk-5P4JTWBK.js.map +7 -0
- package/dist/esm/chunk-5WLSAUNJ.js +2 -0
- package/dist/esm/chunk-5WLSAUNJ.js.map +7 -0
- package/dist/esm/chunk-6WANXT2G.js +2 -0
- package/dist/esm/chunk-6WANXT2G.js.map +7 -0
- package/dist/esm/chunk-72FU5FEC.js +2 -0
- package/dist/esm/chunk-7AXEPJYF.js +2 -0
- package/dist/esm/chunk-7AXEPJYF.js.map +7 -0
- package/dist/esm/{chunk-MLXHD7YF.js → chunk-7FPLWHMT.js} +2 -2
- package/dist/esm/chunk-7MC7N4BC.js +2 -0
- package/dist/esm/chunk-7MC7N4BC.js.map +7 -0
- package/dist/esm/chunk-7MPFZIZX.js +2 -0
- package/dist/esm/chunk-7MPFZIZX.js.map +7 -0
- package/dist/esm/{chunk-YS5BZRRK.js → chunk-7OQXCYCW.js} +2 -2
- package/dist/esm/{chunk-BINUV3ME.js → chunk-7QPXLSVR.js} +2 -2
- package/dist/esm/{chunk-BINUV3ME.js.map → chunk-7QPXLSVR.js.map} +2 -2
- package/dist/esm/chunk-7XWAXYZD.js +2 -0
- package/dist/esm/chunk-7XWAXYZD.js.map +7 -0
- package/dist/esm/chunk-AYZRLA7F.js +2 -0
- package/dist/esm/{chunk-6RZVKCNG.js → chunk-BHGES72S.js} +2 -2
- package/dist/esm/chunk-BQD7XS4K.js +2 -0
- package/dist/esm/chunk-BQD7XS4K.js.map +7 -0
- package/dist/esm/{chunk-KU3LLWFU.js → chunk-CTZ467AB.js} +2 -2
- package/dist/esm/{chunk-34KVYDF6.js → chunk-CUNKWFKA.js} +1 -1
- package/dist/esm/{chunk-34KVYDF6.js.map → chunk-CUNKWFKA.js.map} +1 -1
- package/dist/esm/{chunk-Q7S5LQBQ.js → chunk-CYO6CRMQ.js} +2 -2
- package/dist/esm/chunk-D3U4MWDZ.js +1 -0
- package/dist/esm/{chunk-VLLJ7A6P.js → chunk-DCNHG6VN.js} +2 -2
- package/dist/esm/chunk-DL6F2TIU.js +2 -0
- package/dist/esm/chunk-DL6F2TIU.js.map +7 -0
- package/dist/esm/chunk-DSV3XBHM.js +2 -0
- package/dist/esm/chunk-DSV3XBHM.js.map +7 -0
- package/dist/esm/{chunk-UZQO4APP.js → chunk-EDEYYJ3Q.js} +2 -2
- package/dist/esm/chunk-EDP2TJVB.js +2 -0
- package/dist/esm/chunk-EDP2TJVB.js.map +7 -0
- package/dist/esm/chunk-EGSMLRSO.js +2 -0
- package/dist/esm/chunk-EGSMLRSO.js.map +7 -0
- package/dist/esm/{chunk-6FLLFCBU.js → chunk-ELAW7ZUG.js} +2 -2
- package/dist/esm/chunk-EOWG5SIY.js +2 -0
- package/dist/esm/chunk-EOWG5SIY.js.map +7 -0
- package/dist/esm/{chunk-MAI7FEU7.js → chunk-FSMUCDLI.js} +2 -2
- package/dist/esm/{chunk-MAI7FEU7.js.map → chunk-FSMUCDLI.js.map} +2 -2
- package/dist/esm/{chunk-B6RH4CTY.js → chunk-G46OLCM2.js} +2 -2
- package/dist/esm/{chunk-VK7RNXUO.js → chunk-GBFGUOFS.js} +1 -1
- package/dist/esm/{chunk-VK7RNXUO.js.map → chunk-GBFGUOFS.js.map} +1 -1
- package/dist/esm/{chunk-5LGWS5QS.js → chunk-GOV5I7I2.js} +2 -2
- package/dist/esm/{chunk-N77QJUTO.js → chunk-GWGQ73PU.js} +2 -2
- package/dist/esm/chunk-GWGQ73PU.js.map +7 -0
- package/dist/esm/{chunk-VSSJTPBV.js → chunk-HELY5CSU.js} +2 -2
- package/dist/esm/{chunk-UFJJTUOU.js → chunk-HGG3ULNK.js} +2 -2
- package/dist/esm/chunk-HZNOHY6O.js +2 -0
- package/dist/esm/chunk-IAC5IOPN.js +2 -0
- package/dist/esm/chunk-IAC5IOPN.js.map +7 -0
- package/dist/esm/chunk-IN6ZEGDK.js +2 -0
- package/dist/esm/chunk-IN6ZEGDK.js.map +7 -0
- package/dist/esm/chunk-IQBSUN5B.js +2 -0
- package/dist/esm/chunk-IQBSUN5B.js.map +7 -0
- package/dist/esm/{chunk-PUVZFRTQ.js → chunk-IZPDJN6O.js} +2 -2
- package/dist/esm/chunk-JMBCX5XR.js +2 -0
- package/dist/esm/chunk-JMBCX5XR.js.map +7 -0
- package/dist/esm/{chunk-KPACVWV4.js → chunk-K4BDLRCC.js} +2 -2
- package/dist/esm/chunk-K6QKUX3C.js +2 -0
- package/dist/esm/chunk-K6QKUX3C.js.map +7 -0
- package/dist/esm/{chunk-GYB7PAGB.js → chunk-K6WT5ZEA.js} +2 -2
- package/dist/esm/{chunk-CLEH57SW.js → chunk-KIYCILXL.js} +2 -2
- package/dist/esm/{chunk-ZCAI2PRH.js → chunk-KRDRQU4G.js} +2 -2
- package/dist/esm/{chunk-T5DSQKKF.js → chunk-KRZL245C.js} +2 -2
- package/dist/esm/chunk-LHYX53XA.js +2 -0
- package/dist/esm/chunk-LHYX53XA.js.map +7 -0
- package/dist/esm/{chunk-L2IIIELE.js → chunk-LNFN35ZE.js} +2 -2
- package/dist/esm/{chunk-PUQXBW2K.js → chunk-LPVDR7V3.js} +2 -2
- package/dist/esm/chunk-LVCP5WGX.js +2 -0
- package/dist/esm/{chunk-EVTNB4TB.js.map → chunk-LVCP5WGX.js.map} +2 -2
- package/dist/esm/chunk-M4M4OZTS.js +2 -0
- package/dist/esm/{chunk-PDBVZAUJ.js.map → chunk-M4M4OZTS.js.map} +2 -2
- package/dist/esm/chunk-MC3GY6ET.js +2 -0
- package/dist/esm/chunk-MC3GY6ET.js.map +7 -0
- package/dist/esm/chunk-MKY2IRPO.js +2 -0
- package/dist/esm/chunk-MKY2IRPO.js.map +7 -0
- package/dist/esm/{chunk-CR2BSCFM.js → chunk-MYO2E46Z.js} +2 -2
- package/dist/esm/{chunk-CR2BSCFM.js.map → chunk-MYO2E46Z.js.map} +2 -2
- package/dist/esm/chunk-OA2BZDKL.js +2 -0
- package/dist/esm/chunk-OA2BZDKL.js.map +7 -0
- package/dist/esm/chunk-P3WB3K2M.js +2 -0
- package/dist/esm/chunk-P3WB3K2M.js.map +7 -0
- package/dist/esm/{chunk-JUY7CBSL.js → chunk-PBFSBHBS.js} +2 -2
- package/dist/esm/chunk-PEP6MQJ2.js +2 -0
- package/dist/esm/chunk-PEP6MQJ2.js.map +7 -0
- package/dist/esm/{chunk-WAURCNAS.js → chunk-PN3RQFSU.js} +1 -1
- package/dist/esm/chunk-PN3RQFSU.js.map +7 -0
- package/dist/esm/chunk-QQVA2PJ3.js +2 -0
- package/dist/esm/chunk-QQVA2PJ3.js.map +7 -0
- package/dist/esm/{chunk-E3754NJZ.js → chunk-QZ6OCMH4.js} +2 -2
- package/dist/esm/chunk-RBTTIDON.js +2 -0
- package/dist/esm/chunk-RBTTIDON.js.map +7 -0
- package/dist/esm/chunk-RDS3AJWW.js +2 -0
- package/dist/esm/chunk-RDS3AJWW.js.map +7 -0
- package/dist/esm/{chunk-6AZV4VFW.js → chunk-RGZKWVJC.js} +2 -2
- package/dist/esm/{chunk-6AZV4VFW.js.map → chunk-RGZKWVJC.js.map} +1 -1
- package/dist/esm/chunk-T4L4QDBG.js +2 -0
- package/dist/esm/chunk-T4L4QDBG.js.map +7 -0
- package/dist/esm/chunk-TCSPZ27B.js +2 -0
- package/dist/esm/chunk-TCSPZ27B.js.map +7 -0
- package/dist/esm/chunk-TDQTMR5T.js +2 -0
- package/dist/esm/chunk-TDQTMR5T.js.map +7 -0
- package/dist/esm/{chunk-54KMG7NX.js → chunk-TKSG7KBZ.js} +2 -2
- package/dist/esm/{chunk-WDDO73O5.js → chunk-UEHCCJYY.js} +2 -2
- package/dist/esm/chunk-UMIDPKFZ.js +2 -0
- package/dist/esm/chunk-UMIDPKFZ.js.map +7 -0
- package/dist/esm/chunk-UW5IJ64A.js +5 -0
- package/dist/esm/chunk-UW5IJ64A.js.map +7 -0
- package/dist/esm/{chunk-KSZOVI57.js → chunk-VCU6VCPH.js} +2 -2
- package/dist/esm/chunk-VCU6VCPH.js.map +7 -0
- package/dist/esm/chunk-VJOJGAGA.js +2 -0
- package/dist/esm/chunk-VJOJGAGA.js.map +7 -0
- package/dist/esm/chunk-VNONKPH7.js +2 -0
- package/dist/esm/chunk-VNONKPH7.js.map +7 -0
- package/dist/esm/chunk-VOEZ5HJL.js +2 -0
- package/dist/esm/chunk-VOEZ5HJL.js.map +7 -0
- package/dist/esm/chunk-W7YHNMAO.js +2 -0
- package/dist/esm/chunk-W7YHNMAO.js.map +7 -0
- package/dist/esm/chunk-WQT6UULR.js +2 -0
- package/dist/esm/chunk-WQT6UULR.js.map +7 -0
- package/dist/esm/chunk-WW7WTPM6.js +2 -0
- package/dist/esm/chunk-WW7WTPM6.js.map +7 -0
- package/dist/esm/{chunk-ZWZGUBL4.js → chunk-WWF3IU3P.js} +1 -1
- package/dist/esm/chunk-WWF3IU3P.js.map +7 -0
- package/dist/esm/chunk-XEW4BRIL.js +2 -0
- package/dist/esm/chunk-XEW4BRIL.js.map +7 -0
- package/dist/esm/chunk-YB7CENHH.js +2 -0
- package/dist/esm/chunk-YB7CENHH.js.map +7 -0
- package/dist/esm/chunk-YEIZ43KW.js +2 -0
- package/dist/esm/chunk-YEIZ43KW.js.map +7 -0
- package/dist/esm/chunk-ZCWDURKJ.js +2 -0
- package/dist/esm/chunk-ZCWDURKJ.js.map +7 -0
- package/dist/esm/components/_internal/base-button.d.ts +2 -4
- 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-button.props.d.ts +1 -9
- package/dist/esm/components/_internal/base-button.props.d.ts.map +1 -1
- package/dist/esm/components/_internal/base-button.props.js +1 -1
- package/dist/esm/components/_internal/base-checkbox.props.js +1 -1
- package/dist/esm/components/_internal/base-menu.props.d.ts +2 -2
- package/dist/esm/components/_internal/base-menu.props.js +1 -1
- package/dist/esm/components/_internal/base-menu.utils.d.ts.map +1 -1
- package/dist/esm/components/_internal/base-menu.utils.js +1 -1
- package/dist/esm/components/_internal/base-radio.props.js +1 -1
- package/dist/esm/components/_internal/base-tab-list.props.js +1 -1
- package/dist/esm/components/_internal/menu-context.d.ts +5 -2
- package/dist/esm/components/_internal/menu-context.d.ts.map +1 -1
- package/dist/esm/components/_internal/menu-context.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/accordion.props.d.ts +0 -5
- package/dist/esm/components/accordion.props.d.ts.map +1 -1
- package/dist/esm/components/accordion.props.js +1 -1
- package/dist/esm/components/alert-dialog.js +1 -1
- package/dist/esm/components/avatar.d.ts +1 -2
- package/dist/esm/components/avatar.d.ts.map +1 -1
- package/dist/esm/components/avatar.js +1 -1
- package/dist/esm/components/avatar.props.d.ts.map +1 -1
- package/dist/esm/components/avatar.props.js +1 -1
- package/dist/esm/components/blockquote.d.ts +1 -2
- package/dist/esm/components/blockquote.d.ts.map +1 -1
- package/dist/esm/components/blockquote.js +1 -1
- package/dist/esm/components/blockquote.props.d.ts +2 -2
- package/dist/esm/components/blockquote.props.js +1 -1
- package/dist/esm/components/box.js +1 -1
- package/dist/esm/components/button.d.ts +23 -7
- package/dist/esm/components/button.d.ts.map +1 -1
- package/dist/esm/components/button.js +1 -1
- package/dist/esm/components/button.props.js +1 -1
- package/dist/esm/components/card.d.ts +1 -2
- package/dist/esm/components/card.d.ts.map +1 -1
- package/dist/esm/components/card.js +1 -1
- package/dist/esm/components/chatbar.d.ts +2 -3
- package/dist/esm/components/chatbar.d.ts.map +1 -1
- package/dist/esm/components/chatbar.js +1 -1
- package/dist/esm/components/checkbox-group.d.ts +2 -3
- 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.js +1 -1
- package/dist/esm/components/checkbox.d.ts +1 -2
- 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/chip.d.ts +18 -0
- package/dist/esm/components/chip.d.ts.map +1 -0
- package/dist/esm/components/chip.js +2 -0
- package/dist/esm/components/{badge.props.d.ts → chip.props.d.ts} +3 -3
- package/dist/esm/components/chip.props.d.ts.map +1 -0
- package/dist/esm/components/chip.props.js +2 -0
- package/dist/esm/components/code.d.ts +1 -2
- package/dist/esm/components/code.d.ts.map +1 -1
- package/dist/esm/components/code.js +1 -1
- package/dist/esm/components/code.props.d.ts +2 -2
- package/dist/esm/components/code.props.js +1 -1
- package/dist/esm/components/combobox.d.ts +1 -2
- package/dist/esm/components/combobox.d.ts.map +1 -1
- package/dist/esm/components/combobox.js +1 -1
- package/dist/esm/components/combobox.props.d.ts +1 -1
- package/dist/esm/components/combobox.props.js +1 -1
- package/dist/esm/components/context-menu.js +1 -1
- package/dist/esm/components/context-menu.props.js +1 -1
- package/dist/esm/components/dialog.js +1 -1
- package/dist/esm/components/dropdown-menu.js +1 -1
- package/dist/esm/components/dropdown-menu.props.js +1 -1
- package/dist/esm/components/flex.js +1 -1
- package/dist/esm/components/grid.js +1 -1
- package/dist/esm/components/heading.d.ts +1 -2
- package/dist/esm/components/heading.d.ts.map +1 -1
- package/dist/esm/components/heading.js +1 -1
- package/dist/esm/components/heading.props.d.ts +2 -2
- package/dist/esm/components/heading.props.js +1 -1
- package/dist/esm/components/index.d.ts +2 -18
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/kbd.d.ts +1 -2
- package/dist/esm/components/kbd.d.ts.map +1 -1
- package/dist/esm/components/kbd.js +1 -1
- package/dist/esm/components/kbd.props.d.ts +1 -1
- package/dist/esm/components/kbd.props.js +1 -1
- package/dist/esm/components/link.d.ts +1 -2
- package/dist/esm/components/link.d.ts.map +1 -1
- package/dist/esm/components/link.js +1 -1
- package/dist/esm/components/link.props.d.ts +2 -2
- package/dist/esm/components/link.props.js +1 -1
- package/dist/esm/components/message-scroller.d.ts +2 -3
- package/dist/esm/components/message-scroller.d.ts.map +1 -1
- package/dist/esm/components/message-scroller.js +1 -1
- package/dist/esm/components/navbar.d.ts +14 -6
- 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.map +1 -1
- package/dist/esm/components/notice.js +1 -1
- package/dist/esm/components/popover.js +1 -1
- package/dist/esm/components/progress.d.ts +1 -2
- package/dist/esm/components/progress.d.ts.map +1 -1
- package/dist/esm/components/progress.js +1 -1
- package/dist/esm/components/progress.props.js +1 -1
- package/dist/esm/components/radio-group.d.ts +2 -3
- 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.js +1 -1
- package/dist/esm/components/radio.d.ts +1 -2
- 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/schemas/base-button.schema.d.ts +2 -3
- package/dist/esm/components/schemas/base-button.schema.d.ts.map +1 -1
- package/dist/esm/components/schemas/base-button.schema.js +1 -1
- package/dist/esm/components/schemas/button.schema.d.ts +0 -1
- package/dist/esm/components/schemas/button.schema.d.ts.map +1 -1
- package/dist/esm/components/schemas/button.schema.js +1 -1
- package/dist/esm/components/schemas/index.d.ts +2 -6
- package/dist/esm/components/schemas/index.d.ts.map +1 -1
- package/dist/esm/components/schemas/index.js +1 -1
- package/dist/esm/components/schemas/index.js.map +2 -2
- package/dist/esm/components/schemas/{toggle-button.schema.d.ts → toggle.schema.d.ts} +13 -38
- package/dist/esm/components/schemas/toggle.schema.d.ts.map +1 -0
- package/dist/esm/components/schemas/toggle.schema.js +2 -0
- package/dist/esm/components/scroll-area.d.ts +1 -2
- package/dist/esm/components/scroll-area.d.ts.map +1 -1
- package/dist/esm/components/scroll-area.js +1 -1
- package/dist/esm/components/segmented-control.d.ts +1 -2
- 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 +1 -2
- package/dist/esm/components/select.d.ts.map +1 -1
- package/dist/esm/components/select.js +1 -1
- package/dist/esm/components/select.props.js +1 -1
- package/dist/esm/components/separator.d.ts +1 -2
- package/dist/esm/components/separator.d.ts.map +1 -1
- package/dist/esm/components/separator.js +1 -1
- package/dist/esm/components/separator.props.js +1 -1
- package/dist/esm/components/sheet.js +1 -1
- package/dist/esm/components/shell.js +1 -1
- package/dist/esm/components/sidebar.d.ts +5 -5
- package/dist/esm/components/sidebar.d.ts.map +1 -1
- package/dist/esm/components/sidebar.js +1 -1
- package/dist/esm/components/slider.d.ts +1 -2
- package/dist/esm/components/slider.d.ts.map +1 -1
- package/dist/esm/components/slider.js +1 -1
- package/dist/esm/components/slider.props.js +1 -1
- package/dist/esm/components/spinner.d.ts +1 -2
- package/dist/esm/components/spinner.d.ts.map +1 -1
- package/dist/esm/components/spinner.js +1 -1
- package/dist/esm/components/switch.d.ts +1 -2
- package/dist/esm/components/switch.d.ts.map +1 -1
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/switch.props.js +1 -1
- package/dist/esm/components/table.d.ts +1 -2
- package/dist/esm/components/table.d.ts.map +1 -1
- package/dist/esm/components/table.js +1 -1
- package/dist/esm/components/tabs.d.ts +3 -4
- package/dist/esm/components/tabs.d.ts.map +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/esm/components/tabs.props.js +1 -1
- package/dist/esm/components/text-area.d.ts +1 -2
- 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-area.props.js +1 -1
- package/dist/esm/components/text-field.d.ts +1 -2
- package/dist/esm/components/text-field.d.ts.map +1 -1
- package/dist/esm/components/text-field.js +1 -1
- package/dist/esm/components/text-field.props.js +1 -1
- package/dist/esm/components/text.d.ts +1 -2
- package/dist/esm/components/text.d.ts.map +1 -1
- package/dist/esm/components/text.js +1 -1
- package/dist/esm/components/text.props.d.ts +2 -2
- package/dist/esm/components/text.props.js +1 -1
- package/dist/esm/components/theme.js +1 -1
- package/dist/esm/components/theme.props.js +1 -1
- package/dist/esm/components/toggle.d.ts +35 -0
- package/dist/esm/components/toggle.d.ts.map +1 -0
- package/dist/esm/components/toggle.js +2 -0
- package/dist/esm/components/toolbar.d.ts +2 -3
- 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/components/virtual-menu.d.ts +2 -1
- package/dist/esm/components/virtual-menu.d.ts.map +1 -1
- package/dist/esm/components/virtual-menu.js +1 -1
- package/dist/esm/helpers/extract-props.js +1 -1
- package/dist/esm/helpers/get-margin-styles.js +1 -1
- package/dist/esm/helpers/get-responsive-styles.js +1 -1
- package/dist/esm/helpers/index.js +1 -1
- package/dist/esm/helpers/inert.js +1 -1
- package/dist/esm/helpers/inert.js.map +4 -4
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/hooks/use-prop-synced-state.d.ts +1 -1
- package/dist/esm/hooks/use-prop-synced-state.js +1 -1
- package/dist/esm/hooks/use-toggle-state.d.ts +1 -1
- package/dist/esm/hooks/use-toggle-state.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/props/color.prop.js +1 -1
- package/dist/esm/props/emphasis.prop.js +1 -1
- package/dist/esm/props/index.d.ts +1 -14
- package/dist/esm/props/index.d.ts.map +1 -1
- package/dist/esm/props/index.js +1 -1
- package/dist/esm/props/weight.prop.d.ts +1 -1
- package/dist/esm/props/weight.prop.d.ts.map +1 -1
- package/dist/esm/props/weight.prop.js +1 -1
- package/layout/components.css +0 -223
- package/layout.css +0 -221
- package/package.json +1 -1
- package/schemas/base-button.json +0 -5
- package/schemas/button.json +0 -5
- package/schemas/index.json +14 -629
- package/schemas/schemas.d.ts +2 -6
- package/schemas/{toggle-button.json → toggle.json} +4 -9
- package/src/components/_internal/base-button.css +2 -36
- package/src/components/_internal/base-button.props.ts +1 -7
- package/src/components/_internal/base-button.tsx +3 -9
- package/src/components/_internal/base-checkbox.css +3 -8
- package/src/components/_internal/base-menu.css +128 -118
- package/src/components/_internal/base-menu.props.ts +1 -1
- package/src/components/_internal/base-menu.utils.tsx +2 -1
- package/src/components/_internal/base-radio.css +2 -7
- package/src/components/_internal/base-sidebar-menu.css +11 -40
- package/src/components/_internal/base-tab-list.css +3 -4
- package/src/components/_internal/menu-context.tsx +9 -4
- package/src/components/accordion.css +0 -33
- package/src/components/accordion.props.tsx +0 -3
- package/src/components/accordion.tsx +1 -2
- package/src/components/alert-dialog.tsx +1 -1
- package/src/components/avatar.css +3 -3
- package/src/components/avatar.tsx +2 -4
- package/src/components/blockquote.props.tsx +1 -1
- package/src/components/blockquote.tsx +0 -2
- package/src/components/button.css +4 -3
- package/src/components/button.tsx +34 -19
- package/src/components/card.tsx +2 -4
- package/src/components/chatbar.css +2 -2
- package/src/components/chatbar.tsx +8 -7
- package/src/components/checkbox-group.tsx +2 -7
- package/src/components/checkbox.tsx +1 -4
- package/src/components/{badge.css → chip.css} +12 -12
- package/src/components/{badge.props.tsx → chip.props.tsx} +2 -2
- package/src/components/{badge.tsx → chip.tsx} +20 -23
- package/src/components/code.css +10 -32
- package/src/components/code.props.tsx +1 -1
- package/src/components/code.tsx +0 -4
- package/src/components/combobox.css +2 -11
- package/src/components/combobox.props.tsx +1 -1
- package/src/components/combobox.tsx +2 -4
- package/src/components/dialog.tsx +1 -1
- package/src/components/dropdown-menu.css +4 -4
- package/src/components/heading.css +9 -29
- package/src/components/heading.props.tsx +1 -1
- package/src/components/heading.tsx +2 -5
- package/src/components/index.css +2 -15
- package/src/components/index.tsx +2 -23
- package/src/components/kbd.css +1 -29
- package/src/components/kbd.props.tsx +1 -1
- package/src/components/kbd.tsx +2 -4
- package/src/components/layout.css +0 -2
- package/src/components/link.props.tsx +1 -1
- package/src/components/link.tsx +1 -2
- package/src/components/message-scroller.tsx +6 -5
- package/src/components/navbar.tsx +7 -3
- package/src/components/notice.css +10 -13
- package/src/components/notice.tsx +2 -3
- package/src/components/progress.tsx +1 -5
- package/src/components/radio-group.tsx +3 -8
- package/src/components/radio.tsx +1 -4
- package/src/components/schemas/base-button.schema.ts +2 -13
- package/src/components/schemas/index.ts +3 -11
- package/src/components/schemas/{toggle-button.schema.ts → toggle.schema.ts} +18 -38
- package/src/components/scroll-area.tsx +3 -11
- package/src/components/segmented-control.css +8 -5
- package/src/components/segmented-control.tsx +2 -5
- package/src/components/select.css +19 -134
- package/src/components/select.tsx +0 -4
- package/src/components/separator.tsx +2 -4
- package/src/components/sidebar.css +92 -133
- package/src/components/sidebar.tsx +16 -18
- package/src/components/slider.css +3 -4
- package/src/components/slider.tsx +0 -4
- package/src/components/spinner.tsx +1 -5
- package/src/components/switch.tsx +0 -4
- package/src/components/table.css +24 -11
- package/src/components/table.tsx +1 -5
- package/src/components/tabs.tsx +2 -8
- package/src/components/text-area.css +2 -1
- package/src/components/text-area.tsx +1 -4
- package/src/components/text-field.css +4 -2
- package/src/components/text-field.tsx +2 -4
- package/src/components/text.css +0 -20
- package/src/components/text.props.tsx +1 -1
- package/src/components/text.tsx +2 -5
- package/src/components/theme.tsx +1 -1
- package/src/components/toggle.tsx +96 -0
- package/src/components/toolbar.tsx +6 -12
- package/src/components/virtual-menu.tsx +3 -1
- package/src/hooks/use-prop-synced-state.ts +1 -1
- package/src/hooks/use-toggle-state.ts +1 -1
- package/src/props/color.prop.ts +1 -1
- package/src/props/emphasis.prop.ts +2 -2
- package/src/props/index.ts +1 -14
- package/src/props/weight.prop.ts +2 -1
- package/src/styles/tokens/color.css +1 -1
- package/src/styles/tokens/radius.css +12 -0
- package/src/styles/tokens/typography.css +21 -49
- package/src/styles/utilities/font-weight.css +0 -20
- package/styles.css +1750 -4986
- package/tokens/base.css +23 -45
- package/tokens.css +23 -45
- package/utilities.css +0 -90
- package/dist/cjs/components/aspect-ratio.d.ts +0 -4
- package/dist/cjs/components/aspect-ratio.d.ts.map +0 -1
- package/dist/cjs/components/aspect-ratio.js +0 -2
- package/dist/cjs/components/aspect-ratio.js.map +0 -7
- package/dist/cjs/components/badge.d.ts +0 -19
- package/dist/cjs/components/badge.d.ts.map +0 -1
- package/dist/cjs/components/badge.js +0 -2
- package/dist/cjs/components/badge.js.map +0 -7
- package/dist/cjs/components/badge.props.d.ts.map +0 -1
- package/dist/cjs/components/badge.props.js +0 -2
- package/dist/cjs/components/badge.props.js.map +0 -7
- package/dist/cjs/components/checkbox-cards.d.ts +0 -19
- package/dist/cjs/components/checkbox-cards.d.ts.map +0 -1
- package/dist/cjs/components/checkbox-cards.js +0 -2
- package/dist/cjs/components/checkbox-cards.js.map +0 -7
- package/dist/cjs/components/checkbox-cards.props.d.ts +0 -43
- package/dist/cjs/components/checkbox-cards.props.d.ts.map +0 -1
- package/dist/cjs/components/checkbox-cards.props.js +0 -2
- package/dist/cjs/components/checkbox-cards.props.js.map +0 -7
- package/dist/cjs/components/container.d.ts +0 -11
- package/dist/cjs/components/container.d.ts.map +0 -1
- package/dist/cjs/components/container.js +0 -2
- package/dist/cjs/components/container.js.map +0 -7
- package/dist/cjs/components/container.props.d.ts +0 -68
- package/dist/cjs/components/container.props.d.ts.map +0 -1
- package/dist/cjs/components/container.props.js +0 -2
- package/dist/cjs/components/container.props.js.map +0 -7
- package/dist/cjs/components/data-list.d.ts +0 -23
- package/dist/cjs/components/data-list.d.ts.map +0 -1
- package/dist/cjs/components/data-list.js +0 -2
- package/dist/cjs/components/data-list.js.map +0 -7
- package/dist/cjs/components/data-list.props.d.ts +0 -63
- package/dist/cjs/components/data-list.props.d.ts.map +0 -1
- package/dist/cjs/components/data-list.props.js +0 -2
- package/dist/cjs/components/data-list.props.js.map +0 -7
- package/dist/cjs/components/em.d.ts +0 -11
- package/dist/cjs/components/em.d.ts.map +0 -1
- package/dist/cjs/components/em.js +0 -2
- package/dist/cjs/components/em.js.map +0 -7
- package/dist/cjs/components/em.props.d.ts +0 -17
- package/dist/cjs/components/em.props.d.ts.map +0 -1
- package/dist/cjs/components/em.props.js +0 -2
- package/dist/cjs/components/em.props.js.map +0 -7
- package/dist/cjs/components/hover-card.d.ts +0 -17
- package/dist/cjs/components/hover-card.d.ts.map +0 -1
- package/dist/cjs/components/hover-card.js +0 -2
- package/dist/cjs/components/hover-card.js.map +0 -7
- package/dist/cjs/components/hover-card.props.d.ts +0 -57
- package/dist/cjs/components/hover-card.props.d.ts.map +0 -1
- package/dist/cjs/components/hover-card.props.js +0 -2
- package/dist/cjs/components/hover-card.props.js.map +0 -7
- package/dist/cjs/components/icon-button.d.ts +0 -108
- package/dist/cjs/components/icon-button.d.ts.map +0 -1
- package/dist/cjs/components/icon-button.js +0 -5
- package/dist/cjs/components/icon-button.js.map +0 -7
- package/dist/cjs/components/icon-button.props.d.ts +0 -2
- package/dist/cjs/components/icon-button.props.d.ts.map +0 -1
- package/dist/cjs/components/icon-button.props.js +0 -2
- package/dist/cjs/components/icon-button.props.js.map +0 -7
- package/dist/cjs/components/image.d.ts +0 -96
- package/dist/cjs/components/image.d.ts.map +0 -1
- package/dist/cjs/components/image.js +0 -2
- package/dist/cjs/components/image.js.map +0 -7
- package/dist/cjs/components/image.props.d.ts +0 -147
- package/dist/cjs/components/image.props.d.ts.map +0 -1
- package/dist/cjs/components/image.props.js +0 -2
- package/dist/cjs/components/image.props.js.map +0 -7
- package/dist/cjs/components/quote.d.ts +0 -11
- package/dist/cjs/components/quote.d.ts.map +0 -1
- package/dist/cjs/components/quote.js +0 -2
- package/dist/cjs/components/quote.js.map +0 -7
- package/dist/cjs/components/quote.props.d.ts +0 -17
- package/dist/cjs/components/quote.props.d.ts.map +0 -1
- package/dist/cjs/components/quote.props.js +0 -2
- package/dist/cjs/components/quote.props.js.map +0 -7
- package/dist/cjs/components/radio-cards.d.ts +0 -16
- package/dist/cjs/components/radio-cards.d.ts.map +0 -1
- package/dist/cjs/components/radio-cards.js +0 -2
- package/dist/cjs/components/radio-cards.js.map +0 -7
- package/dist/cjs/components/radio-cards.props.d.ts +0 -43
- package/dist/cjs/components/radio-cards.props.d.ts.map +0 -1
- package/dist/cjs/components/radio-cards.props.js +0 -2
- package/dist/cjs/components/radio-cards.props.js.map +0 -7
- package/dist/cjs/components/schemas/icon-button.schema.d.ts +0 -201
- package/dist/cjs/components/schemas/icon-button.schema.d.ts.map +0 -1
- package/dist/cjs/components/schemas/icon-button.schema.js +0 -2
- package/dist/cjs/components/schemas/icon-button.schema.js.map +0 -7
- package/dist/cjs/components/schemas/toggle-button.schema.d.ts.map +0 -1
- package/dist/cjs/components/schemas/toggle-button.schema.js +0 -2
- package/dist/cjs/components/schemas/toggle-button.schema.js.map +0 -7
- package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts +0 -211
- package/dist/cjs/components/schemas/toggle-icon-button.schema.d.ts.map +0 -1
- package/dist/cjs/components/schemas/toggle-icon-button.schema.js +0 -2
- package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +0 -7
- package/dist/cjs/components/section.d.ts +0 -11
- package/dist/cjs/components/section.d.ts.map +0 -1
- package/dist/cjs/components/section.js +0 -2
- package/dist/cjs/components/section.js.map +0 -7
- package/dist/cjs/components/section.props.d.ts +0 -52
- package/dist/cjs/components/section.props.d.ts.map +0 -1
- package/dist/cjs/components/section.props.js +0 -2
- package/dist/cjs/components/section.props.js.map +0 -7
- package/dist/cjs/components/skeleton.d.ts +0 -12
- package/dist/cjs/components/skeleton.d.ts.map +0 -1
- package/dist/cjs/components/skeleton.js +0 -2
- package/dist/cjs/components/skeleton.js.map +0 -7
- package/dist/cjs/components/skeleton.props.d.ts +0 -44
- package/dist/cjs/components/skeleton.props.d.ts.map +0 -1
- package/dist/cjs/components/skeleton.props.js +0 -2
- package/dist/cjs/components/skeleton.props.js.map +0 -7
- package/dist/cjs/components/strong.d.ts +0 -11
- package/dist/cjs/components/strong.d.ts.map +0 -1
- package/dist/cjs/components/strong.js +0 -2
- package/dist/cjs/components/strong.js.map +0 -7
- package/dist/cjs/components/strong.props.d.ts +0 -17
- package/dist/cjs/components/strong.props.d.ts.map +0 -1
- package/dist/cjs/components/strong.props.js +0 -2
- package/dist/cjs/components/strong.props.js.map +0 -7
- package/dist/cjs/components/tab-nav.d.ts +0 -19
- package/dist/cjs/components/tab-nav.d.ts.map +0 -1
- package/dist/cjs/components/tab-nav.js +0 -2
- package/dist/cjs/components/tab-nav.js.map +0 -7
- package/dist/cjs/components/tab-nav.props.d.ts +0 -12
- package/dist/cjs/components/tab-nav.props.d.ts.map +0 -1
- package/dist/cjs/components/tab-nav.props.js +0 -2
- package/dist/cjs/components/tab-nav.props.js.map +0 -7
- package/dist/cjs/components/theme-panel.d.ts +0 -25
- package/dist/cjs/components/theme-panel.d.ts.map +0 -1
- package/dist/cjs/components/theme-panel.js +0 -13
- package/dist/cjs/components/theme-panel.js.map +0 -7
- package/dist/cjs/components/toggle-button.d.ts +0 -63
- package/dist/cjs/components/toggle-button.d.ts.map +0 -1
- package/dist/cjs/components/toggle-button.js +0 -13
- package/dist/cjs/components/toggle-button.js.map +0 -7
- package/dist/cjs/components/toggle-icon-button.d.ts +0 -109
- package/dist/cjs/components/toggle-icon-button.d.ts.map +0 -1
- package/dist/cjs/components/toggle-icon-button.js +0 -13
- package/dist/cjs/components/toggle-icon-button.js.map +0 -7
- package/dist/esm/chunk-2XQECQF2.js +0 -2
- package/dist/esm/chunk-2XQECQF2.js.map +0 -7
- package/dist/esm/chunk-32ATKZAP.js +0 -2
- package/dist/esm/chunk-32ATKZAP.js.map +0 -7
- package/dist/esm/chunk-42LDZ7L5.js +0 -2
- package/dist/esm/chunk-42LDZ7L5.js.map +0 -7
- package/dist/esm/chunk-43A5GUSI.js +0 -2
- package/dist/esm/chunk-43A5GUSI.js.map +0 -7
- package/dist/esm/chunk-4JQZUQY7.js +0 -2
- package/dist/esm/chunk-4JQZUQY7.js.map +0 -7
- package/dist/esm/chunk-534LGOWC.js +0 -2
- package/dist/esm/chunk-534LGOWC.js.map +0 -7
- package/dist/esm/chunk-5AHQJB6H.js +0 -2
- package/dist/esm/chunk-5UU2IMGX.js +0 -2
- package/dist/esm/chunk-5UU2IMGX.js.map +0 -7
- package/dist/esm/chunk-63ASTOS2.js +0 -2
- package/dist/esm/chunk-63ASTOS2.js.map +0 -7
- package/dist/esm/chunk-6XNQ5XD3.js +0 -10
- package/dist/esm/chunk-6XNQ5XD3.js.map +0 -7
- package/dist/esm/chunk-7FC7HF76.js +0 -2
- package/dist/esm/chunk-7FC7HF76.js.map +0 -7
- package/dist/esm/chunk-7KIKAEI7.js +0 -2
- package/dist/esm/chunk-7KIKAEI7.js.map +0 -7
- package/dist/esm/chunk-7SS6EIE5.js +0 -5
- package/dist/esm/chunk-7SS6EIE5.js.map +0 -7
- package/dist/esm/chunk-7UV4FYYL.js +0 -2
- package/dist/esm/chunk-7UV4FYYL.js.map +0 -7
- package/dist/esm/chunk-ABQHBDM4.js +0 -2
- package/dist/esm/chunk-ABQHBDM4.js.map +0 -7
- package/dist/esm/chunk-ABS275QZ.js +0 -2
- package/dist/esm/chunk-AI6UQ5VD.js +0 -2
- package/dist/esm/chunk-AI6UQ5VD.js.map +0 -7
- package/dist/esm/chunk-AUV6B4AH.js +0 -2
- package/dist/esm/chunk-AUV6B4AH.js.map +0 -7
- package/dist/esm/chunk-B72RMGWZ.js +0 -2
- package/dist/esm/chunk-B72RMGWZ.js.map +0 -7
- package/dist/esm/chunk-BQS6XXJR.js +0 -2
- package/dist/esm/chunk-BQS6XXJR.js.map +0 -7
- package/dist/esm/chunk-BUBV3C6C.js +0 -2
- package/dist/esm/chunk-BUBV3C6C.js.map +0 -7
- package/dist/esm/chunk-CC4GNSKL.js +0 -2
- package/dist/esm/chunk-CC4GNSKL.js.map +0 -7
- package/dist/esm/chunk-D2ZHYCTG.js +0 -2
- package/dist/esm/chunk-D2ZHYCTG.js.map +0 -7
- package/dist/esm/chunk-DIR22XIX.js +0 -2
- package/dist/esm/chunk-DIR22XIX.js.map +0 -7
- package/dist/esm/chunk-DMWLY6ZP.js +0 -2
- package/dist/esm/chunk-E453PYTG.js +0 -2
- package/dist/esm/chunk-E453PYTG.js.map +0 -7
- package/dist/esm/chunk-EUSKAXHP.js +0 -2
- package/dist/esm/chunk-EUSKAXHP.js.map +0 -7
- package/dist/esm/chunk-EVTNB4TB.js +0 -2
- package/dist/esm/chunk-F2UUKVBM.js +0 -1
- package/dist/esm/chunk-FD2TR343.js +0 -2
- package/dist/esm/chunk-FD2TR343.js.map +0 -7
- package/dist/esm/chunk-FNRKTMNN.js +0 -2
- package/dist/esm/chunk-FNRKTMNN.js.map +0 -7
- package/dist/esm/chunk-FSKZAL5H.js +0 -2
- package/dist/esm/chunk-FSKZAL5H.js.map +0 -7
- package/dist/esm/chunk-FTGD2SZ6.js +0 -2
- package/dist/esm/chunk-FTGD2SZ6.js.map +0 -7
- package/dist/esm/chunk-G3U6OHVA.js +0 -2
- package/dist/esm/chunk-G3U6OHVA.js.map +0 -7
- package/dist/esm/chunk-G6PO4QKW.js +0 -2
- package/dist/esm/chunk-G6PO4QKW.js.map +0 -7
- package/dist/esm/chunk-GFOSP3PZ.js +0 -2
- package/dist/esm/chunk-GFOSP3PZ.js.map +0 -7
- package/dist/esm/chunk-GIIMBBVM.js +0 -2
- package/dist/esm/chunk-GIIMBBVM.js.map +0 -7
- package/dist/esm/chunk-GLERJXVS.js +0 -2
- package/dist/esm/chunk-GLERJXVS.js.map +0 -7
- package/dist/esm/chunk-GPVPXAUC.js +0 -2
- package/dist/esm/chunk-GPVPXAUC.js.map +0 -7
- package/dist/esm/chunk-GYNRAVCL.js +0 -5
- package/dist/esm/chunk-GYNRAVCL.js.map +0 -7
- package/dist/esm/chunk-HT5EFJA3.js +0 -2
- package/dist/esm/chunk-HT5EFJA3.js.map +0 -7
- package/dist/esm/chunk-IBF5U4QW.js +0 -2
- package/dist/esm/chunk-IBF5U4QW.js.map +0 -7
- package/dist/esm/chunk-IXNJFV4O.js +0 -2
- package/dist/esm/chunk-IXNJFV4O.js.map +0 -7
- package/dist/esm/chunk-JBC6DT2X.js +0 -2
- package/dist/esm/chunk-JBC6DT2X.js.map +0 -7
- package/dist/esm/chunk-JQURG6CB.js +0 -2
- package/dist/esm/chunk-JQURG6CB.js.map +0 -7
- package/dist/esm/chunk-JRIBL4WJ.js +0 -2
- package/dist/esm/chunk-JRIBL4WJ.js.map +0 -7
- package/dist/esm/chunk-JZSXHYUU.js +0 -2
- package/dist/esm/chunk-JZSXHYUU.js.map +0 -7
- package/dist/esm/chunk-K6Y2SM5N.js +0 -2
- package/dist/esm/chunk-K6Y2SM5N.js.map +0 -7
- package/dist/esm/chunk-KDKL3HXD.js +0 -2
- package/dist/esm/chunk-KDKL3HXD.js.map +0 -7
- package/dist/esm/chunk-KRPEEM4C.js +0 -2
- package/dist/esm/chunk-KRPEEM4C.js.map +0 -7
- package/dist/esm/chunk-KSZOVI57.js.map +0 -7
- package/dist/esm/chunk-L6UXAITB.js +0 -2
- package/dist/esm/chunk-L6UXAITB.js.map +0 -7
- package/dist/esm/chunk-LFUPGIPA.js +0 -2
- package/dist/esm/chunk-LFUPGIPA.js.map +0 -7
- package/dist/esm/chunk-MCQCG6AS.js +0 -2
- package/dist/esm/chunk-MCQCG6AS.js.map +0 -7
- package/dist/esm/chunk-MZR6YBE7.js +0 -2
- package/dist/esm/chunk-MZR6YBE7.js.map +0 -7
- package/dist/esm/chunk-N5OSP3PU.js +0 -2
- package/dist/esm/chunk-N77QJUTO.js.map +0 -7
- package/dist/esm/chunk-NCDOMH5I.js.map +0 -7
- package/dist/esm/chunk-NETIWKIR.js +0 -2
- package/dist/esm/chunk-NETIWKIR.js.map +0 -7
- package/dist/esm/chunk-NIX6Z3JG.js +0 -2
- package/dist/esm/chunk-NIX6Z3JG.js.map +0 -7
- package/dist/esm/chunk-OMYAVTX6.js +0 -2
- package/dist/esm/chunk-OMYAVTX6.js.map +0 -7
- package/dist/esm/chunk-OXYHRNJA.js +0 -2
- package/dist/esm/chunk-PDBVZAUJ.js +0 -2
- package/dist/esm/chunk-PIMNQEDG.js +0 -2
- package/dist/esm/chunk-PIMNQEDG.js.map +0 -7
- package/dist/esm/chunk-PPNWGWN3.js +0 -2
- package/dist/esm/chunk-PPNWGWN3.js.map +0 -7
- package/dist/esm/chunk-Q5LPCJXN.js +0 -2
- package/dist/esm/chunk-Q5LPCJXN.js.map +0 -7
- package/dist/esm/chunk-QOPRXQGR.js +0 -2
- package/dist/esm/chunk-QOPRXQGR.js.map +0 -7
- package/dist/esm/chunk-RUWKVDFT.js +0 -2
- package/dist/esm/chunk-RUWKVDFT.js.map +0 -7
- package/dist/esm/chunk-RVM4LGAU.js +0 -2
- package/dist/esm/chunk-RVM4LGAU.js.map +0 -7
- package/dist/esm/chunk-TLWCU336.js +0 -2
- package/dist/esm/chunk-TLWCU336.js.map +0 -7
- package/dist/esm/chunk-TQIR5LLY.js +0 -2
- package/dist/esm/chunk-TQIR5LLY.js.map +0 -7
- package/dist/esm/chunk-UUHTK35B.js +0 -2
- package/dist/esm/chunk-UUHTK35B.js.map +0 -7
- package/dist/esm/chunk-UUV5UNYL.js +0 -2
- package/dist/esm/chunk-UUV5UNYL.js.map +0 -7
- package/dist/esm/chunk-UUWGAQDT.js +0 -2
- package/dist/esm/chunk-UUWGAQDT.js.map +0 -7
- package/dist/esm/chunk-VLQ2LX5M.js +0 -2
- package/dist/esm/chunk-VLQ2LX5M.js.map +0 -7
- package/dist/esm/chunk-VTTJFBV6.js +0 -2
- package/dist/esm/chunk-VTTJFBV6.js.map +0 -7
- package/dist/esm/chunk-WAURCNAS.js.map +0 -7
- package/dist/esm/chunk-X3D3JR64.js +0 -2
- package/dist/esm/chunk-X3D3JR64.js.map +0 -7
- package/dist/esm/chunk-X7HFFVFD.js +0 -2
- package/dist/esm/chunk-X7HFFVFD.js.map +0 -7
- package/dist/esm/chunk-XASK6LMX.js +0 -2
- package/dist/esm/chunk-XASK6LMX.js.map +0 -7
- package/dist/esm/chunk-XI5YXUCK.js +0 -2
- package/dist/esm/chunk-XI5YXUCK.js.map +0 -7
- package/dist/esm/chunk-XTE22CXV.js +0 -2
- package/dist/esm/chunk-XTE22CXV.js.map +0 -7
- package/dist/esm/chunk-Y7LT3F6R.js +0 -2
- package/dist/esm/chunk-Y7LT3F6R.js.map +0 -7
- package/dist/esm/chunk-YKPMLM7M.js +0 -1
- package/dist/esm/chunk-YVHRWMSZ.js.map +0 -7
- package/dist/esm/chunk-YYZBPQQ4.js +0 -2
- package/dist/esm/chunk-YYZBPQQ4.js.map +0 -7
- package/dist/esm/chunk-Z6NRR7KS.js +0 -2
- package/dist/esm/chunk-Z6NRR7KS.js.map +0 -7
- package/dist/esm/chunk-ZIKJ2WZN.js +0 -2
- package/dist/esm/chunk-ZIKJ2WZN.js.map +0 -7
- package/dist/esm/chunk-ZMFZYXLB.js +0 -2
- package/dist/esm/chunk-ZMFZYXLB.js.map +0 -7
- package/dist/esm/chunk-ZMOBKT4T.js +0 -2
- package/dist/esm/chunk-ZMOBKT4T.js.map +0 -7
- package/dist/esm/chunk-ZWZGUBL4.js.map +0 -7
- package/dist/esm/components/aspect-ratio.d.ts +0 -4
- package/dist/esm/components/aspect-ratio.d.ts.map +0 -1
- package/dist/esm/components/aspect-ratio.js +0 -2
- package/dist/esm/components/badge.d.ts +0 -19
- package/dist/esm/components/badge.d.ts.map +0 -1
- package/dist/esm/components/badge.js +0 -2
- package/dist/esm/components/badge.props.d.ts.map +0 -1
- package/dist/esm/components/badge.props.js +0 -2
- package/dist/esm/components/checkbox-cards.d.ts +0 -19
- package/dist/esm/components/checkbox-cards.d.ts.map +0 -1
- package/dist/esm/components/checkbox-cards.js +0 -2
- package/dist/esm/components/checkbox-cards.js.map +0 -7
- package/dist/esm/components/checkbox-cards.props.d.ts +0 -43
- package/dist/esm/components/checkbox-cards.props.d.ts.map +0 -1
- package/dist/esm/components/checkbox-cards.props.js +0 -2
- package/dist/esm/components/checkbox-cards.props.js.map +0 -7
- package/dist/esm/components/container.d.ts +0 -11
- package/dist/esm/components/container.d.ts.map +0 -1
- package/dist/esm/components/container.js +0 -2
- package/dist/esm/components/container.js.map +0 -7
- package/dist/esm/components/container.props.d.ts +0 -68
- package/dist/esm/components/container.props.d.ts.map +0 -1
- package/dist/esm/components/container.props.js +0 -2
- package/dist/esm/components/container.props.js.map +0 -7
- package/dist/esm/components/data-list.d.ts +0 -23
- package/dist/esm/components/data-list.d.ts.map +0 -1
- package/dist/esm/components/data-list.js +0 -2
- package/dist/esm/components/data-list.js.map +0 -7
- package/dist/esm/components/data-list.props.d.ts +0 -63
- package/dist/esm/components/data-list.props.d.ts.map +0 -1
- package/dist/esm/components/data-list.props.js +0 -2
- package/dist/esm/components/data-list.props.js.map +0 -7
- package/dist/esm/components/em.d.ts +0 -11
- package/dist/esm/components/em.d.ts.map +0 -1
- package/dist/esm/components/em.js +0 -2
- package/dist/esm/components/em.js.map +0 -7
- package/dist/esm/components/em.props.d.ts +0 -17
- package/dist/esm/components/em.props.d.ts.map +0 -1
- package/dist/esm/components/em.props.js +0 -2
- package/dist/esm/components/em.props.js.map +0 -7
- package/dist/esm/components/hover-card.d.ts +0 -17
- package/dist/esm/components/hover-card.d.ts.map +0 -1
- package/dist/esm/components/hover-card.js +0 -2
- package/dist/esm/components/hover-card.js.map +0 -7
- package/dist/esm/components/hover-card.props.d.ts +0 -57
- package/dist/esm/components/hover-card.props.d.ts.map +0 -1
- package/dist/esm/components/hover-card.props.js +0 -2
- package/dist/esm/components/hover-card.props.js.map +0 -7
- package/dist/esm/components/icon-button.d.ts +0 -108
- package/dist/esm/components/icon-button.d.ts.map +0 -1
- package/dist/esm/components/icon-button.js +0 -2
- package/dist/esm/components/icon-button.js.map +0 -7
- package/dist/esm/components/icon-button.props.d.ts +0 -2
- package/dist/esm/components/icon-button.props.d.ts.map +0 -1
- package/dist/esm/components/icon-button.props.js +0 -2
- package/dist/esm/components/icon-button.props.js.map +0 -7
- package/dist/esm/components/image.d.ts +0 -96
- package/dist/esm/components/image.d.ts.map +0 -1
- package/dist/esm/components/image.js +0 -2
- package/dist/esm/components/image.js.map +0 -7
- package/dist/esm/components/image.props.d.ts +0 -147
- package/dist/esm/components/image.props.d.ts.map +0 -1
- package/dist/esm/components/image.props.js +0 -2
- package/dist/esm/components/image.props.js.map +0 -7
- package/dist/esm/components/quote.d.ts +0 -11
- package/dist/esm/components/quote.d.ts.map +0 -1
- package/dist/esm/components/quote.js +0 -2
- package/dist/esm/components/quote.js.map +0 -7
- package/dist/esm/components/quote.props.d.ts +0 -17
- package/dist/esm/components/quote.props.d.ts.map +0 -1
- package/dist/esm/components/quote.props.js +0 -2
- package/dist/esm/components/quote.props.js.map +0 -7
- package/dist/esm/components/radio-cards.d.ts +0 -16
- package/dist/esm/components/radio-cards.d.ts.map +0 -1
- package/dist/esm/components/radio-cards.js +0 -2
- package/dist/esm/components/radio-cards.js.map +0 -7
- package/dist/esm/components/radio-cards.props.d.ts +0 -43
- package/dist/esm/components/radio-cards.props.d.ts.map +0 -1
- package/dist/esm/components/radio-cards.props.js +0 -2
- package/dist/esm/components/radio-cards.props.js.map +0 -7
- package/dist/esm/components/schemas/icon-button.schema.d.ts +0 -201
- package/dist/esm/components/schemas/icon-button.schema.d.ts.map +0 -1
- package/dist/esm/components/schemas/icon-button.schema.js +0 -2
- package/dist/esm/components/schemas/icon-button.schema.js.map +0 -7
- package/dist/esm/components/schemas/toggle-button.schema.d.ts.map +0 -1
- package/dist/esm/components/schemas/toggle-button.schema.js +0 -2
- package/dist/esm/components/schemas/toggle-button.schema.js.map +0 -7
- package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts +0 -211
- package/dist/esm/components/schemas/toggle-icon-button.schema.d.ts.map +0 -1
- package/dist/esm/components/schemas/toggle-icon-button.schema.js +0 -2
- package/dist/esm/components/schemas/toggle-icon-button.schema.js.map +0 -7
- package/dist/esm/components/section.d.ts +0 -11
- package/dist/esm/components/section.d.ts.map +0 -1
- package/dist/esm/components/section.js +0 -2
- package/dist/esm/components/section.js.map +0 -7
- package/dist/esm/components/section.props.d.ts +0 -52
- package/dist/esm/components/section.props.d.ts.map +0 -1
- package/dist/esm/components/section.props.js +0 -2
- package/dist/esm/components/section.props.js.map +0 -7
- package/dist/esm/components/skeleton.d.ts +0 -12
- package/dist/esm/components/skeleton.d.ts.map +0 -1
- package/dist/esm/components/skeleton.js +0 -2
- package/dist/esm/components/skeleton.js.map +0 -7
- package/dist/esm/components/skeleton.props.d.ts +0 -44
- package/dist/esm/components/skeleton.props.d.ts.map +0 -1
- package/dist/esm/components/skeleton.props.js +0 -2
- package/dist/esm/components/skeleton.props.js.map +0 -7
- package/dist/esm/components/strong.d.ts +0 -11
- package/dist/esm/components/strong.d.ts.map +0 -1
- package/dist/esm/components/strong.js +0 -2
- package/dist/esm/components/strong.js.map +0 -7
- package/dist/esm/components/strong.props.d.ts +0 -17
- package/dist/esm/components/strong.props.d.ts.map +0 -1
- package/dist/esm/components/strong.props.js +0 -2
- package/dist/esm/components/strong.props.js.map +0 -7
- package/dist/esm/components/tab-nav.d.ts +0 -19
- package/dist/esm/components/tab-nav.d.ts.map +0 -1
- package/dist/esm/components/tab-nav.js +0 -2
- package/dist/esm/components/tab-nav.js.map +0 -7
- package/dist/esm/components/tab-nav.props.d.ts +0 -12
- package/dist/esm/components/tab-nav.props.d.ts.map +0 -1
- package/dist/esm/components/tab-nav.props.js +0 -2
- package/dist/esm/components/tab-nav.props.js.map +0 -7
- package/dist/esm/components/theme-panel.d.ts +0 -25
- package/dist/esm/components/theme-panel.d.ts.map +0 -1
- package/dist/esm/components/theme-panel.js +0 -2
- package/dist/esm/components/theme-panel.js.map +0 -7
- package/dist/esm/components/toggle-button.d.ts +0 -63
- package/dist/esm/components/toggle-button.d.ts.map +0 -1
- package/dist/esm/components/toggle-button.js +0 -2
- package/dist/esm/components/toggle-button.js.map +0 -7
- package/dist/esm/components/toggle-icon-button.d.ts +0 -109
- package/dist/esm/components/toggle-icon-button.d.ts.map +0 -1
- package/dist/esm/components/toggle-icon-button.js +0 -2
- package/dist/esm/components/toggle-icon-button.js.map +0 -7
- package/schemas/icon-button.json +0 -296
- package/schemas/toggle-button.d.ts +0 -2
- package/schemas/toggle-icon-button.d.ts +0 -2
- package/schemas/toggle-icon-button.json +0 -304
- package/src/components/aspect-ratio.tsx +0 -3
- package/src/components/checkbox-cards.css +0 -124
- package/src/components/checkbox-cards.props.tsx +0 -27
- package/src/components/checkbox-cards.tsx +0 -141
- package/src/components/container.css +0 -43
- package/src/components/container.props.tsx +0 -84
- package/src/components/container.tsx +0 -59
- package/src/components/data-list.css +0 -254
- package/src/components/data-list.props.tsx +0 -57
- package/src/components/data-list.tsx +0 -102
- package/src/components/em.css +0 -16
- package/src/components/em.props.tsx +0 -11
- package/src/components/em.tsx +0 -22
- package/src/components/hover-card.css +0 -39
- package/src/components/hover-card.props.tsx +0 -37
- package/src/components/hover-card.tsx +0 -74
- package/src/components/icon-button.css +0 -9
- package/src/components/icon-button.props.tsx +0 -1
- package/src/components/icon-button.tsx +0 -110
- package/src/components/image.css +0 -221
- package/src/components/image.props.ts +0 -163
- package/src/components/image.tsx +0 -308
- package/src/components/quote.css +0 -16
- package/src/components/quote.props.tsx +0 -11
- package/src/components/quote.tsx +0 -22
- package/src/components/radio-cards.css +0 -110
- package/src/components/radio-cards.props.tsx +0 -27
- package/src/components/radio-cards.tsx +0 -98
- package/src/components/schemas/icon-button.schema.ts +0 -142
- package/src/components/schemas/toggle-icon-button.schema.ts +0 -195
- package/src/components/section.css +0 -25
- package/src/components/section.props.tsx +0 -63
- package/src/components/section.tsx +0 -36
- package/src/components/skeleton.css +0 -55
- package/src/components/skeleton.props.tsx +0 -14
- package/src/components/skeleton.tsx +0 -48
- package/src/components/strong.css +0 -13
- package/src/components/strong.props.tsx +0 -11
- package/src/components/strong.tsx +0 -24
- package/src/components/tab-nav.css +0 -5
- package/src/components/tab-nav.props.tsx +0 -13
- package/src/components/tab-nav.tsx +0 -82
- package/src/components/theme-panel.css +0 -67
- package/src/components/theme-panel.tsx +0 -549
- package/src/components/toggle-button.tsx +0 -117
- package/src/components/toggle-icon-button.tsx +0 -115
- /package/dist/esm/{chunk-STMTXK7U.js.map → chunk-24CVW6P7.js.map} +0 -0
- /package/dist/esm/{chunk-OXYHRNJA.js.map → chunk-4VBH3W2S.js.map} +0 -0
- /package/dist/esm/{chunk-ABS275QZ.js.map → chunk-72FU5FEC.js.map} +0 -0
- /package/dist/esm/{chunk-MLXHD7YF.js.map → chunk-7FPLWHMT.js.map} +0 -0
- /package/dist/esm/{chunk-YS5BZRRK.js.map → chunk-7OQXCYCW.js.map} +0 -0
- /package/dist/esm/{chunk-N5OSP3PU.js.map → chunk-AYZRLA7F.js.map} +0 -0
- /package/dist/esm/{chunk-6RZVKCNG.js.map → chunk-BHGES72S.js.map} +0 -0
- /package/dist/esm/{chunk-KU3LLWFU.js.map → chunk-CTZ467AB.js.map} +0 -0
- /package/dist/esm/{chunk-Q7S5LQBQ.js.map → chunk-CYO6CRMQ.js.map} +0 -0
- /package/dist/esm/{chunk-F2UUKVBM.js.map → chunk-D3U4MWDZ.js.map} +0 -0
- /package/dist/esm/{chunk-VLLJ7A6P.js.map → chunk-DCNHG6VN.js.map} +0 -0
- /package/dist/esm/{chunk-UZQO4APP.js.map → chunk-EDEYYJ3Q.js.map} +0 -0
- /package/dist/esm/{chunk-6FLLFCBU.js.map → chunk-ELAW7ZUG.js.map} +0 -0
- /package/dist/esm/{chunk-B6RH4CTY.js.map → chunk-G46OLCM2.js.map} +0 -0
- /package/dist/esm/{chunk-5LGWS5QS.js.map → chunk-GOV5I7I2.js.map} +0 -0
- /package/dist/esm/{chunk-VSSJTPBV.js.map → chunk-HELY5CSU.js.map} +0 -0
- /package/dist/esm/{chunk-UFJJTUOU.js.map → chunk-HGG3ULNK.js.map} +0 -0
- /package/dist/esm/{chunk-DMWLY6ZP.js.map → chunk-HZNOHY6O.js.map} +0 -0
- /package/dist/esm/{chunk-PUVZFRTQ.js.map → chunk-IZPDJN6O.js.map} +0 -0
- /package/dist/esm/{chunk-KPACVWV4.js.map → chunk-K4BDLRCC.js.map} +0 -0
- /package/dist/esm/{chunk-GYB7PAGB.js.map → chunk-K6WT5ZEA.js.map} +0 -0
- /package/dist/esm/{chunk-CLEH57SW.js.map → chunk-KIYCILXL.js.map} +0 -0
- /package/dist/esm/{chunk-ZCAI2PRH.js.map → chunk-KRDRQU4G.js.map} +0 -0
- /package/dist/esm/{chunk-T5DSQKKF.js.map → chunk-KRZL245C.js.map} +0 -0
- /package/dist/esm/{chunk-L2IIIELE.js.map → chunk-LNFN35ZE.js.map} +0 -0
- /package/dist/esm/{chunk-PUQXBW2K.js.map → chunk-LPVDR7V3.js.map} +0 -0
- /package/dist/esm/{chunk-JUY7CBSL.js.map → chunk-PBFSBHBS.js.map} +0 -0
- /package/dist/esm/{chunk-E3754NJZ.js.map → chunk-QZ6OCMH4.js.map} +0 -0
- /package/dist/esm/{chunk-54KMG7NX.js.map → chunk-TKSG7KBZ.js.map} +0 -0
- /package/dist/esm/{chunk-WDDO73O5.js.map → chunk-UEHCCJYY.js.map} +0 -0
- /package/dist/esm/{chunk-YKPMLM7M.js.map → components/chip.js.map} +0 -0
- /package/dist/esm/components/{aspect-ratio.js.map → chip.props.js.map} +0 -0
- /package/dist/esm/components/{badge.js.map → schemas/toggle.schema.js.map} +0 -0
- /package/dist/esm/components/{badge.props.js.map → toggle.js.map} +0 -0
- /package/schemas/{icon-button.d.ts → toggle.d.ts} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/container.tsx", "../../../src/props/as-child.prop.ts", "../../../src/components/container.props.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/get-subtree.ts", "../../../src/props/height.props.ts", "../../../src/props/padding.props.ts", "../../../src/props/width.props.ts", "../../../src/props/layout.props.ts", "../../../src/props/margin.props.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nimport classNames from 'classnames';\nimport { Slot } from 'radix-ui';\n\nimport { containerPropDefs } from './container.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { getSubtree } from '../helpers/get-subtree.js';\nimport { heightPropDefs } from '../props/height.props.js';\nimport { layoutPropDefs } from '../props/layout.props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\n\nimport type { LayoutProps } from '../props/layout.props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { ContainerOwnProps } from './container.props.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype ContainerElement = React.ElementRef<'div'>;\ninterface ContainerProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n MarginProps,\n LayoutProps,\n ContainerOwnProps {}\nconst Container = React.forwardRef<ContainerElement, ContainerProps>(\n ({ width, minWidth, maxWidth, height, minHeight, maxHeight, ...props }, forwardedRef) => {\n const { asChild, children, className, ...containerProps } = extractProps(\n props,\n containerPropDefs,\n layoutPropDefs,\n marginPropDefs\n );\n\n const { className: innerClassName, style: innerStyle } = extractProps(\n { width, minWidth, maxWidth, height, minHeight, maxHeight },\n widthPropDefs,\n heightPropDefs\n );\n\n const Comp = asChild ? Slot.Root : 'div';\n\n return (\n <Comp\n {...containerProps}\n ref={forwardedRef}\n className={classNames('rt-Container', className)}\n >\n {getSubtree({ asChild, children }, (children) => (\n <div className={classNames('rt-ContainerInner', innerClassName)} style={innerStyle}>\n {children}\n </div>\n ))}\n </Comp>\n );\n }\n);\nContainer.displayName = 'Container';\n\nexport { Container };\nexport type { ContainerProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst displayValues = ['none', 'initial'] as const;\nconst alignValues = ['left', 'center', 'right'] as const;\n\nconst containerPropDefs = {\n ...asChildPropDef,\n /**\n * Controls the **max-width** of the content within the container.\n * Supports the predefined values and responsive objects.\n *\n * @values\n * | Size | Max. width |\n * | :------- | ---------: |\n * | size=\"1\" | 448px |\n * | size=\"2\" | 688px |\n * | size=\"3\" | 880px |\n * | size=\"4\" | 1136px |\n *\n * @example\n * size=\"4\"\n * size={{ sm: '3', lg: '4' }}\n *\n * @link\n * https://github.com/radix-ui/themes/blob/main/packages/radix-ui-themes/src/components/container.css\n */\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n default: '4',\n responsive: true,\n },\n /**\n * Controls whether the container is visible or hidden.\n * Supports \"none\", \"initial\", and responsive object values.\n *\n * @example\n * display=\"none\"\n * display={{ sm: 'none', lg: 'initial' }}\n */\n display: {\n type: 'enum',\n className: 'rt-r-display',\n values: displayValues,\n parseValue: parseDisplayValue,\n responsive: true,\n },\n /**\n * Controls the alignment of the content within the container.\n *\n * @example\n * align=\"center\"\n * align={{ initial: 'left', lg: 'center' }}\n */\n align: {\n type: 'enum',\n className: 'rt-r-ai',\n values: alignValues,\n parseValue: parseAlignValue,\n responsive: true,\n },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n display: PropDef<(typeof displayValues)[number]>;\n align: PropDef<(typeof alignValues)[number]>;\n};\n\nfunction parseDisplayValue(value: string) {\n return value === 'initial' ? 'flex' : value;\n}\n\nfunction parseAlignValue(value: string) {\n return value === 'left' ? 'start' : value === 'right' ? 'end' : value;\n}\n\n// Use all of the imported prop defs to ensure that JSDoc works\ntype ContainerOwnProps = GetPropDefTypes<typeof containerPropDefs & typeof asChildPropDef>;\n\nexport { containerPropDefs };\nexport type { ContainerOwnProps };\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 * as React from 'react';\n\n/**\n * This is a helper function that is used when a component supports `asChild`\n * using the `Slot` component but its implementation contains nested DOM elements.\n *\n * Using it ensures if a consumer uses the `asChild` prop, the elements are in\n * correct order in the DOM, adopting the intended consumer `children`.\n */\nexport function getSubtree(\n options: { asChild: boolean | undefined; children: React.ReactNode },\n content: React.ReactNode | ((children: React.ReactNode) => React.ReactNode)\n) {\n const { asChild, children } = options;\n if (!asChild) return typeof content === 'function' ? content(children) : content;\n\n const firstChild = React.Children.only(children) as React.ReactElement;\n return React.cloneElement(firstChild, {\n // @ts-expect-error\n children: typeof content === 'function' ? content(firstChild.props.children) : content,\n });\n}\n", "import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\nconst heightPropDefs = {\n /**\n * Sets the CSS **height** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * height=\"100px\"\n * height={{ md: '100vh', xl: '600px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/height\n */\n height: {\n type: 'string',\n className: 'rt-r-h',\n customProperties: ['--height'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-height** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minHeight=\"100px\"\n * minHeight={{ md: '100vh', xl: '600px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-height\n */\n minHeight: {\n type: 'string',\n className: 'rt-r-min-h',\n customProperties: ['--min-height'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-height** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxHeight=\"100px\"\n * maxHeight={{ md: '100vh', xl: '600px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-height\n */\n maxHeight: {\n type: 'string',\n className: 'rt-r-max-h',\n customProperties: ['--max-height'],\n responsive: true,\n },\n} satisfies {\n height: PropDef<string>;\n minHeight: PropDef<string>;\n maxHeight: PropDef<string>;\n};\n\ntype HeightProps = GetPropDefTypes<typeof heightPropDefs>;\n\nexport { heightPropDefs };\nexport type { HeightProps };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst paddingValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\n\nconst paddingPropDefs = {\n /**\n * Sets the CSS **padding** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * p=\"4\"\n * p=\"100px\"\n * p={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding\n */\n p: {\n type: 'enum | string',\n className: 'rt-r-p',\n customProperties: ['--p'],\n values: paddingValues,\n responsive: true,\n },\n /**\n * Sets the CSS **padding-left** and **padding-right** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * px=\"4\"\n * px=\"100px\"\n * px={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right\n */\n px: {\n type: 'enum | string',\n className: 'rt-r-px',\n customProperties: ['--pl', '--pr'],\n values: paddingValues,\n responsive: true,\n },\n /**\n * Sets the CSS **padding-top** and **padding-bottom** properties.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * py=\"4\"\n * py=\"100px\"\n * py={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom\n */\n py: {\n type: 'enum | string',\n className: 'rt-r-py',\n customProperties: ['--pt', '--pb'],\n values: paddingValues,\n responsive: true,\n },\n /**\n * Sets the CSS **padding-top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * pt=\"4\"\n * pt=\"100px\"\n * pt={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top\n */\n pt: {\n type: 'enum | string',\n className: 'rt-r-pt',\n customProperties: ['--pt'],\n values: paddingValues,\n responsive: true,\n },\n /**\n * Sets the CSS **padding-right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * pr=\"4\"\n * pr=\"100px\"\n * pr={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right\n */\n pr: {\n type: 'enum | string',\n className: 'rt-r-pr',\n customProperties: ['--pr'],\n values: paddingValues,\n responsive: true,\n },\n /**\n * Sets the CSS **padding-bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * pb=\"4\"\n * pb=\"100px\"\n * pb={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom\n */\n pb: {\n type: 'enum | string',\n className: 'rt-r-pb',\n customProperties: ['--pb'],\n values: paddingValues,\n responsive: true,\n },\n /**\n * Sets the CSS **padding-left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * pl=\"4\"\n * pl=\"100px\"\n * pl={{ sm: '6', lg: '9' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left\n */\n pl: {\n type: 'enum | string',\n className: 'rt-r-pl',\n customProperties: ['--pl'],\n values: paddingValues,\n responsive: true,\n },\n} satisfies {\n p: PropDef<(typeof paddingValues)[number]>;\n px: PropDef<(typeof paddingValues)[number]>;\n py: PropDef<(typeof paddingValues)[number]>;\n pt: PropDef<(typeof paddingValues)[number]>;\n pr: PropDef<(typeof paddingValues)[number]>;\n pb: PropDef<(typeof paddingValues)[number]>;\n pl: PropDef<(typeof paddingValues)[number]>;\n};\n\ntype PaddingProps = GetPropDefTypes<typeof paddingPropDefs>;\n\nexport { paddingPropDefs };\nexport type { PaddingProps };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst widthPropDefs = {\n /**\n * Sets the CSS **width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * width=\"100px\"\n * width={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/width\n */\n width: {\n type: 'string',\n className: 'rt-r-w',\n customProperties: ['--width'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minWidth=\"100px\"\n * minWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n */\n minWidth: {\n type: 'string',\n className: 'rt-r-min-w',\n customProperties: ['--min-width'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxWidth=\"100px\"\n * maxWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n */\n maxWidth: {\n type: 'string',\n className: 'rt-r-max-w',\n customProperties: ['--max-width'],\n responsive: true,\n },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype WidthProps = GetPropDefTypes<typeof widthPropDefs>;\n\nexport { widthPropDefs };\nexport type { WidthProps };\n", "import { paddingPropDefs } from './padding.props.js';\nimport { heightPropDefs } from './height.props.js';\nimport { widthPropDefs } from './width.props.js';\n\nimport type { PropDef, GetPropDefTypes } from './prop-def.js';\n\nconst overflowValues = ['visible', 'hidden', 'clip', 'scroll', 'auto'] as const;\nconst positionValues = ['static', 'relative', 'absolute', 'fixed', 'sticky'] as const;\n// prettier-ignore\nconst positionEdgeValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-1', '-2', '-3', '-4', '-5', '-6', '-7', '-8', '-9'] as const;\nconst flexShrinkValues = ['0', '1'] as const;\nconst flexGrowValues = ['0', '1'] as const;\nconst alignSelfValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;\nconst justifySelfValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;\n\nconst layoutPropDefs = {\n ...paddingPropDefs,\n ...widthPropDefs,\n ...heightPropDefs,\n /**\n * Sets the CSS **position** property.\n * Supports the corresponding CSS values and responsive objects.\n *\n * @example\n * position=\"absolute\"\n * position={{ sm: 'absolute', lg: 'sticky' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/position\n */\n position: {\n type: 'enum',\n className: 'rt-r-position',\n values: positionValues,\n responsive: true,\n },\n /**\n * Sets the CSS **inset** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * inset=\"4\"\n * inset=\"100px\"\n * inset={{ sm: '0', lg: '50%' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/inset\n */\n inset: {\n type: 'enum | string',\n className: 'rt-r-inset',\n customProperties: ['--inset'],\n values: positionEdgeValues,\n responsive: true,\n },\n /**\n * Sets the CSS **top** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * top=\"4\"\n * top=\"100px\"\n * top={{ sm: '0', lg: '50%' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/top\n */\n top: {\n type: 'enum | string',\n className: 'rt-r-top',\n customProperties: ['--top'],\n values: positionEdgeValues,\n responsive: true,\n },\n /**\n * Sets the CSS **right** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * right=\"4\"\n * right=\"100px\"\n * right={{ sm: '0', lg: '50%' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/right\n */\n right: {\n type: 'enum | string',\n className: 'rt-r-right',\n customProperties: ['--right'],\n values: positionEdgeValues,\n responsive: true,\n },\n /**\n * Sets the CSS **bottom** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * bottom=\"4\"\n * bottom=\"100px\"\n * bottom={{ sm: '0', lg: '50%' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/bottom\n */\n bottom: {\n type: 'enum | string',\n className: 'rt-r-bottom',\n customProperties: ['--bottom'],\n values: positionEdgeValues,\n responsive: true,\n },\n /**\n * Sets the CSS **left** property.\n * Supports space scale values, CSS strings, and responsive objects.\n *\n * @example\n * left=\"4\"\n * left=\"100px\"\n * left={{ sm: '0', lg: '50%' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/left\n */\n left: {\n type: 'enum | string',\n className: 'rt-r-left',\n customProperties: ['--left'],\n values: positionEdgeValues,\n responsive: true,\n },\n /**\n * Sets the CSS **overflow** property.\n * Supports the corresponding CSS values and responsive objects.\n *\n * @example\n * overflow=\"hidden\"\n * overflow={{ sm: 'hidden', lg: 'visible' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow\n */\n overflow: {\n type: 'enum',\n className: 'rt-r-overflow',\n values: overflowValues,\n responsive: true,\n },\n /**\n * Sets the CSS **overflow-x** property.\n * Supports the corresponding CSS values and responsive objects.\n *\n * @example\n * overflowX=\"hidden\"\n * overflowX={{ sm: 'hidden', md: 'visible' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow\n */\n overflowX: {\n type: 'enum',\n className: 'rt-r-ox',\n values: overflowValues,\n responsive: true,\n },\n /**\n * Sets the CSS **overflow-y** property.\n * Supports the corresponding CSS values and responsive objects.\n *\n * @example\n * overflowY=\"hidden\"\n * overflowY={{ sm: 'hidden', md: 'visible' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow\n */\n overflowY: {\n type: 'enum',\n className: 'rt-r-oy',\n values: overflowValues,\n responsive: true,\n },\n /**\n * Sets the CSS **flex-basis** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * flexBasis=\"0\"\n * flexBasis=\"100%\"\n * flexBasis={{ sm: '200px', lg: 'auto' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis\n */\n flexBasis: {\n type: 'string',\n className: 'rt-r-fb',\n customProperties: ['--flex-basis'],\n responsive: true,\n },\n /**\n * Sets the CSS **flex-shrink** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * flexShrink=\"0\"\n * flexShrink=\"1\"\n * flexShrink={{ sm: '0', lg: '1' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink\n */\n flexShrink: {\n type: 'enum | string',\n className: 'rt-r-fs',\n customProperties: ['--flex-shrink'],\n values: flexShrinkValues,\n responsive: true,\n },\n /**\n * Sets the CSS **flex-grow** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * flexGrow=\"0\"\n * flexGrow=\"1\"\n * flexGrow={{ sm: '0', lg: '1' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow\n */\n flexGrow: {\n type: 'enum | string',\n className: 'rt-r-fg',\n customProperties: ['--flex-grow'],\n values: flexGrowValues,\n responsive: true,\n },\n /**\n * Sets the CSS **grid-area** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridArea=\"header\"\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area\n */\n gridArea: {\n type: 'string',\n className: 'rt-r-ga',\n customProperties: ['--grid-area'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-column** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridColumn=\"1\"\n * gridColumn=\"1 / -1\"\n * gridColumn={{ sm: '1 / 3', lg: 'span 3' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column\n */\n gridColumn: {\n type: 'string',\n className: 'rt-r-gc',\n customProperties: ['--grid-column'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-column-start** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridColumnStart=\"1\"\n * gridColumnStart=\"auto\"\n * gridColumnStart={{ sm: '2', lg: 'span 3' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start\n */\n gridColumnStart: {\n type: 'string',\n className: 'rt-r-gcs',\n customProperties: ['--grid-column-start'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-column-end** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridColumnEnd=\"1\"\n * gridColumnEnd=\"auto\"\n * gridColumnEnd={{ sm: '2', lg: 'span 3' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end\n */\n gridColumnEnd: {\n type: 'string',\n className: 'rt-r-gce',\n customProperties: ['--grid-column-end'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-row** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridRow=\"1\"\n * gridRow=\"auto\"\n * gridRow={{ sm: '2', lg: 'span 3' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row\n */\n gridRow: {\n type: 'string',\n className: 'rt-r-gr',\n customProperties: ['--grid-row'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-row-start** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridRowStart=\"1\"\n * gridRowStart=\"auto\"\n * gridRowStart={{ sm: '2', lg: 'span 3' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start\n */\n gridRowStart: {\n type: 'string',\n className: 'rt-r-grs',\n customProperties: ['--grid-row-start'],\n responsive: true,\n },\n /**\n * Sets the CSS **grid-row-end** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * gridRowEnd=\"1\"\n * gridRowEnd=\"auto\"\n * gridRowEnd={{ sm: '2', lg: 'span 3' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end\n */\n gridRowEnd: {\n type: 'string',\n className: 'rt-r-gre',\n customProperties: ['--grid-row-end'],\n responsive: true,\n },\n /**\n * Sets the CSS **align-self** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * alignSelf=\"center\"\n * alignSelf={{ sm: 'start', lg: 'center' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/align-self\n */\n alignSelf: {\n type: 'enum',\n className: 'rt-r-as',\n values: alignSelfValues,\n responsive: true,\n },\n /**\n * Sets the CSS **justify-self** property.\n * Supports a subset of the corresponding CSS values and responsive objects.\n *\n * @example\n * justifySelf=\"center\"\n * justifySelf={{ sm: 'start', lg: 'center' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self\n */\n justifySelf: {\n type: 'enum',\n className: 'rt-r-js',\n values: justifySelfValues,\n responsive: true,\n },\n} satisfies {\n position: PropDef<(typeof positionValues)[number]>;\n inset: PropDef<(typeof positionEdgeValues)[number]>;\n top: PropDef<(typeof positionEdgeValues)[number]>;\n right: PropDef<(typeof positionEdgeValues)[number]>;\n bottom: PropDef<(typeof positionEdgeValues)[number]>;\n left: PropDef<(typeof positionEdgeValues)[number]>;\n overflow: PropDef<(typeof overflowValues)[number]>;\n overflowX: PropDef<(typeof overflowValues)[number]>;\n overflowY: PropDef<(typeof overflowValues)[number]>;\n flexBasis: PropDef<string>;\n flexShrink: PropDef<(typeof flexShrinkValues)[number]>;\n flexGrow: PropDef<(typeof flexGrowValues)[number]>;\n gridColumn: PropDef<string>;\n gridColumnStart: PropDef<string>;\n gridColumnEnd: PropDef<string>;\n gridRow: PropDef<string>;\n gridRowStart: PropDef<string>;\n gridRowEnd: PropDef<string>;\n gridArea: PropDef<string>;\n alignSelf: PropDef<(typeof alignSelfValues)[number]>;\n justifySelf: PropDef<(typeof justifySelfValues)[number]>;\n};\n\n// Use all of the imported prop defs to ensure that JSDoc works\ntype LayoutProps = GetPropDefTypes<\n typeof paddingPropDefs & typeof widthPropDefs & typeof heightPropDefs & typeof layoutPropDefs\n>;\n\nexport { layoutPropDefs };\nexport type { LayoutProps };\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', 'bleed'] 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": "0jBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,eAAAE,IAAA,eAAAC,EAAAH,IAAA,IAAAI,EAAuB,oBACvBC,EAAuB,yBACvBC,EAAqB,oBCArB,IAAMC,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,ECNA,IAAMC,GAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,GAAgB,CAAC,OAAQ,SAAS,EAClCC,GAAc,CAAC,OAAQ,SAAU,OAAO,EAExCC,EAAoB,CACxB,GAAGC,EAoBH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQJ,GACR,QAAS,IACT,WAAY,EACd,EASA,QAAS,CACP,KAAM,OACN,UAAW,eACX,OAAQC,GACR,WAAYI,GACZ,WAAY,EACd,EAQA,MAAO,CACL,KAAM,OACN,UAAW,UACX,OAAQH,GACR,WAAYI,GACZ,WAAY,EACd,CACF,EAMA,SAASD,GAAkBE,EAAe,CACxC,OAAOA,IAAU,UAAY,OAASA,CACxC,CAEA,SAASD,GAAgBC,EAAe,CACtC,OAAOA,IAAU,OAAS,QAAUA,IAAU,QAAU,MAAQA,CAClE,CC7EA,IAAAC,EAAuB,yBC0CvB,IAAMC,GAAkC,CAAC,EACnCC,GAAiC,IAAI,IAE3C,SAASC,GAAQC,EAAgE,CAC/E,IAAMC,EAAkC,OAAO,OAAO,CAAC,EAAG,GAAGD,CAAQ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,EACAC,EACAC,CACF,EAEM,CAAE,UAAWC,EAAgB,MAAOC,CAAW,EAAIL,EACvD,CAAE,MAAAZ,EAAO,SAAAC,EAAU,SAAAC,EAAU,OAAAC,EAAQ,UAAAC,EAAW,UAAAC,CAAU,EAC1Da,EACAC,CACF,EAEMC,EAAOZ,EAAU,OAAK,KAAO,MAEnC,OACE,gBAACY,EAAA,CACE,GAAGT,EACJ,IAAKJ,EACL,aAAW,EAAAc,SAAW,eAAgBX,CAAS,GAE9CY,EAAW,CAAE,QAAAd,EAAS,SAAAC,CAAS,EAAIA,GAClC,gBAAC,OAAI,aAAW,EAAAY,SAAW,oBAAqBL,CAAc,EAAG,MAAOC,GACrER,CACH,CACD,CACH,CAEJ,CACF,EACAV,EAAU,YAAc",
|
|
6
|
-
"names": ["container_exports", "__export", "Container", "__toCommonJS", "React", "import_classnames", "import_radix_ui", "asChildPropDef", "sizes", "displayValues", "alignValues", "containerPropDefs", "asChildPropDef", "parseDisplayValue", "parseAlignValue", "value", "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", "getSubtree", "options", "content", "asChild", "children", "firstChild", "heightPropDefs", "paddingValues", "paddingPropDefs", "widthPropDefs", "overflowValues", "positionValues", "positionEdgeValues", "flexShrinkValues", "flexGrowValues", "alignSelfValues", "justifySelfValues", "layoutPropDefs", "paddingPropDefs", "widthPropDefs", "heightPropDefs", "marginValues", "marginPropDefs", "Container", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "props", "forwardedRef", "asChild", "children", "className", "containerProps", "extractProps", "containerPropDefs", "layoutPropDefs", "marginPropDefs", "innerClassName", "innerStyle", "widthPropDefs", "heightPropDefs", "Comp", "classNames", "getSubtree"]
|
|
7
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { asChildPropDef } from '../props/as-child.prop.js';
|
|
2
|
-
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
3
|
-
declare const containerPropDefs: {
|
|
4
|
-
/**
|
|
5
|
-
* Controls the **max-width** of the content within the container.
|
|
6
|
-
* Supports the predefined values and responsive objects.
|
|
7
|
-
*
|
|
8
|
-
* @values
|
|
9
|
-
* | Size | Max. width |
|
|
10
|
-
* | :------- | ---------: |
|
|
11
|
-
* | size="1" | 448px |
|
|
12
|
-
* | size="2" | 688px |
|
|
13
|
-
* | size="3" | 880px |
|
|
14
|
-
* | size="4" | 1136px |
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* size="4"
|
|
18
|
-
* size={{ sm: '3', lg: '4' }}
|
|
19
|
-
*
|
|
20
|
-
* @link
|
|
21
|
-
* https://github.com/radix-ui/themes/blob/main/packages/radix-ui-themes/src/components/container.css
|
|
22
|
-
*/
|
|
23
|
-
size: {
|
|
24
|
-
type: "enum";
|
|
25
|
-
className: string;
|
|
26
|
-
values: readonly ["1", "2", "3", "4"];
|
|
27
|
-
default: "4";
|
|
28
|
-
responsive: true;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Controls whether the container is visible or hidden.
|
|
32
|
-
* Supports "none", "initial", and responsive object values.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* display="none"
|
|
36
|
-
* display={{ sm: 'none', lg: 'initial' }}
|
|
37
|
-
*/
|
|
38
|
-
display: {
|
|
39
|
-
type: "enum";
|
|
40
|
-
className: string;
|
|
41
|
-
values: readonly ["none", "initial"];
|
|
42
|
-
parseValue: typeof parseDisplayValue;
|
|
43
|
-
responsive: true;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Controls the alignment of the content within the container.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* align="center"
|
|
50
|
-
* align={{ initial: 'left', lg: 'center' }}
|
|
51
|
-
*/
|
|
52
|
-
align: {
|
|
53
|
-
type: "enum";
|
|
54
|
-
className: string;
|
|
55
|
-
values: readonly ["left", "center", "right"];
|
|
56
|
-
parseValue: typeof parseAlignValue;
|
|
57
|
-
responsive: true;
|
|
58
|
-
};
|
|
59
|
-
asChild: {
|
|
60
|
-
type: "boolean";
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
declare function parseDisplayValue(value: string): string;
|
|
64
|
-
declare function parseAlignValue(value: string): string;
|
|
65
|
-
type ContainerOwnProps = GetPropDefTypes<typeof containerPropDefs & typeof asChildPropDef>;
|
|
66
|
-
export { containerPropDefs };
|
|
67
|
-
export type { ContainerOwnProps };
|
|
68
|
-
//# sourceMappingURL=container.props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.props.d.ts","sourceRoot":"","sources":["../../../src/components/container.props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAW,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMrE,QAAA,MAAM,iBAAiB;IAErB;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;IAQH;;;;;;;OAOG;;;;;;;;IAQH;;;;;;OAMG;;;;;;;;;;;CAYJ,CAAC;AAEF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,MAAM,UAEvC;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,UAErC;AAGD,KAAK,iBAAiB,GAAG,eAAe,CAAC,OAAO,iBAAiB,GAAG,OAAO,cAAc,CAAC,CAAC;AAE3F,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var f=(e,s)=>{for(var t in s)p(e,t,{get:s[t],enumerable:!0})},u=(e,s,t,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of n(s))!l.call(e,r)&&r!==t&&p(e,r,{get:()=>s[r],enumerable:!(o=i(s,r))||o.enumerable});return e};var y=e=>u(p({},"__esModule",{value:!0}),e);var V={};f(V,{containerPropDefs:()=>d});module.exports=y(V);var a={asChild:{type:"boolean"}};var c=["1","2","3","4"],m=["none","initial"],P=["left","center","right"],d={...a,size:{type:"enum",className:"rt-r-size",values:c,default:"4",responsive:!0},display:{type:"enum",className:"rt-r-display",values:m,parseValue:D,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:P,parseValue:g,responsive:!0}};function D(e){return e==="initial"?"flex":e}function g(e){return e==="left"?"start":e==="right"?"end":e}
|
|
2
|
-
//# sourceMappingURL=container.props.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/container.props.tsx", "../../../src/props/as-child.prop.ts"],
|
|
4
|
-
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\n\nimport type { PropDef, GetPropDefTypes } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst displayValues = ['none', 'initial'] as const;\nconst alignValues = ['left', 'center', 'right'] as const;\n\nconst containerPropDefs = {\n ...asChildPropDef,\n /**\n * Controls the **max-width** of the content within the container.\n * Supports the predefined values and responsive objects.\n *\n * @values\n * | Size | Max. width |\n * | :------- | ---------: |\n * | size=\"1\" | 448px |\n * | size=\"2\" | 688px |\n * | size=\"3\" | 880px |\n * | size=\"4\" | 1136px |\n *\n * @example\n * size=\"4\"\n * size={{ sm: '3', lg: '4' }}\n *\n * @link\n * https://github.com/radix-ui/themes/blob/main/packages/radix-ui-themes/src/components/container.css\n */\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n default: '4',\n responsive: true,\n },\n /**\n * Controls whether the container is visible or hidden.\n * Supports \"none\", \"initial\", and responsive object values.\n *\n * @example\n * display=\"none\"\n * display={{ sm: 'none', lg: 'initial' }}\n */\n display: {\n type: 'enum',\n className: 'rt-r-display',\n values: displayValues,\n parseValue: parseDisplayValue,\n responsive: true,\n },\n /**\n * Controls the alignment of the content within the container.\n *\n * @example\n * align=\"center\"\n * align={{ initial: 'left', lg: 'center' }}\n */\n align: {\n type: 'enum',\n className: 'rt-r-ai',\n values: alignValues,\n parseValue: parseAlignValue,\n responsive: true,\n },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n display: PropDef<(typeof displayValues)[number]>;\n align: PropDef<(typeof alignValues)[number]>;\n};\n\nfunction parseDisplayValue(value: string) {\n return value === 'initial' ? 'flex' : value;\n}\n\nfunction parseAlignValue(value: string) {\n return value === 'left' ? 'start' : value === 'right' ? 'end' : value;\n}\n\n// Use all of the imported prop defs to ensure that JSDoc works\ntype ContainerOwnProps = GetPropDefTypes<typeof containerPropDefs & typeof asChildPropDef>;\n\nexport { containerPropDefs };\nexport type { ContainerOwnProps };\n", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\n"],
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uBAAAE,IAAA,eAAAC,EAAAH,GCEA,IAAMI,EAAiB,CAKrB,QAAS,CACP,KAAM,SACR,CACF,EDNA,IAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAgB,CAAC,OAAQ,SAAS,EAClCC,EAAc,CAAC,OAAQ,SAAU,OAAO,EAExCC,EAAoB,CACxB,GAAGC,EAoBH,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQJ,EACR,QAAS,IACT,WAAY,EACd,EASA,QAAS,CACP,KAAM,OACN,UAAW,eACX,OAAQC,EACR,WAAYI,EACZ,WAAY,EACd,EAQA,MAAO,CACL,KAAM,OACN,UAAW,UACX,OAAQH,EACR,WAAYI,EACZ,WAAY,EACd,CACF,EAMA,SAASD,EAAkBE,EAAe,CACxC,OAAOA,IAAU,UAAY,OAASA,CACxC,CAEA,SAASD,EAAgBC,EAAe,CACtC,OAAOA,IAAU,OAAS,QAAUA,IAAU,QAAU,MAAQA,CAClE",
|
|
6
|
-
"names": ["container_props_exports", "__export", "containerPropDefs", "__toCommonJS", "asChildPropDef", "sizes", "displayValues", "alignValues", "containerPropDefs", "asChildPropDef", "parseDisplayValue", "parseAlignValue", "value"]
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { dataListRootPropDefs, dataListItemPropDefs, dataListLabelPropDefs } from './data-list.props.js';
|
|
3
|
-
import type { MarginProps } from '../props/margin.props.js';
|
|
4
|
-
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
5
|
-
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
6
|
-
type DataListRootOwnProps = GetPropDefTypes<typeof dataListRootPropDefs>;
|
|
7
|
-
interface DataListRootProps extends ComponentPropsWithout<'dl', RemovedProps>, MarginProps, DataListRootOwnProps {
|
|
8
|
-
}
|
|
9
|
-
declare const DataListRoot: React.ForwardRefExoticComponent<DataListRootProps & React.RefAttributes<HTMLDListElement>>;
|
|
10
|
-
type DataListItemOwnProps = GetPropDefTypes<typeof dataListItemPropDefs>;
|
|
11
|
-
interface DataListItemProps extends ComponentPropsWithout<'div', RemovedProps>, DataListItemOwnProps {
|
|
12
|
-
}
|
|
13
|
-
declare const DataListItem: React.ForwardRefExoticComponent<DataListItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
type DataListLabelOwnProps = GetPropDefTypes<typeof dataListLabelPropDefs>;
|
|
15
|
-
interface DataListLabelProps extends ComponentPropsWithout<'dt', RemovedProps>, DataListLabelOwnProps {
|
|
16
|
-
}
|
|
17
|
-
declare const DataListLabel: React.ForwardRefExoticComponent<DataListLabelProps & React.RefAttributes<HTMLElement>>;
|
|
18
|
-
interface DataListValueProps extends ComponentPropsWithout<'dd', RemovedProps> {
|
|
19
|
-
}
|
|
20
|
-
declare const DataListValue: React.ForwardRefExoticComponent<DataListValueProps & React.RefAttributes<HTMLElement>>;
|
|
21
|
-
export { DataListRoot as Root, DataListItem as Item, DataListLabel as Label, DataListValue as Value, };
|
|
22
|
-
export type { DataListRootProps as RootProps, DataListItemProps as ItemProps, DataListLabelProps as LabelProps, DataListValueProps as ValueProps, };
|
|
23
|
-
//# sourceMappingURL=data-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-list.d.ts","sourceRoot":"","sources":["../../../src/components/data-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAK9B,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;AAG5D,KAAK,oBAAoB,GAAG,eAAe,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,UAAU,iBACR,SAAQ,qBAAqB,CAAC,IAAI,EAAE,YAAY,CAAC,EAC/C,WAAW,EACX,oBAAoB;CAAG;AAC3B,QAAA,MAAM,YAAY,4FAkBjB,CAAC;AAIF,KAAK,oBAAoB,GAAG,eAAe,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACzE,UAAU,iBACR,SAAQ,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC,EAChD,oBAAoB;CAAG;AAC3B,QAAA,MAAM,YAAY,0FAOjB,CAAC;AAIF,KAAK,qBAAqB,GAAG,eAAe,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC3E,UAAU,kBACR,SAAQ,qBAAqB,CAAC,IAAI,EAAE,YAAY,CAAC,EAC/C,qBAAqB;CAAG;AAC5B,QAAA,MAAM,aAAa,wFAYlB,CAAC;AAIF,UAAU,kBAAmB,SAAQ,qBAAqB,CAAC,IAAI,EAAE,YAAY,CAAC;CAAG;AACjF,QAAA,MAAM,aAAa,wFAMlB,CAAC;AAGF,OAAO,EACL,YAAY,IAAI,IAAI,EACpB,YAAY,IAAI,IAAI,EACpB,aAAa,IAAI,KAAK,EACtB,aAAa,IAAI,KAAK,GACvB,CAAC;AACF,YAAY,EACV,iBAAiB,IAAI,SAAS,EAC9B,iBAAiB,IAAI,SAAS,EAC9B,kBAAkB,IAAI,UAAU,EAChC,kBAAkB,IAAI,UAAU,GACjC,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var te=Object.create;var R=Object.defineProperty;var se=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var oe=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var ie=(t,e)=>{for(var s in e)R(t,s,{get:e[s],enumerable:!0})},z=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of re(e))!ne.call(t,n)&&n!==s&&R(t,n,{get:()=>e[n],enumerable:!(r=se(e,n))||r.enumerable});return t};var g=(t,e,s)=>(s=t!=null?te(oe(t)):{},z(e||!t||!t.__esModule?R(s,"default",{value:t,enumerable:!0}):s,t)),pe=t=>z(R({},"__esModule",{value:!0}),t);var je={};ie(je,{Item:()=>Q,Label:()=>X,Root:()=>J,Value:()=>ee});module.exports=pe(je);var D=g(require("classnames")),l=g(require("react"));var P=g(require("react")),q=require("radix-ui");var G=g(require("classnames"));var ae=[],fe=new Set;function me(t){let e=Object.assign({},...t),s=[],r=[],n=new Set;for(let p in e){let i=e[p],f=i.values??ae,a={key:p,type:i.type,default:i.default,hasDefault:i.default!==void 0,responsive:"responsive"in i,className:i.className,customProperties:i.customProperties,parseValue:i.parseValue,values:f,valueSet:f.length>0?new Set(f):fe,enumValueSet:i.type==="enum"?new Set([i.default,...f]):void 0};i.className?(s.push(a),n.add(p)):(a.hasDefault||i.type==="enum")&&r.push(a)}return{styling:s,passthrough:r,stylingKeys:n}}var le={children:new WeakMap};function E(t){let e=le;for(let s=0;s<t.length;s++){let r=t[s],n=e.children.get(r);n===void 0&&(n={children:new WeakMap},e.children.set(r,n)),e=n}return e.compiled??(e.compiled=me(t))}var ue=["initial","xs","sm","md","lg","xl"],N=new Set(ue);function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var ce=new Set(["initial","xs","sm","md","lg","xl"]);function c(t){if(typeof t!="object"||t===null)return!1;for(let e in t)if(ce.has(e))return!0;return!1}function v(t,e,s){return e!==void 0?e.has(s):t.includes(s)}function W({className:t,customProperties:e,...s}){let r=L({allowArbitraryValues:!0,className:t,...s}),n=de({customProperties:e,...s});return[r,n]}function L({allowArbitraryValues:t,value:e,className:s,propValues:r,propValueSet:n,parseValue:p=i=>i}){if(e){if(typeof e=="string")return v(r,n,e)?O(s,e,p):t?s:void 0;if(c(e)){let i=e,f=[];for(let a in i){if(!C(i,a)||!N.has(a))continue;let o=i[a];if(o!==void 0){if(v(r,n,o)){let m=O(s,o,p),u=a==="initial"?m:`${a}:${m}`;f.push(u)}else if(t){let m=a==="initial"?s:`${a}:${s}`;f.push(m)}}}return f.length>0?f.join(" "):""}if(t)return s}}function O(t,e,s){let r=t?"-":"",n=s(e),p=n?.startsWith("-"),i=p?"-":"",f=p?n?.substring(1):n;return`${i}${t}${r}${f}`}function de({customProperties:t,value:e,propValues:s,propValueSet:r,parseValue:n=p=>p}){if(!e||typeof e=="string"&&v(s,r,e))return;let p;if(typeof e=="string"){let i=n(e);p={};for(let f of t)p[f]=i;return p}if(c(e)){let i=e;for(let f in i){if(!C(i,f)||!N.has(f))continue;let a=i[f];if(a===void 0||v(s,r,a))continue;let o=n(a);p??(p={});for(let m of t){let u=f==="initial"?m:`${m}-${f}`;p[u]=o}}}return p??{}}function V(...t){let e;for(let s of t)s&&(e===void 0&&(e={}),Object.assign(e,s));return e}function Pe(t,e){let s=t.initial,r=!1;return e.hasDefault&&s===void 0&&(s=e.default,r=!0),e.enumValueSet!==void 0&&!e.enumValueSet.has(s)&&(s=e.default,r=!0),r?{...t,initial:s}:t}function y(t,...e){let{styling:s,passthrough:r,stylingKeys:n}=E(e),p={};for(let a in t)n.has(a)||(p[a]=t[a]);for(let a=0;a<r.length;a++){let o=r[a],m=p[o.key];if(m===void 0){o.hasDefault&&(p[o.key]=o.default);continue}o.enumValueSet!==void 0&&!o.enumValueSet.has(m)&&!c(m)&&(p[o.key]=o.default)}let i,f=[];for(let a=0;a<s.length;a++){let o=s[a],m=t[o.key];if(m===void 0&&o.hasDefault&&(m=o.default),o.enumValueSet!==void 0&&!o.enumValueSet.has(m)&&!c(m)&&(m=o.default),!!m){if(c(m)){if(!o.responsive)continue;m=Pe(m,o)}if(o.type==="enum"){let u=L({allowArbitraryValues:!1,value:m,className:o.className,propValues:o.values,propValueSet:o.valueSet,parseValue:o.parseValue});u&&f.push(u);continue}if(o.type==="string"||o.type==="enum | string"){let[u,k]=W({className:o.className,customProperties:o.customProperties,propValues:o.type==="string"?[]:o.values,propValueSet:o.type==="string"?void 0:o.valueSet,parseValue:o.parseValue,value:m});k&&(i=V(i,k)),u&&f.push(u);continue}if(o.type==="boolean"){f.push(o.className);continue}}}return p.className=(0,G.default)(f.length>0?f.join(" "):void 0,t.className),p.style=V(i,t.style),p}var d=["0","1","2","3","4","5","6","7","8","9","10","11","12","-1","-2","-3","-4","-5","-6","-7","-8","-9","-10","-11","-12","bleed"],h={m:{type:"enum | string",values:d,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:d,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:d,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:d,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:d,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:d,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:d,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}};var I={asChild:{type:"boolean"}};var ye=["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 b={color:{type:"enum",values:ye,default:void 0}};var ge=["loud","medium","quiet"],x={emphasis:{type:"enum",className:"rt-emphasis",values:ge,default:void 0}};var De=["normal","start","end","both"],T={trim:{type:"enum",className:"rt-r-lt",values:De,responsive:!0}};var Re=["left","center","right"],M={align:{type:"enum",className:"rt-r-ta",values:Re,responsive:!0}};var ve=["wrap","nowrap","pretty","balance"],$={wrap:{type:"enum",className:"rt-r-tw",values:ve,responsive:!0}};var A={truncate:{type:"boolean",className:"rt-truncate"}};var he=["sans","mono","serif"],K={font:{type:"enum",className:"rt-r-ff",values:he}};var be=["thin","extralight","light","regular","medium","semibold","bold","extrabold"],B={weight:{type:"enum",className:"rt-r-weight",values:be,responsive:!0}};var xe=["span","div","label","p"],Te=["0","1","2","3","4","5","6","7","8","9","10","11","12"],U={as:{type:"enum",values:xe,default:"span"},...I,size:{type:"enum",className:"rt-r-size",values:Te,responsive:!0},...K,...B,...M,...T,...A,...$,...b,...x};var Se={...U,...h},w=P.memo(P.forwardRef((t,e)=>{let{children:s,className:r,asChild:n,as:p="span",color:i,...f}=y(t,Se),a=r?`rt-Text ${r}`:"rt-Text";return n?P.createElement(q.Slot.Root,{"data-accent-color":i,...f,ref:e,className:a},s):P.createElement(p,{"data-accent-color":i,...f,ref:e,className:a},s)}));w.displayName="Text";var F={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 Ne=["start","center","end","baseline","stretch"],Ce=["horizontal","vertical"],Le=["1","2","3"],j={orientation:{type:"enum",className:"rt-r-orientation",values:Ce,default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:Le,default:"2",responsive:!0},trim:{...T.trim,className:"rt-r-trim"}},H={align:{type:"enum",className:"rt-r-ai",values:Ne,responsive:!0}},_={...F,...b,emphasis:{...x.emphasis,default:"medium"}};var S=g(require("react")),Ve="2",Y=S.createContext(Ve);Y.displayName="ThemeSizeContext";function we(t,e){if(e.includes(t))return t;let s=Number(t),r=e[0],n=1/0;for(let p=0;p<e.length;p++){let i=Math.abs(Number(e[p])-s);i<n&&(n=i,r=e[p])}return r}function Z(t,e){let s=S.useContext(Y);if(t.size!==void 0)return t;let r=we(s,e.values);return r===e.default?t:{...t,size:r}}var J=l.forwardRef((t,e)=>{let s=Z(t,j.size),{className:r,...n}=y(s,j,h);return l.createElement(w,{asChild:!0},l.createElement("dl",{...n,ref:e,className:(0,D.default)("rt-DataListRoot",r)}))});J.displayName="DataList.Root";var Q=l.forwardRef((t,e)=>{let{className:s,...r}=y(t,H);return l.createElement("div",{...r,ref:e,className:(0,D.default)("rt-DataListItem",s)})});Q.displayName="DataList.Item";var X=l.forwardRef((t,e)=>{let{className:s,color:r,...n}=y(t,_);return l.createElement("dt",{...n,"data-accent-color":r,ref:e,className:(0,D.default)("rt-DataListLabel",s)})});X.displayName="DataList.Label";var ee=l.forwardRef(({children:t,className:e,...s},r)=>l.createElement("dd",{...s,ref:r,className:(0,D.default)(e,"rt-DataListValue")},t));ee.displayName="DataList.Value";
|
|
2
|
-
//# sourceMappingURL=data-list.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/data-list.tsx", "../../../src/components/text.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", "../../../src/props/as-child.prop.ts", "../../../src/props/color.prop.ts", "../../../src/props/emphasis.prop.ts", "../../../src/props/leading-trim.prop.ts", "../../../src/props/text-align.prop.ts", "../../../src/props/text-wrap.prop.ts", "../../../src/props/truncate.prop.ts", "../../../src/props/font-family.prop.ts", "../../../src/props/weight.prop.ts", "../../../src/components/text.props.tsx", "../../../src/props/width.props.ts", "../../../src/components/data-list.props.tsx", "../../../src/helpers/theme-size.ts"],
|
|
4
|
-
"sourcesContent": ["import classNames from 'classnames';\nimport * as React from 'react';\n\nimport { Text } from './text.js';\nimport {\n dataListRootPropDefs,\n dataListItemPropDefs,\n dataListLabelPropDefs,\n} from './data-list.props.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, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype DataListRootElement = HTMLDListElement;\ntype DataListRootOwnProps = GetPropDefTypes<typeof dataListRootPropDefs>;\ninterface DataListRootProps\n extends ComponentPropsWithout<'dl', RemovedProps>,\n MarginProps,\n DataListRootOwnProps {}\nconst DataListRoot = React.forwardRef<DataListRootElement, DataListRootProps>(\n (ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, dataListRootPropDefs.size);\n const { className, ...dataListProps } = extractProps(\n props,\n dataListRootPropDefs,\n marginPropDefs\n );\n return (\n <Text asChild>\n <dl\n {...dataListProps}\n ref={forwardedRef}\n className={classNames('rt-DataListRoot', className)}\n />\n </Text>\n );\n }\n);\nDataListRoot.displayName = 'DataList.Root';\n\ntype DataListItemElement = HTMLDivElement;\ntype DataListItemOwnProps = GetPropDefTypes<typeof dataListItemPropDefs>;\ninterface DataListItemProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n DataListItemOwnProps {}\nconst DataListItem = React.forwardRef<DataListItemElement, DataListItemProps>(\n (props, forwardedRef) => {\n const { className, ...itemProps } = extractProps(props, dataListItemPropDefs);\n return (\n <div {...itemProps} ref={forwardedRef} className={classNames('rt-DataListItem', className)} />\n );\n }\n);\nDataListItem.displayName = 'DataList.Item';\n\ntype DataListLabelElement = React.ElementRef<'dt'>;\ntype DataListLabelOwnProps = GetPropDefTypes<typeof dataListLabelPropDefs>;\ninterface DataListLabelProps\n extends ComponentPropsWithout<'dt', RemovedProps>,\n DataListLabelOwnProps {}\nconst DataListLabel = React.forwardRef<DataListLabelElement, DataListLabelProps>(\n (props, forwardedRef) => {\n const { className, color, ...labelProps } = extractProps(props, dataListLabelPropDefs);\n return (\n <dt\n {...labelProps}\n data-accent-color={color}\n ref={forwardedRef}\n className={classNames('rt-DataListLabel', className)}\n />\n );\n }\n);\nDataListLabel.displayName = 'DataList.Label';\n\ntype DataListValueElement = React.ElementRef<'dd'>;\ninterface DataListValueProps extends ComponentPropsWithout<'dd', RemovedProps> {}\nconst DataListValue = React.forwardRef<DataListValueElement, DataListValueProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <dd {...props} ref={forwardedRef} className={classNames(className, 'rt-DataListValue')}>\n {children}\n </dd>\n )\n);\nDataListValue.displayName = 'DataList.Value';\n\nexport {\n DataListRoot as Root,\n DataListItem as Item,\n DataListLabel as Label,\n DataListValue as Value,\n};\nexport type {\n DataListRootProps as RootProps,\n DataListItemProps as ItemProps,\n DataListLabelProps as LabelProps,\n DataListValueProps as ValueProps,\n};\n", "import * as React from 'react';\nimport { Slot } from 'radix-ui';\n\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { textPropDefs } from './text.props.js';\n\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\n\ntype TextElement = React.ElementRef<'span'>;\ntype TextOwnProps = GetPropDefTypes<typeof textPropDefs>;\ninterface CommonTextProps extends MarginProps, TextOwnProps {}\ntype TextSpanProps = { as?: 'span' } & ComponentPropsWithout<'span', RemovedProps>;\ntype TextDivProps = { as: 'div' } & ComponentPropsWithout<'div', RemovedProps>;\ntype TextLabelProps = { as: 'label' } & ComponentPropsWithout<'label', RemovedProps>;\ntype TextPProps = { as: 'p' } & ComponentPropsWithout<'p', RemovedProps>;\ntype TextProps = CommonTextProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);\n\n// Pre-merge prop definitions at module level to avoid per-render allocation\nconst mergedPropDefs = { ...textPropDefs, ...marginPropDefs };\n\nconst Text = React.memo(\n React.forwardRef<TextElement, TextProps>((props, forwardedRef) => {\n const {\n children,\n className,\n asChild,\n as: Tag = 'span',\n color,\n ...textProps\n } = extractProps(props, mergedPropDefs);\n\n const combinedClassName = className ? `rt-Text ${className}` : 'rt-Text';\n\n if (asChild) {\n return (\n <Slot.Root\n data-accent-color={color}\n {...textProps}\n ref={forwardedRef}\n className={combinedClassName}\n >\n {children}\n </Slot.Root>\n );\n }\n\n return (\n <Tag\n data-accent-color={color}\n {...(textProps as React.HTMLAttributes<HTMLElement>)}\n ref={forwardedRef as any}\n className={combinedClassName}\n >\n {children}\n </Tag>\n );\n })\n);\nText.displayName = 'Text';\n\nexport { Text };\nexport type { TextProps };\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', 'bleed'] 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", "import type { PropDef } from './prop-def.js';\n\nconst asChildPropDef = {\n /**\n * Composes the component into its immediate child instead of rendering its own HTML element.\n * You\u2019ll have to provide a single React Element child.\n */\n asChild: {\n type: 'boolean',\n },\n} satisfies {\n asChild: PropDef<boolean>;\n};\n\nexport { asChildPropDef };\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 type { PropDef } from './prop-def.js';\n\nconst emphases = ['loud', 'medium', 'quiet'] as const;\n\n// Text-first components only (Text, Heading, Blockquote, Code, DataList.Label).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default (DataList.Label: 'medium') spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'rt-emphasis',\n values: emphases,\n default: undefined,\n },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { emphasisPropDef, emphases };\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textAlignValues = ['left', 'center', 'right'] as const;\n\nconst textAlignPropDef = {\n align: {\n type: 'enum',\n className: 'rt-r-ta',\n values: textAlignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof textAlignValues)[number]>;\n};\n\nexport { textAlignPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst textWrapValues = ['wrap', 'nowrap', 'pretty', 'balance'] as const;\n\nconst textWrapPropDef = {\n wrap: {\n type: 'enum',\n className: 'rt-r-tw',\n values: textWrapValues,\n responsive: true,\n },\n} satisfies {\n wrap: PropDef<(typeof textWrapValues)[number]>;\n};\n\nexport { textWrapPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst truncatePropDef = {\n truncate: {\n type: 'boolean',\n className: 'rt-truncate',\n },\n} satisfies {\n truncate: PropDef<boolean>;\n};\n\nexport { truncatePropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst fontFamilies = ['sans', 'mono', 'serif'] as const;\n\nconst fontFamilyPropDef = {\n font: {\n type: 'enum',\n className: 'rt-r-ff',\n values: fontFamilies,\n },\n} satisfies {\n font: PropDef<(typeof fontFamilies)[number]>;\n};\n\nexport { fontFamilyPropDef };\n", "import type { PropDef } from './prop-def.js';\n\nconst weights = ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold', 'extrabold'] as const;\n\nconst weightPropDef = {\n weight: {\n type: 'enum',\n className: 'rt-r-weight',\n values: weights,\n responsive: true,\n },\n} satisfies {\n weight: PropDef<(typeof weights)[number]>;\n};\n\nexport { weightPropDef };\n", "import { asChildPropDef } from '../props/as-child.prop.js';\nimport { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { textAlignPropDef } from '../props/text-align.prop.js';\nimport { textWrapPropDef } from '../props/text-wrap.prop.js';\nimport { truncatePropDef } from '../props/truncate.prop.js';\nimport { fontFamilyPropDef } from '../props/font-family.prop.js';\nimport { weightPropDef } from '../props/weight.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst as = ['span', 'div', 'label', 'p'] as const;\nconst sizes = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] as const;\n\nconst textPropDefs = {\n as: { type: 'enum', values: as, default: 'span' },\n ...asChildPropDef,\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n responsive: true,\n },\n ...fontFamilyPropDef,\n ...weightPropDef,\n ...textAlignPropDef,\n ...leadingTrimPropDef,\n ...truncatePropDef,\n ...textWrapPropDef,\n ...colorPropDef,\n ...emphasisPropDef,\n} satisfies {\n as: PropDef<(typeof as)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport { textPropDefs };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst widthPropDefs = {\n /**\n * Sets the CSS **width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * width=\"100px\"\n * width={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/width\n */\n width: {\n type: 'string',\n className: 'rt-r-w',\n customProperties: ['--width'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minWidth=\"100px\"\n * minWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n */\n minWidth: {\n type: 'string',\n className: 'rt-r-min-w',\n customProperties: ['--min-width'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxWidth=\"100px\"\n * maxWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n */\n maxWidth: {\n type: 'string',\n className: 'rt-r-max-w',\n customProperties: ['--max-width'],\n responsive: true,\n },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype WidthProps = GetPropDefTypes<typeof widthPropDefs>;\n\nexport { widthPropDefs };\nexport type { WidthProps };\n", "import { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef, emphases } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { widthPropDefs } from '../props/width.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst alignValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;\nconst orientationValues = ['horizontal', 'vertical'] as const;\nconst sizes = ['1', '2', '3'] as const;\n\nconst dataListRootPropDefs = {\n orientation: {\n type: 'enum',\n className: 'rt-r-orientation',\n values: orientationValues,\n default: 'horizontal',\n responsive: true,\n },\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n default: '2',\n responsive: true,\n },\n trim: {\n ...leadingTrimPropDef.trim,\n className: 'rt-r-trim', // Custom trim styles due to grid layout\n },\n} satisfies {\n orientation: PropDef<(typeof orientationValues)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n trim: typeof leadingTrimPropDef.trim;\n};\n\nconst dataListItemPropDefs = {\n align: {\n type: 'enum',\n className: 'rt-r-ai',\n values: alignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof alignValues)[number]>;\n};\n\nconst dataListLabelPropDefs = {\n ...widthPropDefs,\n ...colorPropDef,\n // Labels read as secondary copy by default; 'loud' gives them full-strength ink.\n emphasis: { ...emphasisPropDef.emphasis, default: 'medium' },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { dataListRootPropDefs, dataListItemPropDefs, dataListLabelPropDefs };\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"],
|
|
5
|
-
"mappings": "skBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,UAAAE,EAAA,UAAAC,EAAA,SAAAC,EAAA,UAAAC,KAAA,eAAAC,GAAAN,IAAA,IAAAO,EAAuB,yBACvBC,EAAuB,oBCDvB,IAAAC,EAAuB,oBACvBC,EAAqB,oBCDrB,IAAAC,EAAuB,yBC0CvB,IAAMC,GAAkC,CAAC,EACnCC,GAAiC,IAAI,IAE3C,SAASC,GAAQC,EAAgE,CAC/E,IAAMC,EAAkC,OAAO,OAAO,CAAC,EAAG,GAAGD,CAAQ,EAC/DE,EAA6B,CAAC,EAC9BC,EAAiC,CAAC,EAClCC,EAAc,IAAI,IAExB,QAAWC,KAAOJ,EAAQ,CAGxB,IAAMK,EAAML,EAAOI,CAAG,EAShBE,EAASD,EAAI,QAAUT,GACvBW,EAA4B,CAChC,IAAAH,EACA,KAAMC,EAAI,KACV,QAASA,EAAI,QACb,WAAYA,EAAI,UAAY,OAC5B,WAAY,eAAgBA,EAC5B,UAAWA,EAAI,UACf,iBAAkBA,EAAI,iBACtB,WAAYA,EAAI,WAChB,OAAAC,EACA,SAAUA,EAAO,OAAS,EAAI,IAAI,IAAIA,CAAM,EAAIT,GAChD,aAAcQ,EAAI,OAAS,OAAS,IAAI,IAAa,CAACA,EAAI,QAAS,GAAGC,CAAM,CAAC,EAAI,MACnF,EAEID,EAAI,WACNJ,EAAQ,KAAKM,CAAQ,EACrBJ,EAAY,IAAIC,CAAG,IACVG,EAAS,YAAcF,EAAI,OAAS,SAE7CH,EAAY,KAAKK,CAAQ,CAE7B,CAEA,MAAO,CAAE,QAAAN,EAAS,YAAAC,EA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names": ["data_list_exports", "__export", "DataListItem", "DataListLabel", "DataListRoot", "DataListValue", "__toCommonJS", "import_classnames", "React", "React", "import_radix_ui", "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", "asChildPropDef", "accentColors", "colorPropDef", "accentColors", "emphases", "emphasisPropDef", "leadingTrimValues", "leadingTrimPropDef", "textAlignValues", "textAlignPropDef", "textWrapValues", "textWrapPropDef", "truncatePropDef", "fontFamilies", "fontFamilyPropDef", "weights", "weightPropDef", "as", "sizes", "textPropDefs", "asChildPropDef", "fontFamilyPropDef", "weightPropDef", "textAlignPropDef", "leadingTrimPropDef", "truncatePropDef", "textWrapPropDef", "colorPropDef", "emphasisPropDef", "mergedPropDefs", "textPropDefs", "marginPropDefs", "Text", "props", "forwardedRef", "children", "className", "asChild", "Tag", "color", "textProps", "extractProps", "combinedClassName", "widthPropDefs", "alignValues", "orientationValues", "sizes", "dataListRootPropDefs", "leadingTrimPropDef", "dataListItemPropDefs", "dataListLabelPropDefs", "widthPropDefs", "colorPropDef", "emphasisPropDef", "React", "THEME_SIZE_DEFAULT", "ThemeSizeContext", "clampSize", "size", "values", "n", "nearest", "distance", "i", "d", "useThemeSizeProps", "props", "propDef", "themeSize", "ThemeSizeContext", "size", "clampSize", "DataListRoot", "ownProps", "forwardedRef", "props", "useThemeSizeProps", "dataListRootPropDefs", "className", "dataListProps", "extractProps", "marginPropDefs", "Text", "classNames", "DataListItem", "itemProps", "dataListItemPropDefs", "DataListLabel", "color", "labelProps", "dataListLabelPropDefs", "DataListValue", "children"]
|
|
7
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare const dataListRootPropDefs: {
|
|
2
|
-
orientation: {
|
|
3
|
-
type: "enum";
|
|
4
|
-
className: string;
|
|
5
|
-
values: readonly ["horizontal", "vertical"];
|
|
6
|
-
default: "horizontal";
|
|
7
|
-
responsive: true;
|
|
8
|
-
};
|
|
9
|
-
size: {
|
|
10
|
-
type: "enum";
|
|
11
|
-
className: string;
|
|
12
|
-
values: readonly ["1", "2", "3"];
|
|
13
|
-
default: "2";
|
|
14
|
-
responsive: true;
|
|
15
|
-
};
|
|
16
|
-
trim: {
|
|
17
|
-
className: string;
|
|
18
|
-
type: "enum";
|
|
19
|
-
values: readonly ["normal", "start", "end", "both"];
|
|
20
|
-
responsive: true;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
declare const dataListItemPropDefs: {
|
|
24
|
-
align: {
|
|
25
|
-
type: "enum";
|
|
26
|
-
className: string;
|
|
27
|
-
values: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
28
|
-
responsive: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
declare const dataListLabelPropDefs: {
|
|
32
|
-
emphasis: {
|
|
33
|
-
default: "medium";
|
|
34
|
-
type: "enum";
|
|
35
|
-
className: string;
|
|
36
|
-
values: readonly ["loud", "medium", "quiet"];
|
|
37
|
-
};
|
|
38
|
-
color: {
|
|
39
|
-
type: "enum";
|
|
40
|
-
values: readonly ["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"];
|
|
41
|
-
default: ("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") | undefined;
|
|
42
|
-
};
|
|
43
|
-
width: {
|
|
44
|
-
type: "string";
|
|
45
|
-
className: string;
|
|
46
|
-
customProperties: "--width"[];
|
|
47
|
-
responsive: true;
|
|
48
|
-
};
|
|
49
|
-
minWidth: {
|
|
50
|
-
type: "string";
|
|
51
|
-
className: string;
|
|
52
|
-
customProperties: "--min-width"[];
|
|
53
|
-
responsive: true;
|
|
54
|
-
};
|
|
55
|
-
maxWidth: {
|
|
56
|
-
type: "string";
|
|
57
|
-
className: string;
|
|
58
|
-
customProperties: "--max-width"[];
|
|
59
|
-
responsive: true;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export { dataListRootPropDefs, dataListItemPropDefs, dataListLabelPropDefs };
|
|
63
|
-
//# sourceMappingURL=data-list.props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-list.props.d.ts","sourceRoot":"","sources":["../../../src/components/data-list.props.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;CASzB,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1B,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var r=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(s,e)=>{for(var o in e)r(s,o,{get:e[o],enumerable:!0})},d=(s,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of l(e))!c.call(s,t)&&t!==o&&r(s,t,{get:()=>e[t],enumerable:!(i=f(e,t))||i.enumerable});return s};var y=s=>d(r({},"__esModule",{value:!0}),s);var N={};u(N,{dataListItemPropDefs:()=>x,dataListLabelPropDefs:()=>C,dataListRootPropDefs:()=>w});module.exports=y(N);var P=["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 a={color:{type:"enum",values:P,default:void 0}};var D=["loud","medium","quiet"],p={emphasis:{type:"enum",className:"rt-emphasis",values:D,default:void 0}};var h=["normal","start","end","both"],n={trim:{type:"enum",className:"rt-r-lt",values:h,responsive:!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 g=["start","center","end","baseline","stretch"],b=["horizontal","vertical"],v=["1","2","3"],w={orientation:{type:"enum",className:"rt-r-orientation",values:b,default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:v,default:"2",responsive:!0},trim:{...n.trim,className:"rt-r-trim"}},x={align:{type:"enum",className:"rt-r-ai",values:g,responsive:!0}},C={...m,...a,emphasis:{...p.emphasis,default:"medium"}};
|
|
2
|
-
//# sourceMappingURL=data-list.props.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/data-list.props.tsx", "../../../src/props/color.prop.ts", "../../../src/props/emphasis.prop.ts", "../../../src/props/leading-trim.prop.ts", "../../../src/props/width.props.ts"],
|
|
4
|
-
"sourcesContent": ["import { colorPropDef } from '../props/color.prop.js';\nimport { emphasisPropDef, emphases } from '../props/emphasis.prop.js';\nimport { leadingTrimPropDef } from '../props/leading-trim.prop.js';\nimport { widthPropDefs } from '../props/width.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst alignValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;\nconst orientationValues = ['horizontal', 'vertical'] as const;\nconst sizes = ['1', '2', '3'] as const;\n\nconst dataListRootPropDefs = {\n orientation: {\n type: 'enum',\n className: 'rt-r-orientation',\n values: orientationValues,\n default: 'horizontal',\n responsive: true,\n },\n size: {\n type: 'enum',\n className: 'rt-r-size',\n values: sizes,\n default: '2',\n responsive: true,\n },\n trim: {\n ...leadingTrimPropDef.trim,\n className: 'rt-r-trim', // Custom trim styles due to grid layout\n },\n} satisfies {\n orientation: PropDef<(typeof orientationValues)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n trim: typeof leadingTrimPropDef.trim;\n};\n\nconst dataListItemPropDefs = {\n align: {\n type: 'enum',\n className: 'rt-r-ai',\n values: alignValues,\n responsive: true,\n },\n} satisfies {\n align: PropDef<(typeof alignValues)[number]>;\n};\n\nconst dataListLabelPropDefs = {\n ...widthPropDefs,\n ...colorPropDef,\n // Labels read as secondary copy by default; 'loud' gives them full-strength ink.\n emphasis: { ...emphasisPropDef.emphasis, default: 'medium' },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { dataListRootPropDefs, dataListItemPropDefs, dataListLabelPropDefs };\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 type { PropDef } from './prop-def.js';\n\nconst emphases = ['loud', 'medium', 'quiet'] as const;\n\n// Text-first components only (Text, Heading, Blockquote, Code, DataList.Label).\n// No colour + emphasis reads the gray ink ladder; colour + emphasis reads the accent ink ladder.\n// Components that need a different default (DataList.Label: 'medium') spread this def and override `default`.\nconst emphasisPropDef = {\n emphasis: {\n type: 'enum',\n className: 'rt-emphasis',\n values: emphases,\n default: undefined,\n },\n} satisfies {\n emphasis: PropDef<(typeof emphases)[number]>;\n};\n\nexport { emphasisPropDef, emphases };\n", "import type { PropDef } from './prop-def.js';\n\nconst leadingTrimValues = ['normal', 'start', 'end', 'both'] as const;\n\nconst leadingTrimPropDef = {\n trim: {\n type: 'enum',\n className: 'rt-r-lt',\n values: leadingTrimValues,\n responsive: true,\n },\n} satisfies {\n trim: PropDef<(typeof leadingTrimValues)[number]>;\n};\n\nexport { leadingTrimPropDef };\n", "import type { GetPropDefTypes, PropDef } from './prop-def.js';\n\nconst widthPropDefs = {\n /**\n * Sets the CSS **width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * width=\"100px\"\n * width={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/width\n */\n width: {\n type: 'string',\n className: 'rt-r-w',\n customProperties: ['--width'],\n responsive: true,\n },\n /**\n * Sets the CSS **min-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * minWidth=\"100px\"\n * minWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n */\n minWidth: {\n type: 'string',\n className: 'rt-r-min-w',\n customProperties: ['--min-width'],\n responsive: true,\n },\n /**\n * Sets the CSS **max-width** property.\n * Supports CSS strings and responsive objects.\n *\n * @example\n * maxWidth=\"100px\"\n * maxWidth={{ md: '100vw', xl: '1400px' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n */\n maxWidth: {\n type: 'string',\n className: 'rt-r-max-w',\n customProperties: ['--max-width'],\n responsive: true,\n },\n} satisfies {\n width: PropDef<string>;\n minWidth: PropDef<string>;\n maxWidth: PropDef<string>;\n};\n\ntype WidthProps = GetPropDefTypes<typeof widthPropDefs>;\n\nexport { widthPropDefs };\nexport type { WidthProps };\n"],
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,0BAAAE,EAAA,0BAAAC,EAAA,yBAAAC,IAAA,eAAAC,EAAAL,GCGA,IAAMM,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,ECXA,IAAMC,EAAW,CAAC,OAAQ,SAAU,OAAO,EAKrCC,EAAkB,CACtB,SAAU,CACR,KAAM,OACN,UAAW,cACX,OAAQD,EACR,QAAS,MACX,CACF,ECZA,IAAME,EAAoB,CAAC,SAAU,QAAS,MAAO,MAAM,EAErDC,EAAqB,CACzB,KAAM,CACJ,KAAM,OACN,UAAW,UACX,OAAQD,EACR,WAAY,EACd,CACF,ECTA,IAAME,EAAgB,CAYpB,MAAO,CACL,KAAM,SACN,UAAW,SACX,iBAAkB,CAAC,SAAS,EAC5B,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,aACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,EAYA,SAAU,CACR,KAAM,SACN,UAAW,aACX,iBAAkB,CAAC,aAAa,EAChC,WAAY,EACd,CACF,EJ/CA,IAAMC,EAAc,CAAC,QAAS,SAAU,MAAO,WAAY,SAAS,EAC9DC,EAAoB,CAAC,aAAc,UAAU,EAC7CC,EAAQ,CAAC,IAAK,IAAK,GAAG,EAEtBC,EAAuB,CAC3B,YAAa,CACX,KAAM,OACN,UAAW,mBACX,OAAQF,EACR,QAAS,aACT,WAAY,EACd,EACA,KAAM,CACJ,KAAM,OACN,UAAW,YACX,OAAQC,EACR,QAAS,IACT,WAAY,EACd,EACA,KAAM,CACJ,GAAGE,EAAmB,KACtB,UAAW,WACb,CACF,EAMMC,EAAuB,CAC3B,MAAO,CACL,KAAM,OACN,UAAW,UACX,OAAQL,EACR,WAAY,EACd,CACF,EAIMM,EAAwB,CAC5B,GAAGC,EACH,GAAGC,EAEH,SAAU,CAAE,GAAGC,EAAgB,SAAU,QAAS,QAAS,CAC7D",
|
|
6
|
-
"names": ["data_list_props_exports", "__export", "dataListItemPropDefs", "dataListLabelPropDefs", "dataListRootPropDefs", "__toCommonJS", "accentColors", "colorPropDef", "accentColors", "emphases", "emphasisPropDef", "leadingTrimValues", "leadingTrimPropDef", "widthPropDefs", "alignValues", "orientationValues", "sizes", "dataListRootPropDefs", "leadingTrimPropDef", "dataListItemPropDefs", "dataListLabelPropDefs", "widthPropDefs", "colorPropDef", "emphasisPropDef"]
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { emPropDefs } from './em.props.js';
|
|
3
|
-
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
4
|
-
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
5
|
-
type EmOwnProps = GetPropDefTypes<typeof emPropDefs>;
|
|
6
|
-
interface EmProps extends ComponentPropsWithout<'em', RemovedProps>, EmOwnProps {
|
|
7
|
-
}
|
|
8
|
-
declare const Em: React.ForwardRefExoticComponent<EmProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
-
export { Em };
|
|
10
|
-
export type { EmProps };
|
|
11
|
-
//# sourceMappingURL=em.d.ts.map
|