@vavt/react-ui 1.4.5 → 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/Checkbox.css +1 -1
- 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/Radio.css +1 -1
- 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/Switch.css +1 -1
- package/dist/css/Transfer.css +1 -0
- package/dist/css/Tree.css +1 -0
- package/dist/css/TreeSelect.css +1 -0
- package/dist/css/Typography.css +1 -0
- package/dist/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,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 scripts/generate-style-entries.ts 依据组件 import 图自动生成,请勿手工修改。
|
|
3
|
+
*
|
|
4
|
+
* 纯副作用模块:依赖的样式入口在前、自身 CSS 在后,共享模块由打包器按模块 id 去重。
|
|
5
|
+
*/
|
|
6
|
+
require("../base.css");
|
|
7
|
+
require("./Button.cjs");
|
|
8
|
+
require("./Checkbox.cjs");
|
|
9
|
+
require("./Empty.cjs");
|
|
10
|
+
require("./Input.cjs");
|
|
11
|
+
require("../css/Transfer.css");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 scripts/generate-style-entries.ts 依据组件 import 图自动生成,请勿手工修改。
|
|
3
|
+
*
|
|
4
|
+
* 纯副作用模块:依赖的样式入口在前、自身 CSS 在后,共享模块由打包器按模块 id 去重。
|
|
5
|
+
*/
|
|
6
|
+
import "../base.css";
|
|
7
|
+
import "./Button.mjs";
|
|
8
|
+
import "./Checkbox.mjs";
|
|
9
|
+
import "./Empty.mjs";
|
|
10
|
+
import "./Input.mjs";
|
|
11
|
+
import "../css/Transfer.css";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 scripts/generate-style-entries.ts 依据组件 import 图自动生成,请勿手工修改。
|
|
3
|
+
*
|
|
4
|
+
* 纯副作用模块:依赖的样式入口在前、自身 CSS 在后,共享模块由打包器按模块 id 去重。
|
|
5
|
+
*/
|
|
6
|
+
require("../base.css");
|
|
7
|
+
require("./Input.cjs");
|
|
8
|
+
require("./Transition.cjs");
|
|
9
|
+
require("./Tree.cjs");
|
|
10
|
+
require("../css/TreeSelect.css");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 scripts/generate-style-entries.ts 依据组件 import 图自动生成,请勿手工修改。
|
|
3
|
+
*
|
|
4
|
+
* 纯副作用模块:依赖的样式入口在前、自身 CSS 在后,共享模块由打包器按模块 id 去重。
|
|
5
|
+
*/
|
|
6
|
+
import "../base.css";
|
|
7
|
+
import "./Input.mjs";
|
|
8
|
+
import "./Transition.mjs";
|
|
9
|
+
import "./Tree.mjs";
|
|
10
|
+
import "../css/TreeSelect.css";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ForwardedRef, ReactElement } from 'react';
|
|
2
|
+
import type { AutoCompleteOption, AutoCompleteProps } from './type.cjs';
|
|
3
|
+
declare const AutoComplete: <T extends AutoCompleteOption = AutoCompleteOption>(props: AutoCompleteProps<T> & {
|
|
4
|
+
ref?: ForwardedRef<HTMLInputElement>;
|
|
5
|
+
}) => ReactElement;
|
|
6
|
+
export default AutoComplete;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ForwardedRef, ReactElement } from 'react';
|
|
2
|
+
import type { AutoCompleteOption, AutoCompleteProps } from './type.js';
|
|
3
|
+
declare const AutoComplete: <T extends AutoCompleteOption = AutoCompleteOption>(props: AutoCompleteProps<T> & {
|
|
4
|
+
ref?: ForwardedRef<HTMLInputElement>;
|
|
5
|
+
}) => ReactElement;
|
|
6
|
+
export default AutoComplete;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CSSProperties, FocusEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import type { CornerPlacement } from '../_shared/floating.cjs';
|
|
3
|
+
import type { InputProps, InputSize } from '../Input/type.cjs';
|
|
4
|
+
export interface AutoCompleteOption<T = Record<string, unknown>> {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 业务附加元数据 */
|
|
9
|
+
data?: T;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends Omit<InputProps, 'value' | 'defaultValue' | 'onChange' | 'onSelect' | 'onBlur' | 'type' | 'size' | 'onClick'> {
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
|
+
options?: T[];
|
|
17
|
+
/** 输入法组合结束后触发;可配合 debounceWait 设置防抖。 */
|
|
18
|
+
onSearch?: (query: string) => void;
|
|
19
|
+
onSelect?: (value: string, option: T) => void;
|
|
20
|
+
filterOption?: boolean | ((query: string, option: T) => boolean);
|
|
21
|
+
/** 自定义空数据内容 */
|
|
22
|
+
emptyContent?: ReactNode;
|
|
23
|
+
/** 空数据提示文案(优先级低于 emptyContent) */
|
|
24
|
+
emptyText?: ReactNode;
|
|
25
|
+
/** 加载中文案 */
|
|
26
|
+
loadingText?: ReactNode;
|
|
27
|
+
renderOption?: (option: T) => ReactNode;
|
|
28
|
+
open?: boolean;
|
|
29
|
+
defaultOpen?: boolean;
|
|
30
|
+
onOpenChange?: (open: boolean) => void;
|
|
31
|
+
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
32
|
+
/** 输入框点击事件 */
|
|
33
|
+
onClick?: (event: MouseEvent<HTMLInputElement>) => void;
|
|
34
|
+
placement?: CornerPlacement;
|
|
35
|
+
zIndex?: number;
|
|
36
|
+
/** 输入框尺寸 */
|
|
37
|
+
size?: InputSize;
|
|
38
|
+
/** 是否占满父容器宽度,默认为 false */
|
|
39
|
+
block?: boolean;
|
|
40
|
+
/** 是否默认高亮第一项,默认为 false */
|
|
41
|
+
defaultActiveFirstOption?: boolean;
|
|
42
|
+
/** 键盘上下导航时是否回填输入框预览,默认为 false */
|
|
43
|
+
backfill?: boolean;
|
|
44
|
+
/** 搜索防抖等待时间(毫秒) */
|
|
45
|
+
debounceWait?: number;
|
|
46
|
+
/** 是否自动高亮匹配文本,默认为 false */
|
|
47
|
+
highlightMatch?: boolean;
|
|
48
|
+
/** 下拉面板自定义类名 */
|
|
49
|
+
popupClassName?: string;
|
|
50
|
+
/** 下拉面板自定义样式 */
|
|
51
|
+
popupStyle?: CSSProperties;
|
|
52
|
+
/** 下拉浮层无障碍标签(默认为“输入建议”) */
|
|
53
|
+
popupAriaLabel?: string;
|
|
54
|
+
/** 自定义下拉面板结构(可用于添加 Header / Footer) */
|
|
55
|
+
popupRender?: (originNode: ReactNode) => ReactNode;
|
|
56
|
+
}
|
|
57
|
+
export type AutoCompleteRef = HTMLInputElement;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CSSProperties, FocusEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import type { CornerPlacement } from '../_shared/floating.js';
|
|
3
|
+
import type { InputProps, InputSize } from '../Input/type.js';
|
|
4
|
+
export interface AutoCompleteOption<T = Record<string, unknown>> {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 业务附加元数据 */
|
|
9
|
+
data?: T;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends Omit<InputProps, 'value' | 'defaultValue' | 'onChange' | 'onSelect' | 'onBlur' | 'type' | 'size' | 'onClick'> {
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
|
+
options?: T[];
|
|
17
|
+
/** 输入法组合结束后触发;可配合 debounceWait 设置防抖。 */
|
|
18
|
+
onSearch?: (query: string) => void;
|
|
19
|
+
onSelect?: (value: string, option: T) => void;
|
|
20
|
+
filterOption?: boolean | ((query: string, option: T) => boolean);
|
|
21
|
+
/** 自定义空数据内容 */
|
|
22
|
+
emptyContent?: ReactNode;
|
|
23
|
+
/** 空数据提示文案(优先级低于 emptyContent) */
|
|
24
|
+
emptyText?: ReactNode;
|
|
25
|
+
/** 加载中文案 */
|
|
26
|
+
loadingText?: ReactNode;
|
|
27
|
+
renderOption?: (option: T) => ReactNode;
|
|
28
|
+
open?: boolean;
|
|
29
|
+
defaultOpen?: boolean;
|
|
30
|
+
onOpenChange?: (open: boolean) => void;
|
|
31
|
+
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
32
|
+
/** 输入框点击事件 */
|
|
33
|
+
onClick?: (event: MouseEvent<HTMLInputElement>) => void;
|
|
34
|
+
placement?: CornerPlacement;
|
|
35
|
+
zIndex?: number;
|
|
36
|
+
/** 输入框尺寸 */
|
|
37
|
+
size?: InputSize;
|
|
38
|
+
/** 是否占满父容器宽度,默认为 false */
|
|
39
|
+
block?: boolean;
|
|
40
|
+
/** 是否默认高亮第一项,默认为 false */
|
|
41
|
+
defaultActiveFirstOption?: boolean;
|
|
42
|
+
/** 键盘上下导航时是否回填输入框预览,默认为 false */
|
|
43
|
+
backfill?: boolean;
|
|
44
|
+
/** 搜索防抖等待时间(毫秒) */
|
|
45
|
+
debounceWait?: number;
|
|
46
|
+
/** 是否自动高亮匹配文本,默认为 false */
|
|
47
|
+
highlightMatch?: boolean;
|
|
48
|
+
/** 下拉面板自定义类名 */
|
|
49
|
+
popupClassName?: string;
|
|
50
|
+
/** 下拉面板自定义样式 */
|
|
51
|
+
popupStyle?: CSSProperties;
|
|
52
|
+
/** 下拉浮层无障碍标签(默认为“输入建议”) */
|
|
53
|
+
popupAriaLabel?: string;
|
|
54
|
+
/** 自定义下拉面板结构(可用于添加 Header / Footer) */
|
|
55
|
+
popupRender?: (originNode: ReactNode) => ReactNode;
|
|
56
|
+
}
|
|
57
|
+
export type AutoCompleteRef = HTMLInputElement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AvatarGroupProps } from './type.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* AvatarGroup 用于管理一组头像的几何上下文与堆叠展示。
|
|
4
|
+
* 统一通过 Context 下发 size 与 shape,支持 maxCount 超出折叠为 +N 头像。
|
|
5
|
+
*/
|
|
6
|
+
declare const AvatarGroup: import("react").ForwardRefExoticComponent<AvatarGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AvatarGroupProps } from './type.js';
|
|
2
|
+
/**
|
|
3
|
+
* AvatarGroup 用于管理一组头像的几何上下文与堆叠展示。
|
|
4
|
+
* 统一通过 Context 下发 size 与 shape,支持 maxCount 超出折叠为 +N 头像。
|
|
5
|
+
*/
|
|
6
|
+
declare const AvatarGroup: import("react").ForwardRefExoticComponent<AvatarGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Avatar from './Avatar.cjs';
|
|
2
|
+
import AvatarGroup from './AvatarGroup.cjs';
|
|
3
|
+
export declare const VlAvatar: import("react").ForwardRefExoticComponent<import("./type.cjs").AvatarProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export declare const VlAvatarGroup: import("react").ForwardRefExoticComponent<import("./type.cjs").AvatarGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export type { AvatarProps, AvatarRef, AvatarShape, AvatarSize, AvatarGroupProps, AvatarGroupRef } from './type.cjs';
|
|
6
|
+
export { AvatarGroup };
|
|
7
|
+
export default Avatar;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Avatar from './Avatar.js';
|
|
2
|
+
import AvatarGroup from './AvatarGroup.js';
|
|
3
|
+
export declare const VlAvatar: import("react").ForwardRefExoticComponent<import("./type.js").AvatarProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export declare const VlAvatarGroup: import("react").ForwardRefExoticComponent<import("./type.js").AvatarGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export type { AvatarProps, AvatarRef, AvatarShape, AvatarSize, AvatarGroupProps, AvatarGroupRef } from './type.js';
|
|
6
|
+
export { AvatarGroup };
|
|
7
|
+
export default Avatar;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ImgHTMLAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
export type AvatarSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type AvatarShape = 'circle' | 'square';
|
|
4
|
+
export type AvatarRef = HTMLSpanElement;
|
|
5
|
+
/** 图片失败时使用 icon 或 children,均未提供时使用默认用户图标。 */
|
|
6
|
+
export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onError' | 'onLoad'> {
|
|
7
|
+
/** 图片地址,更新后开始新的加载周期。 */
|
|
8
|
+
src?: string;
|
|
9
|
+
/** 头像的可访问名称;空字符串表示装饰性图片。 */
|
|
10
|
+
alt?: string;
|
|
11
|
+
/** 尺寸,支持 'sm' | 'md' | 'lg' (24 / 32 / 40px) 或自定义像素数值,默认 md。 */
|
|
12
|
+
size?: AvatarSize | number;
|
|
13
|
+
/** 默认 circle。 */
|
|
14
|
+
shape?: AvatarShape;
|
|
15
|
+
/** 自定义图标,优先级高于 children。 */
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
/** 图片加载失败时的回调;返回 false 可阻止回退到备用内容。 */
|
|
18
|
+
onError?: (event: SyntheticEvent<HTMLImageElement>) => boolean | void;
|
|
19
|
+
/** 图片加载成功时的回调。 */
|
|
20
|
+
onLoad?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
21
|
+
/** 透传给内部原生 img 元素的属性。 */
|
|
22
|
+
imgProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
23
|
+
/** 文本自适应缩放时距离头像边缘的内边距,单位 px,默认 4。 */
|
|
24
|
+
gap?: number;
|
|
25
|
+
}
|
|
26
|
+
export type AvatarGroupRef = HTMLDivElement;
|
|
27
|
+
export interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
/** 头像尺寸,统一传递给内部 Avatar。 */
|
|
29
|
+
size?: AvatarSize | number;
|
|
30
|
+
/** 头像形状,统一传递给内部 Avatar。 */
|
|
31
|
+
shape?: AvatarShape;
|
|
32
|
+
/** 最多展示的头像数量,超出部分折叠为 +N。 */
|
|
33
|
+
maxCount?: number;
|
|
34
|
+
/** 超出最大数量时的样式。 */
|
|
35
|
+
maxStyle?: CSSProperties;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ImgHTMLAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
export type AvatarSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type AvatarShape = 'circle' | 'square';
|
|
4
|
+
export type AvatarRef = HTMLSpanElement;
|
|
5
|
+
/** 图片失败时使用 icon 或 children,均未提供时使用默认用户图标。 */
|
|
6
|
+
export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onError' | 'onLoad'> {
|
|
7
|
+
/** 图片地址,更新后开始新的加载周期。 */
|
|
8
|
+
src?: string;
|
|
9
|
+
/** 头像的可访问名称;空字符串表示装饰性图片。 */
|
|
10
|
+
alt?: string;
|
|
11
|
+
/** 尺寸,支持 'sm' | 'md' | 'lg' (24 / 32 / 40px) 或自定义像素数值,默认 md。 */
|
|
12
|
+
size?: AvatarSize | number;
|
|
13
|
+
/** 默认 circle。 */
|
|
14
|
+
shape?: AvatarShape;
|
|
15
|
+
/** 自定义图标,优先级高于 children。 */
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
/** 图片加载失败时的回调;返回 false 可阻止回退到备用内容。 */
|
|
18
|
+
onError?: (event: SyntheticEvent<HTMLImageElement>) => boolean | void;
|
|
19
|
+
/** 图片加载成功时的回调。 */
|
|
20
|
+
onLoad?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
21
|
+
/** 透传给内部原生 img 元素的属性。 */
|
|
22
|
+
imgProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
23
|
+
/** 文本自适应缩放时距离头像边缘的内边距,单位 px,默认 4。 */
|
|
24
|
+
gap?: number;
|
|
25
|
+
}
|
|
26
|
+
export type AvatarGroupRef = HTMLDivElement;
|
|
27
|
+
export interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
/** 头像尺寸,统一传递给内部 Avatar。 */
|
|
29
|
+
size?: AvatarSize | number;
|
|
30
|
+
/** 头像形状,统一传递给内部 Avatar。 */
|
|
31
|
+
shape?: AvatarShape;
|
|
32
|
+
/** 最多展示的头像数量,超出部分折叠为 +N。 */
|
|
33
|
+
maxCount?: number;
|
|
34
|
+
/** 超出最大数量时的样式。 */
|
|
35
|
+
maxStyle?: CSSProperties;
|
|
36
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Breadcrumb from './Breadcrumb.cjs';
|
|
2
|
+
export declare const VlBreadcrumb: import("./type.cjs").BreadcrumbComponent & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
};
|
|
5
|
+
export type { BreadcrumbComponent, BreadcrumbItem, BreadcrumbProps, BreadcrumbRef } from './type.cjs';
|
|
6
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Breadcrumb from './Breadcrumb.js';
|
|
2
|
+
export declare const VlBreadcrumb: import("./type.js").BreadcrumbComponent & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
};
|
|
5
|
+
export type { BreadcrumbComponent, BreadcrumbItem, BreadcrumbProps, BreadcrumbRef } from './type.js';
|
|
6
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { CSSProperties, ComponentType, HTMLAttributeAnchorTarget, HTMLAttributes, KeyboardEvent, MouseEvent, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import type { DecorativeIcon } from '../_shared/icon.cjs';
|
|
3
|
+
export type BreadcrumbRef = HTMLElement;
|
|
4
|
+
export interface BreadcrumbItem<T = Record<string, unknown>> {
|
|
5
|
+
/** 稳定身份标识,组件强制要求每项具有唯一 key */
|
|
6
|
+
key: string | number;
|
|
7
|
+
/** 项显示内容 */
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
/** 链接地址;当处于激活页(且未开启 allowCurrentLink)或处于禁用态时默认不渲染链接 */
|
|
10
|
+
href?: string;
|
|
11
|
+
/** 原生外链安全关联属性,如 `noopener noreferrer` */
|
|
12
|
+
rel?: string;
|
|
13
|
+
/** 项前置装饰图标 */
|
|
14
|
+
icon?: DecorativeIcon;
|
|
15
|
+
/** 原生悬停提示/标题 */
|
|
16
|
+
title?: string;
|
|
17
|
+
/** 链接打开方式,如 `_blank` */
|
|
18
|
+
target?: HTMLAttributeAnchorTarget;
|
|
19
|
+
/** 是否禁用此项(不可点击且文字置灰) */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** 显式指定是否为当前激活页;未指定时默认最后一项为当前页 */
|
|
22
|
+
current?: boolean;
|
|
23
|
+
/** 处于激活页时是否依然保留链接跳转能力(默认优先于全局配置) */
|
|
24
|
+
allowCurrentLink?: boolean;
|
|
25
|
+
/** 单项独立分隔符,优先级高于全局 separator */
|
|
26
|
+
separator?: ReactNode;
|
|
27
|
+
/** 项独立样式类名 */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** 项独立内联样式 */
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
/** 最大宽度,超出时自动文本省略截断并附加 title 提示 */
|
|
32
|
+
maxWidth?: number | string;
|
|
33
|
+
/** 单项点击回调(支持鼠标点击与键盘触发) */
|
|
34
|
+
onClick?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, item: BreadcrumbItem<T>) => void;
|
|
35
|
+
/** 附加的自定义业务透传数据 */
|
|
36
|
+
data?: T;
|
|
37
|
+
}
|
|
38
|
+
/** 路由由宿主管理,支持 linkComponent 或 renderItem 接入宿主路由;默认最后一项标记为当前页面。 */
|
|
39
|
+
export interface BreadcrumbProps<T = Record<string, unknown>> extends HTMLAttributes<HTMLElement> {
|
|
40
|
+
/** 面包屑项列表;为空时组件返回 null */
|
|
41
|
+
items?: BreadcrumbItem<T>[];
|
|
42
|
+
/** 全局项间装饰分隔符,默认为右箭头图标 */
|
|
43
|
+
separator?: ReactNode;
|
|
44
|
+
/** 最大显示项数;超出时折叠中间项 */
|
|
45
|
+
maxItems?: number;
|
|
46
|
+
/** 折叠前保留项数,默认为 1 */
|
|
47
|
+
itemsBeforeCollapse?: number;
|
|
48
|
+
/** 折叠后保留项数,默认为 1 */
|
|
49
|
+
itemsAfterCollapse?: number;
|
|
50
|
+
/** 展开折叠项时的回调 */
|
|
51
|
+
onExpand?: () => void;
|
|
52
|
+
/** 自定义链接组件(如 Next.js 的 Link 或 React Router 的 Link) */
|
|
53
|
+
linkComponent?: ComponentType<any>;
|
|
54
|
+
/** 当前项是否允许渲染为可点击链接,默认为 false */
|
|
55
|
+
allowCurrentLink?: boolean;
|
|
56
|
+
/** 自定义路径项渲染函数,第三个参数表示当前项是否激活 */
|
|
57
|
+
renderItem?: (item: BreadcrumbItem<T>, index: number, current: boolean) => ReactNode;
|
|
58
|
+
}
|
|
59
|
+
export type BreadcrumbComponent = <T = Record<string, unknown>>(props: BreadcrumbProps<T> & RefAttributes<BreadcrumbRef>) => ReactElement | null;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { CSSProperties, ComponentType, HTMLAttributeAnchorTarget, HTMLAttributes, KeyboardEvent, MouseEvent, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import type { DecorativeIcon } from '../_shared/icon.js';
|
|
3
|
+
export type BreadcrumbRef = HTMLElement;
|
|
4
|
+
export interface BreadcrumbItem<T = Record<string, unknown>> {
|
|
5
|
+
/** 稳定身份标识,组件强制要求每项具有唯一 key */
|
|
6
|
+
key: string | number;
|
|
7
|
+
/** 项显示内容 */
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
/** 链接地址;当处于激活页(且未开启 allowCurrentLink)或处于禁用态时默认不渲染链接 */
|
|
10
|
+
href?: string;
|
|
11
|
+
/** 原生外链安全关联属性,如 `noopener noreferrer` */
|
|
12
|
+
rel?: string;
|
|
13
|
+
/** 项前置装饰图标 */
|
|
14
|
+
icon?: DecorativeIcon;
|
|
15
|
+
/** 原生悬停提示/标题 */
|
|
16
|
+
title?: string;
|
|
17
|
+
/** 链接打开方式,如 `_blank` */
|
|
18
|
+
target?: HTMLAttributeAnchorTarget;
|
|
19
|
+
/** 是否禁用此项(不可点击且文字置灰) */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** 显式指定是否为当前激活页;未指定时默认最后一项为当前页 */
|
|
22
|
+
current?: boolean;
|
|
23
|
+
/** 处于激活页时是否依然保留链接跳转能力(默认优先于全局配置) */
|
|
24
|
+
allowCurrentLink?: boolean;
|
|
25
|
+
/** 单项独立分隔符,优先级高于全局 separator */
|
|
26
|
+
separator?: ReactNode;
|
|
27
|
+
/** 项独立样式类名 */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** 项独立内联样式 */
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
/** 最大宽度,超出时自动文本省略截断并附加 title 提示 */
|
|
32
|
+
maxWidth?: number | string;
|
|
33
|
+
/** 单项点击回调(支持鼠标点击与键盘触发) */
|
|
34
|
+
onClick?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, item: BreadcrumbItem<T>) => void;
|
|
35
|
+
/** 附加的自定义业务透传数据 */
|
|
36
|
+
data?: T;
|
|
37
|
+
}
|
|
38
|
+
/** 路由由宿主管理,支持 linkComponent 或 renderItem 接入宿主路由;默认最后一项标记为当前页面。 */
|
|
39
|
+
export interface BreadcrumbProps<T = Record<string, unknown>> extends HTMLAttributes<HTMLElement> {
|
|
40
|
+
/** 面包屑项列表;为空时组件返回 null */
|
|
41
|
+
items?: BreadcrumbItem<T>[];
|
|
42
|
+
/** 全局项间装饰分隔符,默认为右箭头图标 */
|
|
43
|
+
separator?: ReactNode;
|
|
44
|
+
/** 最大显示项数;超出时折叠中间项 */
|
|
45
|
+
maxItems?: number;
|
|
46
|
+
/** 折叠前保留项数,默认为 1 */
|
|
47
|
+
itemsBeforeCollapse?: number;
|
|
48
|
+
/** 折叠后保留项数,默认为 1 */
|
|
49
|
+
itemsAfterCollapse?: number;
|
|
50
|
+
/** 展开折叠项时的回调 */
|
|
51
|
+
onExpand?: () => void;
|
|
52
|
+
/** 自定义链接组件(如 Next.js 的 Link 或 React Router 的 Link) */
|
|
53
|
+
linkComponent?: ComponentType<any>;
|
|
54
|
+
/** 当前项是否允许渲染为可点击链接,默认为 false */
|
|
55
|
+
allowCurrentLink?: boolean;
|
|
56
|
+
/** 自定义路径项渲染函数,第三个参数表示当前项是否激活 */
|
|
57
|
+
renderItem?: (item: BreadcrumbItem<T>, index: number, current: boolean) => ReactNode;
|
|
58
|
+
}
|
|
59
|
+
export type BreadcrumbComponent = <T = Record<string, unknown>>(props: BreadcrumbProps<T> & RefAttributes<BreadcrumbRef>) => ReactElement | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, CSSProperties, FocusEvent, ReactNode } from 'react';
|
|
2
|
+
import type { CornerPlacement } from '../_shared/floating.cjs';
|
|
3
|
+
export type CascaderKey = string | number;
|
|
4
|
+
export type CascaderValue = CascaderKey[];
|
|
5
|
+
export interface CascaderOption {
|
|
6
|
+
/** 同级唯一;不同父节点下允许重复,由完整路径区分。 */
|
|
7
|
+
value: CascaderKey;
|
|
8
|
+
label: string;
|
|
9
|
+
children?: CascaderOption[];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface CascaderProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onChange' | 'onBlur'> {
|
|
13
|
+
options: CascaderOption[];
|
|
14
|
+
value?: CascaderValue;
|
|
15
|
+
defaultValue?: CascaderValue;
|
|
16
|
+
onChange?: (value: CascaderValue) => void;
|
|
17
|
+
changeOnSelect?: boolean;
|
|
18
|
+
filterable?: boolean;
|
|
19
|
+
filterPlaceholder?: string;
|
|
20
|
+
clearable?: boolean;
|
|
21
|
+
onClear?: () => void;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
size?: 'sm' | 'md' | 'lg';
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
emptyContent?: ReactNode;
|
|
26
|
+
open?: boolean;
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
30
|
+
placement?: CornerPlacement;
|
|
31
|
+
zIndex?: number;
|
|
32
|
+
expandTrigger?: 'click' | 'hover';
|
|
33
|
+
displayRender?: (labels: string[], selectedOptions: CascaderOption[]) => ReactNode;
|
|
34
|
+
separator?: string;
|
|
35
|
+
popupClassName?: string;
|
|
36
|
+
popupStyle?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
export type CascaderRef = HTMLButtonElement;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, CSSProperties, FocusEvent, ReactNode } from 'react';
|
|
2
|
+
import type { CornerPlacement } from '../_shared/floating.js';
|
|
3
|
+
export type CascaderKey = string | number;
|
|
4
|
+
export type CascaderValue = CascaderKey[];
|
|
5
|
+
export interface CascaderOption {
|
|
6
|
+
/** 同级唯一;不同父节点下允许重复,由完整路径区分。 */
|
|
7
|
+
value: CascaderKey;
|
|
8
|
+
label: string;
|
|
9
|
+
children?: CascaderOption[];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface CascaderProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onChange' | 'onBlur'> {
|
|
13
|
+
options: CascaderOption[];
|
|
14
|
+
value?: CascaderValue;
|
|
15
|
+
defaultValue?: CascaderValue;
|
|
16
|
+
onChange?: (value: CascaderValue) => void;
|
|
17
|
+
changeOnSelect?: boolean;
|
|
18
|
+
filterable?: boolean;
|
|
19
|
+
filterPlaceholder?: string;
|
|
20
|
+
clearable?: boolean;
|
|
21
|
+
onClear?: () => void;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
size?: 'sm' | 'md' | 'lg';
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
emptyContent?: ReactNode;
|
|
26
|
+
open?: boolean;
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
30
|
+
placement?: CornerPlacement;
|
|
31
|
+
zIndex?: number;
|
|
32
|
+
expandTrigger?: 'click' | 'hover';
|
|
33
|
+
displayRender?: (labels: string[], selectedOptions: CascaderOption[]) => ReactNode;
|
|
34
|
+
separator?: string;
|
|
35
|
+
popupClassName?: string;
|
|
36
|
+
popupStyle?: CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
export type CascaderRef = HTMLButtonElement;
|