@vavt/react-ui 1.4.6 → 1.6.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 +40 -8
- package/dist/Alert-DOkvqQvm.js +53 -0
- package/dist/Alert-sLmfxqI9.cjs +1 -0
- package/dist/Anchor-BS3LMt1h.cjs +1 -0
- package/dist/Anchor-BjJM-_mv.js +211 -0
- package/dist/Announcement-B8vIk1Rj.js +226 -0
- package/dist/Announcement-CySIi9IJ.cjs +1 -0
- package/dist/AutoComplete-DtLb-HE6.cjs +1 -0
- package/dist/AutoComplete-Dy-Kr0rL.js +219 -0
- package/dist/Avatar-B5P63lmD.js +152 -0
- package/dist/Avatar-D8i7gV9y.cjs +1 -0
- package/dist/Badge-57id067T.js +77 -0
- package/dist/Badge-CVTadUEf.cjs +1 -0
- package/dist/Breadcrumb-BFyFxX4o.cjs +1 -0
- package/dist/Breadcrumb-lgkQsPcN.js +109 -0
- package/dist/Button-C5QblDdX.cjs +1 -0
- package/dist/Button-Cf1wZRwv.js +98 -0
- package/dist/Cascader-CwXX4K-h.cjs +1 -0
- package/dist/Cascader-eGxWTgQF.js +350 -0
- package/dist/Checkbox-BIIL_BGY.js +105 -0
- package/dist/Checkbox-CLTu0bHv.js +130 -0
- package/dist/Checkbox-DD_PVIm8.cjs +1 -0
- package/dist/Checkbox-DaIfYAh6.cjs +1 -0
- package/dist/Collapse-7OHimp_f.cjs +1 -0
- package/dist/Collapse-BBEima1V.js +119 -0
- package/dist/Cron-ZOHcyvZ5.cjs +1 -0
- package/dist/Cron-h36r5DQI.js +1256 -0
- package/dist/{DatePicker-3wbkApMJ.js → DatePicker-ClP5xjNw.js} +1 -1
- package/dist/{DatePicker-B3mA7BzE.cjs → DatePicker-JNDkFFdi.cjs} +1 -1
- package/dist/{DateTimePicker-C1bggaBl.cjs → DateTimePicker-BXZFzGDJ.cjs} +1 -1
- package/dist/{DateTimePicker--A4EWUe-.js → DateTimePicker-CXd0DFtN.js} +1 -1
- package/dist/Descriptions-CmSiqsqf.cjs +1 -0
- package/dist/Descriptions-EL2QcZ1K.js +32 -0
- package/dist/Divider-BF4sBcyc.cjs +1 -0
- package/dist/Divider-DewVy2WZ.js +49 -0
- package/dist/Drawer-ZHiCGBV9.cjs +1 -0
- package/dist/Drawer-kL3IKbGs.js +132 -0
- package/dist/Dropdown-BlLNFpNY.js +385 -0
- package/dist/Dropdown-KY6-0lNd.cjs +1 -0
- package/dist/{Empty-Dny96c3p.cjs → Empty-DOXWcltv.cjs} +1 -1
- package/dist/{Empty-MmxZitR8.js → Empty-DiG1Bfjp.js} +6 -6
- package/dist/Form-CL3RQz-O.cjs +1 -0
- package/dist/Form-DZEcx2f-.js +518 -0
- package/dist/Image-Rk4nWRrc.cjs +1 -0
- package/dist/Image-WofeQtU9.js +322 -0
- package/dist/Input-C89PlPIf.cjs +1 -0
- package/dist/Input-Cj4t0Dor.js +147 -0
- package/dist/Layout-BvzpahYT.js +62 -0
- package/dist/Layout-gSZevex1.cjs +1 -0
- package/dist/List-BPaMr973.cjs +1 -0
- package/dist/List-DnddRNf7.js +49 -0
- package/dist/Loading-BsbXYn5I.js +49 -0
- package/dist/Loading-DiOUppkA.cjs +1 -0
- package/dist/Menu-CVQfORyM.js +231 -0
- package/dist/Menu-M2d3szN0.cjs +1 -0
- package/dist/Message-CDxOzMxv.cjs +1 -0
- package/dist/Message-TmgyiTLQ.js +227 -0
- package/dist/MessageBox-B0TkCbcA.js +230 -0
- package/dist/MessageBox-B0wir3PE.cjs +1 -0
- package/dist/Modal-D3z74epw.cjs +1 -0
- package/dist/Modal-SEcJXLHr.js +272 -0
- package/dist/Notification-BZgFLf5M.cjs +1 -0
- package/dist/Notification-GA45VI6a.js +251 -0
- package/dist/NumberInput-BFdOKU22.cjs +1 -0
- package/dist/NumberInput-CX64HVpD.js +179 -0
- package/dist/Pagination-BTIrIcrA.js +193 -0
- package/dist/Pagination-BydXOzkW.cjs +1 -0
- package/dist/Popconfirm-CxELRlYH.js +94 -0
- package/dist/Popconfirm-Ds9VvotR.cjs +1 -0
- package/dist/Popover-Bx40HGHC.js +243 -0
- package/dist/Popover-CGLV14NH.cjs +1 -0
- package/dist/Progress-BOxDD7M4.cjs +1 -0
- package/dist/Progress-CkANFxHW.js +41 -0
- package/dist/RadioGroup-CC4J-HMH.js +233 -0
- package/dist/RadioGroup-CqRQvu5a.cjs +1 -0
- package/dist/Result-BxVunr6s.js +77 -0
- package/dist/Result-DmE09BV4.cjs +1 -0
- package/dist/Scrollbar-BdByLYS1.cjs +1 -0
- package/dist/Scrollbar-Dprb-UNK.js +278 -0
- package/dist/Segmented-DNWPPCh_.cjs +1 -0
- package/dist/Segmented-xNZ5weRI.js +40 -0
- package/dist/Select-CSSIvqeF.js +549 -0
- package/dist/Select-__nuf01m.cjs +1 -0
- package/dist/Sidebar-CL3RBc56.cjs +1 -0
- package/dist/Sidebar-CtuY3ViD.js +82 -0
- package/dist/Skeleton-D2wjkTKQ.js +31 -0
- package/dist/Skeleton-qghEqJuT.cjs +1 -0
- package/dist/Slider-CG7lTmYW.js +259 -0
- package/dist/Slider-CSDQJ-SO.cjs +1 -0
- package/dist/Space-DG-poomt.cjs +1 -0
- package/dist/{Space-gnVH7rEt.js → Space-Gxs8Dq37.js} +1 -1
- package/dist/Statistic-Bnx-S52U.cjs +1 -0
- package/dist/Statistic-DOdu7ZQ_.js +35 -0
- package/dist/Steps-CnvRwUHr.js +90 -0
- package/dist/Steps-D1KA1GYB.cjs +1 -0
- package/dist/Switch-CHCsRtdM.js +99 -0
- package/dist/Switch-CkBY9vvd.cjs +1 -0
- package/dist/Table-CUhgkd0h.cjs +1 -0
- package/dist/Table-hlHAagQL.js +579 -0
- package/dist/Tabs-Coy80Als.cjs +1 -0
- package/dist/Tabs-es2_tcwg.js +165 -0
- package/dist/Tag-DgER2JB4.cjs +1 -0
- package/dist/Tag-lRk1klOV.js +73 -0
- package/dist/Textarea-DCGKyIdH.cjs +1 -0
- package/dist/Textarea-DmkOQbxw.js +108 -0
- package/dist/TimePicker-CL4cvY6f.js +228 -0
- package/dist/TimePicker-rjdK-1bZ.cjs +1 -0
- package/dist/{Timeline-euWvUS4e.js → Timeline-DS8fnQfx.js} +33 -28
- package/dist/Timeline-DqMuGL3H.cjs +1 -0
- package/dist/Tooltip-DCnxa8SO.js +221 -0
- package/dist/Tooltip-DKFomTs5.cjs +1 -0
- package/dist/Transfer-CT-OQ88J.cjs +1 -0
- package/dist/Transfer-HzFO2fJO.js +142 -0
- package/dist/Transition-B5WW_-G-.cjs +1 -0
- package/dist/Transition-BqsDG9CS.js +137 -0
- package/dist/Tree-BVfdybXj.js +254 -0
- package/dist/Tree-TICzK1gn.cjs +1 -0
- package/dist/TreeSelect-B2Z7YlWG.js +152 -0
- package/dist/TreeSelect-BV6SNXA5.cjs +1 -0
- package/dist/Typography-DGNiWmMw.js +106 -0
- package/dist/Typography-Hz70NWCj.cjs +1 -0
- package/dist/Upload-B9xeJd90.cjs +1 -0
- package/dist/Upload-BmD3BRXF.js +260 -0
- package/dist/base.css +1 -1
- package/dist/choice-popup-G6DBcv0i.cjs +1 -0
- package/dist/choice-popup-nIqR2Rcb.js +202 -0
- package/dist/cjs/Alert.cjs +1 -1
- package/dist/cjs/Anchor.cjs +1 -1
- package/dist/cjs/Announcement.cjs +1 -1
- package/dist/cjs/AutoComplete.cjs +1 -0
- package/dist/cjs/Avatar.cjs +1 -0
- package/dist/cjs/Badge.cjs +1 -1
- package/dist/cjs/Breadcrumb.cjs +1 -0
- package/dist/cjs/Button.cjs +1 -1
- package/dist/cjs/Cascader.cjs +1 -0
- package/dist/cjs/Checkbox.cjs +1 -1
- package/dist/cjs/Collapse.cjs +1 -0
- package/dist/cjs/Cron.cjs +1 -1
- package/dist/cjs/DatePicker.cjs +1 -1
- package/dist/cjs/DateTimePicker.cjs +1 -1
- package/dist/cjs/Descriptions.cjs +1 -0
- package/dist/cjs/Divider.cjs +1 -1
- package/dist/cjs/Drawer.cjs +1 -1
- package/dist/cjs/Dropdown.cjs +1 -1
- package/dist/cjs/Empty.cjs +1 -1
- package/dist/cjs/Form.cjs +1 -1
- package/dist/cjs/Image.cjs +1 -0
- package/dist/cjs/Input.cjs +1 -1
- package/dist/cjs/Layout.cjs +1 -0
- package/dist/cjs/List.cjs +1 -0
- package/dist/cjs/Loading.cjs +1 -1
- package/dist/cjs/Menu.cjs +1 -0
- package/dist/cjs/Message.cjs +1 -0
- package/dist/cjs/MessageBox.cjs +1 -1
- package/dist/cjs/Modal.cjs +1 -1
- package/dist/cjs/Notification.cjs +1 -1
- package/dist/cjs/NumberInput.cjs +1 -1
- package/dist/cjs/Pagination.cjs +1 -1
- package/dist/cjs/Popconfirm.cjs +1 -0
- package/dist/cjs/Popover.cjs +1 -0
- package/dist/cjs/Progress.cjs +1 -1
- package/dist/cjs/Radio.cjs +1 -1
- package/dist/cjs/Result.cjs +1 -0
- package/dist/cjs/Scrollbar.cjs +1 -1
- package/dist/cjs/Segmented.cjs +1 -0
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/Sidebar.cjs +1 -1
- package/dist/cjs/Skeleton.cjs +1 -0
- package/dist/cjs/Slider.cjs +1 -1
- package/dist/cjs/Space.cjs +1 -1
- package/dist/cjs/Statistic.cjs +1 -0
- package/dist/cjs/Steps.cjs +1 -0
- package/dist/cjs/Switch.cjs +1 -1
- package/dist/cjs/Table.cjs +1 -1
- package/dist/cjs/Tabs.cjs +1 -1
- package/dist/cjs/Tag.cjs +1 -1
- package/dist/cjs/Textarea.cjs +1 -1
- package/dist/cjs/TimePicker.cjs +1 -1
- package/dist/cjs/Timeline.cjs +1 -1
- package/dist/cjs/Tooltip.cjs +1 -1
- package/dist/cjs/Transfer.cjs +1 -0
- package/dist/cjs/Transition.cjs +1 -1
- package/dist/cjs/Tree.cjs +1 -0
- package/dist/cjs/TreeSelect.cjs +1 -0
- package/dist/cjs/Typography.cjs +1 -0
- package/dist/cjs/Upload.cjs +1 -1
- package/dist/cjs/global.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/register.cjs +1 -1
- package/dist/css/Alert.css +1 -1
- package/dist/css/Anchor.css +1 -1
- package/dist/css/Announcement.css +1 -1
- package/dist/css/AutoComplete.css +1 -0
- package/dist/css/Avatar.css +1 -0
- package/dist/css/Badge.css +1 -1
- package/dist/css/Breadcrumb.css +1 -0
- package/dist/css/Button.css +1 -1
- package/dist/css/Card.css +1 -1
- package/dist/css/Cascader.css +1 -0
- package/dist/css/Checkbox.css +1 -1
- package/dist/css/Col.css +1 -1
- package/dist/css/Collapse.css +1 -0
- package/dist/css/Cron.css +1 -1
- package/dist/css/DatePicker.css +1 -1
- package/dist/css/DateTimePicker.css +1 -1
- package/dist/css/Descriptions.css +1 -0
- package/dist/css/Divider.css +1 -1
- package/dist/css/Drawer.css +1 -1
- package/dist/css/Dropdown.css +1 -1
- package/dist/css/Empty.css +1 -1
- package/dist/css/Form.css +1 -1
- package/dist/css/Image.css +1 -0
- package/dist/css/Input.css +1 -1
- package/dist/css/Layout.css +1 -0
- package/dist/css/List.css +1 -0
- package/dist/css/Loading.css +1 -1
- package/dist/css/Menu.css +1 -0
- package/dist/css/Message.css +1 -0
- package/dist/css/MessageBox.css +1 -1
- package/dist/css/Modal.css +1 -1
- package/dist/css/Notification.css +1 -1
- package/dist/css/NumberInput.css +1 -1
- package/dist/css/Pagination.css +1 -1
- package/dist/css/Popconfirm.css +1 -0
- package/dist/css/Popover.css +1 -0
- package/dist/css/Progress.css +1 -1
- package/dist/css/Radio.css +1 -1
- package/dist/css/Result.css +1 -0
- package/dist/css/Row.css +1 -1
- package/dist/css/Scrollbar.css +1 -1
- package/dist/css/Segmented.css +1 -0
- package/dist/css/Select.css +1 -1
- package/dist/css/Sidebar.css +1 -1
- package/dist/css/Skeleton.css +1 -0
- package/dist/css/Slider.css +1 -1
- package/dist/css/Statistic.css +1 -0
- package/dist/css/Steps.css +1 -0
- package/dist/css/Switch.css +1 -1
- package/dist/css/Table.css +1 -1
- package/dist/css/Tabs.css +1 -1
- package/dist/css/Tag.css +1 -1
- package/dist/css/Textarea.css +1 -1
- package/dist/css/TimePicker.css +1 -1
- package/dist/css/Timeline.css +1 -1
- package/dist/css/Tooltip.css +1 -1
- package/dist/css/Transfer.css +1 -0
- package/dist/css/Tree.css +1 -0
- package/dist/css/TreeSelect.css +1 -0
- package/dist/css/Typography.css +1 -0
- package/dist/css/Upload.css +1 -1
- package/dist/date-picker-CGO6ckz3.cjs +1 -0
- package/dist/date-picker-CwYlRU13.js +729 -0
- package/dist/dialog-shell-C1FMUESq.cjs +1 -0
- package/dist/dialog-shell-CKtHqdVE.js +224 -0
- package/dist/es/Alert.mjs +1 -1
- package/dist/es/Anchor.mjs +1 -1
- package/dist/es/Announcement.mjs +1 -1
- package/dist/es/AutoComplete.mjs +3 -0
- package/dist/es/Avatar.mjs +3 -0
- package/dist/es/Badge.mjs +1 -1
- package/dist/es/Breadcrumb.mjs +3 -0
- package/dist/es/Button.mjs +1 -1
- package/dist/es/Cascader.mjs +3 -0
- package/dist/es/Checkbox.mjs +1 -1
- package/dist/es/Collapse.mjs +3 -0
- package/dist/es/Cron.mjs +1 -1
- package/dist/es/DatePicker.mjs +1 -1
- package/dist/es/DateTimePicker.mjs +1 -1
- package/dist/es/Descriptions.mjs +3 -0
- package/dist/es/Divider.mjs +1 -1
- package/dist/es/Drawer.mjs +1 -1
- package/dist/es/Dropdown.mjs +1 -1
- package/dist/es/Empty.mjs +1 -1
- package/dist/es/Form.mjs +1 -1
- package/dist/es/Image.mjs +3 -0
- package/dist/es/Input.mjs +1 -1
- package/dist/es/Layout.mjs +3 -0
- package/dist/es/List.mjs +3 -0
- package/dist/es/Loading.mjs +1 -1
- package/dist/es/Menu.mjs +3 -0
- package/dist/es/Message.mjs +3 -0
- package/dist/es/MessageBox.mjs +1 -1
- package/dist/es/Modal.mjs +1 -1
- package/dist/es/Notification.mjs +1 -1
- package/dist/es/NumberInput.mjs +1 -1
- package/dist/es/Pagination.mjs +1 -1
- package/dist/es/Popconfirm.mjs +3 -0
- package/dist/es/Popover.mjs +3 -0
- package/dist/es/Progress.mjs +1 -1
- package/dist/es/Radio.mjs +1 -1
- package/dist/es/Result.mjs +3 -0
- package/dist/es/Scrollbar.mjs +1 -1
- package/dist/es/Segmented.mjs +3 -0
- package/dist/es/Select.mjs +1 -1
- package/dist/es/Sidebar.mjs +1 -1
- package/dist/es/Skeleton.mjs +3 -0
- package/dist/es/Slider.mjs +1 -1
- package/dist/es/Space.mjs +1 -1
- package/dist/es/Statistic.mjs +3 -0
- package/dist/es/Steps.mjs +3 -0
- package/dist/es/Switch.mjs +1 -1
- package/dist/es/Table.mjs +1 -1
- package/dist/es/Tabs.mjs +1 -1
- package/dist/es/Tag.mjs +1 -1
- package/dist/es/Textarea.mjs +1 -1
- package/dist/es/TimePicker.mjs +1 -1
- package/dist/es/Timeline.mjs +1 -1
- package/dist/es/Tooltip.mjs +1 -1
- package/dist/es/Transfer.mjs +3 -0
- package/dist/es/Transition.mjs +1 -1
- package/dist/es/Tree.mjs +3 -0
- package/dist/es/TreeSelect.mjs +3 -0
- package/dist/es/Typography.mjs +3 -0
- package/dist/es/Upload.mjs +1 -1
- package/dist/es/global.mjs +1 -1
- package/dist/es/index.mjs +65 -43
- package/dist/es/register.mjs +1 -1
- package/dist/floating-BHmOWQnJ.cjs +1 -0
- package/dist/{floating-BqCWEj83.js → floating-C-0-Sk6n.js} +62 -56
- package/dist/focus-DndacLWx.cjs +1 -0
- package/dist/focus-oev-zUHI.js +9 -0
- package/dist/icon-B0ZZGPnp.cjs +1 -0
- package/dist/icon-CDsPa8R1.js +26 -0
- package/dist/index.css +1 -1
- package/dist/layer-D27_z68G.js +105 -0
- package/dist/layer-kZfooayr.cjs +1 -0
- package/dist/notice-timer-9sjKpz2g.cjs +1 -0
- package/dist/notice-timer-Biq_Sc_9.js +28 -0
- package/dist/refs-C1T7xAaV.js +20 -0
- package/dist/refs-oZ0l8Ckc.cjs +1 -0
- package/dist/registry-CKsCoyn0.cjs +1 -0
- package/dist/registry-DCaxFUxl.js +131 -0
- package/dist/style/AutoComplete.cjs +9 -0
- package/dist/style/AutoComplete.mjs +9 -0
- package/dist/style/Avatar.cjs +7 -0
- package/dist/style/Avatar.mjs +7 -0
- package/dist/style/Breadcrumb.cjs +7 -0
- package/dist/style/Breadcrumb.mjs +7 -0
- package/dist/style/Cascader.cjs +9 -0
- package/dist/style/Cascader.mjs +9 -0
- package/dist/style/Collapse.cjs +7 -0
- package/dist/style/Collapse.mjs +7 -0
- package/dist/style/Descriptions.cjs +7 -0
- package/dist/style/Descriptions.mjs +7 -0
- package/dist/style/Image.cjs +10 -0
- package/dist/style/Image.mjs +10 -0
- package/dist/style/Layout.cjs +7 -0
- package/dist/style/Layout.mjs +7 -0
- package/dist/style/List.cjs +9 -0
- package/dist/style/List.mjs +9 -0
- package/dist/style/Menu.cjs +8 -0
- package/dist/style/Menu.mjs +8 -0
- package/dist/style/Message.cjs +8 -0
- package/dist/style/Message.mjs +8 -0
- package/dist/style/Popconfirm.cjs +9 -0
- package/dist/style/Popconfirm.mjs +9 -0
- package/dist/style/Popover.cjs +8 -0
- package/dist/style/Popover.mjs +8 -0
- package/dist/style/Result.cjs +7 -0
- package/dist/style/Result.mjs +7 -0
- package/dist/style/Segmented.cjs +8 -0
- package/dist/style/Segmented.mjs +8 -0
- package/dist/style/Skeleton.cjs +7 -0
- package/dist/style/Skeleton.mjs +7 -0
- package/dist/style/Statistic.cjs +7 -0
- package/dist/style/Statistic.mjs +7 -0
- package/dist/style/Steps.cjs +7 -0
- package/dist/style/Steps.mjs +7 -0
- package/dist/style/Transfer.cjs +11 -0
- package/dist/style/Transfer.mjs +11 -0
- package/dist/style/Tree.cjs +9 -0
- package/dist/style/Tree.mjs +9 -0
- package/dist/style/TreeSelect.cjs +10 -0
- package/dist/style/TreeSelect.mjs +10 -0
- package/dist/style/Typography.cjs +7 -0
- package/dist/style/Typography.mjs +7 -0
- package/dist/time-wheel-DBKM4ruL.cjs +1 -0
- package/dist/time-wheel-Oxpcj0Hi.js +344 -0
- package/dist/types/Alert/type.d.cts +4 -4
- package/dist/types/Alert/type.d.ts +4 -4
- package/dist/types/Anchor/type.d.cts +9 -9
- package/dist/types/Anchor/type.d.ts +9 -9
- package/dist/types/Announcement/type.d.cts +4 -4
- package/dist/types/Announcement/type.d.ts +4 -4
- package/dist/types/AutoComplete/AutoComplete.d.cts +6 -0
- package/dist/types/AutoComplete/AutoComplete.d.ts +6 -0
- package/dist/types/AutoComplete/index.d.cts +2 -0
- package/dist/types/AutoComplete/index.d.ts +2 -0
- package/dist/types/AutoComplete/type.d.cts +60 -0
- package/dist/types/AutoComplete/type.d.ts +60 -0
- package/dist/types/Avatar/Avatar.d.cts +4 -0
- package/dist/types/Avatar/Avatar.d.ts +4 -0
- package/dist/types/Avatar/AvatarGroup.d.cts +7 -0
- package/dist/types/Avatar/AvatarGroup.d.ts +7 -0
- package/dist/types/Avatar/context.d.cts +6 -0
- package/dist/types/Avatar/context.d.ts +6 -0
- package/dist/types/Avatar/index.d.cts +7 -0
- package/dist/types/Avatar/index.d.ts +7 -0
- package/dist/types/Avatar/type.d.cts +38 -0
- package/dist/types/Avatar/type.d.ts +38 -0
- package/dist/types/Badge/type.d.cts +4 -4
- package/dist/types/Badge/type.d.ts +4 -4
- package/dist/types/Breadcrumb/Breadcrumb.d.cts +5 -0
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/types/Breadcrumb/index.d.cts +6 -0
- package/dist/types/Breadcrumb/index.d.ts +6 -0
- package/dist/types/Breadcrumb/type.d.cts +59 -0
- package/dist/types/Breadcrumb/type.d.ts +59 -0
- package/dist/types/Button/Button.d.cts +1 -1
- package/dist/types/Button/Button.d.ts +1 -1
- package/dist/types/Button/type.d.cts +2 -2
- package/dist/types/Button/type.d.ts +2 -2
- package/dist/types/Card/type.d.cts +7 -7
- package/dist/types/Card/type.d.ts +7 -7
- package/dist/types/Cascader/Cascader.d.cts +3 -0
- package/dist/types/Cascader/Cascader.d.ts +3 -0
- package/dist/types/Cascader/index.d.cts +2 -0
- package/dist/types/Cascader/index.d.ts +2 -0
- package/dist/types/Cascader/type.d.cts +52 -0
- package/dist/types/Cascader/type.d.ts +52 -0
- package/dist/types/Checkbox/context.d.cts +2 -0
- package/dist/types/Checkbox/context.d.ts +2 -0
- package/dist/types/Checkbox/type.d.cts +12 -12
- package/dist/types/Checkbox/type.d.ts +12 -12
- package/dist/types/Col/type.d.cts +12 -11
- package/dist/types/Col/type.d.ts +12 -11
- package/dist/types/Collapse/Collapse.d.cts +3 -0
- package/dist/types/Collapse/Collapse.d.ts +3 -0
- package/dist/types/Collapse/index.d.cts +4 -0
- package/dist/types/Collapse/index.d.ts +4 -0
- package/dist/types/Collapse/type.d.cts +52 -0
- package/dist/types/Collapse/type.d.ts +52 -0
- package/dist/types/Cron/CronPanel.d.cts +10 -1
- package/dist/types/Cron/CronPanel.d.ts +10 -1
- package/dist/types/Cron/schedule.d.cts +4 -1
- package/dist/types/Cron/schedule.d.ts +4 -1
- package/dist/types/Cron/type.d.cts +5 -5
- package/dist/types/Cron/type.d.ts +5 -5
- package/dist/types/DatePicker/type.d.cts +8 -4
- package/dist/types/DatePicker/type.d.ts +8 -4
- package/dist/types/DateTimePicker/type.d.cts +13 -4
- package/dist/types/DateTimePicker/type.d.ts +13 -4
- package/dist/types/Descriptions/Descriptions.d.cts +3 -0
- package/dist/types/Descriptions/Descriptions.d.ts +3 -0
- package/dist/types/Descriptions/index.d.cts +4 -0
- package/dist/types/Descriptions/index.d.ts +4 -0
- package/dist/types/Descriptions/type.d.cts +22 -0
- package/dist/types/Descriptions/type.d.ts +22 -0
- package/dist/types/Divider/type.d.cts +4 -2
- package/dist/types/Divider/type.d.ts +4 -2
- package/dist/types/Drawer/type.d.cts +11 -11
- package/dist/types/Drawer/type.d.ts +11 -11
- package/dist/types/Dropdown/type.d.cts +12 -10
- package/dist/types/Dropdown/type.d.ts +12 -10
- package/dist/types/Empty/type.d.cts +3 -3
- package/dist/types/Empty/type.d.ts +3 -3
- package/dist/types/Form/FormItem.d.cts +7 -3
- package/dist/types/Form/FormItem.d.ts +7 -3
- package/dist/types/Form/context.d.cts +3 -1
- package/dist/types/Form/context.d.ts +3 -1
- package/dist/types/Form/index.d.cts +2 -2
- package/dist/types/Form/index.d.ts +2 -2
- package/dist/types/Form/type.d.cts +11 -8
- package/dist/types/Form/type.d.ts +11 -8
- package/dist/types/Image/Image.d.cts +3 -0
- package/dist/types/Image/Image.d.ts +3 -0
- package/dist/types/Image/ImagePreview.d.cts +4 -0
- package/dist/types/Image/ImagePreview.d.ts +4 -0
- package/dist/types/Image/index.d.cts +3 -0
- package/dist/types/Image/index.d.ts +3 -0
- package/dist/types/Image/type.d.cts +31 -0
- package/dist/types/Image/type.d.ts +31 -0
- package/dist/types/Input/type.d.cts +7 -7
- package/dist/types/Input/type.d.ts +7 -7
- package/dist/types/Layout/Layout.d.cts +8 -0
- package/dist/types/Layout/Layout.d.ts +8 -0
- package/dist/types/Layout/index.d.cts +2 -0
- package/dist/types/Layout/index.d.ts +2 -0
- package/dist/types/Layout/type.d.cts +26 -0
- package/dist/types/Layout/type.d.ts +26 -0
- package/dist/types/List/List.d.cts +3 -0
- package/dist/types/List/List.d.ts +3 -0
- package/dist/types/List/index.d.cts +2 -0
- package/dist/types/List/index.d.ts +2 -0
- package/dist/types/List/type.d.cts +20 -0
- package/dist/types/List/type.d.ts +20 -0
- package/dist/types/Loading/type.d.cts +3 -3
- package/dist/types/Loading/type.d.ts +3 -3
- package/dist/types/Menu/Menu.d.cts +4 -0
- package/dist/types/Menu/Menu.d.ts +4 -0
- package/dist/types/Menu/index.d.cts +2 -0
- package/dist/types/Menu/index.d.ts +2 -0
- package/dist/types/Menu/type.d.cts +42 -0
- package/dist/types/Menu/type.d.ts +42 -0
- package/dist/types/Message/Message.d.cts +3 -0
- package/dist/types/Message/Message.d.ts +3 -0
- package/dist/types/Message/host.d.cts +5 -0
- package/dist/types/Message/host.d.ts +5 -0
- package/dist/types/Message/index.d.cts +4 -0
- package/dist/types/Message/index.d.ts +4 -0
- package/dist/types/Message/service.d.cts +4 -0
- package/dist/types/Message/service.d.ts +4 -0
- package/dist/types/Message/type.d.cts +42 -0
- package/dist/types/Message/type.d.ts +42 -0
- package/dist/types/MessageBox/type.d.cts +8 -8
- package/dist/types/MessageBox/type.d.ts +8 -8
- package/dist/types/Modal/type.d.cts +6 -6
- package/dist/types/Modal/type.d.ts +6 -6
- package/dist/types/Notification/service.d.cts +0 -1
- package/dist/types/Notification/service.d.ts +0 -1
- package/dist/types/Notification/type.d.cts +8 -7
- package/dist/types/Notification/type.d.ts +8 -7
- package/dist/types/NumberInput/type.d.cts +11 -11
- package/dist/types/NumberInput/type.d.ts +11 -11
- package/dist/types/Pagination/type.d.cts +6 -6
- package/dist/types/Pagination/type.d.ts +6 -6
- package/dist/types/Popconfirm/Popconfirm.d.cts +4 -0
- package/dist/types/Popconfirm/Popconfirm.d.ts +4 -0
- package/dist/types/Popconfirm/index.d.cts +4 -0
- package/dist/types/Popconfirm/index.d.ts +4 -0
- package/dist/types/Popconfirm/type.d.cts +18 -0
- package/dist/types/Popconfirm/type.d.ts +18 -0
- package/dist/types/Popover/Popover.d.cts +3 -0
- package/dist/types/Popover/Popover.d.ts +3 -0
- package/dist/types/Popover/index.d.cts +4 -0
- package/dist/types/Popover/index.d.ts +4 -0
- package/dist/types/Popover/type.d.cts +30 -0
- package/dist/types/Popover/type.d.ts +30 -0
- package/dist/types/Progress/type.d.cts +5 -5
- package/dist/types/Progress/type.d.ts +5 -5
- package/dist/types/Radio/context.d.cts +2 -0
- package/dist/types/Radio/context.d.ts +2 -0
- package/dist/types/Radio/type.d.cts +8 -8
- package/dist/types/Radio/type.d.ts +8 -8
- package/dist/types/Result/Result.d.cts +3 -0
- package/dist/types/Result/Result.d.ts +3 -0
- package/dist/types/Result/index.d.cts +2 -0
- package/dist/types/Result/index.d.ts +2 -0
- package/dist/types/Result/type.d.cts +17 -0
- package/dist/types/Result/type.d.ts +17 -0
- package/dist/types/Row/type.d.cts +3 -3
- package/dist/types/Row/type.d.ts +3 -3
- package/dist/types/Scrollbar/index.d.cts +1 -1
- package/dist/types/Scrollbar/index.d.ts +1 -1
- package/dist/types/Scrollbar/type.d.cts +3 -3
- package/dist/types/Scrollbar/type.d.ts +3 -3
- package/dist/types/Segmented/Segmented.d.cts +4 -0
- package/dist/types/Segmented/Segmented.d.ts +4 -0
- package/dist/types/Segmented/index.d.cts +2 -0
- package/dist/types/Segmented/index.d.ts +2 -0
- package/dist/types/Segmented/type.d.cts +26 -0
- package/dist/types/Segmented/type.d.ts +26 -0
- package/dist/types/Select/type.d.cts +5 -5
- package/dist/types/Select/type.d.ts +5 -5
- package/dist/types/Sidebar/type.d.cts +14 -14
- package/dist/types/Sidebar/type.d.ts +14 -14
- package/dist/types/Skeleton/Skeleton.d.cts +4 -0
- package/dist/types/Skeleton/Skeleton.d.ts +4 -0
- package/dist/types/Skeleton/index.d.cts +4 -0
- package/dist/types/Skeleton/index.d.ts +4 -0
- package/dist/types/Skeleton/type.d.cts +18 -0
- package/dist/types/Skeleton/type.d.ts +18 -0
- package/dist/types/Slider/type.d.cts +15 -11
- package/dist/types/Slider/type.d.ts +15 -11
- package/dist/types/Space/type.d.cts +3 -3
- package/dist/types/Space/type.d.ts +3 -3
- package/dist/types/Statistic/Statistic.d.cts +4 -0
- package/dist/types/Statistic/Statistic.d.ts +4 -0
- package/dist/types/Statistic/index.d.cts +2 -0
- package/dist/types/Statistic/index.d.ts +2 -0
- package/dist/types/Statistic/type.d.cts +18 -0
- package/dist/types/Statistic/type.d.ts +18 -0
- package/dist/types/Steps/Steps.d.cts +4 -0
- package/dist/types/Steps/Steps.d.ts +4 -0
- package/dist/types/Steps/index.d.cts +2 -0
- package/dist/types/Steps/index.d.ts +2 -0
- package/dist/types/Steps/type.d.cts +27 -0
- package/dist/types/Steps/type.d.ts +27 -0
- package/dist/types/Switch/type.d.cts +6 -6
- package/dist/types/Switch/type.d.ts +6 -6
- package/dist/types/Table/type.d.cts +6 -6
- package/dist/types/Table/type.d.ts +6 -6
- package/dist/types/Tabs/type.d.cts +5 -5
- package/dist/types/Tabs/type.d.ts +5 -5
- package/dist/types/Tag/Tag.d.cts +5 -2
- package/dist/types/Tag/Tag.d.ts +5 -2
- package/dist/types/Tag/index.d.cts +1 -1
- package/dist/types/Tag/index.d.ts +1 -1
- package/dist/types/Tag/type.d.cts +16 -7
- package/dist/types/Tag/type.d.ts +16 -7
- package/dist/types/Textarea/type.d.cts +6 -6
- package/dist/types/Textarea/type.d.ts +6 -6
- package/dist/types/TimePicker/type.d.cts +7 -5
- package/dist/types/TimePicker/type.d.ts +7 -5
- package/dist/types/Timeline/type.d.cts +8 -8
- package/dist/types/Timeline/type.d.ts +8 -8
- package/dist/types/Tooltip/type.d.cts +9 -9
- package/dist/types/Tooltip/type.d.ts +9 -9
- package/dist/types/Transfer/Transfer.d.cts +4 -0
- package/dist/types/Transfer/Transfer.d.ts +4 -0
- package/dist/types/Transfer/index.d.cts +2 -0
- package/dist/types/Transfer/index.d.ts +2 -0
- package/dist/types/Transfer/type.d.cts +30 -0
- package/dist/types/Transfer/type.d.ts +30 -0
- package/dist/types/Transition/type.d.cts +6 -6
- package/dist/types/Transition/type.d.ts +6 -6
- package/dist/types/Tree/Tree.d.cts +4 -0
- package/dist/types/Tree/Tree.d.ts +4 -0
- package/dist/types/Tree/index.d.cts +2 -0
- package/dist/types/Tree/index.d.ts +2 -0
- package/dist/types/Tree/type.d.cts +46 -0
- package/dist/types/Tree/type.d.ts +46 -0
- package/dist/types/TreeSelect/TreeSelect.d.cts +4 -0
- package/dist/types/TreeSelect/TreeSelect.d.ts +4 -0
- package/dist/types/TreeSelect/index.d.cts +3 -0
- package/dist/types/TreeSelect/index.d.ts +3 -0
- package/dist/types/TreeSelect/type.d.cts +39 -0
- package/dist/types/TreeSelect/type.d.ts +39 -0
- package/dist/types/Typography/Typography.d.cts +7 -0
- package/dist/types/Typography/Typography.d.ts +7 -0
- package/dist/types/Typography/index.d.cts +2 -0
- package/dist/types/Typography/index.d.ts +2 -0
- package/dist/types/Typography/type.d.cts +30 -0
- package/dist/types/Typography/type.d.ts +30 -0
- package/dist/types/Upload/type.d.cts +6 -2
- package/dist/types/Upload/type.d.ts +6 -2
- package/dist/types/_shared/choice-popup.d.cts +48 -0
- package/dist/types/_shared/choice-popup.d.ts +48 -0
- package/dist/types/_shared/date-calendar.d.cts +4 -3
- package/dist/types/_shared/date-calendar.d.ts +4 -3
- package/dist/types/_shared/dialog-layer.d.cts +4 -1
- package/dist/types/_shared/dialog-layer.d.ts +4 -1
- package/dist/types/_shared/dialog.d.cts +4 -1
- package/dist/types/_shared/dialog.d.ts +4 -1
- package/dist/types/_shared/floating.d.cts +3 -3
- package/dist/types/_shared/floating.d.ts +3 -3
- package/dist/types/_shared/focus.d.cts +1 -1
- package/dist/types/_shared/focus.d.ts +1 -1
- package/dist/types/_shared/notice-timer.d.cts +11 -0
- package/dist/types/_shared/notice-timer.d.ts +11 -0
- package/dist/types/_shared/popup-scope.d.cts +30 -0
- package/dist/types/_shared/popup-scope.d.ts +30 -0
- package/dist/types/_shared/refs.d.cts +5 -5
- package/dist/types/_shared/refs.d.ts +5 -5
- package/dist/types/_shared/time-wheel.d.cts +3 -1
- package/dist/types/_shared/time-wheel.d.ts +3 -1
- package/dist/types/_shared/tree.d.cts +28 -0
- package/dist/types/_shared/tree.d.ts +28 -0
- package/dist/types/global.d.cts +44 -0
- package/dist/types/global.d.ts +44 -0
- package/dist/types/index.d.cts +22 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/registry.d.cts +28 -2
- package/dist/types/registry.d.ts +28 -2
- package/package.json +3 -2
- package/dist/Alert-BGyLKuv0.js +0 -52
- package/dist/Alert-tPSJmCXK.cjs +0 -1
- package/dist/Anchor-CAZPkv56.js +0 -197
- package/dist/Anchor-CmuV1Ump.cjs +0 -1
- package/dist/Announcement-BUvNHscy.cjs +0 -1
- package/dist/Announcement-CznCpx2T.js +0 -174
- package/dist/Badge-BkqoSV-F.cjs +0 -1
- package/dist/Badge-FzXPw1qS.js +0 -72
- package/dist/Button-CwkWSWau.js +0 -96
- package/dist/Button-qURrKHQ0.cjs +0 -1
- package/dist/Checkbox-CBMmX-R-.js +0 -86
- package/dist/Checkbox-CzNGP2tH.cjs +0 -1
- package/dist/Checkbox-GJlGNzlH.cjs +0 -1
- package/dist/Checkbox-bHOjYdMp.js +0 -61
- package/dist/Cron-2avclmKf.cjs +0 -1
- package/dist/Cron-BVMn9OXM.js +0 -1203
- package/dist/Divider-BXNZyvHY.js +0 -48
- package/dist/Divider-BnmUNmy2.cjs +0 -1
- package/dist/Drawer-D1elCS8V.js +0 -109
- package/dist/Drawer-DbH5rUvZ.cjs +0 -1
- package/dist/Dropdown-CYo0Ckcg.js +0 -330
- package/dist/Dropdown-DlT_kSLw.cjs +0 -1
- package/dist/Form-DiYdJJNH.js +0 -446
- package/dist/Form-X98FSlHG.cjs +0 -1
- package/dist/Input-BbJ4Q_xu.cjs +0 -1
- package/dist/Input-DpoSxIdb.js +0 -113
- package/dist/Loading-BAKnIASq.js +0 -45
- package/dist/Loading-BSqhKOle.cjs +0 -1
- package/dist/MessageBox-Bp-3oqz4.cjs +0 -1
- package/dist/MessageBox-C0dCtUie.js +0 -145
- package/dist/Modal-BfHARuVJ.cjs +0 -1
- package/dist/Modal-UWOcLzA6.js +0 -250
- package/dist/Notification-CJraaZIi.js +0 -197
- package/dist/Notification-D6m4qHKz.cjs +0 -1
- package/dist/NumberInput-CB-nKZgs.js +0 -134
- package/dist/NumberInput-Dp1vTDkW.cjs +0 -1
- package/dist/Pagination-BGbiLFtp.js +0 -166
- package/dist/Pagination-CtnBykzs.cjs +0 -1
- package/dist/Progress-D2C6LCml.js +0 -40
- package/dist/Progress-DTAjlgwZ.cjs +0 -1
- package/dist/RadioGroup-DTodR0VJ.cjs +0 -1
- package/dist/RadioGroup-DYjQMXdB.js +0 -136
- package/dist/Scrollbar-BdMGZrYi.js +0 -235
- package/dist/Scrollbar-CEQT6Ao_.cjs +0 -1
- package/dist/Select-BBw595_R.js +0 -497
- package/dist/Select-CcuSjVhm.cjs +0 -1
- package/dist/Sidebar-2KVVRUEM.cjs +0 -1
- package/dist/Sidebar-ByLinOVm.js +0 -77
- package/dist/Slider-CKU03SsT.js +0 -256
- package/dist/Slider-CU9OS2HB.cjs +0 -1
- package/dist/Space-DJGRG2rt.cjs +0 -1
- package/dist/Switch-CpXDMcPW.cjs +0 -1
- package/dist/Switch-CqTFvp-k.js +0 -58
- package/dist/Table-CpyEziz5.js +0 -534
- package/dist/Table-uBqeNSnm.cjs +0 -1
- package/dist/Tabs-BZ0Zc0bL.cjs +0 -1
- package/dist/Tabs-HWLkyrQR.js +0 -106
- package/dist/Tag-4iZGcfrg.cjs +0 -1
- package/dist/Tag-TeYTDdHt.js +0 -51
- package/dist/Textarea-CA6Vzu7t.js +0 -68
- package/dist/Textarea-CEhAvE10.cjs +0 -1
- package/dist/TimePicker-BtorXdZv.cjs +0 -1
- package/dist/TimePicker-DxDA8bbO.js +0 -215
- package/dist/Timeline-ROggEQnD.cjs +0 -1
- package/dist/Tooltip-2-mZgyai.js +0 -198
- package/dist/Tooltip-BCH9SOnY.cjs +0 -1
- package/dist/Transition-DiO4GsP3.js +0 -125
- package/dist/Transition-X_89ga-e.cjs +0 -1
- package/dist/Upload-DZ6VaM7r.js +0 -184
- package/dist/Upload-wHEEoe1c.cjs +0 -1
- package/dist/date-picker-BrlkzTx6.cjs +0 -1
- package/dist/date-picker-DBzPbLf2.js +0 -639
- package/dist/dialog-shell-DqKDnSak.js +0 -207
- package/dist/dialog-shell-WCsdja9-.cjs +0 -1
- package/dist/floating-BpTI3sWS.cjs +0 -1
- package/dist/focus-BDDJyKk3.js +0 -9
- package/dist/focus-D-h8CbGr.cjs +0 -1
- package/dist/icon-Cbvuv4yF.js +0 -25
- package/dist/icon-DRLyKu8p.cjs +0 -1
- package/dist/layer-CWiOhvXF.js +0 -53
- package/dist/layer-DfWO72Y-.cjs +0 -1
- package/dist/refs-D5IYOBaf.js +0 -14
- package/dist/refs-DCqd87V8.cjs +0 -1
- package/dist/registry-7LU6RUh_.cjs +0 -1
- package/dist/registry-BYt8u6us.js +0 -87
- package/dist/time-wheel-BaCcA9nk.cjs +0 -1
- package/dist/time-wheel-BtvYZI6H.js +0 -291
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { KeyboardEvent } from 'react';
|
|
2
1
|
interface DateCalendarProps {
|
|
3
2
|
classPrefix: string;
|
|
4
3
|
month: Date;
|
|
@@ -7,14 +6,16 @@ interface DateCalendarProps {
|
|
|
7
6
|
rangeValue: [Date | null, Date | null];
|
|
8
7
|
previewDate: Date | null;
|
|
9
8
|
selectedDate: Date | null;
|
|
9
|
+
focusedDate: Date | null;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
onFocusDate: (date: Date) => void;
|
|
10
12
|
isDateDisabled: (date: Date) => boolean;
|
|
11
13
|
onSelect: (date: Date) => void;
|
|
12
|
-
onKeyDown: (event: KeyboardEvent<HTMLButtonElement>, date: Date) => void;
|
|
13
14
|
onPreview: (date: Date | null) => void;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* 日期格与禁用判断留在 Transition 的子组件内,关闭后不再构建整月内容,离场期间仍保留原节点。
|
|
17
18
|
* 月份未变时复用日期数组;范围预览只更新视觉状态,不重新分配同一批日期对象。
|
|
18
19
|
*/
|
|
19
|
-
declare const DateCalendar: ({ classPrefix, month, monthLabel, range, rangeValue, previewDate, selectedDate, isDateDisabled, onSelect,
|
|
20
|
+
declare const DateCalendar: ({ classPrefix, month, monthLabel, range, rangeValue, previewDate, selectedDate, focusedDate, disabled, onFocusDate, isDateDisabled, onSelect, onPreview }: DateCalendarProps) => import("react").JSX.Element;
|
|
20
21
|
export default DateCalendar;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { KeyboardEvent } from 'react';
|
|
2
1
|
interface DateCalendarProps {
|
|
3
2
|
classPrefix: string;
|
|
4
3
|
month: Date;
|
|
@@ -7,14 +6,16 @@ interface DateCalendarProps {
|
|
|
7
6
|
rangeValue: [Date | null, Date | null];
|
|
8
7
|
previewDate: Date | null;
|
|
9
8
|
selectedDate: Date | null;
|
|
9
|
+
focusedDate: Date | null;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
onFocusDate: (date: Date) => void;
|
|
10
12
|
isDateDisabled: (date: Date) => boolean;
|
|
11
13
|
onSelect: (date: Date) => void;
|
|
12
|
-
onKeyDown: (event: KeyboardEvent<HTMLButtonElement>, date: Date) => void;
|
|
13
14
|
onPreview: (date: Date | null) => void;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* 日期格与禁用判断留在 Transition 的子组件内,关闭后不再构建整月内容,离场期间仍保留原节点。
|
|
17
18
|
* 月份未变时复用日期数组;范围预览只更新视觉状态,不重新分配同一批日期对象。
|
|
18
19
|
*/
|
|
19
|
-
declare const DateCalendar: ({ classPrefix, month, monthLabel, range, rangeValue, previewDate, selectedDate, isDateDisabled, onSelect,
|
|
20
|
+
declare const DateCalendar: ({ classPrefix, month, monthLabel, range, rangeValue, previewDate, selectedDate, focusedDate, disabled, onFocusDate, isDateDisabled, onSelect, onPreview }: DateCalendarProps) => import("react").JSX.Element;
|
|
20
21
|
export default DateCalendar;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { OverlayLayer } from './layer.cjs';
|
|
3
|
+
import type { PopupScope } from './popup-scope.cjs';
|
|
3
4
|
interface DialogLevel {
|
|
4
5
|
tokenOffset?: number;
|
|
5
6
|
absolute?: number;
|
|
@@ -45,7 +46,9 @@ export declare const useDialogLayer: ({ active, zIndex }: {
|
|
|
45
46
|
};
|
|
46
47
|
/** 普通 Portal 浮层继承最终视觉层级,嵌套 Modal 则创建自己的登记,不能重复消费命令式预留。 */
|
|
47
48
|
export declare const DialogLayerProvider: ({ value, children }: {
|
|
48
|
-
value: ReturnType<typeof useDialogLayer
|
|
49
|
+
value: ReturnType<typeof useDialogLayer> & {
|
|
50
|
+
interactionScope?: PopupScope;
|
|
51
|
+
};
|
|
49
52
|
children: ReactNode;
|
|
50
53
|
}) => import("react").JSX.Element;
|
|
51
54
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { OverlayLayer } from './layer.js';
|
|
3
|
+
import type { PopupScope } from './popup-scope.js';
|
|
3
4
|
interface DialogLevel {
|
|
4
5
|
tokenOffset?: number;
|
|
5
6
|
absolute?: number;
|
|
@@ -45,7 +46,9 @@ export declare const useDialogLayer: ({ active, zIndex }: {
|
|
|
45
46
|
};
|
|
46
47
|
/** 普通 Portal 浮层继承最终视觉层级,嵌套 Modal 则创建自己的登记,不能重复消费命令式预留。 */
|
|
47
48
|
export declare const DialogLayerProvider: ({ value, children }: {
|
|
48
|
-
value: ReturnType<typeof useDialogLayer
|
|
49
|
+
value: ReturnType<typeof useDialogLayer> & {
|
|
50
|
+
interactionScope?: PopupScope;
|
|
51
|
+
};
|
|
49
52
|
children: ReactNode;
|
|
50
53
|
}) => import("react").JSX.Element;
|
|
51
54
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
import { useDialogLayer } from './dialog-layer.cjs';
|
|
3
|
+
import type { PopupScope } from './popup-scope.cjs';
|
|
3
4
|
/** 拖拽期间禁止文本选择;使用引用计数以兼容嵌套弹层或同时结束的拖拽清理。 */
|
|
4
5
|
export declare const acquireBodyUserSelectLock: () => () => void;
|
|
5
6
|
export interface DialogInteractionOptions {
|
|
@@ -17,4 +18,6 @@ export interface DialogInteractionOptions {
|
|
|
17
18
|
* 当上层弹层关闭时,订阅栈变化的父层会重新确认焦点是否仍在自身内部。最终卸载会恢复打开前焦点;
|
|
18
19
|
* 若仍有父弹层存在,其 focusin 陷阱会自然把焦点约束回父层,因此无需在这里感知具体父子关系。
|
|
19
20
|
*/
|
|
20
|
-
export declare const useDialogInteraction: ({ active, zIndex, containerRef, closeOnPressEscape, lockScroll, onRequestClose }: DialogInteractionOptions) => ReturnType<typeof useDialogLayer
|
|
21
|
+
export declare const useDialogInteraction: ({ active, zIndex, containerRef, closeOnPressEscape, lockScroll, onRequestClose }: DialogInteractionOptions) => ReturnType<typeof useDialogLayer> & {
|
|
22
|
+
interactionScope: PopupScope;
|
|
23
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
import { useDialogLayer } from './dialog-layer.js';
|
|
3
|
+
import type { PopupScope } from './popup-scope.js';
|
|
3
4
|
/** 拖拽期间禁止文本选择;使用引用计数以兼容嵌套弹层或同时结束的拖拽清理。 */
|
|
4
5
|
export declare const acquireBodyUserSelectLock: () => () => void;
|
|
5
6
|
export interface DialogInteractionOptions {
|
|
@@ -17,4 +18,6 @@ export interface DialogInteractionOptions {
|
|
|
17
18
|
* 当上层弹层关闭时,订阅栈变化的父层会重新确认焦点是否仍在自身内部。最终卸载会恢复打开前焦点;
|
|
18
19
|
* 若仍有父弹层存在,其 focusin 陷阱会自然把焦点约束回父层,因此无需在这里感知具体父子关系。
|
|
19
20
|
*/
|
|
20
|
-
export declare const useDialogInteraction: ({ active, zIndex, containerRef, closeOnPressEscape, lockScroll, onRequestClose }: DialogInteractionOptions) => ReturnType<typeof useDialogLayer
|
|
21
|
+
export declare const useDialogInteraction: ({ active, zIndex, containerRef, closeOnPressEscape, lockScroll, onRequestClose }: DialogInteractionOptions) => ReturnType<typeof useDialogLayer> & {
|
|
22
|
+
interactionScope: PopupScope;
|
|
23
|
+
};
|
|
@@ -66,7 +66,8 @@ export interface FloatingDismissOptions {
|
|
|
66
66
|
/** 视口尺寸调整或滚动时触发的回调函数 */
|
|
67
67
|
onViewportChange?: () => void;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
/** 组合浮层 Hook 需要引用布局类型,导出名称以保持生成声明文件可解析。 */
|
|
70
|
+
export interface FloatingLayout<T extends FloatingPlacement> {
|
|
70
71
|
placement: T;
|
|
71
72
|
style: CSSProperties;
|
|
72
73
|
arrowStyle?: CSSProperties;
|
|
@@ -84,7 +85,7 @@ export declare const useFloatingPosition: <T extends FloatingPlacement>(placemen
|
|
|
84
85
|
* 触发器和浮层;日期时间选择器还可以通过 isOwnedPopup 声明嵌套的时间子浮层。组件自身
|
|
85
86
|
* 仍负责键盘导航和关闭后的焦点策略,这个 helper 只管理 document/window 监听的生命周期。
|
|
86
87
|
*/
|
|
87
|
-
export declare const useFloatingDismiss: ({ active, rootRef, floatingRef, closeOnOutsideClick, ignoreEscapeInsideFloating, isOwnedPopup, onOutsideClick, onEscape, onViewportChange }: FloatingDismissOptions) =>
|
|
88
|
+
export declare const useFloatingDismiss: ({ active, rootRef, floatingRef, closeOnOutsideClick, ignoreEscapeInsideFloating, isOwnedPopup, onOutsideClick, onEscape, onViewportChange }: FloatingDismissOptions) => import("./popup-scope.cjs").PopupScope;
|
|
88
89
|
/**
|
|
89
90
|
* 为 Tooltip、Select、Dropdown、Picker 这类 fixed 浮层选择可用方向,并把最终坐标约束在视口内。
|
|
90
91
|
* 默认候选顺序覆盖四边和 start/end 对齐;角对齐组件可以传入自己的候选顺序与主轴 fallback 规则。
|
|
@@ -97,4 +98,3 @@ export declare const resolveFloatingPosition: <T extends FloatingPlacement>({ an
|
|
|
97
98
|
* @returns 解析后的方向与坐标
|
|
98
99
|
*/
|
|
99
100
|
export declare const resolveCornerPosition: <T extends CornerPlacement>(options: CornerPositionOptions<T>) => ResolvedFloatingPosition<T>;
|
|
100
|
-
export {};
|
|
@@ -66,7 +66,8 @@ export interface FloatingDismissOptions {
|
|
|
66
66
|
/** 视口尺寸调整或滚动时触发的回调函数 */
|
|
67
67
|
onViewportChange?: () => void;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
/** 组合浮层 Hook 需要引用布局类型,导出名称以保持生成声明文件可解析。 */
|
|
70
|
+
export interface FloatingLayout<T extends FloatingPlacement> {
|
|
70
71
|
placement: T;
|
|
71
72
|
style: CSSProperties;
|
|
72
73
|
arrowStyle?: CSSProperties;
|
|
@@ -84,7 +85,7 @@ export declare const useFloatingPosition: <T extends FloatingPlacement>(placemen
|
|
|
84
85
|
* 触发器和浮层;日期时间选择器还可以通过 isOwnedPopup 声明嵌套的时间子浮层。组件自身
|
|
85
86
|
* 仍负责键盘导航和关闭后的焦点策略,这个 helper 只管理 document/window 监听的生命周期。
|
|
86
87
|
*/
|
|
87
|
-
export declare const useFloatingDismiss: ({ active, rootRef, floatingRef, closeOnOutsideClick, ignoreEscapeInsideFloating, isOwnedPopup, onOutsideClick, onEscape, onViewportChange }: FloatingDismissOptions) =>
|
|
88
|
+
export declare const useFloatingDismiss: ({ active, rootRef, floatingRef, closeOnOutsideClick, ignoreEscapeInsideFloating, isOwnedPopup, onOutsideClick, onEscape, onViewportChange }: FloatingDismissOptions) => import("./popup-scope.js").PopupScope;
|
|
88
89
|
/**
|
|
89
90
|
* 为 Tooltip、Select、Dropdown、Picker 这类 fixed 浮层选择可用方向,并把最终坐标约束在视口内。
|
|
90
91
|
* 默认候选顺序覆盖四边和 start/end 对齐;角对齐组件可以传入自己的候选顺序与主轴 fallback 规则。
|
|
@@ -97,4 +98,3 @@ export declare const resolveFloatingPosition: <T extends FloatingPlacement>({ an
|
|
|
97
98
|
* @returns 解析后的方向与坐标
|
|
98
99
|
*/
|
|
99
100
|
export declare const resolveCornerPosition: <T extends CornerPlacement>(options: CornerPositionOptions<T>) => ResolvedFloatingPosition<T>;
|
|
100
|
-
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 使用 :disabled 伪类而不是 [disabled] 属性选择器:后者漏掉 <fieldset disabled> 的后代控件,
|
|
5
5
|
* 它们没有自身的 disabled 属性但同样不可聚焦。
|
|
6
6
|
*/
|
|
7
|
-
export declare const focusableSelector = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
7
|
+
export declare const focusableSelector = "button:not(:disabled), [href], input:not(:disabled):not([type=\"hidden\"]), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
8
8
|
/** 自动聚焦标记属性名称 */
|
|
9
9
|
export declare const autofocusAttribute = "data-vl-autofocus";
|
|
10
10
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 使用 :disabled 伪类而不是 [disabled] 属性选择器:后者漏掉 <fieldset disabled> 的后代控件,
|
|
5
5
|
* 它们没有自身的 disabled 属性但同样不可聚焦。
|
|
6
6
|
*/
|
|
7
|
-
export declare const focusableSelector = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
7
|
+
export declare const focusableSelector = "button:not(:disabled), [href], input:not(:disabled):not([type=\"hidden\"]), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
8
8
|
/** 自动聚焦标记属性名称 */
|
|
9
9
|
export declare const autofocusAttribute = "data-vl-autofocus";
|
|
10
10
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Message / Notification 共用的阅读计时:暂停保留剩余时间,普通重渲染不重新计时。
|
|
3
|
+
* 页面不可见也视为暂停;只在 open 或 duration 改变时开始新的阅读周期。
|
|
4
|
+
*/
|
|
5
|
+
export declare const useNoticeTimer: ({ open, ready, duration, paused, onTimeout }: {
|
|
6
|
+
open: boolean;
|
|
7
|
+
ready: boolean;
|
|
8
|
+
duration: number;
|
|
9
|
+
paused: boolean;
|
|
10
|
+
onTimeout: () => void;
|
|
11
|
+
}) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Message / Notification 共用的阅读计时:暂停保留剩余时间,普通重渲染不重新计时。
|
|
3
|
+
* 页面不可见也视为暂停;只在 open 或 duration 改变时开始新的阅读周期。
|
|
4
|
+
*/
|
|
5
|
+
export declare const useNoticeTimer: ({ open, ready, duration, paused, onTimeout }: {
|
|
6
|
+
open: boolean;
|
|
7
|
+
ready: boolean;
|
|
8
|
+
duration: number;
|
|
9
|
+
paused: boolean;
|
|
10
|
+
onTimeout: () => void;
|
|
11
|
+
}) => void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
export interface PopupScope {
|
|
3
|
+
parent: PopupScope | null;
|
|
4
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
5
|
+
floatingRef: RefObject<HTMLElement | null>;
|
|
6
|
+
kind: 'popup' | 'dialog';
|
|
7
|
+
active: boolean;
|
|
8
|
+
/** 模态优先级仍以 dialog-layer 的预留/打开顺序为准。 */
|
|
9
|
+
isTopDialog?: () => boolean;
|
|
10
|
+
}
|
|
11
|
+
/** 判断本次按键属于谁;React 事件应传 nativeEvent,以便与原生 document 监听共享结果。 */
|
|
12
|
+
export declare const isPopupEscapeOwner: (scope: PopupScope, event: Event) => boolean;
|
|
13
|
+
/** 供已有触发器/面板键盘处理器使用,避免为了检查 Escape 改变它们的回调依赖。 */
|
|
14
|
+
export declare const isPopupEscapeOwnerFor: (root: HTMLElement | null, event: Event) => boolean;
|
|
15
|
+
export declare const popupScopeContains: (scope: PopupScope, target: Node | null) => boolean;
|
|
16
|
+
/** 将子 Portal 的可聚焦项插入触发器之后,保持与页面阅读顺序一致的 Tab 边界。 */
|
|
17
|
+
export declare const getPopupScopeFocusableElements: (scope: PopupScope) => HTMLElement[];
|
|
18
|
+
export declare const usePopupParentActive: () => boolean;
|
|
19
|
+
/** 仅提交后的活动节点进入全局集合;普通渲染和 SSR 不修改任何共享状态。 */
|
|
20
|
+
export declare const usePopupScope: ({ active, rootRef, floatingRef, kind, isTopDialog }: {
|
|
21
|
+
active: boolean;
|
|
22
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
23
|
+
floatingRef: RefObject<HTMLElement | null>;
|
|
24
|
+
kind?: PopupScope["kind"];
|
|
25
|
+
isTopDialog?: () => boolean;
|
|
26
|
+
}) => PopupScope;
|
|
27
|
+
export declare const PopupScopeProvider: ({ scope, children }: {
|
|
28
|
+
scope: PopupScope | null;
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
export interface PopupScope {
|
|
3
|
+
parent: PopupScope | null;
|
|
4
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
5
|
+
floatingRef: RefObject<HTMLElement | null>;
|
|
6
|
+
kind: 'popup' | 'dialog';
|
|
7
|
+
active: boolean;
|
|
8
|
+
/** 模态优先级仍以 dialog-layer 的预留/打开顺序为准。 */
|
|
9
|
+
isTopDialog?: () => boolean;
|
|
10
|
+
}
|
|
11
|
+
/** 判断本次按键属于谁;React 事件应传 nativeEvent,以便与原生 document 监听共享结果。 */
|
|
12
|
+
export declare const isPopupEscapeOwner: (scope: PopupScope, event: Event) => boolean;
|
|
13
|
+
/** 供已有触发器/面板键盘处理器使用,避免为了检查 Escape 改变它们的回调依赖。 */
|
|
14
|
+
export declare const isPopupEscapeOwnerFor: (root: HTMLElement | null, event: Event) => boolean;
|
|
15
|
+
export declare const popupScopeContains: (scope: PopupScope, target: Node | null) => boolean;
|
|
16
|
+
/** 将子 Portal 的可聚焦项插入触发器之后,保持与页面阅读顺序一致的 Tab 边界。 */
|
|
17
|
+
export declare const getPopupScopeFocusableElements: (scope: PopupScope) => HTMLElement[];
|
|
18
|
+
export declare const usePopupParentActive: () => boolean;
|
|
19
|
+
/** 仅提交后的活动节点进入全局集合;普通渲染和 SSR 不修改任何共享状态。 */
|
|
20
|
+
export declare const usePopupScope: ({ active, rootRef, floatingRef, kind, isTopDialog }: {
|
|
21
|
+
active: boolean;
|
|
22
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
23
|
+
floatingRef: RefObject<HTMLElement | null>;
|
|
24
|
+
kind?: PopupScope["kind"];
|
|
25
|
+
isTopDialog?: () => boolean;
|
|
26
|
+
}) => PopupScope;
|
|
27
|
+
export declare const PopupScopeProvider: ({ scope, children }: {
|
|
28
|
+
scope: PopupScope | null;
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}) => import("react").JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* React ref 的小型互操作层。
|
|
3
3
|
*
|
|
4
|
-
* 组件经常需要同时保留内部 DOM ref 与转发调用方 ref。React
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* 组件经常需要同时保留内部 DOM ref 与转发调用方 ref。React 18 在卸载时传 null,React 19 还允许
|
|
5
|
+
* callback ref 返回清理函数。这里统一对象、普通回调和 cleanup 回调的释放约定,不缓存合并后的函数,
|
|
6
|
+
* 调用方若依赖引用稳定性应在组件内使用 useMemo。
|
|
7
7
|
*/
|
|
8
8
|
import type { Ref, RefCallback } from 'react';
|
|
9
9
|
/**
|
|
10
10
|
* 统一写入 callback ref 和 object ref。
|
|
11
|
-
*
|
|
11
|
+
* 返回 callback ref 提供的清理函数,由调用方负责配对执行;需要完整的挂载/释放管理时使用 mergeRefs。
|
|
12
12
|
*/
|
|
13
|
-
export declare const assignRef: <T>(ref: Ref<T> | undefined, value: T | null) => void;
|
|
13
|
+
export declare const assignRef: <T>(ref: Ref<T> | undefined, value: T | null) => void | (() => void);
|
|
14
14
|
/**
|
|
15
15
|
* 将多个 ref 合并为同一个 callback ref,并按声明顺序同步写入相同节点。
|
|
16
16
|
* 返回函数本身不会自动保持引用稳定,组件应根据外部 ref 的变化决定是否 memoize。
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* React ref 的小型互操作层。
|
|
3
3
|
*
|
|
4
|
-
* 组件经常需要同时保留内部 DOM ref 与转发调用方 ref。React
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* 组件经常需要同时保留内部 DOM ref 与转发调用方 ref。React 18 在卸载时传 null,React 19 还允许
|
|
5
|
+
* callback ref 返回清理函数。这里统一对象、普通回调和 cleanup 回调的释放约定,不缓存合并后的函数,
|
|
6
|
+
* 调用方若依赖引用稳定性应在组件内使用 useMemo。
|
|
7
7
|
*/
|
|
8
8
|
import type { Ref, RefCallback } from 'react';
|
|
9
9
|
/**
|
|
10
10
|
* 统一写入 callback ref 和 object ref。
|
|
11
|
-
*
|
|
11
|
+
* 返回 callback ref 提供的清理函数,由调用方负责配对执行;需要完整的挂载/释放管理时使用 mergeRefs。
|
|
12
12
|
*/
|
|
13
|
-
export declare const assignRef: <T>(ref: Ref<T> | undefined, value: T | null) => void;
|
|
13
|
+
export declare const assignRef: <T>(ref: Ref<T> | undefined, value: T | null) => void | (() => void);
|
|
14
14
|
/**
|
|
15
15
|
* 将多个 ref 合并为同一个 callback ref,并按声明顺序同步写入相同节点。
|
|
16
16
|
* 返回函数本身不会自动保持引用稳定,组件应根据外部 ref 的变化决定是否 memoize。
|
|
@@ -13,6 +13,8 @@ interface TimeWheelValue {
|
|
|
13
13
|
interface TimeWheelProps {
|
|
14
14
|
/** 当前选中的时分秒值 */
|
|
15
15
|
value: TimeWheelValue;
|
|
16
|
+
/** 空时间仍显示零时光标,但点击 00 应能首次选中午夜;不伪造已选项。 */
|
|
17
|
+
hasValue?: boolean;
|
|
16
18
|
/** 是否禁用整个时间滚轮组件 */
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
/** 无障碍说明标签 */
|
|
@@ -30,5 +32,5 @@ interface TimeWheelProps {
|
|
|
30
32
|
* iOS 风格的时、分、秒滚轮。原生滚动负责鼠标滚轮和触摸惯性,组件只在滚动
|
|
31
33
|
* 停止后做吸附、禁用项跳过和循环周期归位,避免自定义拖拽破坏浏览器手势体验。
|
|
32
34
|
*/
|
|
33
|
-
declare const TimeWheel: ({ value, disabled, ariaLabel, visibleItemCount, itemHeight, isOptionDisabled, onChange }: TimeWheelProps) => import("react").JSX.Element;
|
|
35
|
+
declare const TimeWheel: ({ value, hasValue, disabled, ariaLabel, visibleItemCount, itemHeight, isOptionDisabled, onChange }: TimeWheelProps) => import("react").JSX.Element;
|
|
34
36
|
export default TimeWheel;
|
|
@@ -13,6 +13,8 @@ interface TimeWheelValue {
|
|
|
13
13
|
interface TimeWheelProps {
|
|
14
14
|
/** 当前选中的时分秒值 */
|
|
15
15
|
value: TimeWheelValue;
|
|
16
|
+
/** 空时间仍显示零时光标,但点击 00 应能首次选中午夜;不伪造已选项。 */
|
|
17
|
+
hasValue?: boolean;
|
|
16
18
|
/** 是否禁用整个时间滚轮组件 */
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
/** 无障碍说明标签 */
|
|
@@ -30,5 +32,5 @@ interface TimeWheelProps {
|
|
|
30
32
|
* iOS 风格的时、分、秒滚轮。原生滚动负责鼠标滚轮和触摸惯性,组件只在滚动
|
|
31
33
|
* 停止后做吸附、禁用项跳过和循环周期归位,避免自定义拖拽破坏浏览器手势体验。
|
|
32
34
|
*/
|
|
33
|
-
declare const TimeWheel: ({ value, disabled, ariaLabel, visibleItemCount, itemHeight, isOptionDisabled, onChange }: TimeWheelProps) => import("react").JSX.Element;
|
|
35
|
+
declare const TimeWheel: ({ value, hasValue, disabled, ariaLabel, visibleItemCount, itemHeight, isOptionDisabled, onChange }: TimeWheelProps) => import("react").JSX.Element;
|
|
34
36
|
export default TimeWheel;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TreeKey, TreeNode } from '../Tree/type.cjs';
|
|
2
|
+
export interface TreeRecord {
|
|
3
|
+
node: TreeNode;
|
|
4
|
+
parent: TreeKey | null;
|
|
5
|
+
level: number;
|
|
6
|
+
position: number;
|
|
7
|
+
siblings: number;
|
|
8
|
+
index: number;
|
|
9
|
+
}
|
|
10
|
+
export interface TreeIndex {
|
|
11
|
+
roots: TreeNode[];
|
|
12
|
+
records: Map<TreeKey, TreeRecord>;
|
|
13
|
+
order: TreeRecord[];
|
|
14
|
+
}
|
|
15
|
+
/** 数据变化时一次建索引;显示、勾选和标签解析共用稳定的节点身份。 */
|
|
16
|
+
export declare const indexTree: (data: TreeNode[]) => TreeIndex;
|
|
17
|
+
export declare const filterTree: (index: TreeIndex, query: string) => Set<TreeKey> | null;
|
|
18
|
+
export declare const visibleTreeRecords: (index: TreeIndex, expanded: Set<TreeKey>, filter: Set<TreeKey> | null) => TreeRecord[];
|
|
19
|
+
/** 父节点显式选中时向下展开;再自底向上计算父级和半选,禁用节点是传播边界。 */
|
|
20
|
+
export declare const treeCheckState: (index: TreeIndex, keys: TreeKey[], strict: boolean) => {
|
|
21
|
+
checked: Set<TreeKey>;
|
|
22
|
+
half: Set<TreeKey>;
|
|
23
|
+
};
|
|
24
|
+
export declare const toggleTreeCheck: (index: TreeIndex, keys: TreeKey[], node: TreeNode, strict: boolean) => {
|
|
25
|
+
nextChecked: boolean;
|
|
26
|
+
checked: Set<TreeKey>;
|
|
27
|
+
half: Set<TreeKey>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TreeKey, TreeNode } from '../Tree/type.js';
|
|
2
|
+
export interface TreeRecord {
|
|
3
|
+
node: TreeNode;
|
|
4
|
+
parent: TreeKey | null;
|
|
5
|
+
level: number;
|
|
6
|
+
position: number;
|
|
7
|
+
siblings: number;
|
|
8
|
+
index: number;
|
|
9
|
+
}
|
|
10
|
+
export interface TreeIndex {
|
|
11
|
+
roots: TreeNode[];
|
|
12
|
+
records: Map<TreeKey, TreeRecord>;
|
|
13
|
+
order: TreeRecord[];
|
|
14
|
+
}
|
|
15
|
+
/** 数据变化时一次建索引;显示、勾选和标签解析共用稳定的节点身份。 */
|
|
16
|
+
export declare const indexTree: (data: TreeNode[]) => TreeIndex;
|
|
17
|
+
export declare const filterTree: (index: TreeIndex, query: string) => Set<TreeKey> | null;
|
|
18
|
+
export declare const visibleTreeRecords: (index: TreeIndex, expanded: Set<TreeKey>, filter: Set<TreeKey> | null) => TreeRecord[];
|
|
19
|
+
/** 父节点显式选中时向下展开;再自底向上计算父级和半选,禁用节点是传播边界。 */
|
|
20
|
+
export declare const treeCheckState: (index: TreeIndex, keys: TreeKey[], strict: boolean) => {
|
|
21
|
+
checked: Set<TreeKey>;
|
|
22
|
+
half: Set<TreeKey>;
|
|
23
|
+
};
|
|
24
|
+
export declare const toggleTreeCheck: (index: TreeIndex, keys: TreeKey[], node: TreeNode, strict: boolean) => {
|
|
25
|
+
nextChecked: boolean;
|
|
26
|
+
checked: Set<TreeKey>;
|
|
27
|
+
half: Set<TreeKey>;
|
|
28
|
+
};
|
package/dist/types/global.d.cts
CHANGED
|
@@ -5,34 +5,52 @@
|
|
|
5
5
|
import type { VlAlert as VlAlertComponent } from './Alert/index.cjs';
|
|
6
6
|
import type { VlAnchor as VlAnchorComponent } from './Anchor/index.cjs';
|
|
7
7
|
import type { VlAnnouncement as VlAnnouncementComponent } from './Announcement/index.cjs';
|
|
8
|
+
import type { VlAutoComplete as VlAutoCompleteComponent } from './AutoComplete/index.cjs';
|
|
9
|
+
import type { VlAvatar as VlAvatarComponent } from './Avatar/index.cjs';
|
|
8
10
|
import type { VlBadge as VlBadgeComponent } from './Badge/index.cjs';
|
|
11
|
+
import type { VlBreadcrumb as VlBreadcrumbComponent } from './Breadcrumb/index.cjs';
|
|
9
12
|
import type { VlButton as VlButtonComponent } from './Button/index.cjs';
|
|
10
13
|
import type { VlCard as VlCardComponent } from './Card/index.cjs';
|
|
14
|
+
import type { VlCascader as VlCascaderComponent } from './Cascader/index.cjs';
|
|
11
15
|
import type { VlCheckbox as VlCheckboxComponent } from './Checkbox/index.cjs';
|
|
12
16
|
import type { VlCol as VlColComponent } from './Col/index.cjs';
|
|
17
|
+
import type { VlCollapse as VlCollapseComponent } from './Collapse/index.cjs';
|
|
13
18
|
import type { VlCron as VlCronComponent } from './Cron/index.cjs';
|
|
14
19
|
import type { VlDatePicker as VlDatePickerComponent } from './DatePicker/index.cjs';
|
|
15
20
|
import type { VlDateTimePicker as VlDateTimePickerComponent } from './DateTimePicker/index.cjs';
|
|
21
|
+
import type { VlDescriptions as VlDescriptionsComponent } from './Descriptions/index.cjs';
|
|
16
22
|
import type { VlDivider as VlDividerComponent } from './Divider/index.cjs';
|
|
17
23
|
import type { VlDrawer as VlDrawerComponent } from './Drawer/index.cjs';
|
|
18
24
|
import type { VlDropdown as VlDropdownComponent } from './Dropdown/index.cjs';
|
|
19
25
|
import type { VlEmpty as VlEmptyComponent } from './Empty/index.cjs';
|
|
20
26
|
import type { VlForm as VlFormComponent } from './Form/index.cjs';
|
|
27
|
+
import type { VlImage as VlImageComponent } from './Image/index.cjs';
|
|
21
28
|
import type { VlInput as VlInputComponent } from './Input/index.cjs';
|
|
29
|
+
import type { VlLayout as VlLayoutComponent } from './Layout/index.cjs';
|
|
30
|
+
import type { VlList as VlListComponent } from './List/index.cjs';
|
|
22
31
|
import type { VlLoading as VlLoadingComponent } from './Loading/index.cjs';
|
|
32
|
+
import type { VlMenu as VlMenuComponent } from './Menu/index.cjs';
|
|
33
|
+
import type { VlMessage as VlMessageComponent } from './Message/index.cjs';
|
|
23
34
|
import type { VlMessageBox as VlMessageBoxComponent } from './MessageBox/index.cjs';
|
|
24
35
|
import type { VlModal as VlModalComponent } from './Modal/index.cjs';
|
|
25
36
|
import type { VlNotification as VlNotificationComponent } from './Notification/index.cjs';
|
|
26
37
|
import type { VlNumberInput as VlNumberInputComponent } from './NumberInput/index.cjs';
|
|
27
38
|
import type { VlPagination as VlPaginationComponent } from './Pagination/index.cjs';
|
|
39
|
+
import type { VlPopconfirm as VlPopconfirmComponent } from './Popconfirm/index.cjs';
|
|
40
|
+
import type { VlPopover as VlPopoverComponent } from './Popover/index.cjs';
|
|
28
41
|
import type { VlProgress as VlProgressComponent } from './Progress/index.cjs';
|
|
29
42
|
import type { VlRadio as VlRadioComponent } from './Radio/index.cjs';
|
|
43
|
+
import type { VlResult as VlResultComponent } from './Result/index.cjs';
|
|
30
44
|
import type { VlRow as VlRowComponent } from './Row/index.cjs';
|
|
31
45
|
import type { VlScrollbar as VlScrollbarComponent } from './Scrollbar/index.cjs';
|
|
46
|
+
import type { VlSegmented as VlSegmentedComponent } from './Segmented/index.cjs';
|
|
32
47
|
import type { VlSelect as VlSelectComponent } from './Select/index.cjs';
|
|
33
48
|
import type { VlSidebar as VlSidebarComponent } from './Sidebar/index.cjs';
|
|
49
|
+
import type { VlSkeleton as VlSkeletonComponent } from './Skeleton/index.cjs';
|
|
34
50
|
import type { VlSlider as VlSliderComponent } from './Slider/index.cjs';
|
|
35
51
|
import type { VlSpace as VlSpaceComponent } from './Space/index.cjs';
|
|
52
|
+
import type { VlStatistic as VlStatisticComponent } from './Statistic/index.cjs';
|
|
53
|
+
import type { VlSteps as VlStepsComponent } from './Steps/index.cjs';
|
|
36
54
|
import type { VlSwitch as VlSwitchComponent } from './Switch/index.cjs';
|
|
37
55
|
import type { VlTable as VlTableComponent } from './Table/index.cjs';
|
|
38
56
|
import type { VlTabs as VlTabsComponent } from './Tabs/index.cjs';
|
|
@@ -41,7 +59,11 @@ import type { VlTextarea as VlTextareaComponent } from './Textarea/index.cjs';
|
|
|
41
59
|
import type { VlTimeline as VlTimelineComponent } from './Timeline/index.cjs';
|
|
42
60
|
import type { VlTimePicker as VlTimePickerComponent } from './TimePicker/index.cjs';
|
|
43
61
|
import type { VlTooltip as VlTooltipComponent } from './Tooltip/index.cjs';
|
|
62
|
+
import type { VlTransfer as VlTransferComponent } from './Transfer/index.cjs';
|
|
44
63
|
import type { VlTransition as VlTransitionComponent } from './Transition/index.cjs';
|
|
64
|
+
import type { VlTree as VlTreeComponent } from './Tree/index.cjs';
|
|
65
|
+
import type { VlTreeSelect as VlTreeSelectComponent } from './TreeSelect/index.cjs';
|
|
66
|
+
import type { VlTypography as VlTypographyComponent } from './Typography/index.cjs';
|
|
45
67
|
import type { VlUpload as VlUploadComponent } from './Upload/index.cjs';
|
|
46
68
|
export { globalComponents, registerGlobalComponents } from './registry.cjs';
|
|
47
69
|
export type { GlobalComponentName, GlobalComponents } from './registry.cjs';
|
|
@@ -53,34 +75,52 @@ declare global {
|
|
|
53
75
|
const VlAlert: typeof VlAlertComponent;
|
|
54
76
|
const VlAnchor: typeof VlAnchorComponent;
|
|
55
77
|
const VlAnnouncement: typeof VlAnnouncementComponent;
|
|
78
|
+
const VlAutoComplete: typeof VlAutoCompleteComponent;
|
|
79
|
+
const VlAvatar: typeof VlAvatarComponent;
|
|
56
80
|
const VlBadge: typeof VlBadgeComponent;
|
|
81
|
+
const VlBreadcrumb: typeof VlBreadcrumbComponent;
|
|
57
82
|
const VlButton: typeof VlButtonComponent;
|
|
58
83
|
const VlCard: typeof VlCardComponent;
|
|
84
|
+
const VlCascader: typeof VlCascaderComponent;
|
|
59
85
|
const VlCheckbox: typeof VlCheckboxComponent;
|
|
60
86
|
const VlCol: typeof VlColComponent;
|
|
87
|
+
const VlCollapse: typeof VlCollapseComponent;
|
|
61
88
|
const VlCron: typeof VlCronComponent;
|
|
62
89
|
const VlDatePicker: typeof VlDatePickerComponent;
|
|
63
90
|
const VlDateTimePicker: typeof VlDateTimePickerComponent;
|
|
91
|
+
const VlDescriptions: typeof VlDescriptionsComponent;
|
|
64
92
|
const VlDivider: typeof VlDividerComponent;
|
|
65
93
|
const VlDrawer: typeof VlDrawerComponent;
|
|
66
94
|
const VlDropdown: typeof VlDropdownComponent;
|
|
67
95
|
const VlEmpty: typeof VlEmptyComponent;
|
|
68
96
|
const VlForm: typeof VlFormComponent;
|
|
97
|
+
const VlImage: typeof VlImageComponent;
|
|
69
98
|
const VlInput: typeof VlInputComponent;
|
|
99
|
+
const VlLayout: typeof VlLayoutComponent;
|
|
100
|
+
const VlList: typeof VlListComponent;
|
|
70
101
|
const VlLoading: typeof VlLoadingComponent;
|
|
102
|
+
const VlMenu: typeof VlMenuComponent;
|
|
103
|
+
const VlMessage: typeof VlMessageComponent;
|
|
71
104
|
const VlMessageBox: typeof VlMessageBoxComponent;
|
|
72
105
|
const VlModal: typeof VlModalComponent;
|
|
73
106
|
const VlNotification: typeof VlNotificationComponent;
|
|
74
107
|
const VlNumberInput: typeof VlNumberInputComponent;
|
|
75
108
|
const VlPagination: typeof VlPaginationComponent;
|
|
109
|
+
const VlPopconfirm: typeof VlPopconfirmComponent;
|
|
110
|
+
const VlPopover: typeof VlPopoverComponent;
|
|
76
111
|
const VlProgress: typeof VlProgressComponent;
|
|
77
112
|
const VlRadio: typeof VlRadioComponent;
|
|
113
|
+
const VlResult: typeof VlResultComponent;
|
|
78
114
|
const VlRow: typeof VlRowComponent;
|
|
79
115
|
const VlScrollbar: typeof VlScrollbarComponent;
|
|
116
|
+
const VlSegmented: typeof VlSegmentedComponent;
|
|
80
117
|
const VlSelect: typeof VlSelectComponent;
|
|
81
118
|
const VlSidebar: typeof VlSidebarComponent;
|
|
119
|
+
const VlSkeleton: typeof VlSkeletonComponent;
|
|
82
120
|
const VlSlider: typeof VlSliderComponent;
|
|
83
121
|
const VlSpace: typeof VlSpaceComponent;
|
|
122
|
+
const VlStatistic: typeof VlStatisticComponent;
|
|
123
|
+
const VlSteps: typeof VlStepsComponent;
|
|
84
124
|
const VlSwitch: typeof VlSwitchComponent;
|
|
85
125
|
const VlTable: typeof VlTableComponent;
|
|
86
126
|
const VlTabs: typeof VlTabsComponent;
|
|
@@ -89,6 +129,10 @@ declare global {
|
|
|
89
129
|
const VlTimeline: typeof VlTimelineComponent;
|
|
90
130
|
const VlTimePicker: typeof VlTimePickerComponent;
|
|
91
131
|
const VlTooltip: typeof VlTooltipComponent;
|
|
132
|
+
const VlTransfer: typeof VlTransferComponent;
|
|
92
133
|
const VlTransition: typeof VlTransitionComponent;
|
|
134
|
+
const VlTree: typeof VlTreeComponent;
|
|
135
|
+
const VlTreeSelect: typeof VlTreeSelectComponent;
|
|
136
|
+
const VlTypography: typeof VlTypographyComponent;
|
|
93
137
|
const VlUpload: typeof VlUploadComponent;
|
|
94
138
|
}
|