@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
|
@@ -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 容器元素类型 */
|
|
@@ -10,44 +10,44 @@ export type SidebarShape = 'square' | 'circle';
|
|
|
10
10
|
export type SidebarIcon = ComponentIcon;
|
|
11
11
|
/** 单个侧边栏操作项配置 */
|
|
12
12
|
export interface SidebarItem {
|
|
13
|
-
/**
|
|
13
|
+
/** 稳定的唯一标识;数字与同文本字符串相互独立。省略时按位置复用,不适合会重排的列表。 */
|
|
14
14
|
key?: string | number;
|
|
15
|
-
/**
|
|
15
|
+
/** 按钮的 aria-label 与原生 title,不显示为正文;省略时回退为 key,建议提供明确的操作名称。 */
|
|
16
16
|
label?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** 图标组件或 React 元素(含 Fragment);图标只作装饰,不承担按钮名称。 */
|
|
18
18
|
icon?: SidebarIcon;
|
|
19
19
|
/** 是否禁用交互,默认为 false */
|
|
20
20
|
disabled?: boolean;
|
|
21
|
-
/**
|
|
21
|
+
/** 调用方控制的高亮与 aria-pressed 状态,默认 false;点击不会自动切换。 */
|
|
22
22
|
active?: boolean;
|
|
23
|
-
/**
|
|
23
|
+
/** 渲染非交互分隔线,忽略图标、名称、激活状态和点击回调,默认 false。 */
|
|
24
24
|
divider?: boolean;
|
|
25
|
-
/**
|
|
25
|
+
/** 可用项点击时先执行此回调,再执行 Sidebar 的 onItemClick。 */
|
|
26
26
|
onClick?: (item: SidebarItem) => void;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* 视口边缘的图标操作栏;原生属性和 ref 透传根 div,style 可覆盖定位及最大高度。
|
|
30
30
|
*/
|
|
31
31
|
export interface SidebarProps extends HTMLAttributes<HTMLDivElement> {
|
|
32
|
-
/**
|
|
32
|
+
/** 操作项列表;空数组保留根容器。长列表在可用高度内滚动,按钮不压缩。 */
|
|
33
33
|
items?: SidebarItem[];
|
|
34
34
|
/** 停靠方位,默认为 `'right'` */
|
|
35
35
|
position?: SidebarPosition;
|
|
36
|
-
/**
|
|
36
|
+
/** 距离停靠侧的边距;数字或无单位数字字符串按 px,默认 space-6(24px)。 */
|
|
37
37
|
offset?: number | string;
|
|
38
|
-
/**
|
|
38
|
+
/** 距离视口顶部的偏移(px 或 CSS 长度);同时传 top/bottom 时优先使用 top,0 同样生效。 */
|
|
39
39
|
top?: number | string;
|
|
40
|
-
/**
|
|
40
|
+
/** 未传 top 时的底部偏移(px 或 CSS 长度);两者均未传时使用 space-6(24px)。 */
|
|
41
41
|
bottom?: number | string;
|
|
42
42
|
/** 按钮尺寸大小,默认为 `md` */
|
|
43
43
|
size?: SidebarSize;
|
|
44
44
|
/** 按钮形状,默认为 `'square'` */
|
|
45
45
|
shape?: SidebarShape;
|
|
46
|
-
/**
|
|
46
|
+
/** 项之间的垂直间距,默认 space-2(8px);分隔线上下另有 2px 留白。 */
|
|
47
47
|
gap?: number | string;
|
|
48
|
-
/**
|
|
48
|
+
/** 根容器的 z-index;缺省使用 --vl-sidebar-z-index,再回退到 z-sticky(10)。 */
|
|
49
49
|
zIndex?: number;
|
|
50
|
-
/**
|
|
50
|
+
/** 未取消的可用项点击回调;index 是包含分隔线的原始 items 下标。 */
|
|
51
51
|
onItemClick?: (item: SidebarItem, index: number) => void;
|
|
52
52
|
}
|
|
53
53
|
/** Sidebar 根 DOM 容器元素类型 */
|
|
@@ -10,44 +10,44 @@ export type SidebarShape = 'square' | 'circle';
|
|
|
10
10
|
export type SidebarIcon = ComponentIcon;
|
|
11
11
|
/** 单个侧边栏操作项配置 */
|
|
12
12
|
export interface SidebarItem {
|
|
13
|
-
/**
|
|
13
|
+
/** 稳定的唯一标识;数字与同文本字符串相互独立。省略时按位置复用,不适合会重排的列表。 */
|
|
14
14
|
key?: string | number;
|
|
15
|
-
/**
|
|
15
|
+
/** 按钮的 aria-label 与原生 title,不显示为正文;省略时回退为 key,建议提供明确的操作名称。 */
|
|
16
16
|
label?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** 图标组件或 React 元素(含 Fragment);图标只作装饰,不承担按钮名称。 */
|
|
18
18
|
icon?: SidebarIcon;
|
|
19
19
|
/** 是否禁用交互,默认为 false */
|
|
20
20
|
disabled?: boolean;
|
|
21
|
-
/**
|
|
21
|
+
/** 调用方控制的高亮与 aria-pressed 状态,默认 false;点击不会自动切换。 */
|
|
22
22
|
active?: boolean;
|
|
23
|
-
/**
|
|
23
|
+
/** 渲染非交互分隔线,忽略图标、名称、激活状态和点击回调,默认 false。 */
|
|
24
24
|
divider?: boolean;
|
|
25
|
-
/**
|
|
25
|
+
/** 可用项点击时先执行此回调,再执行 Sidebar 的 onItemClick。 */
|
|
26
26
|
onClick?: (item: SidebarItem) => void;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* 视口边缘的图标操作栏;原生属性和 ref 透传根 div,style 可覆盖定位及最大高度。
|
|
30
30
|
*/
|
|
31
31
|
export interface SidebarProps extends HTMLAttributes<HTMLDivElement> {
|
|
32
|
-
/**
|
|
32
|
+
/** 操作项列表;空数组保留根容器。长列表在可用高度内滚动,按钮不压缩。 */
|
|
33
33
|
items?: SidebarItem[];
|
|
34
34
|
/** 停靠方位,默认为 `'right'` */
|
|
35
35
|
position?: SidebarPosition;
|
|
36
|
-
/**
|
|
36
|
+
/** 距离停靠侧的边距;数字或无单位数字字符串按 px,默认 space-6(24px)。 */
|
|
37
37
|
offset?: number | string;
|
|
38
|
-
/**
|
|
38
|
+
/** 距离视口顶部的偏移(px 或 CSS 长度);同时传 top/bottom 时优先使用 top,0 同样生效。 */
|
|
39
39
|
top?: number | string;
|
|
40
|
-
/**
|
|
40
|
+
/** 未传 top 时的底部偏移(px 或 CSS 长度);两者均未传时使用 space-6(24px)。 */
|
|
41
41
|
bottom?: number | string;
|
|
42
42
|
/** 按钮尺寸大小,默认为 `md` */
|
|
43
43
|
size?: SidebarSize;
|
|
44
44
|
/** 按钮形状,默认为 `'square'` */
|
|
45
45
|
shape?: SidebarShape;
|
|
46
|
-
/**
|
|
46
|
+
/** 项之间的垂直间距,默认 space-2(8px);分隔线上下另有 2px 留白。 */
|
|
47
47
|
gap?: number | string;
|
|
48
|
-
/**
|
|
48
|
+
/** 根容器的 z-index;缺省使用 --vl-sidebar-z-index,再回退到 z-sticky(10)。 */
|
|
49
49
|
zIndex?: number;
|
|
50
|
-
/**
|
|
50
|
+
/** 未取消的可用项点击回调;index 是包含分隔线的原始 items 下标。 */
|
|
51
51
|
onItemClick?: (item: SidebarItem, index: number) => void;
|
|
52
52
|
}
|
|
53
53
|
/** Sidebar 根 DOM 容器元素类型 */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Skeleton from './Skeleton.cjs';
|
|
2
|
+
export declare const VlSkeleton: import("react").ForwardRefExoticComponent<import("./type.cjs").SkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { SkeletonProps, SkeletonRef } from './type.cjs';
|
|
4
|
+
export default Skeleton;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Skeleton from './Skeleton.js';
|
|
2
|
+
export declare const VlSkeleton: import("react").ForwardRefExoticComponent<import("./type.js").SkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { SkeletonProps, SkeletonRef } from './type.js';
|
|
4
|
+
export default Skeleton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SkeletonRef = HTMLDivElement;
|
|
3
|
+
/**
|
|
4
|
+
* 加载完成后才挂载 children;重新加载会卸载业务内容,适合首次加载占位。
|
|
5
|
+
* 根 div 透传原生属性与 ref;需要稳定高度时,由业务通过 style.minBlockSize 预留内容空间。
|
|
6
|
+
*/
|
|
7
|
+
export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
8
|
+
/** 默认 true;控制占位/业务内容切换,并同步根节点的 aria-busy。 */
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** 文本占位行数,默认 3;向下取整且不小于 0,非有限值回退为 3。 */
|
|
11
|
+
rows?: number;
|
|
12
|
+
/** 是否显示标题占位,默认 true;关闭标题且零行时不创建正文容器。 */
|
|
13
|
+
title?: boolean;
|
|
14
|
+
/** 是否显示头像占位,默认 false。 */
|
|
15
|
+
avatar?: boolean;
|
|
16
|
+
/** 是否启用本层占位的透明度动效,默认 true;尊重 reduced-motion,不影响嵌套骨架。 */
|
|
17
|
+
animated?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SkeletonRef = HTMLDivElement;
|
|
3
|
+
/**
|
|
4
|
+
* 加载完成后才挂载 children;重新加载会卸载业务内容,适合首次加载占位。
|
|
5
|
+
* 根 div 透传原生属性与 ref;需要稳定高度时,由业务通过 style.minBlockSize 预留内容空间。
|
|
6
|
+
*/
|
|
7
|
+
export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
8
|
+
/** 默认 true;控制占位/业务内容切换,并同步根节点的 aria-busy。 */
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** 文本占位行数,默认 3;向下取整且不小于 0,非有限值回退为 3。 */
|
|
11
|
+
rows?: number;
|
|
12
|
+
/** 是否显示标题占位,默认 true;关闭标题且零行时不创建正文容器。 */
|
|
13
|
+
title?: boolean;
|
|
14
|
+
/** 是否显示头像占位,默认 false。 */
|
|
15
|
+
avatar?: boolean;
|
|
16
|
+
/** 是否启用本层占位的透明度动效,默认 true;尊重 reduced-motion,不影响嵌套骨架。 */
|
|
17
|
+
animated?: boolean;
|
|
18
|
+
}
|
|
@@ -14,34 +14,38 @@ export interface SliderMark {
|
|
|
14
14
|
* Slider 组件属性接口
|
|
15
15
|
*/
|
|
16
16
|
export interface SliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
17
|
-
/**
|
|
17
|
+
/** 受控滑动值;显式 null/undefined 仍受控并显示 min,不在渲染时触发 onChange */
|
|
18
18
|
value?: number | null;
|
|
19
|
-
/**
|
|
19
|
+
/** 非受控初值;更新默认值不覆盖当前选择 */
|
|
20
20
|
defaultValue?: number | null;
|
|
21
21
|
/** 滑动条最小值边界,默认为 0 */
|
|
22
22
|
min?: number;
|
|
23
|
-
/**
|
|
23
|
+
/** 最大值,默认为 100;小于等于 min 时只保留 min,非整除步长的末端仍可到达 */
|
|
24
24
|
max?: number;
|
|
25
|
-
/**
|
|
25
|
+
/** 以 min 为起点的步长,支持小数;非正数或非有限值回退为 1 */
|
|
26
26
|
step?: number;
|
|
27
|
-
/**
|
|
27
|
+
/** 禁用键盘和指针交互;拖拽中禁用会结束手势 */
|
|
28
28
|
disabled?: boolean;
|
|
29
|
-
/**
|
|
29
|
+
/** 填充与把手边界的状态色,默认为 `primary` */
|
|
30
30
|
status?: SliderStatus;
|
|
31
|
-
/**
|
|
31
|
+
/** 是否在拖拽、悬停或键盘聚焦时展示提示,默认为 true */
|
|
32
32
|
showTooltip?: boolean;
|
|
33
33
|
/** 气泡提示是否保持常显,默认为 false */
|
|
34
34
|
tooltipAlways?: boolean;
|
|
35
35
|
/** 自定义气泡提示文案格式化函数 */
|
|
36
36
|
tooltipFormatter?: SliderTooltipFormatter;
|
|
37
|
-
/**
|
|
37
|
+
/** 展示内部步长停靠点;超过 1000 个时省略视觉节点,不影响步长精度 */
|
|
38
38
|
showStops?: boolean;
|
|
39
|
-
/**
|
|
39
|
+
/** 视觉刻度,不改变 step 吸附;忽略非法/越界项,同值项保留最后一项 */
|
|
40
40
|
marks?: SliderMark[];
|
|
41
|
-
/**
|
|
41
|
+
/** 无障碍名称;也可使用标准 aria-label / aria-labelledby,后者按原生优先级解析 */
|
|
42
42
|
ariaLabel?: string;
|
|
43
|
-
/**
|
|
43
|
+
/** 请求下一数值;同一拖拽内去重,新的操作可重试被受控方拒绝的值 */
|
|
44
44
|
onChange?: (value: number) => void;
|
|
45
|
+
/** 原生把手 id,可用于 label 的 htmlFor;className/style/data-* 仍作用于外层 */
|
|
46
|
+
id?: string;
|
|
47
|
+
/** 原生把手的 Tab 顺序;ref 仍指向外层容器 */
|
|
48
|
+
tabIndex?: number;
|
|
45
49
|
}
|
|
46
50
|
/** Slider 根 DOM 容器元素类型 */
|
|
47
51
|
export type SliderRef = HTMLDivElement;
|
|
@@ -14,34 +14,38 @@ export interface SliderMark {
|
|
|
14
14
|
* Slider 组件属性接口
|
|
15
15
|
*/
|
|
16
16
|
export interface SliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
17
|
-
/**
|
|
17
|
+
/** 受控滑动值;显式 null/undefined 仍受控并显示 min,不在渲染时触发 onChange */
|
|
18
18
|
value?: number | null;
|
|
19
|
-
/**
|
|
19
|
+
/** 非受控初值;更新默认值不覆盖当前选择 */
|
|
20
20
|
defaultValue?: number | null;
|
|
21
21
|
/** 滑动条最小值边界,默认为 0 */
|
|
22
22
|
min?: number;
|
|
23
|
-
/**
|
|
23
|
+
/** 最大值,默认为 100;小于等于 min 时只保留 min,非整除步长的末端仍可到达 */
|
|
24
24
|
max?: number;
|
|
25
|
-
/**
|
|
25
|
+
/** 以 min 为起点的步长,支持小数;非正数或非有限值回退为 1 */
|
|
26
26
|
step?: number;
|
|
27
|
-
/**
|
|
27
|
+
/** 禁用键盘和指针交互;拖拽中禁用会结束手势 */
|
|
28
28
|
disabled?: boolean;
|
|
29
|
-
/**
|
|
29
|
+
/** 填充与把手边界的状态色,默认为 `primary` */
|
|
30
30
|
status?: SliderStatus;
|
|
31
|
-
/**
|
|
31
|
+
/** 是否在拖拽、悬停或键盘聚焦时展示提示,默认为 true */
|
|
32
32
|
showTooltip?: boolean;
|
|
33
33
|
/** 气泡提示是否保持常显,默认为 false */
|
|
34
34
|
tooltipAlways?: boolean;
|
|
35
35
|
/** 自定义气泡提示文案格式化函数 */
|
|
36
36
|
tooltipFormatter?: SliderTooltipFormatter;
|
|
37
|
-
/**
|
|
37
|
+
/** 展示内部步长停靠点;超过 1000 个时省略视觉节点,不影响步长精度 */
|
|
38
38
|
showStops?: boolean;
|
|
39
|
-
/**
|
|
39
|
+
/** 视觉刻度,不改变 step 吸附;忽略非法/越界项,同值项保留最后一项 */
|
|
40
40
|
marks?: SliderMark[];
|
|
41
|
-
/**
|
|
41
|
+
/** 无障碍名称;也可使用标准 aria-label / aria-labelledby,后者按原生优先级解析 */
|
|
42
42
|
ariaLabel?: string;
|
|
43
|
-
/**
|
|
43
|
+
/** 请求下一数值;同一拖拽内去重,新的操作可重试被受控方拒绝的值 */
|
|
44
44
|
onChange?: (value: number) => void;
|
|
45
|
+
/** 原生把手 id,可用于 label 的 htmlFor;className/style/data-* 仍作用于外层 */
|
|
46
|
+
id?: string;
|
|
47
|
+
/** 原生把手的 Tab 顺序;ref 仍指向外层容器 */
|
|
48
|
+
tabIndex?: number;
|
|
45
49
|
}
|
|
46
50
|
/** Slider 根 DOM 容器元素类型 */
|
|
47
51
|
export type SliderRef = HTMLDivElement;
|
|
@@ -13,16 +13,16 @@ export type SpaceRef = HTMLElement;
|
|
|
13
13
|
* Space 组件属性接口
|
|
14
14
|
*/
|
|
15
15
|
export interface SpaceProps extends HTMLAttributes<HTMLElement> {
|
|
16
|
-
/**
|
|
16
|
+
/** 基础间距:xs/sm/md/lg/xl 对应 4/8/12/16/24px;数值支持小数,负值或非有限值归零,默认 md */
|
|
17
17
|
size?: SpaceSize | number;
|
|
18
18
|
/** 排列方向,默认为 `horizontal` */
|
|
19
19
|
direction?: SpaceDirection;
|
|
20
20
|
/** 是否允许子项换行(仅在 `direction="horizontal"` 时生效),默认为 true */
|
|
21
21
|
wrap?: boolean;
|
|
22
|
-
/**
|
|
22
|
+
/** 根标签或自定义组件,默认 div;自定义组件需把 className、style、原生属性和 ref 传给根 DOM */
|
|
23
23
|
tag?: ElementType;
|
|
24
24
|
/** 交叉轴对齐方式,默认为 `start` */
|
|
25
25
|
align?: SpaceAlign;
|
|
26
|
-
/**
|
|
26
|
+
/** 主轴对齐方式,默认 start;分布式对齐在 size 的基础间距外分配剩余空间 */
|
|
27
27
|
justify?: SpaceJustify;
|
|
28
28
|
}
|
|
@@ -13,16 +13,16 @@ export type SpaceRef = HTMLElement;
|
|
|
13
13
|
* Space 组件属性接口
|
|
14
14
|
*/
|
|
15
15
|
export interface SpaceProps extends HTMLAttributes<HTMLElement> {
|
|
16
|
-
/**
|
|
16
|
+
/** 基础间距:xs/sm/md/lg/xl 对应 4/8/12/16/24px;数值支持小数,负值或非有限值归零,默认 md */
|
|
17
17
|
size?: SpaceSize | number;
|
|
18
18
|
/** 排列方向,默认为 `horizontal` */
|
|
19
19
|
direction?: SpaceDirection;
|
|
20
20
|
/** 是否允许子项换行(仅在 `direction="horizontal"` 时生效),默认为 true */
|
|
21
21
|
wrap?: boolean;
|
|
22
|
-
/**
|
|
22
|
+
/** 根标签或自定义组件,默认 div;自定义组件需把 className、style、原生属性和 ref 传给根 DOM */
|
|
23
23
|
tag?: ElementType;
|
|
24
24
|
/** 交叉轴对齐方式,默认为 `start` */
|
|
25
25
|
align?: SpaceAlign;
|
|
26
|
-
/**
|
|
26
|
+
/** 主轴对齐方式,默认 start;分布式对齐在 size 的基础间距外分配剩余空间 */
|
|
27
27
|
justify?: SpaceJustify;
|
|
28
28
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/** 静态指标展示;数值更新由调用方驱动,不自动递增或创建 live region。 */
|
|
3
|
+
export interface StatisticProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
4
|
+
/** 可见标题,不作为原生 title 提示;条件空内容隐藏,数字 0 保留。 */
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
/** 必填的数字或原始字符串;数字按 zh-CN 格式化,字符串不参与精度处理。 */
|
|
7
|
+
value: number | string;
|
|
8
|
+
/** 固定小数位数;有限值向下取整并限制在 0–20,未指定或非有限值时最多保留 3 位。 */
|
|
9
|
+
precision?: number;
|
|
10
|
+
/** 数值前缀;条件空内容隐藏,数字 0 保留。 */
|
|
11
|
+
prefix?: ReactNode;
|
|
12
|
+
/** 数值后缀或单位;条件空内容隐藏,数字 0 保留。 */
|
|
13
|
+
suffix?: ReactNode;
|
|
14
|
+
/** 接收原始 value,优先于默认格式化;应为纯函数,返回空内容时不留下数值节点与额外间距。 */
|
|
15
|
+
formatter?: (value: number | string) => ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/** div 根节点;原生属性、事件与 ref 透传到此节点。 */
|
|
18
|
+
export type StatisticRef = HTMLDivElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/** 静态指标展示;数值更新由调用方驱动,不自动递增或创建 live region。 */
|
|
3
|
+
export interface StatisticProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
4
|
+
/** 可见标题,不作为原生 title 提示;条件空内容隐藏,数字 0 保留。 */
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
/** 必填的数字或原始字符串;数字按 zh-CN 格式化,字符串不参与精度处理。 */
|
|
7
|
+
value: number | string;
|
|
8
|
+
/** 固定小数位数;有限值向下取整并限制在 0–20,未指定或非有限值时最多保留 3 位。 */
|
|
9
|
+
precision?: number;
|
|
10
|
+
/** 数值前缀;条件空内容隐藏,数字 0 保留。 */
|
|
11
|
+
prefix?: ReactNode;
|
|
12
|
+
/** 数值后缀或单位;条件空内容隐藏,数字 0 保留。 */
|
|
13
|
+
suffix?: ReactNode;
|
|
14
|
+
/** 接收原始 value,优先于默认格式化;应为纯函数,返回空内容时不留下数值节点与额外间距。 */
|
|
15
|
+
formatter?: (value: number | string) => ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/** div 根节点;原生属性、事件与 ref 透传到此节点。 */
|
|
18
|
+
export type StatisticRef = HTMLDivElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type StepsStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
|
+
export interface StepsItem {
|
|
4
|
+
/** 同类型内唯一的稳定标识;数字和字符串区分,动态重排时应显式提供。 */
|
|
5
|
+
key?: string | number;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
status?: StepsStatus;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange' | 'defaultValue'> {
|
|
13
|
+
items: StepsItem[];
|
|
14
|
+
/** 从 0 开始,items.length 表示全部完成。有限值向下取整并限于有效范围,非有限值按 0 展示。 */
|
|
15
|
+
value?: number;
|
|
16
|
+
/** 非受控初值,使用与 value 相同的展示边界;后续变更不会重置当前步骤。 */
|
|
17
|
+
defaultValue?: number;
|
|
18
|
+
/** 点击或 Enter / Space 请求的目标下标;当前步骤不重复通知,受控拒绝后可再次请求。 */
|
|
19
|
+
onChange?: (value: number) => void;
|
|
20
|
+
direction?: 'horizontal' | 'vertical';
|
|
21
|
+
size?: 'sm' | 'md' | 'lg';
|
|
22
|
+
/** 当前步骤状态;单项 status 可单独表达失败或跳过后的状态。 */
|
|
23
|
+
status?: StepsStatus;
|
|
24
|
+
/** 默认 false。方向键仅移动焦点;业务校验流程使用受控 value,在验证成功后回传下一步。 */
|
|
25
|
+
clickable?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export type StepsRef = HTMLOListElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type StepsStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
|
+
export interface StepsItem {
|
|
4
|
+
/** 同类型内唯一的稳定标识;数字和字符串区分,动态重排时应显式提供。 */
|
|
5
|
+
key?: string | number;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
status?: StepsStatus;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange' | 'defaultValue'> {
|
|
13
|
+
items: StepsItem[];
|
|
14
|
+
/** 从 0 开始,items.length 表示全部完成。有限值向下取整并限于有效范围,非有限值按 0 展示。 */
|
|
15
|
+
value?: number;
|
|
16
|
+
/** 非受控初值,使用与 value 相同的展示边界;后续变更不会重置当前步骤。 */
|
|
17
|
+
defaultValue?: number;
|
|
18
|
+
/** 点击或 Enter / Space 请求的目标下标;当前步骤不重复通知,受控拒绝后可再次请求。 */
|
|
19
|
+
onChange?: (value: number) => void;
|
|
20
|
+
direction?: 'horizontal' | 'vertical';
|
|
21
|
+
size?: 'sm' | 'md' | 'lg';
|
|
22
|
+
/** 当前步骤状态;单项 status 可单独表达失败或跳过后的状态。 */
|
|
23
|
+
status?: StepsStatus;
|
|
24
|
+
/** 默认 false。方向键仅移动焦点;业务校验流程使用受控 value,在验证成功后回传下一步。 */
|
|
25
|
+
clickable?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export type StepsRef = HTMLOListElement;
|
|
@@ -5,9 +5,9 @@ export type SwitchSize = 'sm' | 'md' | 'lg';
|
|
|
5
5
|
* Switch 组件属性接口
|
|
6
6
|
*/
|
|
7
7
|
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'checked' | 'defaultChecked' | 'onChange' | 'value' | 'defaultValue'> {
|
|
8
|
-
/**
|
|
8
|
+
/** 受控模式:当前是否开启;显式 undefined 仍受控并按 false 展示 */
|
|
9
9
|
checked?: boolean;
|
|
10
|
-
/**
|
|
10
|
+
/** 非受控初始状态及原生表单 reset 恢复的最新默认状态,默认为 false */
|
|
11
11
|
defaultChecked?: boolean;
|
|
12
12
|
/** 是否禁用开关交互,默认为 false */
|
|
13
13
|
disabled?: boolean;
|
|
@@ -15,13 +15,13 @@ export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
/** 开关尺寸大小,默认为 `md` */
|
|
17
17
|
size?: SwitchSize;
|
|
18
|
-
/**
|
|
18
|
+
/** 开启状态下显示在轨道旁的文案;当前文案为空时不渲染占位 */
|
|
19
19
|
checkedText?: string;
|
|
20
|
-
/**
|
|
20
|
+
/** 关闭状态下显示在轨道旁的文案;应另用 aria-label / aria-labelledby 提供稳定名称 */
|
|
21
21
|
uncheckedText?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** 原生表单字段名;开启且可用时提交原生默认字符串 on */
|
|
23
23
|
name?: string;
|
|
24
|
-
/**
|
|
24
|
+
/** 请求切换时回调下一布尔值;取消点击或原生 reset 不触发 */
|
|
25
25
|
onChange?: (checked: boolean) => void;
|
|
26
26
|
}
|
|
27
27
|
/** Switch 根原生 input DOM 元素类型 */
|
|
@@ -5,9 +5,9 @@ export type SwitchSize = 'sm' | 'md' | 'lg';
|
|
|
5
5
|
* Switch 组件属性接口
|
|
6
6
|
*/
|
|
7
7
|
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'checked' | 'defaultChecked' | 'onChange' | 'value' | 'defaultValue'> {
|
|
8
|
-
/**
|
|
8
|
+
/** 受控模式:当前是否开启;显式 undefined 仍受控并按 false 展示 */
|
|
9
9
|
checked?: boolean;
|
|
10
|
-
/**
|
|
10
|
+
/** 非受控初始状态及原生表单 reset 恢复的最新默认状态,默认为 false */
|
|
11
11
|
defaultChecked?: boolean;
|
|
12
12
|
/** 是否禁用开关交互,默认为 false */
|
|
13
13
|
disabled?: boolean;
|
|
@@ -15,13 +15,13 @@ export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
/** 开关尺寸大小,默认为 `md` */
|
|
17
17
|
size?: SwitchSize;
|
|
18
|
-
/**
|
|
18
|
+
/** 开启状态下显示在轨道旁的文案;当前文案为空时不渲染占位 */
|
|
19
19
|
checkedText?: string;
|
|
20
|
-
/**
|
|
20
|
+
/** 关闭状态下显示在轨道旁的文案;应另用 aria-label / aria-labelledby 提供稳定名称 */
|
|
21
21
|
uncheckedText?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** 原生表单字段名;开启且可用时提交原生默认字符串 on */
|
|
23
23
|
name?: string;
|
|
24
|
-
/**
|
|
24
|
+
/** 请求切换时回调下一布尔值;取消点击或原生 reset 不触发 */
|
|
25
25
|
onChange?: (checked: boolean) => void;
|
|
26
26
|
}
|
|
27
27
|
/** Switch 根原生 input DOM 元素类型 */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
8
8
|
/** 表格尺寸大小:小 (sm) | 中等 (md) | 大 (lg) */
|
|
9
9
|
export type TableSize = 'sm' | 'md' | 'lg';
|
|
10
|
-
/**
|
|
10
|
+
/** 行数据的唯一标识主键;数字和字符串保持不同身份(如 1 与 '1') */
|
|
11
11
|
export type TableRowKey = string | number;
|
|
12
12
|
/** 排序方向:升序 (asc) 或 降序 (desc) */
|
|
13
13
|
export type TableSortOrder = 'asc' | 'desc';
|
|
@@ -48,7 +48,7 @@ export interface TableRowSelection<T> {
|
|
|
48
48
|
columnWidth?: string | number;
|
|
49
49
|
/** 动态获取特定行的选择控件属性(如禁用特定行) */
|
|
50
50
|
getControlProps?: (row: T, index: number) => TableSelectionControlProps;
|
|
51
|
-
/**
|
|
51
|
+
/** 用户请求改变选择时触发;受控模式等待调用方回传新集合,内部失效 key 清理不触发 */
|
|
52
52
|
onChange?: (keys: TableRowKey[], rows: T[]) => void;
|
|
53
53
|
}
|
|
54
54
|
/** 表格列定义 */
|
|
@@ -88,7 +88,7 @@ export interface TableProps<T = any> extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
88
88
|
rowKey: string | ((row: T) => TableRowKey);
|
|
89
89
|
/** 表格尺寸,默认为 `md` */
|
|
90
90
|
size?: TableSize;
|
|
91
|
-
/** 是否显示完整外边框与单元格边框,默认为
|
|
91
|
+
/** 是否显示完整外边框与单元格边框,默认为 true */
|
|
92
92
|
bordered?: boolean;
|
|
93
93
|
/** 是否展示斑马条纹交替背景,默认为 false */
|
|
94
94
|
striped?: boolean;
|
|
@@ -100,7 +100,7 @@ export interface TableProps<T = any> extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
100
100
|
emptyText?: string;
|
|
101
101
|
/** 表格最大高度(开启后支持固定表头与垂直滚动) */
|
|
102
102
|
maxHeight?: string | number;
|
|
103
|
-
/**
|
|
103
|
+
/** 是否处于加载中状态;加载时阻止表格内容的点击和键盘操作,默认为 false */
|
|
104
104
|
loading?: boolean;
|
|
105
105
|
/** 表格可访问性标题/说明节点(`<caption>`) */
|
|
106
106
|
caption?: ReactNode;
|
|
@@ -120,13 +120,13 @@ export interface TableProps<T = any> extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
120
120
|
currentRowKey?: TableRowKey | null;
|
|
121
121
|
/** 非受控模式:初始高亮行的 key */
|
|
122
122
|
defaultCurrentRowKey?: TableRowKey | null;
|
|
123
|
-
/**
|
|
123
|
+
/** 点击行,或行自身聚焦时按 Enter / Space 触发;子控件保留自己的键盘行为 */
|
|
124
124
|
onRowClick?: (row: T, index: number) => void;
|
|
125
125
|
/** 双击某一行时的回调函数 */
|
|
126
126
|
onRowDoubleClick?: (row: T, index: number) => void;
|
|
127
127
|
/** 点击单元格时的回调函数 */
|
|
128
128
|
onCellClick?: (row: T, column: TableColumn<T>, index: number) => void;
|
|
129
|
-
/**
|
|
129
|
+
/** 用户请求切换排序时触发;外部 sortState 更新和初始排序不触发 */
|
|
130
130
|
onSortChange?: (state: TableSortState | null, column: TableColumn<T>) => void;
|
|
131
131
|
/** 当前高亮行发生变化时的回调函数 */
|
|
132
132
|
onCurrentRowChange?: (key: TableRowKey | null, row: T | null) => void;
|