@vavt/react-ui 1.4.6 → 1.5.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/AutoComplete-D8yHFMHQ.js +185 -0
- package/dist/AutoComplete-Drl00grg.cjs +1 -0
- package/dist/Avatar-CVGMy2Ws.cjs +1 -0
- package/dist/Avatar-DiZ9p6tu.js +125 -0
- package/dist/{Badge-FzXPw1qS.js → Badge-CchY6uXz.js} +1 -1
- package/dist/{Badge-BkqoSV-F.cjs → Badge-D3htuSXY.cjs} +1 -1
- package/dist/Breadcrumb-BWR92yK_.cjs +1 -0
- package/dist/Breadcrumb-BmZKaAQx.js +88 -0
- package/dist/Cascader-ZVE95kvm.cjs +1 -0
- package/dist/Cascader-bozg6Ebp.js +268 -0
- package/dist/Collapse-DVxYsq3L.cjs +1 -0
- package/dist/Collapse-DszkYUfD.js +112 -0
- package/dist/{Cron-BVMn9OXM.js → Cron-BWqWgWuv.js} +401 -398
- package/dist/Cron-zcb1FZ09.cjs +1 -0
- package/dist/{DatePicker-3wbkApMJ.js → DatePicker-DBjtTP2Q.js} +1 -1
- package/dist/{DatePicker-B3mA7BzE.cjs → DatePicker-apiCVsKF.cjs} +1 -1
- package/dist/{DateTimePicker-C1bggaBl.cjs → DateTimePicker-2omkPUuf.cjs} +1 -1
- package/dist/{DateTimePicker--A4EWUe-.js → DateTimePicker-IpyJLY4J.js} +1 -1
- package/dist/Descriptions-CmSiqsqf.cjs +1 -0
- package/dist/Descriptions-EL2QcZ1K.js +32 -0
- package/dist/{Drawer-D1elCS8V.js → Drawer--aEf7OiI.js} +8 -8
- package/dist/{Drawer-DbH5rUvZ.cjs → Drawer-BEDZEapD.cjs} +1 -1
- package/dist/Dropdown-FrlX_2wd.js +332 -0
- package/dist/Dropdown-dvIwbqMc.cjs +1 -0
- package/dist/{Form-DiYdJJNH.js → Form-CGJDPj0N.js} +9 -9
- package/dist/{Form-X98FSlHG.cjs → Form-lygZzVRZ.cjs} +1 -1
- package/dist/Image-D7FGl2cQ.cjs +1 -0
- package/dist/Image-DJb-tcA-.js +295 -0
- package/dist/{Input-BbJ4Q_xu.cjs → Input-BI-gwi8w.cjs} +1 -1
- package/dist/{Input-DpoSxIdb.js → Input-CoS-XMv1.js} +5 -5
- package/dist/Layout-CJpTIRSF.cjs +1 -0
- package/dist/Layout-l-rfDdFR.js +60 -0
- package/dist/List-BupBfl-B.js +45 -0
- package/dist/List-DAkXmKFR.cjs +1 -0
- package/dist/{Loading-BAKnIASq.js → Loading-C9LBGbnd.js} +1 -1
- package/dist/{Loading-BSqhKOle.cjs → Loading-CRhiY3Ok.cjs} +1 -1
- package/dist/Menu-CsGCo2ck.cjs +1 -0
- package/dist/Menu-t8GRH6oh.js +168 -0
- package/dist/Message-Bo-hPakI.js +170 -0
- package/dist/Message-D2WGz_wk.cjs +1 -0
- package/dist/{MessageBox-C0dCtUie.js → MessageBox-CaTZOiZC.js} +8 -8
- package/dist/{MessageBox-Bp-3oqz4.cjs → MessageBox-D9rZAvhY.cjs} +1 -1
- package/dist/Modal-BTMB0xbR.js +250 -0
- package/dist/{Modal-BfHARuVJ.cjs → Modal-ToC7SNzp.cjs} +1 -1
- package/dist/Notification-C1lOX5Hn.js +187 -0
- package/dist/Notification-DK5jP-kX.cjs +1 -0
- package/dist/{Pagination-CtnBykzs.cjs → Pagination-D_SAnFOA.cjs} +1 -1
- package/dist/{Pagination-BGbiLFtp.js → Pagination-fbC5EEq-.js} +1 -1
- package/dist/Popconfirm-CQ59-YOh.cjs +1 -0
- package/dist/Popconfirm-D2zgbhKF.js +91 -0
- package/dist/Popover-Cb8BrtQC.js +232 -0
- package/dist/Popover-Dqrb-lKh.cjs +1 -0
- package/dist/Result-C3RqWqnc.cjs +1 -0
- package/dist/Result-CcnBHoE5.js +77 -0
- package/dist/Segmented-CQ18snYg.cjs +1 -0
- package/dist/Segmented-OykaARP4.js +39 -0
- package/dist/Select-CpoP5kRp.js +504 -0
- package/dist/Select-D8udcz4F.cjs +1 -0
- package/dist/Skeleton-B_cZyDWx.cjs +1 -0
- package/dist/Skeleton-C80MPzfN.js +31 -0
- package/dist/Statistic-BitBMhSW.cjs +1 -0
- package/dist/Statistic-DVduwOGW.js +35 -0
- package/dist/Steps-B9phXfUl.cjs +1 -0
- package/dist/Steps-Cnswg-bb.js +85 -0
- package/dist/{Table-CpyEziz5.js → Table-DMqVnyDN.js} +1 -1
- package/dist/{Table-uBqeNSnm.cjs → Table-rgp7iAWc.cjs} +1 -1
- package/dist/TimePicker-BydMgSVN.js +220 -0
- package/dist/TimePicker-t4eGpNEu.cjs +1 -0
- package/dist/Tooltip-CWQDc8Nf.js +201 -0
- package/dist/Tooltip-Cn9pIMfU.cjs +1 -0
- package/dist/Transfer-BRjVUdyi.js +115 -0
- package/dist/Transfer-BfWsmx_x.cjs +1 -0
- package/dist/{Transition-X_89ga-e.cjs → Transition-BBMxZ5_8.cjs} +1 -1
- package/dist/{Transition-DiO4GsP3.js → Transition-CJDv6yI5.js} +2 -2
- package/dist/Tree-BsG6l54c.js +202 -0
- package/dist/Tree-CcSMb0_M.cjs +1 -0
- package/dist/TreeSelect-DBJkW7zM.cjs +1 -0
- package/dist/TreeSelect-DWmDo7pg.js +120 -0
- package/dist/Typography-C9Ef3jN5.js +91 -0
- package/dist/Typography-DLrh1jPn.cjs +1 -0
- package/dist/{Upload-DZ6VaM7r.js → Upload-aLdxGpWh.js} +7 -7
- package/dist/{Upload-wHEEoe1c.cjs → Upload-wt5lnQHc.cjs} +1 -1
- package/dist/base.css +1 -1
- package/dist/choice-popup-Crn_uZzu.cjs +1 -0
- package/dist/choice-popup-CzxryGs6.js +168 -0
- 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/Cascader.cjs +1 -0
- 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/Drawer.cjs +1 -1
- package/dist/cjs/Dropdown.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/Pagination.cjs +1 -1
- package/dist/cjs/Popconfirm.cjs +1 -0
- package/dist/cjs/Popover.cjs +1 -0
- package/dist/cjs/Result.cjs +1 -0
- package/dist/cjs/Segmented.cjs +1 -0
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/Skeleton.cjs +1 -0
- package/dist/cjs/Statistic.cjs +1 -0
- package/dist/cjs/Steps.cjs +1 -0
- package/dist/cjs/Table.cjs +1 -1
- package/dist/cjs/TimePicker.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/AutoComplete.css +1 -0
- package/dist/css/Avatar.css +1 -0
- package/dist/css/Breadcrumb.css +1 -0
- package/dist/css/Cascader.css +1 -0
- package/dist/css/Collapse.css +1 -0
- package/dist/css/Descriptions.css +1 -0
- package/dist/css/Image.css +1 -0
- package/dist/css/Layout.css +1 -0
- package/dist/css/List.css +1 -0
- package/dist/css/Menu.css +1 -0
- package/dist/css/Message.css +1 -0
- package/dist/css/Popconfirm.css +1 -0
- package/dist/css/Popover.css +1 -0
- package/dist/css/Result.css +1 -0
- package/dist/css/Segmented.css +1 -0
- package/dist/css/Skeleton.css +1 -0
- package/dist/css/Statistic.css +1 -0
- package/dist/css/Steps.css +1 -0
- 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/date-picker-BUZofYHp.js +644 -0
- package/dist/date-picker-CDbRvH7g.cjs +1 -0
- package/dist/dialog-shell-Bv1Jvhjb.js +219 -0
- package/dist/dialog-shell-HPbp3xhc.cjs +1 -0
- 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/Cascader.mjs +3 -0
- 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/Drawer.mjs +1 -1
- package/dist/es/Dropdown.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/Pagination.mjs +1 -1
- package/dist/es/Popconfirm.mjs +3 -0
- package/dist/es/Popover.mjs +3 -0
- package/dist/es/Result.mjs +3 -0
- package/dist/es/Segmented.mjs +3 -0
- package/dist/es/Select.mjs +1 -1
- package/dist/es/Skeleton.mjs +3 -0
- package/dist/es/Statistic.mjs +3 -0
- package/dist/es/Steps.mjs +3 -0
- package/dist/es/Table.mjs +1 -1
- package/dist/es/TimePicker.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 +62 -40
- package/dist/es/register.mjs +1 -1
- package/dist/floating-B6CCQcuK.cjs +1 -0
- package/dist/{floating-BqCWEj83.js → floating-C8pd2mFu.js} +62 -56
- package/dist/index.css +1 -1
- package/dist/layer-B9unaPbV.js +109 -0
- package/dist/layer-BcLkE2NM.cjs +1 -0
- package/dist/notice-timer-BRLTVgTj.js +28 -0
- package/dist/notice-timer-OkrpLRrG.cjs +1 -0
- package/dist/registry-BFCksD7k.js +131 -0
- package/dist/registry-DftkiQnN.cjs +1 -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/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 +57 -0
- package/dist/types/AutoComplete/type.d.ts +57 -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 +36 -0
- package/dist/types/Avatar/type.d.ts +36 -0
- 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/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 +38 -0
- package/dist/types/Cascader/type.d.ts +38 -0
- 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 +46 -0
- package/dist/types/Collapse/type.d.ts +46 -0
- 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 +20 -0
- package/dist/types/Descriptions/type.d.ts +20 -0
- 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 +25 -0
- package/dist/types/Image/type.d.ts +25 -0
- 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 +20 -0
- package/dist/types/Layout/type.d.ts +20 -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 +15 -0
- package/dist/types/List/type.d.ts +15 -0
- 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 +26 -0
- package/dist/types/Menu/type.d.ts +26 -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 +34 -0
- package/dist/types/Message/type.d.ts +34 -0
- 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 +14 -0
- package/dist/types/Popconfirm/type.d.ts +14 -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 +27 -0
- package/dist/types/Popover/type.d.ts +27 -0
- 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 +11 -0
- package/dist/types/Result/type.d.ts +11 -0
- 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 +21 -0
- package/dist/types/Segmented/type.d.ts +21 -0
- 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 +15 -0
- package/dist/types/Skeleton/type.d.ts +15 -0
- 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 +11 -0
- package/dist/types/Statistic/type.d.ts +11 -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 +24 -0
- package/dist/types/Steps/type.d.ts +24 -0
- 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 +24 -0
- package/dist/types/Transfer/type.d.ts +24 -0
- package/dist/types/Transition/type.d.cts +1 -1
- package/dist/types/Transition/type.d.ts +1 -1
- package/dist/types/Tree/Tree.d.cts +3 -0
- package/dist/types/Tree/Tree.d.ts +3 -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 +42 -0
- package/dist/types/Tree/type.d.ts +42 -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 +26 -0
- package/dist/types/TreeSelect/type.d.ts +26 -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 +23 -0
- package/dist/types/Typography/type.d.ts +23 -0
- package/dist/types/_shared/choice-popup.d.cts +44 -0
- package/dist/types/_shared/choice-popup.d.ts +44 -0
- 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/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 +26 -0
- package/dist/types/registry.d.ts +26 -0
- package/package.json +3 -2
- package/dist/Cron-2avclmKf.cjs +0 -1
- package/dist/Dropdown-CYo0Ckcg.js +0 -330
- package/dist/Dropdown-DlT_kSLw.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/Select-BBw595_R.js +0 -497
- package/dist/Select-CcuSjVhm.cjs +0 -1
- package/dist/TimePicker-BtorXdZv.cjs +0 -1
- package/dist/TimePicker-DxDA8bbO.js +0 -215
- package/dist/Tooltip-2-mZgyai.js +0 -198
- package/dist/Tooltip-BCH9SOnY.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/layer-CWiOhvXF.js +0 -53
- package/dist/layer-DfWO72Y-.cjs +0 -1
- package/dist/registry-7LU6RUh_.cjs +0 -1
- package/dist/registry-BYt8u6us.js +0 -87
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Collapse from './Collapse.cjs';
|
|
2
|
+
export declare const VlCollapse: import("react").ForwardRefExoticComponent<import("./type.cjs").CollapseProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { CollapseItem, CollapseProps, CollapseRef, CollapseSize, CollapseValue } from './type.cjs';
|
|
4
|
+
export default Collapse;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Collapse from './Collapse.js';
|
|
2
|
+
export declare const VlCollapse: import("react").ForwardRefExoticComponent<import("./type.js").CollapseProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { CollapseItem, CollapseProps, CollapseRef, CollapseSize, CollapseValue } from './type.js';
|
|
4
|
+
export default Collapse;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type CollapseValue = string | number;
|
|
3
|
+
export type CollapseSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type CollapseExpandIconPosition = 'start' | 'end';
|
|
5
|
+
export type CollapseRef = HTMLDivElement;
|
|
6
|
+
export interface CollapseItem {
|
|
7
|
+
key: CollapseValue;
|
|
8
|
+
/** 标题位于原生 button 内,请勿在其中嵌套链接或按钮;若需操作项请使用 extra。 */
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
children: ReactNode | (() => ReactNode);
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** 标题区右侧扩展操作项,脱离原生 button 交互流,可安全放置按钮或链接 */
|
|
13
|
+
extra?: ReactNode;
|
|
14
|
+
/** 单项覆盖是否显示展开箭头 */
|
|
15
|
+
showArrow?: boolean;
|
|
16
|
+
/** 收起时是否销毁 DOM,默认继承外层配置 */
|
|
17
|
+
destroyInactivePanel?: boolean;
|
|
18
|
+
/** 是否在初次渲染时强制挂载内容 */
|
|
19
|
+
forceRender?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
/** 值始终为数组;手风琴模式仅展示第一个有效 key,不改写调用方传入的数据。 */
|
|
24
|
+
export interface CollapseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
25
|
+
items: CollapseItem[];
|
|
26
|
+
value?: CollapseValue[];
|
|
27
|
+
defaultValue?: CollapseValue[];
|
|
28
|
+
onChange?: (value: CollapseValue[]) => void;
|
|
29
|
+
accordion?: boolean;
|
|
30
|
+
size?: CollapseSize;
|
|
31
|
+
/** 是否渲染外边框与背景底色,设为 false 时呈现透明无框质感,默认 true */
|
|
32
|
+
bordered?: boolean;
|
|
33
|
+
/** 展开箭头的显示位置,默认 'end'(右侧) */
|
|
34
|
+
expandIconPosition?: CollapseExpandIconPosition;
|
|
35
|
+
/** 自定义展开箭头渲染函数 */
|
|
36
|
+
expandIcon?: (props: {
|
|
37
|
+
open: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
}) => ReactNode;
|
|
40
|
+
/** 全局是否显示展开箭头,默认 true */
|
|
41
|
+
showArrow?: boolean;
|
|
42
|
+
/** 全局收起时是否销毁 DOM,默认 false(保留挂载与表单状态) */
|
|
43
|
+
destroyInactivePanel?: boolean;
|
|
44
|
+
/** 全局是否在初次渲染时强制挂载所有面板,默认 false */
|
|
45
|
+
forceRender?: boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type CollapseValue = string | number;
|
|
3
|
+
export type CollapseSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type CollapseExpandIconPosition = 'start' | 'end';
|
|
5
|
+
export type CollapseRef = HTMLDivElement;
|
|
6
|
+
export interface CollapseItem {
|
|
7
|
+
key: CollapseValue;
|
|
8
|
+
/** 标题位于原生 button 内,请勿在其中嵌套链接或按钮;若需操作项请使用 extra。 */
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
children: ReactNode | (() => ReactNode);
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** 标题区右侧扩展操作项,脱离原生 button 交互流,可安全放置按钮或链接 */
|
|
13
|
+
extra?: ReactNode;
|
|
14
|
+
/** 单项覆盖是否显示展开箭头 */
|
|
15
|
+
showArrow?: boolean;
|
|
16
|
+
/** 收起时是否销毁 DOM,默认继承外层配置 */
|
|
17
|
+
destroyInactivePanel?: boolean;
|
|
18
|
+
/** 是否在初次渲染时强制挂载内容 */
|
|
19
|
+
forceRender?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
/** 值始终为数组;手风琴模式仅展示第一个有效 key,不改写调用方传入的数据。 */
|
|
24
|
+
export interface CollapseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
25
|
+
items: CollapseItem[];
|
|
26
|
+
value?: CollapseValue[];
|
|
27
|
+
defaultValue?: CollapseValue[];
|
|
28
|
+
onChange?: (value: CollapseValue[]) => void;
|
|
29
|
+
accordion?: boolean;
|
|
30
|
+
size?: CollapseSize;
|
|
31
|
+
/** 是否渲染外边框与背景底色,设为 false 时呈现透明无框质感,默认 true */
|
|
32
|
+
bordered?: boolean;
|
|
33
|
+
/** 展开箭头的显示位置,默认 'end'(右侧) */
|
|
34
|
+
expandIconPosition?: CollapseExpandIconPosition;
|
|
35
|
+
/** 自定义展开箭头渲染函数 */
|
|
36
|
+
expandIcon?: (props: {
|
|
37
|
+
open: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
}) => ReactNode;
|
|
40
|
+
/** 全局是否显示展开箭头,默认 true */
|
|
41
|
+
showArrow?: boolean;
|
|
42
|
+
/** 全局收起时是否销毁 DOM,默认 false(保留挂载与表单状态) */
|
|
43
|
+
destroyInactivePanel?: boolean;
|
|
44
|
+
/** 全局是否在初次渲染时强制挂载所有面板,默认 false */
|
|
45
|
+
forceRender?: boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Descriptions from './Descriptions.cjs';
|
|
2
|
+
export declare const VlDescriptions: import("react").ForwardRefExoticComponent<import("./type.cjs").DescriptionsProps & import("react").RefAttributes<HTMLDListElement>>;
|
|
3
|
+
export type { DescriptionsItem, DescriptionsLayout, DescriptionsProps, DescriptionsRef, DescriptionsSize } from './type.cjs';
|
|
4
|
+
export default Descriptions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Descriptions from './Descriptions.js';
|
|
2
|
+
export declare const VlDescriptions: import("react").ForwardRefExoticComponent<import("./type.js").DescriptionsProps & import("react").RefAttributes<HTMLDListElement>>;
|
|
3
|
+
export type { DescriptionsItem, DescriptionsLayout, DescriptionsProps, DescriptionsRef, DescriptionsSize } from './type.js';
|
|
4
|
+
export default Descriptions;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type DescriptionsRef = HTMLDListElement;
|
|
3
|
+
export type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type DescriptionsLayout = 'horizontal' | 'vertical';
|
|
5
|
+
export interface DescriptionsItem {
|
|
6
|
+
key: string | number;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** 默认 1,最大为当前列数;移动端固定单列。 */
|
|
10
|
+
span?: number;
|
|
11
|
+
}
|
|
12
|
+
/** 用原生描述列表组织只读信息,不承担输入和校验逻辑。 */
|
|
13
|
+
export interface DescriptionsProps extends HTMLAttributes<HTMLDListElement> {
|
|
14
|
+
items: DescriptionsItem[];
|
|
15
|
+
/** 默认 3,小于 768px 时显示一列。 */
|
|
16
|
+
columns?: number;
|
|
17
|
+
layout?: DescriptionsLayout;
|
|
18
|
+
bordered?: boolean;
|
|
19
|
+
size?: DescriptionsSize;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type DescriptionsRef = HTMLDListElement;
|
|
3
|
+
export type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type DescriptionsLayout = 'horizontal' | 'vertical';
|
|
5
|
+
export interface DescriptionsItem {
|
|
6
|
+
key: string | number;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** 默认 1,最大为当前列数;移动端固定单列。 */
|
|
10
|
+
span?: number;
|
|
11
|
+
}
|
|
12
|
+
/** 用原生描述列表组织只读信息,不承担输入和校验逻辑。 */
|
|
13
|
+
export interface DescriptionsProps extends HTMLAttributes<HTMLDListElement> {
|
|
14
|
+
items: DescriptionsItem[];
|
|
15
|
+
/** 默认 3,小于 768px 时显示一列。 */
|
|
16
|
+
columns?: number;
|
|
17
|
+
layout?: DescriptionsLayout;
|
|
18
|
+
bordered?: boolean;
|
|
19
|
+
size?: DescriptionsSize;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
|
|
3
|
+
alt: string;
|
|
4
|
+
fit?: CSSProperties['objectFit'];
|
|
5
|
+
placeholder?: ReactNode;
|
|
6
|
+
fallback?: ReactNode;
|
|
7
|
+
preview?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ImagePreviewItem {
|
|
10
|
+
src: string;
|
|
11
|
+
alt: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ImagePreviewProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'defaultValue'> {
|
|
14
|
+
items: ImagePreviewItem[];
|
|
15
|
+
/** 当前图片索引,默认 0;切换到边界后不循环。 */
|
|
16
|
+
value?: number;
|
|
17
|
+
defaultValue?: number;
|
|
18
|
+
onChange?: (index: number) => void;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
zIndex?: number;
|
|
23
|
+
}
|
|
24
|
+
export type ImageRef = HTMLImageElement;
|
|
25
|
+
export type ImagePreviewRef = HTMLDivElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
|
|
3
|
+
alt: string;
|
|
4
|
+
fit?: CSSProperties['objectFit'];
|
|
5
|
+
placeholder?: ReactNode;
|
|
6
|
+
fallback?: ReactNode;
|
|
7
|
+
preview?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ImagePreviewItem {
|
|
10
|
+
src: string;
|
|
11
|
+
alt: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ImagePreviewProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'defaultValue'> {
|
|
14
|
+
items: ImagePreviewItem[];
|
|
15
|
+
/** 当前图片索引,默认 0;切换到边界后不循环。 */
|
|
16
|
+
value?: number;
|
|
17
|
+
defaultValue?: number;
|
|
18
|
+
onChange?: (index: number) => void;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
zIndex?: number;
|
|
23
|
+
}
|
|
24
|
+
export type ImageRef = HTMLImageElement;
|
|
25
|
+
export type ImagePreviewRef = HTMLDivElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LayoutProps, LayoutSectionProps, LayoutSiderProps } from './type.cjs';
|
|
2
|
+
declare const Layout: import("react").ForwardRefExoticComponent<LayoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const LayoutHeader: import("react").ForwardRefExoticComponent<LayoutSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const LayoutContent: import("react").ForwardRefExoticComponent<LayoutSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
5
|
+
export declare const LayoutFooter: import("react").ForwardRefExoticComponent<LayoutSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
/** 收起只改变尺寸,保持业务子树挂载,避免导航和表单状态被折叠操作重置。 */
|
|
7
|
+
export declare const LayoutSider: import("react").ForwardRefExoticComponent<LayoutSiderProps & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
+
export default Layout;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LayoutProps, LayoutSectionProps, LayoutSiderProps } from './type.js';
|
|
2
|
+
declare const Layout: import("react").ForwardRefExoticComponent<LayoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const LayoutHeader: import("react").ForwardRefExoticComponent<LayoutSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const LayoutContent: import("react").ForwardRefExoticComponent<LayoutSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
5
|
+
export declare const LayoutFooter: import("react").ForwardRefExoticComponent<LayoutSectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
/** 收起只改变尺寸,保持业务子树挂载,避免导航和表单状态被折叠操作重置。 */
|
|
7
|
+
export declare const LayoutSider: import("react").ForwardRefExoticComponent<LayoutSiderProps & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
+
export default Layout;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { default, default as VlLayout, LayoutHeader as VlLayoutHeader, LayoutSider as VlLayoutSider, LayoutContent as VlLayoutContent, LayoutFooter as VlLayoutFooter } from './Layout.cjs';
|
|
2
|
+
export type { LayoutProps, LayoutSectionProps, LayoutSiderProps, LayoutDirection, LayoutRef } from './type.cjs';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { default, default as VlLayout, LayoutHeader as VlLayoutHeader, LayoutSider as VlLayoutSider, LayoutContent as VlLayoutContent, LayoutFooter as VlLayoutFooter } from './Layout.js';
|
|
2
|
+
export type { LayoutProps, LayoutSectionProps, LayoutSiderProps, LayoutDirection, LayoutRef } from './type.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type LayoutRef = HTMLDivElement;
|
|
3
|
+
export type LayoutDirection = 'horizontal' | 'vertical';
|
|
4
|
+
/** 页面容器只负责排版;路由、移动端 Drawer 与页面滚动策略由应用组合。 */
|
|
5
|
+
export interface LayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** 默认 vertical;侧栏与正文所在层使用 horizontal。 */
|
|
7
|
+
direction?: LayoutDirection;
|
|
8
|
+
}
|
|
9
|
+
export type LayoutSectionProps = HTMLAttributes<HTMLElement>;
|
|
10
|
+
export interface LayoutSiderProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
11
|
+
width?: number | string;
|
|
12
|
+
collapsedWidth?: number | string;
|
|
13
|
+
collapsed?: boolean;
|
|
14
|
+
defaultCollapsed?: boolean;
|
|
15
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
16
|
+
/** 默认提供收起按钮;false 隐藏,ReactNode 替换按钮内的展示内容。 */
|
|
17
|
+
trigger?: ReactNode | false;
|
|
18
|
+
/** 函数形式可把最终收起状态传给 Menu。 */
|
|
19
|
+
children?: ReactNode | ((collapsed: boolean) => ReactNode);
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type LayoutRef = HTMLDivElement;
|
|
3
|
+
export type LayoutDirection = 'horizontal' | 'vertical';
|
|
4
|
+
/** 页面容器只负责排版;路由、移动端 Drawer 与页面滚动策略由应用组合。 */
|
|
5
|
+
export interface LayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** 默认 vertical;侧栏与正文所在层使用 horizontal。 */
|
|
7
|
+
direction?: LayoutDirection;
|
|
8
|
+
}
|
|
9
|
+
export type LayoutSectionProps = HTMLAttributes<HTMLElement>;
|
|
10
|
+
export interface LayoutSiderProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
11
|
+
width?: number | string;
|
|
12
|
+
collapsedWidth?: number | string;
|
|
13
|
+
collapsed?: boolean;
|
|
14
|
+
defaultCollapsed?: boolean;
|
|
15
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
16
|
+
/** 默认提供收起按钮;false 隐藏,ReactNode 替换按钮内的展示内容。 */
|
|
17
|
+
trigger?: ReactNode | false;
|
|
18
|
+
/** 函数形式可把最终收起状态传给 Menu。 */
|
|
19
|
+
children?: ReactNode | ((collapsed: boolean) => ReactNode);
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
export interface ListProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
data: T[];
|
|
4
|
+
/** 稳定身份用于保留排序后的条目状态,不使用序号作为默认 key。 */
|
|
5
|
+
rowKey: keyof T | ((item: T) => string | number);
|
|
6
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
7
|
+
header?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
split?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
emptyContent?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export type ListRef = HTMLDivElement;
|
|
15
|
+
export type ListComponent = <T>(props: ListProps<T> & RefAttributes<ListRef>) => ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
export interface ListProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
data: T[];
|
|
4
|
+
/** 稳定身份用于保留排序后的条目状态,不使用序号作为默认 key。 */
|
|
5
|
+
rowKey: keyof T | ((item: T) => string | number);
|
|
6
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
7
|
+
header?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
split?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
emptyContent?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export type ListRef = HTMLDivElement;
|
|
15
|
+
export type ListComponent = <T>(props: ListProps<T> & RefAttributes<ListRef>) => ReactElement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type MenuKey = string | number;
|
|
3
|
+
export interface MenuItem {
|
|
4
|
+
key: MenuKey;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
children?: MenuItem[];
|
|
8
|
+
href?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface MenuProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
items: MenuItem[];
|
|
13
|
+
value?: MenuKey | null;
|
|
14
|
+
defaultValue?: MenuKey | null;
|
|
15
|
+
onChange?: (value: MenuKey, item: MenuItem) => void;
|
|
16
|
+
expandedKeys?: MenuKey[];
|
|
17
|
+
defaultExpandedKeys?: MenuKey[];
|
|
18
|
+
onExpand?: (keys: MenuKey[]) => void;
|
|
19
|
+
mode?: 'vertical' | 'horizontal';
|
|
20
|
+
/** 仅纵向模式使用;浮出菜单状态与原来的展开状态分离。 */
|
|
21
|
+
collapsed?: boolean;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
/** 自定义路由链接必须透传提供的 props,以保留键盘、选中和无障碍语义。 */
|
|
24
|
+
renderLink?: (item: MenuItem, props: AnchorHTMLAttributes<HTMLAnchorElement>) => ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export type MenuRef = HTMLElement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type MenuKey = string | number;
|
|
3
|
+
export interface MenuItem {
|
|
4
|
+
key: MenuKey;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
children?: MenuItem[];
|
|
8
|
+
href?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface MenuProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
items: MenuItem[];
|
|
13
|
+
value?: MenuKey | null;
|
|
14
|
+
defaultValue?: MenuKey | null;
|
|
15
|
+
onChange?: (value: MenuKey, item: MenuItem) => void;
|
|
16
|
+
expandedKeys?: MenuKey[];
|
|
17
|
+
defaultExpandedKeys?: MenuKey[];
|
|
18
|
+
onExpand?: (keys: MenuKey[]) => void;
|
|
19
|
+
mode?: 'vertical' | 'horizontal';
|
|
20
|
+
/** 仅纵向模式使用;浮出菜单状态与原来的展开状态分离。 */
|
|
21
|
+
collapsed?: boolean;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
/** 自定义路由链接必须透传提供的 props,以保留键盘、选中和无障碍语义。 */
|
|
24
|
+
renderLink?: (item: MenuItem, props: AnchorHTMLAttributes<HTMLAnchorElement>) => ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export type MenuRef = HTMLElement;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
export type MessageStatus = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type MessageRef = HTMLDivElement;
|
|
4
|
+
/** 顶部居中的非阻断轻提示;声明式内容通过 Portal 保留调用方 Context。 */
|
|
5
|
+
export interface MessageProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
6
|
+
open?: boolean;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
onChange?: (open: boolean) => void;
|
|
9
|
+
status?: MessageStatus;
|
|
10
|
+
/** 默认 3000ms,小于等于 0 时常驻。 */
|
|
11
|
+
duration?: number;
|
|
12
|
+
/** 默认 false;常驻消息可开启关闭按钮或由业务关闭。 */
|
|
13
|
+
closable?: boolean;
|
|
14
|
+
pauseOnHover?: boolean;
|
|
15
|
+
pauseOnFocus?: boolean;
|
|
16
|
+
/** 每轮显示的关闭请求只通知一次。 */
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
onAfterClose?: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface MessageOptions extends Omit<MessageProps, 'children' | 'content' | 'open' | 'defaultOpen' | 'onChange'> {
|
|
21
|
+
content?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface MessageHandle {
|
|
24
|
+
close: () => void;
|
|
25
|
+
}
|
|
26
|
+
/** 静态 API 仅供浏览器事件或客户端组件调用,不继承调用位置的 React Context。 */
|
|
27
|
+
export interface MessageComponent extends ForwardRefExoticComponent<MessageProps & RefAttributes<MessageRef>> {
|
|
28
|
+
open: (options: MessageOptions) => MessageHandle;
|
|
29
|
+
info: (options: MessageOptions) => MessageHandle;
|
|
30
|
+
success: (options: MessageOptions) => MessageHandle;
|
|
31
|
+
warning: (options: MessageOptions) => MessageHandle;
|
|
32
|
+
error: (options: MessageOptions) => MessageHandle;
|
|
33
|
+
closeAll: () => void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
export type MessageStatus = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type MessageRef = HTMLDivElement;
|
|
4
|
+
/** 顶部居中的非阻断轻提示;声明式内容通过 Portal 保留调用方 Context。 */
|
|
5
|
+
export interface MessageProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
6
|
+
open?: boolean;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
onChange?: (open: boolean) => void;
|
|
9
|
+
status?: MessageStatus;
|
|
10
|
+
/** 默认 3000ms,小于等于 0 时常驻。 */
|
|
11
|
+
duration?: number;
|
|
12
|
+
/** 默认 false;常驻消息可开启关闭按钮或由业务关闭。 */
|
|
13
|
+
closable?: boolean;
|
|
14
|
+
pauseOnHover?: boolean;
|
|
15
|
+
pauseOnFocus?: boolean;
|
|
16
|
+
/** 每轮显示的关闭请求只通知一次。 */
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
onAfterClose?: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface MessageOptions extends Omit<MessageProps, 'children' | 'content' | 'open' | 'defaultOpen' | 'onChange'> {
|
|
21
|
+
content?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface MessageHandle {
|
|
24
|
+
close: () => void;
|
|
25
|
+
}
|
|
26
|
+
/** 静态 API 仅供浏览器事件或客户端组件调用,不继承调用位置的 React Context。 */
|
|
27
|
+
export interface MessageComponent extends ForwardRefExoticComponent<MessageProps & RefAttributes<MessageRef>> {
|
|
28
|
+
open: (options: MessageOptions) => MessageHandle;
|
|
29
|
+
info: (options: MessageOptions) => MessageHandle;
|
|
30
|
+
success: (options: MessageOptions) => MessageHandle;
|
|
31
|
+
warning: (options: MessageOptions) => MessageHandle;
|
|
32
|
+
error: (options: MessageOptions) => MessageHandle;
|
|
33
|
+
closeAll: () => void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popconfirm from './Popconfirm.cjs';
|
|
2
|
+
export declare const VlPopconfirm: import("react").ForwardRefExoticComponent<import("./type.cjs").PopconfirmProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopconfirmProps, PopconfirmRef } from './type.cjs';
|
|
4
|
+
export default Popconfirm;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popconfirm from './Popconfirm.js';
|
|
2
|
+
export declare const VlPopconfirm: import("react").ForwardRefExoticComponent<import("./type.js").PopconfirmProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopconfirmProps, PopconfirmRef } from './type.js';
|
|
4
|
+
export default Popconfirm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PopoverProps } from '../Popover/index.cjs';
|
|
3
|
+
export type PopconfirmRef = HTMLDivElement;
|
|
4
|
+
/** 确认流程使用固定 click 触发,其余定位、内容和受控属性遵循 Popover。 */
|
|
5
|
+
export interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'trigger' | 'showDelay' | 'hideDelay'> {
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
confirmButtonText?: ReactNode;
|
|
8
|
+
cancelButtonText?: ReactNode;
|
|
9
|
+
/** 返回 Promise 时进入等待状态;失败保持面板打开。 */
|
|
10
|
+
onConfirm?: () => void | Promise<void>;
|
|
11
|
+
/** 仅由取消按钮触发,外部点击和 Escape 通过 onChange 请求关闭。 */
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
onConfirmError?: (error: unknown) => void;
|
|
14
|
+
}
|