@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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popconfirm from './Popconfirm.cjs';
|
|
2
|
+
export declare const VlPopconfirm: import("react").ForwardRefExoticComponent<import("./type.cjs").PopconfirmProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopconfirmProps, PopconfirmRef } from './type.cjs';
|
|
4
|
+
export default Popconfirm;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popconfirm from './Popconfirm.js';
|
|
2
|
+
export declare const VlPopconfirm: import("react").ForwardRefExoticComponent<import("./type.js").PopconfirmProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopconfirmProps, PopconfirmRef } from './type.js';
|
|
4
|
+
export default Popconfirm;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PopoverProps } from '../Popover/index.cjs';
|
|
3
|
+
export type PopconfirmRef = HTMLDivElement;
|
|
4
|
+
/** 确认流程使用固定 click 触发,其余定位、内容和受控属性遵循 Popover。 */
|
|
5
|
+
export interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'trigger' | 'showDelay' | 'hideDelay'> {
|
|
6
|
+
/** 空标题不生成装饰包装,面板名称回退到 panelLabel。 */
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/** 空内容回退“确定”,数字 0 和富文本保留。 */
|
|
9
|
+
confirmButtonText?: ReactNode;
|
|
10
|
+
/** 空内容回退“取消”,数字 0 和富文本保留。 */
|
|
11
|
+
cancelButtonText?: ReactNode;
|
|
12
|
+
/** 返回 Promise 时进入等待状态;失败保持面板打开。隐藏、禁用、父层关闭或卸载使旧结果失效。 */
|
|
13
|
+
onConfirm?: () => void | Promise<void>;
|
|
14
|
+
/** 仅由取消按钮触发,外部点击和 Escape 通过 onChange 请求关闭。 */
|
|
15
|
+
onCancel?: () => void;
|
|
16
|
+
/** 当前确认失败时通知;等待期间更新回调后使用最新版本,旧周期的错误不再通知。 */
|
|
17
|
+
onConfirmError?: (error: unknown) => void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PopoverProps } from '../Popover/index.js';
|
|
3
|
+
export type PopconfirmRef = HTMLDivElement;
|
|
4
|
+
/** 确认流程使用固定 click 触发,其余定位、内容和受控属性遵循 Popover。 */
|
|
5
|
+
export interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'trigger' | 'showDelay' | 'hideDelay'> {
|
|
6
|
+
/** 空标题不生成装饰包装,面板名称回退到 panelLabel。 */
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/** 空内容回退“确定”,数字 0 和富文本保留。 */
|
|
9
|
+
confirmButtonText?: ReactNode;
|
|
10
|
+
/** 空内容回退“取消”,数字 0 和富文本保留。 */
|
|
11
|
+
cancelButtonText?: ReactNode;
|
|
12
|
+
/** 返回 Promise 时进入等待状态;失败保持面板打开。隐藏、禁用、父层关闭或卸载使旧结果失效。 */
|
|
13
|
+
onConfirm?: () => void | Promise<void>;
|
|
14
|
+
/** 仅由取消按钮触发,外部点击和 Escape 通过 onChange 请求关闭。 */
|
|
15
|
+
onCancel?: () => void;
|
|
16
|
+
/** 当前确认失败时通知;等待期间更新回调后使用最新版本,旧周期的错误不再通知。 */
|
|
17
|
+
onConfirmError?: (error: unknown) => void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popover from './Popover.cjs';
|
|
2
|
+
export declare const VlPopover: import("react").ForwardRefExoticComponent<import("./type.cjs").PopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopoverProps, PopoverRef, PopoverPlacement, PopoverTrigger } from './type.cjs';
|
|
4
|
+
export default Popover;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popover from './Popover.js';
|
|
2
|
+
export declare const VlPopover: import("react").ForwardRefExoticComponent<import("./type.js").PopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopoverProps, PopoverRef, PopoverPlacement, PopoverTrigger } from './type.js';
|
|
4
|
+
export default Popover;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { FloatingPlacement } from '../_shared/floating.cjs';
|
|
3
|
+
export type PopoverPlacement = FloatingPlacement;
|
|
4
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus';
|
|
5
|
+
export type PopoverRef = HTMLDivElement;
|
|
6
|
+
/** 非模态交互面板;children 是内容,triggerContent 是唯一触发器。 */
|
|
7
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
8
|
+
triggerContent?: ReactNode;
|
|
9
|
+
/** 可选标题;空字符串、布尔值与空集合不生成标题区,数字 0 仍正常展示。 */
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onChange?: (open: boolean) => void;
|
|
14
|
+
trigger?: PopoverTrigger;
|
|
15
|
+
placement?: PopoverPlacement;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
offset?: number;
|
|
18
|
+
zIndex?: number;
|
|
19
|
+
/** 最大宽度,数字按 px;支持 CSS max-width 值,内容始终受视口约束。 */
|
|
20
|
+
maxWidth?: number | string;
|
|
21
|
+
showArrow?: boolean;
|
|
22
|
+
/** hover / focus 的打开延迟,默认 100ms;切换触发或延迟配置会取消旧任务。 */
|
|
23
|
+
showDelay?: number;
|
|
24
|
+
/** hover / focus 的关闭延迟,默认 100ms;focus 模式失焦即安排关闭。 */
|
|
25
|
+
hideDelay?: number;
|
|
26
|
+
closeOnOutsideClick?: boolean;
|
|
27
|
+
closeOnPressEscape?: boolean;
|
|
28
|
+
/** 没有 title 时使用的面板可访问名称,默认“弹出面板”。 */
|
|
29
|
+
panelLabel?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { FloatingPlacement } from '../_shared/floating.js';
|
|
3
|
+
export type PopoverPlacement = FloatingPlacement;
|
|
4
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus';
|
|
5
|
+
export type PopoverRef = HTMLDivElement;
|
|
6
|
+
/** 非模态交互面板;children 是内容,triggerContent 是唯一触发器。 */
|
|
7
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
8
|
+
triggerContent?: ReactNode;
|
|
9
|
+
/** 可选标题;空字符串、布尔值与空集合不生成标题区,数字 0 仍正常展示。 */
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onChange?: (open: boolean) => void;
|
|
14
|
+
trigger?: PopoverTrigger;
|
|
15
|
+
placement?: PopoverPlacement;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
offset?: number;
|
|
18
|
+
zIndex?: number;
|
|
19
|
+
/** 最大宽度,数字按 px;支持 CSS max-width 值,内容始终受视口约束。 */
|
|
20
|
+
maxWidth?: number | string;
|
|
21
|
+
showArrow?: boolean;
|
|
22
|
+
/** hover / focus 的打开延迟,默认 100ms;切换触发或延迟配置会取消旧任务。 */
|
|
23
|
+
showDelay?: number;
|
|
24
|
+
/** hover / focus 的关闭延迟,默认 100ms;focus 模式失焦即安排关闭。 */
|
|
25
|
+
hideDelay?: number;
|
|
26
|
+
closeOnOutsideClick?: boolean;
|
|
27
|
+
closeOnPressEscape?: boolean;
|
|
28
|
+
/** 没有 title 时使用的面板可访问名称,默认“弹出面板”。 */
|
|
29
|
+
panelLabel?: string;
|
|
30
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
3
3
|
export type ProgressStatus = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
4
4
|
/** 进度条尺寸:小 | 中等 | 大 */
|
|
5
5
|
export type ProgressSize = 'sm' | 'md' | 'lg';
|
|
6
|
-
/**
|
|
6
|
+
/** 视觉标签格式化函数;value 已归一化至 0..max,max 为有效正数;空内容隐藏标签。 */
|
|
7
7
|
export type ProgressFormatter = (value: number, max: number) => ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* Progress 组件属性接口。
|
|
@@ -11,19 +11,19 @@ export type ProgressFormatter = (value: number, max: number) => ReactNode;
|
|
|
11
11
|
* 进度条是展示型组件,value 采用受控值语义;不提供 defaultValue 或内部递增逻辑。
|
|
12
12
|
*/
|
|
13
13
|
export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
14
|
-
/** 当前进度值,默认为 0
|
|
14
|
+
/** 当前进度值,默认为 0;非有限值回退到 0,有限值钳制在 0..max 范围内。 */
|
|
15
15
|
value?: number;
|
|
16
16
|
/** 进度上限,默认为 100;非有限值或非正数回退到 100。 */
|
|
17
17
|
max?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** 不确定进度模式,默认为 false;省略当前 ARIA 值,减少动态效果时使用静态标记。 */
|
|
19
19
|
indeterminate?: boolean;
|
|
20
20
|
/** 进度条语义状态,默认为 `primary`。 */
|
|
21
21
|
status?: ProgressStatus;
|
|
22
22
|
/** 进度条尺寸,默认为 `md`。 */
|
|
23
23
|
size?: ProgressSize;
|
|
24
|
-
/** 是否展示进度标签,默认为 false
|
|
24
|
+
/** 是否展示进度标签,默认为 false;默认确定态显示百分比,不确定态显示“进行中”。 */
|
|
25
25
|
showText?: boolean;
|
|
26
|
-
/**
|
|
26
|
+
/** 自定义视觉标签;仅在 showText 为 true 时调用,两个模式均接收归一化数值;自然语言语义另传 aria-valuetext。 */
|
|
27
27
|
format?: ProgressFormatter;
|
|
28
28
|
}
|
|
29
29
|
/** Progress 根 DOM 容器元素类型 */
|
|
@@ -3,7 +3,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
3
3
|
export type ProgressStatus = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
4
4
|
/** 进度条尺寸:小 | 中等 | 大 */
|
|
5
5
|
export type ProgressSize = 'sm' | 'md' | 'lg';
|
|
6
|
-
/**
|
|
6
|
+
/** 视觉标签格式化函数;value 已归一化至 0..max,max 为有效正数;空内容隐藏标签。 */
|
|
7
7
|
export type ProgressFormatter = (value: number, max: number) => ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* Progress 组件属性接口。
|
|
@@ -11,19 +11,19 @@ export type ProgressFormatter = (value: number, max: number) => ReactNode;
|
|
|
11
11
|
* 进度条是展示型组件,value 采用受控值语义;不提供 defaultValue 或内部递增逻辑。
|
|
12
12
|
*/
|
|
13
13
|
export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
14
|
-
/** 当前进度值,默认为 0
|
|
14
|
+
/** 当前进度值,默认为 0;非有限值回退到 0,有限值钳制在 0..max 范围内。 */
|
|
15
15
|
value?: number;
|
|
16
16
|
/** 进度上限,默认为 100;非有限值或非正数回退到 100。 */
|
|
17
17
|
max?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** 不确定进度模式,默认为 false;省略当前 ARIA 值,减少动态效果时使用静态标记。 */
|
|
19
19
|
indeterminate?: boolean;
|
|
20
20
|
/** 进度条语义状态,默认为 `primary`。 */
|
|
21
21
|
status?: ProgressStatus;
|
|
22
22
|
/** 进度条尺寸,默认为 `md`。 */
|
|
23
23
|
size?: ProgressSize;
|
|
24
|
-
/** 是否展示进度标签,默认为 false
|
|
24
|
+
/** 是否展示进度标签,默认为 false;默认确定态显示百分比,不确定态显示“进行中”。 */
|
|
25
25
|
showText?: boolean;
|
|
26
|
-
/**
|
|
26
|
+
/** 自定义视觉标签;仅在 showText 为 true 时调用,两个模式均接收归一化数值;自然语言语义另传 aria-valuetext。 */
|
|
27
27
|
format?: ProgressFormatter;
|
|
28
28
|
}
|
|
29
29
|
/** Progress 根 DOM 容器元素类型 */
|
|
@@ -23,6 +23,8 @@ export interface RadioGroupContextValue {
|
|
|
23
23
|
size?: RadioSize;
|
|
24
24
|
/** 选中特定单选项的方法 */
|
|
25
25
|
selectValue: (value: RadioValue) => void;
|
|
26
|
+
/** 注册真实成员,用于原生表单重置;返回成员卸载时的清理函数 */
|
|
27
|
+
registerOption: (input: HTMLInputElement, value: RadioValue) => () => void;
|
|
26
28
|
}
|
|
27
29
|
export declare const RadioGroupProvider: import("react").Provider<RadioGroupContextValue | null>;
|
|
28
30
|
/** 获取 RadioGroup 上下文的 Hook */
|
|
@@ -23,6 +23,8 @@ export interface RadioGroupContextValue {
|
|
|
23
23
|
size?: RadioSize;
|
|
24
24
|
/** 选中特定单选项的方法 */
|
|
25
25
|
selectValue: (value: RadioValue) => void;
|
|
26
|
+
/** 注册真实成员,用于原生表单重置;返回成员卸载时的清理函数 */
|
|
27
|
+
registerOption: (input: HTMLInputElement, value: RadioValue) => () => void;
|
|
26
28
|
}
|
|
27
29
|
export declare const RadioGroupProvider: import("react").Provider<RadioGroupContextValue | null>;
|
|
28
30
|
/** 获取 RadioGroup 上下文的 Hook */
|
|
@@ -5,7 +5,7 @@ export type RadioSize = 'sm' | 'md' | 'lg';
|
|
|
5
5
|
export type RadioValue = string | number | boolean;
|
|
6
6
|
/** 卡片模式下指示器位置:左上角 (top-left) | 右上角 (top-right) | 行首 (start) | 隐藏 (none) */
|
|
7
7
|
export type RadioIndicatorPlacement = 'top-left' | 'top-right' | 'start' | 'none';
|
|
8
|
-
/**
|
|
8
|
+
/** 卡片模式下内容对齐方式:书写方向起始侧 (start) | 居中 (center) */
|
|
9
9
|
export type RadioAlign = 'start' | 'center';
|
|
10
10
|
/** Radio 根原生 input DOM 元素类型 */
|
|
11
11
|
export type RadioRef = HTMLInputElement;
|
|
@@ -15,11 +15,11 @@ export type RadioGroupRef = HTMLDivElement;
|
|
|
15
15
|
* Radio 单体组件属性接口
|
|
16
16
|
*/
|
|
17
17
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange' | 'title'> {
|
|
18
|
-
/**
|
|
18
|
+
/** 受控模式:当前是否选中;显式 undefined 仍受控,按 false 展示 */
|
|
19
19
|
checked?: boolean;
|
|
20
|
-
/**
|
|
20
|
+
/** 非受控模式:初始状态及原生表单 reset 恢复的最新默认状态,默认为 false */
|
|
21
21
|
defaultChecked?: boolean;
|
|
22
|
-
/**
|
|
22
|
+
/** Group 中以 Object.is 比较的唯一值;未传 value 时保持独立状态且不继承组 name */
|
|
23
23
|
value?: RadioValue;
|
|
24
24
|
/** 单选框标签文本(也可通过 children 传入) */
|
|
25
25
|
label?: ReactNode;
|
|
@@ -29,7 +29,7 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
29
29
|
description?: ReactNode;
|
|
30
30
|
/** 卡片右上角或附属扩展内容(如 Badge、Tag 等) */
|
|
31
31
|
extra?: ReactNode;
|
|
32
|
-
/**
|
|
32
|
+
/** 是否禁用选择;可覆盖 Group 默认值,原生 fieldset 禁用仍生效 */
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
/** 是否采用带边框的紧凑形态,默认为 false */
|
|
35
35
|
bordered?: boolean;
|
|
@@ -47,16 +47,16 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
47
47
|
name?: string;
|
|
48
48
|
/** 控件尺寸大小,默认为 `md` */
|
|
49
49
|
size?: RadioSize;
|
|
50
|
-
/**
|
|
50
|
+
/** 请求选中新项时回调 (value, true);不通知旧项取消,也不在原生 reset 时触发 */
|
|
51
51
|
onChange?: (value: RadioValue | undefined, checked: boolean) => void;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* RadioGroup 单选框组属性接口
|
|
55
55
|
*/
|
|
56
56
|
export interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
57
|
-
/**
|
|
57
|
+
/** 受控模式:当前选中值;null 表示未选择,显式 undefined 仍受控并按 null 展示 */
|
|
58
58
|
value?: RadioValue | null;
|
|
59
|
-
/**
|
|
59
|
+
/** 非受控模式:初始选中值及原生表单 reset 恢复的最新默认值,默认为 null */
|
|
60
60
|
defaultValue?: RadioValue | null;
|
|
61
61
|
/** 是否禁用整组所有单选框,默认为 false */
|
|
62
62
|
disabled?: boolean;
|
|
@@ -5,7 +5,7 @@ export type RadioSize = 'sm' | 'md' | 'lg';
|
|
|
5
5
|
export type RadioValue = string | number | boolean;
|
|
6
6
|
/** 卡片模式下指示器位置:左上角 (top-left) | 右上角 (top-right) | 行首 (start) | 隐藏 (none) */
|
|
7
7
|
export type RadioIndicatorPlacement = 'top-left' | 'top-right' | 'start' | 'none';
|
|
8
|
-
/**
|
|
8
|
+
/** 卡片模式下内容对齐方式:书写方向起始侧 (start) | 居中 (center) */
|
|
9
9
|
export type RadioAlign = 'start' | 'center';
|
|
10
10
|
/** Radio 根原生 input DOM 元素类型 */
|
|
11
11
|
export type RadioRef = HTMLInputElement;
|
|
@@ -15,11 +15,11 @@ export type RadioGroupRef = HTMLDivElement;
|
|
|
15
15
|
* Radio 单体组件属性接口
|
|
16
16
|
*/
|
|
17
17
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange' | 'title'> {
|
|
18
|
-
/**
|
|
18
|
+
/** 受控模式:当前是否选中;显式 undefined 仍受控,按 false 展示 */
|
|
19
19
|
checked?: boolean;
|
|
20
|
-
/**
|
|
20
|
+
/** 非受控模式:初始状态及原生表单 reset 恢复的最新默认状态,默认为 false */
|
|
21
21
|
defaultChecked?: boolean;
|
|
22
|
-
/**
|
|
22
|
+
/** Group 中以 Object.is 比较的唯一值;未传 value 时保持独立状态且不继承组 name */
|
|
23
23
|
value?: RadioValue;
|
|
24
24
|
/** 单选框标签文本(也可通过 children 传入) */
|
|
25
25
|
label?: ReactNode;
|
|
@@ -29,7 +29,7 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
29
29
|
description?: ReactNode;
|
|
30
30
|
/** 卡片右上角或附属扩展内容(如 Badge、Tag 等) */
|
|
31
31
|
extra?: ReactNode;
|
|
32
|
-
/**
|
|
32
|
+
/** 是否禁用选择;可覆盖 Group 默认值,原生 fieldset 禁用仍生效 */
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
/** 是否采用带边框的紧凑形态,默认为 false */
|
|
35
35
|
bordered?: boolean;
|
|
@@ -47,16 +47,16 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
47
47
|
name?: string;
|
|
48
48
|
/** 控件尺寸大小,默认为 `md` */
|
|
49
49
|
size?: RadioSize;
|
|
50
|
-
/**
|
|
50
|
+
/** 请求选中新项时回调 (value, true);不通知旧项取消,也不在原生 reset 时触发 */
|
|
51
51
|
onChange?: (value: RadioValue | undefined, checked: boolean) => void;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* RadioGroup 单选框组属性接口
|
|
55
55
|
*/
|
|
56
56
|
export interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
57
|
-
/**
|
|
57
|
+
/** 受控模式:当前选中值;null 表示未选择,显式 undefined 仍受控并按 null 展示 */
|
|
58
58
|
value?: RadioValue | null;
|
|
59
|
-
/**
|
|
59
|
+
/** 非受控模式:初始选中值及原生表单 reset 恢复的最新默认值,默认为 null */
|
|
60
60
|
defaultValue?: RadioValue | null;
|
|
61
61
|
/** 是否禁用整组所有单选框,默认为 false */
|
|
62
62
|
disabled?: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ResultStatus = 'success' | 'info' | 'warning' | 'error' | '403' | '404' | '500';
|
|
3
|
+
/** 页面级结果说明,默认以标题命名 region。业务通过 actions 提供操作,并负责路由、播报和焦点交接。 */
|
|
4
|
+
export interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
/** 结果状态,默认 info,同时决定预设图标、标题和配色。 */
|
|
6
|
+
status?: ResultStatus;
|
|
7
|
+
/** h2 标题;null/undefined 使用预设,false、空串或空集合隐藏标题。无标题时以状态文案命名区域。 */
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
/** 补充说明;空内容不生成容器,数字 0 保留。 */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** 装饰图标;null/undefined 使用预设,false、空串或空集合隐藏图标。操作控件应放在 actions 中。 */
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
/** 业务操作;空内容不生成容器,组件不额外触发事件或处理路由。 */
|
|
14
|
+
actions?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** ref 指向根 div,支持业务显式管理焦点与原生 hidden 属性。 */
|
|
17
|
+
export type ResultRef = HTMLDivElement;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ResultStatus = 'success' | 'info' | 'warning' | 'error' | '403' | '404' | '500';
|
|
3
|
+
/** 页面级结果说明,默认以标题命名 region。业务通过 actions 提供操作,并负责路由、播报和焦点交接。 */
|
|
4
|
+
export interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
/** 结果状态,默认 info,同时决定预设图标、标题和配色。 */
|
|
6
|
+
status?: ResultStatus;
|
|
7
|
+
/** h2 标题;null/undefined 使用预设,false、空串或空集合隐藏标题。无标题时以状态文案命名区域。 */
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
/** 补充说明;空内容不生成容器,数字 0 保留。 */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** 装饰图标;null/undefined 使用预设,false、空串或空集合隐藏图标。操作控件应放在 actions 中。 */
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
/** 业务操作;空内容不生成容器,组件不额外触发事件或处理路由。 */
|
|
14
|
+
actions?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** ref 指向根 div,支持业务显式管理焦点与原生 hidden 属性。 */
|
|
17
|
+
export type ResultRef = HTMLDivElement;
|
|
@@ -9,11 +9,11 @@ export type RowRef = HTMLElement;
|
|
|
9
9
|
* Row 组件属性接口
|
|
10
10
|
*/
|
|
11
11
|
export interface RowProps extends HTMLAttributes<HTMLElement> {
|
|
12
|
-
/**
|
|
12
|
+
/** 自定义根元素或转发 ref 的组件,默认为 `'div'` */
|
|
13
13
|
tag?: ElementType;
|
|
14
|
-
/**
|
|
14
|
+
/** 栅格列内容之间的水平间距(px),支持小数;负数和非有限值按 0 处理,默认为 0 */
|
|
15
15
|
gutter?: number;
|
|
16
|
-
/**
|
|
16
|
+
/** 水平主轴对齐方式;start/end 遵循文本方向,默认为 `'start'` */
|
|
17
17
|
justify?: RowJustify;
|
|
18
18
|
/** 垂直交叉轴对齐方式,默认为 `'top'` */
|
|
19
19
|
align?: RowAlign;
|
package/dist/types/Row/type.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export type RowRef = HTMLElement;
|
|
|
9
9
|
* Row 组件属性接口
|
|
10
10
|
*/
|
|
11
11
|
export interface RowProps extends HTMLAttributes<HTMLElement> {
|
|
12
|
-
/**
|
|
12
|
+
/** 自定义根元素或转发 ref 的组件,默认为 `'div'` */
|
|
13
13
|
tag?: ElementType;
|
|
14
|
-
/**
|
|
14
|
+
/** 栅格列内容之间的水平间距(px),支持小数;负数和非有限值按 0 处理,默认为 0 */
|
|
15
15
|
gutter?: number;
|
|
16
|
-
/**
|
|
16
|
+
/** 水平主轴对齐方式;start/end 遵循文本方向,默认为 `'start'` */
|
|
17
17
|
justify?: RowJustify;
|
|
18
18
|
/** 垂直交叉轴对齐方式,默认为 `'top'` */
|
|
19
19
|
align?: RowAlign;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Scrollbar from './Scrollbar.cjs';
|
|
2
|
-
/** Scrollbar
|
|
2
|
+
/** Scrollbar 自定义滚动条组件 */
|
|
3
3
|
export declare const VlScrollbar: import("react").ForwardRefExoticComponent<import("./type.cjs").ScrollbarProps & import("react").RefAttributes<import("./type.cjs").ScrollbarRef>>;
|
|
4
4
|
export type { ScrollbarProps, ScrollbarOrientation, ScrollbarSize, ScrollbarScrollPayload, ScrollbarRef } from './type.cjs';
|
|
5
5
|
export default Scrollbar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Scrollbar from './Scrollbar.js';
|
|
2
|
-
/** Scrollbar
|
|
2
|
+
/** Scrollbar 自定义滚动条组件 */
|
|
3
3
|
export declare const VlScrollbar: import("react").ForwardRefExoticComponent<import("./type.js").ScrollbarProps & import("react").RefAttributes<import("./type.js").ScrollbarRef>>;
|
|
4
4
|
export type { ScrollbarProps, ScrollbarOrientation, ScrollbarSize, ScrollbarScrollPayload, ScrollbarRef } from './type.js';
|
|
5
5
|
export default Scrollbar;
|
|
@@ -9,7 +9,7 @@ export type ScrollbarSize = 'sm' | 'md' | 'lg';
|
|
|
9
9
|
export interface ScrollbarScrollPayload {
|
|
10
10
|
/** 垂直方向已滚动距离 (px) */
|
|
11
11
|
scrollTop: number;
|
|
12
|
-
/**
|
|
12
|
+
/** 原生水平滚动坐标 (px),RTL 中从 0 向负值移动 */
|
|
13
13
|
scrollLeft: number;
|
|
14
14
|
/** 垂直方向最大可滚动距离 (px) */
|
|
15
15
|
maxScrollTop: number;
|
|
@@ -17,7 +17,7 @@ export interface ScrollbarScrollPayload {
|
|
|
17
17
|
maxScrollLeft: number;
|
|
18
18
|
/** 垂直滚动比例 (0 ~ 1) */
|
|
19
19
|
ratioY: number;
|
|
20
|
-
/**
|
|
20
|
+
/** 从当前书写方向起点到终点的水平滚动比例 (0 ~ 1) */
|
|
21
21
|
ratioX: number;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
@@ -30,7 +30,7 @@ export interface ScrollbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
30
30
|
size?: ScrollbarSize;
|
|
31
31
|
/** 滚动条是否保持常显(不自动隐藏),默认为 false */
|
|
32
32
|
alwaysVisible?: boolean;
|
|
33
|
-
/**
|
|
33
|
+
/** 停止滚动、移出或失焦后自动隐藏的延迟(毫秒),默认为 1200;悬停、聚焦或拖拽时保持可见 */
|
|
34
34
|
autoHideDelay?: number;
|
|
35
35
|
/** 滑块最小像素长度,默认为 24 */
|
|
36
36
|
minThumbSize?: number;
|
|
@@ -9,7 +9,7 @@ export type ScrollbarSize = 'sm' | 'md' | 'lg';
|
|
|
9
9
|
export interface ScrollbarScrollPayload {
|
|
10
10
|
/** 垂直方向已滚动距离 (px) */
|
|
11
11
|
scrollTop: number;
|
|
12
|
-
/**
|
|
12
|
+
/** 原生水平滚动坐标 (px),RTL 中从 0 向负值移动 */
|
|
13
13
|
scrollLeft: number;
|
|
14
14
|
/** 垂直方向最大可滚动距离 (px) */
|
|
15
15
|
maxScrollTop: number;
|
|
@@ -17,7 +17,7 @@ export interface ScrollbarScrollPayload {
|
|
|
17
17
|
maxScrollLeft: number;
|
|
18
18
|
/** 垂直滚动比例 (0 ~ 1) */
|
|
19
19
|
ratioY: number;
|
|
20
|
-
/**
|
|
20
|
+
/** 从当前书写方向起点到终点的水平滚动比例 (0 ~ 1) */
|
|
21
21
|
ratioX: number;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
@@ -30,7 +30,7 @@ export interface ScrollbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
30
30
|
size?: ScrollbarSize;
|
|
31
31
|
/** 滚动条是否保持常显(不自动隐藏),默认为 false */
|
|
32
32
|
alwaysVisible?: boolean;
|
|
33
|
-
/**
|
|
33
|
+
/** 停止滚动、移出或失焦后自动隐藏的延迟(毫秒),默认为 1200;悬停、聚焦或拖拽时保持可见 */
|
|
34
34
|
autoHideDelay?: number;
|
|
35
35
|
/** 滑块最小像素长度,默认为 24 */
|
|
36
36
|
minThumbSize?: number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type SegmentedValue = string | number;
|
|
3
|
+
export interface SegmentedOption {
|
|
4
|
+
/** 稳定唯一值;选择与节点身份沿用 Object.is,可区分数字、字符串及正负零。 */
|
|
5
|
+
value: SegmentedValue;
|
|
6
|
+
/** 即使只显示图标,也必须提供可访问名称。 */
|
|
7
|
+
label: string;
|
|
8
|
+
/** 装饰图标;数字 0 可见,条件空集合不占据图文间距。 */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
iconOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SegmentedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
14
|
+
options: SegmentedOption[];
|
|
15
|
+
/** 受控值;null、显式 undefined 或不在 options 中的值表示没有可见选中项。 */
|
|
16
|
+
value?: SegmentedValue | null;
|
|
17
|
+
/** 非受控初始值;原生表单 reset 恢复最新默认值,不触发 onChange。 */
|
|
18
|
+
defaultValue?: SegmentedValue | null;
|
|
19
|
+
onChange?: (value: SegmentedValue) => void;
|
|
20
|
+
size?: 'sm' | 'md' | 'lg';
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
block?: boolean;
|
|
23
|
+
/** 原生表单字段名;省略时生成实例独立、支持 SSR 的稳定分组名。 */
|
|
24
|
+
name?: string;
|
|
25
|
+
}
|
|
26
|
+
export type SegmentedRef = HTMLDivElement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type SegmentedValue = string | number;
|
|
3
|
+
export interface SegmentedOption {
|
|
4
|
+
/** 稳定唯一值;选择与节点身份沿用 Object.is,可区分数字、字符串及正负零。 */
|
|
5
|
+
value: SegmentedValue;
|
|
6
|
+
/** 即使只显示图标,也必须提供可访问名称。 */
|
|
7
|
+
label: string;
|
|
8
|
+
/** 装饰图标;数字 0 可见,条件空集合不占据图文间距。 */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
iconOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SegmentedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
14
|
+
options: SegmentedOption[];
|
|
15
|
+
/** 受控值;null、显式 undefined 或不在 options 中的值表示没有可见选中项。 */
|
|
16
|
+
value?: SegmentedValue | null;
|
|
17
|
+
/** 非受控初始值;原生表单 reset 恢复最新默认值,不触发 onChange。 */
|
|
18
|
+
defaultValue?: SegmentedValue | null;
|
|
19
|
+
onChange?: (value: SegmentedValue) => void;
|
|
20
|
+
size?: 'sm' | 'md' | 'lg';
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
block?: boolean;
|
|
23
|
+
/** 原生表单字段名;省略时生成实例独立、支持 SSR 的稳定分组名。 */
|
|
24
|
+
name?: string;
|
|
25
|
+
}
|
|
26
|
+
export type SegmentedRef = HTMLDivElement;
|
|
@@ -10,7 +10,7 @@ export type SelectValue = string | number;
|
|
|
10
10
|
export type SelectOptionIcon = DecorativeIcon;
|
|
11
11
|
/** 下拉选项数据结构 */
|
|
12
12
|
export interface SelectOption {
|
|
13
|
-
/**
|
|
13
|
+
/** 选项绑定的唯一值;数字与字符串分别识别,0 和空字符串也可作为选项值 */
|
|
14
14
|
value: SelectValue;
|
|
15
15
|
/** 选项展示的文本标签 */
|
|
16
16
|
label: string;
|
|
@@ -25,7 +25,7 @@ export interface SelectOption {
|
|
|
25
25
|
* Select 组件属性接口
|
|
26
26
|
*/
|
|
27
27
|
export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur' | 'defaultValue'> {
|
|
28
|
-
/** 受控模式:当前选中值(单选为 string | number | null
|
|
28
|
+
/** 受控模式:当前选中值(单选为 string | number | null,多选为数组);显式 undefined 也由外部接管 */
|
|
29
29
|
value?: SelectValue | SelectValue[] | null;
|
|
30
30
|
/** 非受控模式的初始值;与 value 同时传入时由 value 接管 */
|
|
31
31
|
defaultValue?: SelectValue | SelectValue[] | null;
|
|
@@ -47,7 +47,7 @@ export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCha
|
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
/** 是否处于远程搜索/加载中状态,默认为 false */
|
|
49
49
|
loading?: boolean;
|
|
50
|
-
/** 控件尺寸大小,默认为 `md
|
|
50
|
+
/** 控件尺寸大小,默认为 `md`;单选高度含边框为 28 / 32 / 40px,多选随标签换行增高 */
|
|
51
51
|
size?: SelectSize;
|
|
52
52
|
/** 是否支持一键清空选中值,默认为 false */
|
|
53
53
|
clearable?: boolean;
|
|
@@ -84,9 +84,9 @@ export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCha
|
|
|
84
84
|
onOpen?: () => void;
|
|
85
85
|
/** 下拉浮层关闭时的回调函数 */
|
|
86
86
|
onClose?: () => void;
|
|
87
|
-
/**
|
|
87
|
+
/** 焦点从组件外进入触发器或所属浮层时触发;内部按钮之间移动不重复通知 */
|
|
88
88
|
onFocus?: (event: FocusEvent<HTMLElement>) => void;
|
|
89
|
-
/**
|
|
89
|
+
/** 焦点离开触发器和所属浮层时触发,同时收起面板 */
|
|
90
90
|
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
91
91
|
}
|
|
92
92
|
/** Select 根 DOM 容器元素类型 */
|