@vavt/react-ui 1.5.0 → 1.6.1
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/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-DBjtTP2Q.js → DatePicker-ClP5xjNw.js} +1 -1
- package/dist/{DatePicker-apiCVsKF.cjs → DatePicker-JNDkFFdi.cjs} +1 -1
- package/dist/{DateTimePicker-2omkPUuf.cjs → DateTimePicker-BXZFzGDJ.cjs} +1 -1
- package/dist/{DateTimePicker-IpyJLY4J.js → DateTimePicker-CXd0DFtN.js} +1 -1
- 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-BupBfl-B.js → List-DnddRNf7.js} +6 -2
- 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-CcnBHoE5.js → Result-BxVunr6s.js} +14 -14
- 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-C80MPzfN.js → Skeleton-D2wjkTKQ.js} +2 -2
- package/dist/{Skeleton-B_cZyDWx.cjs → Skeleton-qghEqJuT.cjs} +1 -1
- 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-BitBMhSW.cjs → Statistic-Bnx-S52U.cjs} +1 -1
- package/dist/{Statistic-DVduwOGW.js → Statistic-DOdu7ZQ_.js} +1 -1
- package/dist/{Steps-Cnswg-bb.js → Steps-CnvRwUHr.js} +12 -7
- 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 -1
- package/dist/cjs/Avatar.cjs +1 -1
- package/dist/cjs/Badge.cjs +1 -1
- package/dist/cjs/Breadcrumb.cjs +1 -1
- package/dist/cjs/Button.cjs +1 -1
- package/dist/cjs/Cascader.cjs +1 -1
- package/dist/cjs/Checkbox.cjs +1 -1
- package/dist/cjs/Collapse.cjs +1 -1
- package/dist/cjs/Cron.cjs +1 -1
- package/dist/cjs/DatePicker.cjs +1 -1
- package/dist/cjs/DateTimePicker.cjs +1 -1
- 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 -1
- package/dist/cjs/Input.cjs +1 -1
- package/dist/cjs/Layout.cjs +1 -1
- package/dist/cjs/List.cjs +1 -1
- package/dist/cjs/Loading.cjs +1 -1
- package/dist/cjs/Menu.cjs +1 -1
- package/dist/cjs/Message.cjs +1 -1
- 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 -1
- package/dist/cjs/Popover.cjs +1 -1
- package/dist/cjs/Progress.cjs +1 -1
- package/dist/cjs/Radio.cjs +1 -1
- package/dist/cjs/Result.cjs +1 -1
- package/dist/cjs/Scrollbar.cjs +1 -1
- package/dist/cjs/Segmented.cjs +1 -1
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/Sidebar.cjs +1 -1
- package/dist/cjs/Skeleton.cjs +1 -1
- package/dist/cjs/Slider.cjs +1 -1
- package/dist/cjs/Space.cjs +1 -1
- package/dist/cjs/Statistic.cjs +1 -1
- package/dist/cjs/Steps.cjs +1 -1
- 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 -1
- package/dist/cjs/Transition.cjs +1 -1
- package/dist/cjs/Tree.cjs +1 -1
- package/dist/cjs/TreeSelect.cjs +1 -1
- package/dist/cjs/Typography.cjs +1 -1
- 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 -1
- package/dist/css/Avatar.css +1 -1
- package/dist/css/Badge.css +1 -1
- package/dist/css/Breadcrumb.css +1 -1
- package/dist/css/Button.css +1 -1
- package/dist/css/Card.css +1 -1
- package/dist/css/Cascader.css +1 -1
- package/dist/css/Checkbox.css +1 -1
- package/dist/css/Col.css +1 -1
- package/dist/css/Collapse.css +1 -1
- 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 -1
- 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 -1
- package/dist/css/Input.css +1 -1
- package/dist/css/Layout.css +1 -1
- package/dist/css/List.css +1 -1
- package/dist/css/Loading.css +1 -1
- package/dist/css/Menu.css +1 -1
- package/dist/css/Message.css +1 -1
- 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 -1
- package/dist/css/Popover.css +1 -1
- package/dist/css/Progress.css +1 -1
- package/dist/css/Radio.css +1 -1
- package/dist/css/Result.css +1 -1
- package/dist/css/Row.css +1 -1
- package/dist/css/Scrollbar.css +1 -1
- package/dist/css/Segmented.css +1 -1
- package/dist/css/Select.css +1 -1
- package/dist/css/Sidebar.css +1 -1
- package/dist/css/Skeleton.css +1 -1
- package/dist/css/Slider.css +1 -1
- package/dist/css/Statistic.css +1 -1
- package/dist/css/Steps.css +1 -1
- 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 -1
- package/dist/css/Tree.css +1 -1
- package/dist/css/TreeSelect.css +1 -1
- package/dist/css/Typography.css +1 -1
- 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-Bv1Jvhjb.js → dialog-shell-CKtHqdVE.js} +38 -33
- 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 +1 -1
- package/dist/es/Avatar.mjs +1 -1
- package/dist/es/Badge.mjs +1 -1
- package/dist/es/Breadcrumb.mjs +1 -1
- package/dist/es/Button.mjs +1 -1
- package/dist/es/Cascader.mjs +1 -1
- package/dist/es/Checkbox.mjs +1 -1
- package/dist/es/Collapse.mjs +1 -1
- package/dist/es/Cron.mjs +1 -1
- package/dist/es/DatePicker.mjs +1 -1
- package/dist/es/DateTimePicker.mjs +1 -1
- 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 +1 -1
- package/dist/es/Input.mjs +1 -1
- package/dist/es/Layout.mjs +1 -1
- package/dist/es/List.mjs +1 -1
- package/dist/es/Loading.mjs +1 -1
- package/dist/es/Menu.mjs +1 -1
- package/dist/es/Message.mjs +1 -1
- 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 +1 -1
- package/dist/es/Popover.mjs +1 -1
- package/dist/es/Progress.mjs +1 -1
- package/dist/es/Radio.mjs +1 -1
- package/dist/es/Result.mjs +1 -1
- package/dist/es/Scrollbar.mjs +1 -1
- package/dist/es/Segmented.mjs +1 -1
- package/dist/es/Select.mjs +1 -1
- package/dist/es/Sidebar.mjs +1 -1
- package/dist/es/Skeleton.mjs +1 -1
- package/dist/es/Slider.mjs +1 -1
- package/dist/es/Space.mjs +1 -1
- package/dist/es/Statistic.mjs +1 -1
- package/dist/es/Steps.mjs +1 -1
- 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 +1 -1
- package/dist/es/Transition.mjs +1 -1
- package/dist/es/Tree.mjs +1 -1
- package/dist/es/TreeSelect.mjs +1 -1
- package/dist/es/Typography.mjs +1 -1
- package/dist/es/Upload.mjs +1 -1
- package/dist/es/global.mjs +1 -1
- package/dist/es/index.mjs +59 -59
- package/dist/es/register.mjs +1 -1
- package/dist/{floating-B6CCQcuK.cjs → floating-BHmOWQnJ.cjs} +1 -1
- package/dist/{floating-C8pd2mFu.js → floating-C-0-Sk6n.js} +1 -1
- 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-OkrpLRrG.cjs → notice-timer-9sjKpz2g.cjs} +1 -1
- package/dist/{notice-timer-BRLTVgTj.js → notice-timer-Biq_Sc_9.js} +3 -3
- 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/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/type.d.cts +6 -3
- package/dist/types/AutoComplete/type.d.ts +6 -3
- package/dist/types/Avatar/type.d.cts +13 -11
- package/dist/types/Avatar/type.d.ts +13 -11
- package/dist/types/Badge/type.d.cts +4 -4
- package/dist/types/Badge/type.d.ts +4 -4
- package/dist/types/Breadcrumb/type.d.cts +8 -8
- package/dist/types/Breadcrumb/type.d.ts +8 -8
- 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/type.d.cts +15 -1
- package/dist/types/Cascader/type.d.ts +15 -1
- 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/index.d.cts +1 -1
- package/dist/types/Collapse/index.d.ts +1 -1
- package/dist/types/Collapse/type.d.cts +13 -7
- package/dist/types/Collapse/type.d.ts +13 -7
- 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/type.d.cts +4 -2
- package/dist/types/Descriptions/type.d.ts +4 -2
- 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/type.d.cts +7 -1
- package/dist/types/Image/type.d.ts +7 -1
- package/dist/types/Input/type.d.cts +7 -7
- package/dist/types/Input/type.d.ts +7 -7
- package/dist/types/Layout/type.d.cts +9 -3
- package/dist/types/Layout/type.d.ts +9 -3
- package/dist/types/List/type.d.cts +6 -1
- package/dist/types/List/type.d.ts +6 -1
- package/dist/types/Loading/type.d.cts +3 -3
- package/dist/types/Loading/type.d.ts +3 -3
- package/dist/types/Menu/type.d.cts +17 -1
- package/dist/types/Menu/type.d.ts +17 -1
- package/dist/types/Message/type.d.cts +10 -2
- package/dist/types/Message/type.d.ts +10 -2
- 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/type.d.cts +5 -1
- package/dist/types/Popconfirm/type.d.ts +5 -1
- package/dist/types/Popover/type.d.cts +4 -1
- package/dist/types/Popover/type.d.ts +4 -1
- 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/type.d.cts +7 -1
- package/dist/types/Result/type.d.ts +7 -1
- 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/type.d.cts +5 -0
- package/dist/types/Segmented/type.d.ts +5 -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/type.d.cts +8 -5
- package/dist/types/Skeleton/type.d.ts +8 -5
- 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/type.d.cts +8 -1
- package/dist/types/Statistic/type.d.ts +8 -1
- package/dist/types/Steps/type.d.cts +5 -2
- package/dist/types/Steps/type.d.ts +5 -2
- 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/type.d.cts +6 -0
- package/dist/types/Transfer/type.d.ts +6 -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 +1 -0
- package/dist/types/Tree/Tree.d.ts +1 -0
- package/dist/types/Tree/type.d.cts +4 -0
- package/dist/types/Tree/type.d.ts +4 -0
- package/dist/types/TreeSelect/type.d.cts +13 -0
- package/dist/types/TreeSelect/type.d.ts +13 -0
- package/dist/types/Typography/type.d.cts +9 -2
- package/dist/types/Typography/type.d.ts +9 -2
- 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 +5 -1
- package/dist/types/_shared/choice-popup.d.ts +5 -1
- package/dist/types/_shared/date-calendar.d.cts +4 -3
- package/dist/types/_shared/date-calendar.d.ts +4 -3
- 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/registry.d.cts +2 -2
- package/dist/types/registry.d.ts +2 -2
- package/package.json +1 -1
- 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/AutoComplete-D8yHFMHQ.js +0 -185
- package/dist/AutoComplete-Drl00grg.cjs +0 -1
- package/dist/Avatar-CVGMy2Ws.cjs +0 -1
- package/dist/Avatar-DiZ9p6tu.js +0 -125
- package/dist/Badge-CchY6uXz.js +0 -72
- package/dist/Badge-D3htuSXY.cjs +0 -1
- package/dist/Breadcrumb-BWR92yK_.cjs +0 -1
- package/dist/Breadcrumb-BmZKaAQx.js +0 -88
- package/dist/Button-CwkWSWau.js +0 -96
- package/dist/Button-qURrKHQ0.cjs +0 -1
- package/dist/Cascader-ZVE95kvm.cjs +0 -1
- package/dist/Cascader-bozg6Ebp.js +0 -268
- 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/Collapse-DVxYsq3L.cjs +0 -1
- package/dist/Collapse-DszkYUfD.js +0 -112
- package/dist/Cron-BWqWgWuv.js +0 -1206
- package/dist/Cron-zcb1FZ09.cjs +0 -1
- package/dist/Divider-BXNZyvHY.js +0 -48
- package/dist/Divider-BnmUNmy2.cjs +0 -1
- package/dist/Drawer--aEf7OiI.js +0 -109
- package/dist/Drawer-BEDZEapD.cjs +0 -1
- package/dist/Dropdown-FrlX_2wd.js +0 -332
- package/dist/Dropdown-dvIwbqMc.cjs +0 -1
- package/dist/Form-CGJDPj0N.js +0 -446
- package/dist/Form-lygZzVRZ.cjs +0 -1
- package/dist/Image-D7FGl2cQ.cjs +0 -1
- package/dist/Image-DJb-tcA-.js +0 -295
- package/dist/Input-BI-gwi8w.cjs +0 -1
- package/dist/Input-CoS-XMv1.js +0 -113
- package/dist/Layout-CJpTIRSF.cjs +0 -1
- package/dist/Layout-l-rfDdFR.js +0 -60
- package/dist/List-DAkXmKFR.cjs +0 -1
- package/dist/Loading-C9LBGbnd.js +0 -45
- package/dist/Loading-CRhiY3Ok.cjs +0 -1
- package/dist/Menu-CsGCo2ck.cjs +0 -1
- package/dist/Menu-t8GRH6oh.js +0 -168
- package/dist/Message-Bo-hPakI.js +0 -170
- package/dist/Message-D2WGz_wk.cjs +0 -1
- package/dist/MessageBox-CaTZOiZC.js +0 -145
- package/dist/MessageBox-D9rZAvhY.cjs +0 -1
- package/dist/Modal-BTMB0xbR.js +0 -250
- package/dist/Modal-ToC7SNzp.cjs +0 -1
- package/dist/Notification-C1lOX5Hn.js +0 -187
- package/dist/Notification-DK5jP-kX.cjs +0 -1
- package/dist/NumberInput-CB-nKZgs.js +0 -134
- package/dist/NumberInput-Dp1vTDkW.cjs +0 -1
- package/dist/Pagination-D_SAnFOA.cjs +0 -1
- package/dist/Pagination-fbC5EEq-.js +0 -166
- package/dist/Popconfirm-CQ59-YOh.cjs +0 -1
- package/dist/Popconfirm-D2zgbhKF.js +0 -91
- package/dist/Popover-Cb8BrtQC.js +0 -232
- package/dist/Popover-Dqrb-lKh.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/Result-C3RqWqnc.cjs +0 -1
- package/dist/Scrollbar-BdMGZrYi.js +0 -235
- package/dist/Scrollbar-CEQT6Ao_.cjs +0 -1
- package/dist/Segmented-CQ18snYg.cjs +0 -1
- package/dist/Segmented-OykaARP4.js +0 -39
- package/dist/Select-CpoP5kRp.js +0 -504
- package/dist/Select-D8udcz4F.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/Steps-B9phXfUl.cjs +0 -1
- package/dist/Switch-CpXDMcPW.cjs +0 -1
- package/dist/Switch-CqTFvp-k.js +0 -58
- package/dist/Table-DMqVnyDN.js +0 -534
- package/dist/Table-rgp7iAWc.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-BydMgSVN.js +0 -220
- package/dist/TimePicker-t4eGpNEu.cjs +0 -1
- package/dist/Timeline-ROggEQnD.cjs +0 -1
- package/dist/Tooltip-CWQDc8Nf.js +0 -201
- package/dist/Tooltip-Cn9pIMfU.cjs +0 -1
- package/dist/Transfer-BRjVUdyi.js +0 -115
- package/dist/Transfer-BfWsmx_x.cjs +0 -1
- package/dist/Transition-BBMxZ5_8.cjs +0 -1
- package/dist/Transition-CJDv6yI5.js +0 -125
- package/dist/Tree-BsG6l54c.js +0 -202
- package/dist/Tree-CcSMb0_M.cjs +0 -1
- package/dist/TreeSelect-DBJkW7zM.cjs +0 -1
- package/dist/TreeSelect-DWmDo7pg.js +0 -120
- package/dist/Typography-C9Ef3jN5.js +0 -91
- package/dist/Typography-DLrh1jPn.cjs +0 -1
- package/dist/Upload-aLdxGpWh.js +0 -184
- package/dist/Upload-wt5lnQHc.cjs +0 -1
- package/dist/choice-popup-Crn_uZzu.cjs +0 -1
- package/dist/choice-popup-CzxryGs6.js +0 -168
- package/dist/date-picker-BUZofYHp.js +0 -644
- package/dist/date-picker-CDbRvH7g.cjs +0 -1
- package/dist/dialog-shell-HPbp3xhc.cjs +0 -1
- package/dist/icon-Cbvuv4yF.js +0 -25
- package/dist/icon-DRLyKu8p.cjs +0 -1
- package/dist/layer-B9unaPbV.js +0 -109
- package/dist/layer-BcLkE2NM.cjs +0 -1
- package/dist/refs-D5IYOBaf.js +0 -14
- package/dist/refs-DCqd87V8.cjs +0 -1
- package/dist/registry-BFCksD7k.js +0 -131
- package/dist/registry-DftkiQnN.cjs +0 -1
- package/dist/time-wheel-BaCcA9nk.cjs +0 -1
- package/dist/time-wheel-BtvYZI6H.js +0 -291
|
@@ -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
|
}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/** 静态指标展示;数值更新由调用方驱动,不自动递增或创建 live region。 */
|
|
2
3
|
export interface StatisticProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
4
|
+
/** 可见标题,不作为原生 title 提示;条件空内容隐藏,数字 0 保留。 */
|
|
3
5
|
title?: ReactNode;
|
|
6
|
+
/** 必填的数字或原始字符串;数字按 zh-CN 格式化,字符串不参与精度处理。 */
|
|
4
7
|
value: number | string;
|
|
5
|
-
/**
|
|
8
|
+
/** 固定小数位数;有限值向下取整并限制在 0–20,未指定或非有限值时最多保留 3 位。 */
|
|
6
9
|
precision?: number;
|
|
10
|
+
/** 数值前缀;条件空内容隐藏,数字 0 保留。 */
|
|
7
11
|
prefix?: ReactNode;
|
|
12
|
+
/** 数值后缀或单位;条件空内容隐藏,数字 0 保留。 */
|
|
8
13
|
suffix?: ReactNode;
|
|
14
|
+
/** 接收原始 value,优先于默认格式化;应为纯函数,返回空内容时不留下数值节点与额外间距。 */
|
|
9
15
|
formatter?: (value: number | string) => ReactNode;
|
|
10
16
|
}
|
|
17
|
+
/** div 根节点;原生属性、事件与 ref 透传到此节点。 */
|
|
11
18
|
export type StatisticRef = HTMLDivElement;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/** 静态指标展示;数值更新由调用方驱动,不自动递增或创建 live region。 */
|
|
2
3
|
export interface StatisticProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
4
|
+
/** 可见标题,不作为原生 title 提示;条件空内容隐藏,数字 0 保留。 */
|
|
3
5
|
title?: ReactNode;
|
|
6
|
+
/** 必填的数字或原始字符串;数字按 zh-CN 格式化,字符串不参与精度处理。 */
|
|
4
7
|
value: number | string;
|
|
5
|
-
/**
|
|
8
|
+
/** 固定小数位数;有限值向下取整并限制在 0–20,未指定或非有限值时最多保留 3 位。 */
|
|
6
9
|
precision?: number;
|
|
10
|
+
/** 数值前缀;条件空内容隐藏,数字 0 保留。 */
|
|
7
11
|
prefix?: ReactNode;
|
|
12
|
+
/** 数值后缀或单位;条件空内容隐藏,数字 0 保留。 */
|
|
8
13
|
suffix?: ReactNode;
|
|
14
|
+
/** 接收原始 value,优先于默认格式化;应为纯函数,返回空内容时不留下数值节点与额外间距。 */
|
|
9
15
|
formatter?: (value: number | string) => ReactNode;
|
|
10
16
|
}
|
|
17
|
+
/** div 根节点;原生属性、事件与 ref 透传到此节点。 */
|
|
11
18
|
export type StatisticRef = HTMLDivElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type StepsStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
3
|
export interface StepsItem {
|
|
4
|
+
/** 同类型内唯一的稳定标识;数字和字符串区分,动态重排时应显式提供。 */
|
|
4
5
|
key?: string | number;
|
|
5
6
|
title: ReactNode;
|
|
6
7
|
description?: ReactNode;
|
|
@@ -10,15 +11,17 @@ export interface StepsItem {
|
|
|
10
11
|
}
|
|
11
12
|
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange' | 'defaultValue'> {
|
|
12
13
|
items: StepsItem[];
|
|
13
|
-
/** 从 0 开始,items.length
|
|
14
|
+
/** 从 0 开始,items.length 表示全部完成。有限值向下取整并限于有效范围,非有限值按 0 展示。 */
|
|
14
15
|
value?: number;
|
|
16
|
+
/** 非受控初值,使用与 value 相同的展示边界;后续变更不会重置当前步骤。 */
|
|
15
17
|
defaultValue?: number;
|
|
18
|
+
/** 点击或 Enter / Space 请求的目标下标;当前步骤不重复通知,受控拒绝后可再次请求。 */
|
|
16
19
|
onChange?: (value: number) => void;
|
|
17
20
|
direction?: 'horizontal' | 'vertical';
|
|
18
21
|
size?: 'sm' | 'md' | 'lg';
|
|
19
22
|
/** 当前步骤状态;单项 status 可单独表达失败或跳过后的状态。 */
|
|
20
23
|
status?: StepsStatus;
|
|
21
|
-
/** 默认 false
|
|
24
|
+
/** 默认 false。方向键仅移动焦点;业务校验流程使用受控 value,在验证成功后回传下一步。 */
|
|
22
25
|
clickable?: boolean;
|
|
23
26
|
}
|
|
24
27
|
export type StepsRef = HTMLOListElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type StepsStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
3
|
export interface StepsItem {
|
|
4
|
+
/** 同类型内唯一的稳定标识;数字和字符串区分,动态重排时应显式提供。 */
|
|
4
5
|
key?: string | number;
|
|
5
6
|
title: ReactNode;
|
|
6
7
|
description?: ReactNode;
|
|
@@ -10,15 +11,17 @@ export interface StepsItem {
|
|
|
10
11
|
}
|
|
11
12
|
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange' | 'defaultValue'> {
|
|
12
13
|
items: StepsItem[];
|
|
13
|
-
/** 从 0 开始,items.length
|
|
14
|
+
/** 从 0 开始,items.length 表示全部完成。有限值向下取整并限于有效范围,非有限值按 0 展示。 */
|
|
14
15
|
value?: number;
|
|
16
|
+
/** 非受控初值,使用与 value 相同的展示边界;后续变更不会重置当前步骤。 */
|
|
15
17
|
defaultValue?: number;
|
|
18
|
+
/** 点击或 Enter / Space 请求的目标下标;当前步骤不重复通知,受控拒绝后可再次请求。 */
|
|
16
19
|
onChange?: (value: number) => void;
|
|
17
20
|
direction?: 'horizontal' | 'vertical';
|
|
18
21
|
size?: 'sm' | 'md' | 'lg';
|
|
19
22
|
/** 当前步骤状态;单项 status 可单独表达失败或跳过后的状态。 */
|
|
20
23
|
status?: StepsStatus;
|
|
21
|
-
/** 默认 false
|
|
24
|
+
/** 默认 false。方向键仅移动焦点;业务校验流程使用受控 value,在验证成功后回传下一步。 */
|
|
22
25
|
clickable?: boolean;
|
|
23
26
|
}
|
|
24
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;
|
|
@@ -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;
|
|
@@ -6,7 +6,7 @@ export type TabsSize = 'sm' | 'md' | 'lg';
|
|
|
6
6
|
export type TabValue = string;
|
|
7
7
|
/** 单个标签项数据结构 */
|
|
8
8
|
export interface TabItem {
|
|
9
|
-
/** 标签唯一标识 key */
|
|
9
|
+
/** 标签唯一标识 key,支持空字符串 */
|
|
10
10
|
key: TabValue;
|
|
11
11
|
/** 标签文本标题 */
|
|
12
12
|
label: string;
|
|
@@ -16,14 +16,14 @@ export interface TabItem {
|
|
|
16
16
|
icon?: ComponentIcon;
|
|
17
17
|
/** tab 元素 id;省略时由组件自动生成 */
|
|
18
18
|
id?: string;
|
|
19
|
-
/**
|
|
19
|
+
/** 调用方渲染的 tabpanel 元素 id;面板需用 aria-labelledby 反向关联本项 id */
|
|
20
20
|
panelId?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Tabs 组件属性接口
|
|
24
24
|
*/
|
|
25
25
|
export interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
26
|
-
/** 受控模式:当前激活的标签页 key */
|
|
26
|
+
/** 受控模式:当前激活的标签页 key;不可用值回退展示首个非禁用项 */
|
|
27
27
|
value?: TabValue;
|
|
28
28
|
/** 非受控模式:初始激活的标签页 key */
|
|
29
29
|
defaultValue?: TabValue;
|
|
@@ -33,13 +33,13 @@ export interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
33
33
|
size?: TabsSize;
|
|
34
34
|
/** 是否禁用整个标签页组件,默认为 false */
|
|
35
35
|
disabled?: boolean;
|
|
36
|
-
/**
|
|
36
|
+
/** 用户请求切换标签时触发;受控模式等待 value 更新后确认选中 */
|
|
37
37
|
onChange?: (value: TabValue) => void;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Tabs 组件暴露的命令式 Ref 句柄
|
|
41
41
|
*/
|
|
42
42
|
export interface TabsRef {
|
|
43
|
-
/**
|
|
43
|
+
/** 下一帧重新测量选中背景,并在标签容器内显示当前项;不改变焦点 */
|
|
44
44
|
refresh: () => void;
|
|
45
45
|
}
|
|
@@ -6,7 +6,7 @@ export type TabsSize = 'sm' | 'md' | 'lg';
|
|
|
6
6
|
export type TabValue = string;
|
|
7
7
|
/** 单个标签项数据结构 */
|
|
8
8
|
export interface TabItem {
|
|
9
|
-
/** 标签唯一标识 key */
|
|
9
|
+
/** 标签唯一标识 key,支持空字符串 */
|
|
10
10
|
key: TabValue;
|
|
11
11
|
/** 标签文本标题 */
|
|
12
12
|
label: string;
|
|
@@ -16,14 +16,14 @@ export interface TabItem {
|
|
|
16
16
|
icon?: ComponentIcon;
|
|
17
17
|
/** tab 元素 id;省略时由组件自动生成 */
|
|
18
18
|
id?: string;
|
|
19
|
-
/**
|
|
19
|
+
/** 调用方渲染的 tabpanel 元素 id;面板需用 aria-labelledby 反向关联本项 id */
|
|
20
20
|
panelId?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Tabs 组件属性接口
|
|
24
24
|
*/
|
|
25
25
|
export interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
26
|
-
/** 受控模式:当前激活的标签页 key */
|
|
26
|
+
/** 受控模式:当前激活的标签页 key;不可用值回退展示首个非禁用项 */
|
|
27
27
|
value?: TabValue;
|
|
28
28
|
/** 非受控模式:初始激活的标签页 key */
|
|
29
29
|
defaultValue?: TabValue;
|
|
@@ -33,13 +33,13 @@ export interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
33
33
|
size?: TabsSize;
|
|
34
34
|
/** 是否禁用整个标签页组件,默认为 false */
|
|
35
35
|
disabled?: boolean;
|
|
36
|
-
/**
|
|
36
|
+
/** 用户请求切换标签时触发;受控模式等待 value 更新后确认选中 */
|
|
37
37
|
onChange?: (value: TabValue) => void;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Tabs 组件暴露的命令式 Ref 句柄
|
|
41
41
|
*/
|
|
42
42
|
export interface TabsRef {
|
|
43
|
-
/**
|
|
43
|
+
/** 下一帧重新测量选中背景,并在标签容器内显示当前项;不改变焦点 */
|
|
44
44
|
refresh: () => void;
|
|
45
45
|
}
|
package/dist/types/Tag/Tag.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ComponentRef, ElementType, ReactElement, RefAttributes } from 'react';
|
|
1
2
|
import type { TagProps } from './type.cjs';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/** 将 tag 与原生属性、ref 关联;自定义组件需要透传容器属性与 ref。 */
|
|
4
|
+
type TagComponent = <T extends ElementType = 'span'>(props: TagProps<T> & RefAttributes<ComponentRef<T>>) => ReactElement | null;
|
|
5
|
+
declare const _default: TagComponent;
|
|
6
|
+
export default _default;
|
package/dist/types/Tag/Tag.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ComponentRef, ElementType, ReactElement, RefAttributes } from 'react';
|
|
1
2
|
import type { TagProps } from './type.js';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/** 将 tag 与原生属性、ref 关联;自定义组件需要透传容器属性与 ref。 */
|
|
4
|
+
type TagComponent = <T extends ElementType = 'span'>(props: TagProps<T> & RefAttributes<ComponentRef<T>>) => ReactElement | null;
|
|
5
|
+
declare const _default: TagComponent;
|
|
6
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Tag from './Tag.cjs';
|
|
2
2
|
/** Tag 标签组件 */
|
|
3
|
-
export declare const VlTag: import("react").
|
|
3
|
+
export declare const VlTag: <T extends import("react").ElementType = "span">(props: import("./type.cjs").TagProps<T> & import("react").RefAttributes<import("react").ComponentRef<T>>) => import("react").ReactElement | null;
|
|
4
4
|
export type { TagProps, TagStatus, TagSize, TagRef, TagIcon } from './type.cjs';
|
|
5
5
|
export default Tag;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Tag from './Tag.js';
|
|
2
2
|
/** Tag 标签组件 */
|
|
3
|
-
export declare const VlTag: import("react").
|
|
3
|
+
export declare const VlTag: <T extends import("react").ElementType = "span">(props: import("./type.js").TagProps<T> & import("react").RefAttributes<import("react").ComponentRef<T>>) => import("react").ReactElement | null;
|
|
4
4
|
export type { TagProps, TagStatus, TagSize, TagRef, TagIcon } from './type.js';
|
|
5
5
|
export default Tag;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentPropsWithoutRef, ElementType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import type { DecorativeIcon } from '../_shared/icon.cjs';
|
|
3
3
|
/** 标签语义状态:默认/中性 (default) | 主题色 (primary) | 成功 (success) | 警告 (warning) | 错误 (error) | 信息 (info) */
|
|
4
4
|
export type TagStatus = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
5
5
|
/** 标签尺寸:小 (sm) | 中等 (md) | 大 (lg) */
|
|
6
6
|
export type TagSize = 'sm' | 'md' | 'lg';
|
|
7
|
-
/** Tag
|
|
7
|
+
/** Tag 常见根 DOM 元素的公共类型;实际 ref 按 tag 推断。 */
|
|
8
8
|
export type TagRef = HTMLElement;
|
|
9
9
|
/** Tag 图标组件或节点类型 */
|
|
10
10
|
export type TagIcon = DecorativeIcon;
|
|
11
11
|
/**
|
|
12
12
|
* Tag 组件属性接口
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
interface TagOwnProps<T extends ElementType> {
|
|
15
15
|
/** 标签的语义状态,默认为 `default` */
|
|
16
16
|
status?: TagStatus;
|
|
17
17
|
/** 标签尺寸大小,默认为 `md` */
|
|
@@ -20,10 +20,19 @@ export interface TagProps extends HTMLAttributes<HTMLElement> {
|
|
|
20
20
|
icon?: TagIcon;
|
|
21
21
|
/** 是否支持关闭/移除,开启后展示关闭图标,默认为 false */
|
|
22
22
|
closable?: boolean;
|
|
23
|
-
/**
|
|
23
|
+
/** 自定义关闭按钮的可访问名称;默认使用“移除”与完整内容,空内容为“移除标签”。 */
|
|
24
|
+
closeLabel?: string;
|
|
25
|
+
/** 默认为 false;阻止根点击和关闭操作,button 根节点同步原生禁用。 */
|
|
24
26
|
disabled?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
tag?:
|
|
27
|
-
/**
|
|
27
|
+
/** 根节点默认 span;closable 需要可容纳按钮的非交互容器,自定义组件需透传属性与 ref。 */
|
|
28
|
+
tag?: T;
|
|
29
|
+
/** 关闭请求回调;只通知,不自动移除标签。事件的 currentTarget 为关闭按钮。 */
|
|
28
30
|
onClose?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
31
|
+
/** 主体内容;条件空内容不占位,数字 0 保留,长文字单行省略。 */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/** 追加到根节点的 class。 */
|
|
34
|
+
className?: string;
|
|
29
35
|
}
|
|
36
|
+
/** 按 tag 合并对应原生属性,例如 button 的 type 或 a 的 href。 */
|
|
37
|
+
export type TagProps<T extends ElementType = 'span'> = TagOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TagOwnProps<T>>;
|
|
38
|
+
export {};
|
package/dist/types/Tag/type.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentPropsWithoutRef, ElementType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import type { DecorativeIcon } from '../_shared/icon.js';
|
|
3
3
|
/** 标签语义状态:默认/中性 (default) | 主题色 (primary) | 成功 (success) | 警告 (warning) | 错误 (error) | 信息 (info) */
|
|
4
4
|
export type TagStatus = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
5
5
|
/** 标签尺寸:小 (sm) | 中等 (md) | 大 (lg) */
|
|
6
6
|
export type TagSize = 'sm' | 'md' | 'lg';
|
|
7
|
-
/** Tag
|
|
7
|
+
/** Tag 常见根 DOM 元素的公共类型;实际 ref 按 tag 推断。 */
|
|
8
8
|
export type TagRef = HTMLElement;
|
|
9
9
|
/** Tag 图标组件或节点类型 */
|
|
10
10
|
export type TagIcon = DecorativeIcon;
|
|
11
11
|
/**
|
|
12
12
|
* Tag 组件属性接口
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
interface TagOwnProps<T extends ElementType> {
|
|
15
15
|
/** 标签的语义状态,默认为 `default` */
|
|
16
16
|
status?: TagStatus;
|
|
17
17
|
/** 标签尺寸大小,默认为 `md` */
|
|
@@ -20,10 +20,19 @@ export interface TagProps extends HTMLAttributes<HTMLElement> {
|
|
|
20
20
|
icon?: TagIcon;
|
|
21
21
|
/** 是否支持关闭/移除,开启后展示关闭图标,默认为 false */
|
|
22
22
|
closable?: boolean;
|
|
23
|
-
/**
|
|
23
|
+
/** 自定义关闭按钮的可访问名称;默认使用“移除”与完整内容,空内容为“移除标签”。 */
|
|
24
|
+
closeLabel?: string;
|
|
25
|
+
/** 默认为 false;阻止根点击和关闭操作,button 根节点同步原生禁用。 */
|
|
24
26
|
disabled?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
tag?:
|
|
27
|
-
/**
|
|
27
|
+
/** 根节点默认 span;closable 需要可容纳按钮的非交互容器,自定义组件需透传属性与 ref。 */
|
|
28
|
+
tag?: T;
|
|
29
|
+
/** 关闭请求回调;只通知,不自动移除标签。事件的 currentTarget 为关闭按钮。 */
|
|
28
30
|
onClose?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
31
|
+
/** 主体内容;条件空内容不占位,数字 0 保留,长文字单行省略。 */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/** 追加到根节点的 class。 */
|
|
34
|
+
className?: string;
|
|
29
35
|
}
|
|
36
|
+
/** 按 tag 合并对应原生属性,例如 button 的 type 或 a 的 href。 */
|
|
37
|
+
export type TagProps<T extends ElementType = 'span'> = TagOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TagOwnProps<T>>;
|
|
38
|
+
export {};
|
|
@@ -7,25 +7,25 @@ export type TextareaResizeMode = 'none' | 'vertical' | 'horizontal' | 'both';
|
|
|
7
7
|
* Textarea 组件属性接口
|
|
8
8
|
*/
|
|
9
9
|
export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'value' | 'defaultValue' | 'onChange'> {
|
|
10
|
-
/**
|
|
10
|
+
/** 受控模式:当前文本域内容;显式传入 undefined 时仍受控,显示为空字符串 */
|
|
11
11
|
value?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** 非受控模式:初始文本域内容;原生 form.reset() 恢复到最新默认值,不触发 onChange */
|
|
13
13
|
defaultValue?: string;
|
|
14
14
|
/** 原生占位提示文案 */
|
|
15
15
|
placeholder?: string;
|
|
16
|
-
/** 是否禁用输入,默认为 false */
|
|
16
|
+
/** 是否禁用输入,默认为 false;底部自定义控件的禁用状态由调用方管理 */
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
/** 是否展示加载中状态,默认为 false */
|
|
19
19
|
loading?: boolean;
|
|
20
20
|
/** 控件尺寸大小,默认为 `md` */
|
|
21
21
|
size?: TextareaSize;
|
|
22
|
-
/**
|
|
22
|
+
/** 初始可见行数;autoSize 开启时作为最小行数,默认为 3 */
|
|
23
23
|
rows?: number;
|
|
24
|
-
/**
|
|
24
|
+
/** 内容、尺寸或容器宽度变化时自动调整高度;开启后 resize 为 none,关闭后恢复 rows 高度 */
|
|
25
25
|
autoSize?: boolean;
|
|
26
26
|
/** 用户手动拖拽调整大小的模式,默认为 `'vertical'` */
|
|
27
27
|
resize?: TextareaResizeMode;
|
|
28
|
-
/**
|
|
28
|
+
/** 文本值变化时触发,包含 IME 组合期间的中间值;可与原生 onInput 同时使用 */
|
|
29
29
|
onChange?: (value: string) => void;
|
|
30
30
|
}
|
|
31
31
|
/** Textarea 根原生 textarea DOM 元素类型 */
|