tdesign-react 1.1.2 → 1.1.3-alpha
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/CHANGELOG.md +1 -1
- package/cjs/_chunks/{dep-d5d2c941.js → dep-006aca10.js} +2 -2
- package/cjs/_chunks/{dep-d5d2c941.js.map → dep-006aca10.js.map} +1 -1
- package/cjs/_chunks/dep-01effe0e.js +22 -0
- package/cjs/_chunks/dep-01effe0e.js.map +1 -0
- package/cjs/_chunks/dep-02473b17.js +75 -0
- package/cjs/_chunks/dep-02473b17.js.map +1 -0
- package/cjs/_chunks/{dep-f316f1a8.js → dep-02e96d00.js} +4 -4
- package/cjs/_chunks/{dep-f316f1a8.js.map → dep-02e96d00.js.map} +1 -1
- package/cjs/_chunks/dep-030b4618.js +22 -0
- package/cjs/_chunks/dep-030b4618.js.map +1 -0
- package/cjs/_chunks/dep-04d69640.js +292 -0
- package/cjs/_chunks/dep-04d69640.js.map +1 -0
- package/cjs/_chunks/dep-05a4973a.js +147 -0
- package/cjs/_chunks/{dep-917172f0.js.map → dep-05a4973a.js.map} +1 -1
- package/cjs/_chunks/dep-098391c7.js +233 -0
- package/cjs/_chunks/dep-098391c7.js.map +1 -0
- package/cjs/_chunks/dep-0ab068de.js +463 -0
- package/cjs/_chunks/dep-0ab068de.js.map +1 -0
- package/cjs/_chunks/dep-0d5a923a.js +47 -0
- package/cjs/_chunks/dep-0d5a923a.js.map +1 -0
- package/cjs/_chunks/dep-0e1d1572.js +42 -0
- package/cjs/_chunks/dep-0e1d1572.js.map +1 -0
- package/cjs/_chunks/dep-0e9d8b83.js +66 -0
- package/cjs/_chunks/dep-0e9d8b83.js.map +1 -0
- package/cjs/_chunks/dep-11874d9c.js +323 -0
- package/cjs/_chunks/dep-11874d9c.js.map +1 -0
- package/cjs/_chunks/dep-119ba56f.js +173 -0
- package/cjs/_chunks/dep-119ba56f.js.map +1 -0
- package/cjs/_chunks/dep-11b9ab10.js +453 -0
- package/cjs/_chunks/dep-11b9ab10.js.map +1 -0
- package/cjs/_chunks/dep-15529c9d.js +43 -0
- package/cjs/_chunks/dep-15529c9d.js.map +1 -0
- package/cjs/_chunks/dep-1663b0df.js +110 -0
- package/cjs/_chunks/dep-1663b0df.js.map +1 -0
- package/cjs/_chunks/dep-1ab9da86.js +41 -0
- package/cjs/_chunks/dep-1ab9da86.js.map +1 -0
- package/cjs/_chunks/dep-1b1e14c2.js +24 -0
- package/cjs/_chunks/dep-1b1e14c2.js.map +1 -0
- package/cjs/_chunks/dep-20299d41.js +512 -0
- package/cjs/_chunks/dep-20299d41.js.map +1 -0
- package/cjs/_chunks/dep-21e5dde2.js +32 -0
- package/cjs/_chunks/dep-21e5dde2.js.map +1 -0
- package/cjs/_chunks/dep-226175a4.js +18 -0
- package/cjs/_chunks/dep-226175a4.js.map +1 -0
- package/cjs/_chunks/dep-298f9b41.js +233 -0
- package/cjs/_chunks/dep-298f9b41.js.map +1 -0
- package/cjs/_chunks/dep-2b2c6e2c.js +58 -0
- package/cjs/_chunks/dep-2b2c6e2c.js.map +1 -0
- package/cjs/_chunks/dep-2e54fd55.js +51 -0
- package/cjs/_chunks/dep-2e54fd55.js.map +1 -0
- package/cjs/_chunks/{dep-c745aec5.js → dep-2f14d346.js} +1 -1
- package/cjs/_chunks/{dep-c745aec5.js.map → dep-2f14d346.js.map} +1 -1
- package/cjs/_chunks/dep-30eedc91.js +262 -0
- package/cjs/_chunks/dep-30eedc91.js.map +1 -0
- package/cjs/_chunks/dep-3227ecc8.js +80 -0
- package/cjs/_chunks/dep-3227ecc8.js.map +1 -0
- package/cjs/_chunks/dep-3240b8df.js +193 -0
- package/cjs/_chunks/dep-3240b8df.js.map +1 -0
- package/cjs/_chunks/dep-369a759e.js +45 -0
- package/cjs/_chunks/dep-369a759e.js.map +1 -0
- package/cjs/_chunks/dep-381e57e3.js +152 -0
- package/cjs/_chunks/dep-381e57e3.js.map +1 -0
- package/cjs/_chunks/dep-388542ef.js +50 -0
- package/cjs/_chunks/dep-388542ef.js.map +1 -0
- package/cjs/_chunks/dep-39de3d87.js +75 -0
- package/cjs/_chunks/{dep-ac2bd230.js.map → dep-39de3d87.js.map} +1 -1
- package/cjs/_chunks/dep-3cbfdaa1.js +126 -0
- package/cjs/_chunks/dep-3cbfdaa1.js.map +1 -0
- package/cjs/_chunks/dep-3d9b6af3.js +211 -0
- package/cjs/_chunks/dep-3d9b6af3.js.map +1 -0
- package/cjs/_chunks/{dep-f5ce6ae5.js → dep-3db154de.js} +2 -2
- package/cjs/_chunks/{dep-f5ce6ae5.js.map → dep-3db154de.js.map} +1 -1
- package/cjs/_chunks/dep-3fd6430b.js +179 -0
- package/cjs/_chunks/dep-3fd6430b.js.map +1 -0
- package/cjs/_chunks/dep-4134c046.js +147 -0
- package/cjs/_chunks/dep-4134c046.js.map +1 -0
- package/cjs/_chunks/dep-42a00a8b.js +173 -0
- package/cjs/_chunks/{dep-077384a8.js.map → dep-42a00a8b.js.map} +1 -1
- package/cjs/_chunks/dep-4367f11d.js +260 -0
- package/cjs/_chunks/dep-4367f11d.js.map +1 -0
- package/cjs/_chunks/dep-437e4fc2.js +152 -0
- package/cjs/_chunks/{dep-335089c7.js.map → dep-437e4fc2.js.map} +1 -1
- package/cjs/_chunks/{dep-bdd2f8db.js → dep-451410d0.js} +1 -1
- package/cjs/_chunks/{dep-bdd2f8db.js.map → dep-451410d0.js.map} +1 -1
- package/cjs/_chunks/dep-4815250e.js +18 -0
- package/cjs/_chunks/dep-4815250e.js.map +1 -0
- package/cjs/_chunks/dep-4e0e0ffa.js +126 -0
- package/cjs/_chunks/dep-4e0e0ffa.js.map +1 -0
- package/cjs/_chunks/dep-4e3fa454.js +43 -0
- package/cjs/_chunks/dep-4e3fa454.js.map +1 -0
- package/cjs/_chunks/dep-51765b9b.js +32 -0
- package/cjs/_chunks/dep-51765b9b.js.map +1 -0
- package/cjs/_chunks/dep-53bfd962.js +66 -0
- package/cjs/_chunks/dep-53bfd962.js.map +1 -0
- package/cjs/_chunks/dep-5411854f.js +35 -0
- package/cjs/_chunks/dep-5411854f.js.map +1 -0
- package/cjs/_chunks/dep-58012930.js +512 -0
- package/cjs/_chunks/dep-58012930.js.map +1 -0
- package/cjs/_chunks/dep-58c3d396.js +39 -0
- package/cjs/_chunks/dep-58c3d396.js.map +1 -0
- package/cjs/_chunks/dep-598e128b.js +17 -0
- package/cjs/_chunks/dep-598e128b.js.map +1 -0
- package/cjs/_chunks/{dep-077384a8.js → dep-5b18cfb3.js} +4 -4
- package/cjs/_chunks/dep-5b18cfb3.js.map +1 -0
- package/cjs/_chunks/dep-5b288817.js +20 -0
- package/cjs/_chunks/dep-5b288817.js.map +1 -0
- package/cjs/_chunks/dep-5b390370.js +712 -0
- package/cjs/_chunks/dep-5b390370.js.map +1 -0
- package/cjs/_chunks/{dep-8f9f3c10.js → dep-614ea03c.js} +1 -1
- package/cjs/_chunks/{dep-8f9f3c10.js.map → dep-614ea03c.js.map} +1 -1
- package/cjs/_chunks/dep-63223331.js +274 -0
- package/cjs/_chunks/dep-63223331.js.map +1 -0
- package/cjs/_chunks/dep-63691e12.js +45 -0
- package/cjs/_chunks/dep-63691e12.js.map +1 -0
- package/cjs/_chunks/dep-64632129.js +193 -0
- package/cjs/_chunks/{dep-a935e941.js.map → dep-64632129.js.map} +1 -1
- package/cjs/_chunks/dep-6511812c.js +136 -0
- package/cjs/_chunks/dep-6511812c.js.map +1 -0
- package/cjs/_chunks/dep-66656c95.js +110 -0
- package/cjs/_chunks/{dep-a91f34ec.js.map → dep-66656c95.js.map} +1 -1
- package/cjs/_chunks/dep-68bf9f96.js +512 -0
- package/cjs/_chunks/dep-68bf9f96.js.map +1 -0
- package/cjs/_chunks/dep-696d0d3d.js +28 -0
- package/cjs/_chunks/dep-696d0d3d.js.map +1 -0
- package/cjs/_chunks/dep-6bb503fb.js +41 -0
- package/cjs/_chunks/{dep-a4ed3eca.js.map → dep-6bb503fb.js.map} +1 -1
- package/cjs/_chunks/dep-6bc07789.js +200 -0
- package/cjs/_chunks/dep-6bc07789.js.map +1 -0
- package/cjs/_chunks/dep-6c4c8532.js +60 -0
- package/cjs/_chunks/dep-6c4c8532.js.map +1 -0
- package/cjs/_chunks/dep-6dc9822b.js +110 -0
- package/cjs/_chunks/dep-6dc9822b.js.map +1 -0
- package/cjs/_chunks/dep-6df1c156.js +81 -0
- package/cjs/_chunks/dep-6df1c156.js.map +1 -0
- package/cjs/_chunks/dep-6eb660e1.js +39 -0
- package/cjs/_chunks/dep-6eb660e1.js.map +1 -0
- package/cjs/_chunks/dep-707be8b6.js +179 -0
- package/cjs/_chunks/{dep-adde4f67.js.map → dep-707be8b6.js.map} +1 -1
- package/cjs/_chunks/dep-74c6168d.js +274 -0
- package/cjs/_chunks/dep-74c6168d.js.map +1 -0
- package/cjs/_chunks/dep-75d89cda.js +50 -0
- package/cjs/_chunks/dep-75d89cda.js.map +1 -0
- package/cjs/_chunks/{dep-c03eba58.js → dep-764560c1.js} +3 -3
- package/cjs/_chunks/{dep-c03eba58.js.map → dep-764560c1.js.map} +1 -1
- package/cjs/_chunks/{dep-ac2bd230.js → dep-77692dd3.js} +2 -2
- package/cjs/_chunks/dep-77692dd3.js.map +1 -0
- package/cjs/_chunks/dep-797119bf.js +58 -0
- package/cjs/_chunks/dep-797119bf.js.map +1 -0
- package/cjs/_chunks/dep-798c8618.js +211 -0
- package/cjs/_chunks/dep-798c8618.js.map +1 -0
- package/cjs/_chunks/dep-79ee1f95.js +24 -0
- package/cjs/_chunks/dep-79ee1f95.js.map +1 -0
- package/cjs/_chunks/dep-7aeab120.js +118 -0
- package/cjs/_chunks/dep-7aeab120.js.map +1 -0
- package/cjs/_chunks/dep-7afaeb70.js +200 -0
- package/cjs/_chunks/dep-7afaeb70.js.map +1 -0
- package/cjs/_chunks/dep-7b36790c.js +110 -0
- package/cjs/_chunks/dep-7b36790c.js.map +1 -0
- package/cjs/_chunks/dep-7b899d7e.js +512 -0
- package/cjs/_chunks/dep-7b899d7e.js.map +1 -0
- package/cjs/_chunks/{dep-917172f0.js → dep-7cee4884.js} +5 -5
- package/cjs/_chunks/dep-7cee4884.js.map +1 -0
- package/cjs/_chunks/dep-7e6bf6b1.js +149 -0
- package/cjs/_chunks/dep-7e6bf6b1.js.map +1 -0
- package/cjs/_chunks/dep-7e9bc6a0.js +118 -0
- package/cjs/_chunks/dep-7e9bc6a0.js.map +1 -0
- package/cjs/_chunks/dep-80023679.js +80 -0
- package/cjs/_chunks/dep-80023679.js.map +1 -0
- package/cjs/_chunks/dep-84995eaa.js +32 -0
- package/cjs/_chunks/dep-84995eaa.js.map +1 -0
- package/cjs/_chunks/dep-885806d4.js +65 -0
- package/cjs/_chunks/dep-885806d4.js.map +1 -0
- package/cjs/_chunks/dep-8937598f.js +192 -0
- package/cjs/_chunks/dep-8937598f.js.map +1 -0
- package/cjs/_chunks/dep-893c2208.js +453 -0
- package/cjs/_chunks/dep-893c2208.js.map +1 -0
- package/cjs/_chunks/{dep-335089c7.js → dep-8ac2693b.js} +1 -1
- package/cjs/_chunks/dep-8ac2693b.js.map +1 -0
- package/cjs/_chunks/dep-8e9bfab3.js +712 -0
- package/cjs/_chunks/dep-8e9bfab3.js.map +1 -0
- package/cjs/_chunks/dep-90e8b1b0.js +39 -0
- package/cjs/_chunks/dep-90e8b1b0.js.map +1 -0
- package/cjs/_chunks/dep-92fdf3a2.js +36 -0
- package/cjs/_chunks/dep-92fdf3a2.js.map +1 -0
- package/cjs/_chunks/dep-95d646b6.js +29 -0
- package/cjs/_chunks/dep-95d646b6.js.map +1 -0
- package/cjs/_chunks/{dep-99899e19.js → dep-95f64618.js} +4 -4
- package/cjs/_chunks/{dep-99899e19.js.map → dep-95f64618.js.map} +1 -1
- package/cjs/_chunks/dep-9e7c0aa6.js +126 -0
- package/cjs/_chunks/dep-9e7c0aa6.js.map +1 -0
- package/cjs/_chunks/dep-9eb798ac.js +688 -0
- package/cjs/_chunks/dep-9eb798ac.js.map +1 -0
- package/cjs/_chunks/dep-a6f5782d.js +688 -0
- package/cjs/_chunks/dep-a6f5782d.js.map +1 -0
- package/cjs/_chunks/{dep-f905c860.js → dep-a9107d04.js} +2 -2
- package/cjs/_chunks/{dep-f905c860.js.map → dep-a9107d04.js.map} +1 -1
- package/cjs/_chunks/dep-ac7540f2.js +512 -0
- package/cjs/_chunks/dep-ac7540f2.js.map +1 -0
- package/cjs/_chunks/dep-b088a01c.js +65 -0
- package/cjs/_chunks/dep-b088a01c.js.map +1 -0
- package/cjs/_chunks/dep-b3654aee.js +32 -0
- package/cjs/_chunks/dep-b3654aee.js.map +1 -0
- package/cjs/_chunks/dep-b3bd96b5.js +24 -0
- package/cjs/_chunks/dep-b3bd96b5.js.map +1 -0
- package/cjs/_chunks/dep-b4215cf8.js +35 -0
- package/cjs/_chunks/dep-b4215cf8.js.map +1 -0
- package/cjs/_chunks/dep-b4639127.js +43 -0
- package/cjs/_chunks/dep-b4639127.js.map +1 -0
- package/cjs/_chunks/dep-b58740b7.js +32 -0
- package/cjs/_chunks/dep-b58740b7.js.map +1 -0
- package/cjs/_chunks/dep-b5b609e4.js +29 -0
- package/cjs/_chunks/dep-b5b609e4.js.map +1 -0
- package/cjs/_chunks/dep-b789b3d2.js +101 -0
- package/cjs/_chunks/dep-b789b3d2.js.map +1 -0
- package/cjs/_chunks/dep-bb6cbc07.js +32 -0
- package/cjs/_chunks/dep-bb6cbc07.js.map +1 -0
- package/cjs/_chunks/dep-bbe31c1a.js +81 -0
- package/cjs/_chunks/dep-bbe31c1a.js.map +1 -0
- package/cjs/_chunks/dep-bbf3c565.js +41 -0
- package/cjs/_chunks/dep-bbf3c565.js.map +1 -0
- package/cjs/_chunks/dep-bc1ba484.js +50 -0
- package/cjs/_chunks/dep-bc1ba484.js.map +1 -0
- package/cjs/_chunks/dep-bfb6b5ad.js +109 -0
- package/cjs/_chunks/dep-bfb6b5ad.js.map +1 -0
- package/cjs/_chunks/dep-c1f362c5.js +36 -0
- package/cjs/_chunks/dep-c1f362c5.js.map +1 -0
- package/cjs/_chunks/{dep-a4ed3eca.js → dep-c329cd55.js} +2 -2
- package/cjs/_chunks/dep-c329cd55.js.map +1 -0
- package/cjs/_chunks/dep-c5e3ead1.js +39 -0
- package/cjs/_chunks/dep-c5e3ead1.js.map +1 -0
- package/cjs/_chunks/dep-c696f5fe.js +101 -0
- package/cjs/_chunks/dep-c696f5fe.js.map +1 -0
- package/cjs/_chunks/dep-c943f437.js +35 -0
- package/cjs/_chunks/dep-c943f437.js.map +1 -0
- package/cjs/_chunks/dep-c94683fd.js +292 -0
- package/cjs/_chunks/dep-c94683fd.js.map +1 -0
- package/cjs/_chunks/dep-c99ef448.js +536 -0
- package/cjs/_chunks/dep-c99ef448.js.map +1 -0
- package/cjs/_chunks/dep-c9e783dd.js +17 -0
- package/cjs/_chunks/dep-c9e783dd.js.map +1 -0
- package/cjs/_chunks/dep-cb68416a.js +29 -0
- package/cjs/_chunks/dep-cb68416a.js.map +1 -0
- package/cjs/_chunks/dep-cf050ae9.js +192 -0
- package/cjs/_chunks/dep-cf050ae9.js.map +1 -0
- package/cjs/_chunks/dep-cf38af2d.js +536 -0
- package/cjs/_chunks/{dep-8226ab1b.js.map → dep-cf38af2d.js.map} +1 -1
- package/cjs/_chunks/dep-d3f37cee.js +20 -0
- package/cjs/_chunks/dep-d3f37cee.js.map +1 -0
- package/cjs/_chunks/dep-d4801906.js +42 -0
- package/cjs/_chunks/dep-d4801906.js.map +1 -0
- package/cjs/_chunks/dep-d5cae907.js +51 -0
- package/cjs/_chunks/dep-d5cae907.js.map +1 -0
- package/cjs/_chunks/dep-d7156736.js +109 -0
- package/cjs/_chunks/dep-d7156736.js.map +1 -0
- package/cjs/_chunks/dep-d7fd6da5.js +28 -0
- package/cjs/_chunks/dep-d7fd6da5.js.map +1 -0
- package/cjs/_chunks/{dep-8226ab1b.js → dep-db4b0086.js} +2 -2
- package/cjs/_chunks/dep-db4b0086.js.map +1 -0
- package/cjs/_chunks/{dep-a935e941.js → dep-de56e0dd.js} +1 -1
- package/cjs/_chunks/dep-de56e0dd.js.map +1 -0
- package/cjs/_chunks/{dep-a91f34ec.js → dep-df31fbac.js} +2 -2
- package/cjs/_chunks/dep-df31fbac.js.map +1 -0
- package/cjs/_chunks/dep-e06189c7.js +512 -0
- package/cjs/_chunks/dep-e06189c7.js.map +1 -0
- package/cjs/_chunks/dep-e0adf787.js +90 -0
- package/cjs/_chunks/dep-e0adf787.js.map +1 -0
- package/cjs/_chunks/dep-e0dc16bf.js +41 -0
- package/cjs/_chunks/dep-e0dc16bf.js.map +1 -0
- package/cjs/_chunks/dep-e12576f1.js +50 -0
- package/cjs/_chunks/dep-e12576f1.js.map +1 -0
- package/cjs/_chunks/dep-e174ddc3.js +90 -0
- package/cjs/_chunks/dep-e174ddc3.js.map +1 -0
- package/cjs/_chunks/dep-e1c17b2e.js +152 -0
- package/cjs/_chunks/dep-e1c17b2e.js.map +1 -0
- package/cjs/_chunks/dep-e425707b.js +47 -0
- package/cjs/_chunks/dep-e425707b.js.map +1 -0
- package/cjs/_chunks/dep-e7024817.js +24 -0
- package/cjs/_chunks/dep-e7024817.js.map +1 -0
- package/cjs/_chunks/{dep-adde4f67.js → dep-eddb20cd.js} +1 -1
- package/cjs/_chunks/dep-eddb20cd.js.map +1 -0
- package/cjs/_chunks/dep-efb93fe4.js +463 -0
- package/cjs/_chunks/dep-efb93fe4.js.map +1 -0
- package/cjs/_chunks/dep-efc3c5e0.js +60 -0
- package/cjs/_chunks/dep-efc3c5e0.js.map +1 -0
- package/cjs/_chunks/dep-f1303963.js +43 -0
- package/cjs/_chunks/dep-f1303963.js.map +1 -0
- package/cjs/_chunks/dep-f17153ff.js +35 -0
- package/cjs/_chunks/dep-f17153ff.js.map +1 -0
- package/cjs/_chunks/dep-f210077a.js +17 -0
- package/cjs/_chunks/dep-f210077a.js.map +1 -0
- package/cjs/_chunks/dep-f313a74c.js +17 -0
- package/cjs/_chunks/dep-f313a74c.js.map +1 -0
- package/cjs/_chunks/dep-f3ef763a.js +323 -0
- package/cjs/_chunks/dep-f3ef763a.js.map +1 -0
- package/cjs/_chunks/dep-f88b0482.js +512 -0
- package/cjs/_chunks/dep-f88b0482.js.map +1 -0
- package/cjs/_chunks/dep-f91597d2.js +136 -0
- package/cjs/_chunks/dep-f91597d2.js.map +1 -0
- package/cjs/_chunks/dep-f97248ee.js +126 -0
- package/cjs/_chunks/dep-f97248ee.js.map +1 -0
- package/cjs/_chunks/dep-fb75dd85.js +29 -0
- package/cjs/_chunks/dep-fb75dd85.js.map +1 -0
- package/cjs/_chunks/dep-fead44f1.js +149 -0
- package/cjs/_chunks/dep-fead44f1.js.map +1 -0
- package/cjs/_common/js/table/recalculate-column-width.js +143 -0
- package/cjs/_common/js/table/recalculate-column-width.js.map +1 -0
- package/cjs/_common/js/table/set-column-width-by-drag.js +88 -0
- package/cjs/_common/js/table/set-column-width-by-drag.js.map +1 -0
- package/cjs/_common/js/tree/tree-node-model.js +9 -9
- package/cjs/_common/js/tree/tree-node.js +9 -9
- package/cjs/_common/js/tree/tree-store.js +10 -10
- package/cjs/_util/useAnimation.js +4 -4
- package/cjs/_util/useClickOutside.js +4 -4
- package/cjs/_util/useCommonClassName.js +4 -4
- package/cjs/_util/useRipple.js +4 -4
- package/cjs/affix/Affix.js +4 -4
- package/cjs/affix/index.js +4 -4
- package/cjs/alert/Alert.js +4 -4
- package/cjs/alert/index.js +4 -4
- package/cjs/anchor/Anchor.js +6 -6
- package/cjs/anchor/AnchorItem.js +4 -4
- package/cjs/anchor/AnchorTarget.js +4 -4
- package/cjs/anchor/index.js +6 -6
- package/cjs/auto-complete/AutoComplete.js +4 -4
- package/cjs/auto-complete/HighlightOption.js +4 -4
- package/cjs/auto-complete/OptionList.js +4 -4
- package/cjs/auto-complete/index.js +4 -4
- package/cjs/avatar/Avatar.js +5 -5
- package/cjs/avatar/AvatarGroup.js +5 -5
- package/cjs/avatar/index.js +5 -5
- package/cjs/back-top/BackTop.js +4 -4
- package/cjs/back-top/index.js +4 -4
- package/cjs/badge/Badge.js +4 -4
- package/cjs/badge/index.js +4 -4
- package/cjs/breadcrumb/Breadcrumb.js +4 -4
- package/cjs/breadcrumb/BreadcrumbItem.js +4 -4
- package/cjs/breadcrumb/index.js +4 -4
- package/cjs/button/Button.js +4 -4
- package/cjs/button/index.js +4 -4
- package/cjs/calendar/Calendar.js +8 -8
- package/cjs/calendar/CalendarCellComp.js +4 -4
- package/cjs/calendar/hooks/usePrefixClass.js +4 -4
- package/cjs/calendar/index.js +8 -8
- package/cjs/card/Card.js +4 -4
- package/cjs/card/index.js +4 -4
- package/cjs/cascader/Cascader.js +14 -14
- package/cjs/cascader/CascaderPanel.js +14 -14
- package/cjs/cascader/components/Item.js +7 -7
- package/cjs/cascader/components/Panel.js +9 -9
- package/cjs/cascader/core/effect.js +6 -6
- package/cjs/cascader/core/helper.js +3 -3
- package/cjs/cascader/hooks.js +12 -12
- package/cjs/cascader/index.js +14 -14
- package/cjs/cascader/interface.js +9 -9
- package/cjs/checkbox/Checkbox.js +5 -5
- package/cjs/checkbox/CheckboxGroup.js +5 -5
- package/cjs/checkbox/index.js +5 -5
- package/cjs/collapse/Collapse.js +9 -6
- package/cjs/collapse/Collapse.js.map +1 -1
- package/cjs/collapse/CollapseContext.d.ts +6 -2
- package/cjs/collapse/CollapseContext.js.map +1 -1
- package/cjs/collapse/CollapsePanel.js +8 -6
- package/cjs/collapse/CollapsePanel.js.map +1 -1
- package/cjs/collapse/index.js +4 -4
- package/cjs/collapse/type.d.ts +4 -1
- package/cjs/color-picker/ColorPicker.js +11 -11
- package/cjs/color-picker/ColorPickerPanel.js +11 -11
- package/cjs/color-picker/components/panel/format/index.js +7 -7
- package/cjs/color-picker/components/panel/format/inputs.js +4 -4
- package/cjs/color-picker/components/panel/header.js +5 -5
- package/cjs/color-picker/components/panel/index.js +11 -11
- package/cjs/color-picker/components/panel/linear-gradient.js +7 -7
- package/cjs/color-picker/components/panel/swatches.js +4 -4
- package/cjs/color-picker/components/trigger.js +4 -4
- package/cjs/color-picker/hooks/useClassNames.js +4 -4
- package/cjs/color-picker/index.js +11 -11
- package/cjs/comment/Comment.js +4 -4
- package/cjs/comment/index.js +4 -4
- package/cjs/common/Check.js +4 -4
- package/cjs/common/FakeArrow.js +4 -4
- package/cjs/common/Portal.js +4 -4
- package/cjs/config-provider/ConfigContext.js +4 -4
- package/cjs/config-provider/ConfigProvider.js +4 -4
- package/cjs/config-provider/index.js +4 -4
- package/cjs/date-picker/DatePicker.js +10 -10
- package/cjs/date-picker/DatePickerPanel.js +10 -10
- package/cjs/date-picker/DateRangePicker.js +10 -10
- package/cjs/date-picker/DateRangePickerPanel.js +10 -10
- package/cjs/date-picker/base/Cell.js +4 -4
- package/cjs/date-picker/base/Footer.js +4 -4
- package/cjs/date-picker/base/Header.js +10 -10
- package/cjs/date-picker/base/Table.js +4 -4
- package/cjs/date-picker/hooks/useRange.js +4 -4
- package/cjs/date-picker/hooks/useSingle.js +4 -4
- package/cjs/date-picker/hooks/useTableData.js +4 -4
- package/cjs/date-picker/index.js +10 -10
- package/cjs/date-picker/panel/ExtraContent.js +4 -4
- package/cjs/date-picker/panel/PanelContent.js +10 -10
- package/cjs/date-picker/panel/RangePanel.js +10 -10
- package/cjs/date-picker/panel/SinglePanel.js +10 -10
- package/cjs/dialog/Dialog.js +4 -4
- package/cjs/dialog/DialogCard.js +4 -4
- package/cjs/dialog/index.js +4 -4
- package/cjs/dialog/plugin.js +4 -4
- package/cjs/divider/Divider.js +4 -4
- package/cjs/divider/index.js +4 -4
- package/cjs/drawer/Drawer.js +4 -4
- package/cjs/drawer/index.js +4 -4
- package/cjs/dropdown/Dropdown.js +8 -8
- package/cjs/dropdown/DropdownItem.js +4 -4
- package/cjs/dropdown/DropdownMenu.js +4 -4
- package/cjs/dropdown/hooks/useDropdownOptions.js +4 -4
- package/cjs/dropdown/index.js +8 -8
- package/cjs/form/Form.js +15 -15
- package/cjs/form/FormItem.js +15 -15
- package/cjs/form/FormList.js +6 -6
- package/cjs/form/FormList.js.map +1 -1
- package/cjs/form/formModel.js +3 -3
- package/cjs/form/hooks/useFormItemStyle.js +4 -4
- package/cjs/form/hooks/useInstance.js +9 -7
- package/cjs/form/hooks/useInstance.js.map +1 -1
- package/cjs/form/index.js +15 -15
- package/cjs/form/useInitialData.js +15 -15
- package/cjs/grid/Col.js +4 -4
- package/cjs/grid/Row.js +4 -4
- package/cjs/grid/index.js +4 -4
- package/cjs/guide/Guide.js +4 -4
- package/cjs/guide/index.js +4 -4
- package/cjs/hooks/useCommonClassName.js +4 -4
- package/cjs/hooks/useConfig.js +4 -4
- package/cjs/hooks/useGlobalIcon.js +4 -4
- package/cjs/image/Image.js +4 -4
- package/cjs/image/index.js +4 -4
- package/cjs/image-viewer/ImageViewer.js +5 -5
- package/cjs/image-viewer/ImageViewerMini.js +5 -5
- package/cjs/image-viewer/ImageViewerModel.js +5 -5
- package/cjs/image-viewer/hooks/useIconMap.js +4 -4
- package/cjs/image-viewer/index.js +5 -5
- package/cjs/index-lib.js +18 -18
- package/cjs/index.js +18 -18
- package/cjs/input/Input.js +4 -4
- package/cjs/input/InputGroup.js +4 -4
- package/cjs/input/index.js +4 -4
- package/cjs/input-adornment/InputAdornment.js +4 -4
- package/cjs/input-adornment/index.js +4 -4
- package/cjs/input-number/InputNumber.js +4 -4
- package/cjs/input-number/index.js +4 -4
- package/cjs/input-number/useInputNumber.js +4 -4
- package/cjs/layout/Aside.js +4 -4
- package/cjs/layout/Layout.js +4 -4
- package/cjs/layout/index.js +4 -4
- package/cjs/link/Link.js +4 -4
- package/cjs/link/index.js +4 -4
- package/cjs/list/List.js +4 -4
- package/cjs/list/ListItem.js +4 -4
- package/cjs/list/ListItemMeta.js +4 -4
- package/cjs/list/index.js +4 -4
- package/cjs/loading/Loading.js +4 -4
- package/cjs/loading/gradient.js +4 -4
- package/cjs/loading/index.js +4 -4
- package/cjs/loading/plugin.js +4 -4
- package/cjs/locale/LocalReceiver.js +4 -4
- package/cjs/menu/HeadMenu.js +4 -4
- package/cjs/menu/Menu.js +4 -4
- package/cjs/menu/MenuGroup.js +4 -4
- package/cjs/menu/MenuItem.js +4 -4
- package/cjs/menu/SubMenu.js +4 -4
- package/cjs/menu/index.js +4 -4
- package/cjs/message/Message.js +4 -4
- package/cjs/message/MessageClose.js +4 -4
- package/cjs/message/MessageComponent.js +4 -4
- package/cjs/message/MessageIcon.js +4 -4
- package/cjs/message/index.js +4 -4
- package/cjs/message/useMessageClass.js +4 -4
- package/cjs/notification/Notification.js +5 -5
- package/cjs/notification/NotificationList.js +5 -5
- package/cjs/notification/NotificationPlugin.js +5 -5
- package/cjs/notification/index.js +5 -5
- package/cjs/pagination/Pagination.js +10 -10
- package/cjs/pagination/PaginationMini.js +4 -4
- package/cjs/pagination/hooks/useBoundaryJumper.js +4 -4
- package/cjs/pagination/hooks/usePageNumber.js +4 -4
- package/cjs/pagination/hooks/usePrevNextJumper.js +4 -4
- package/cjs/pagination/hooks/useTotal.js +4 -4
- package/cjs/pagination/index.js +10 -10
- package/cjs/popconfirm/Popconfirm.js +4 -4
- package/cjs/popconfirm/Popcontent.js +4 -4
- package/cjs/popconfirm/index.js +4 -4
- package/cjs/popup/Popup.js +4 -4
- package/cjs/popup/index.js +4 -4
- package/cjs/progress/Progress.js +4 -4
- package/cjs/progress/index.js +4 -4
- package/cjs/radio/Radio.js +5 -5
- package/cjs/radio/RadioGroup.js +5 -5
- package/cjs/radio/index.js +5 -5
- package/cjs/range-input/RangeInput.js +4 -4
- package/cjs/range-input/RangeInputPopup.js +4 -4
- package/cjs/range-input/index.js +4 -4
- package/cjs/rate/Rate.js +4 -4
- package/cjs/rate/index.js +4 -4
- package/cjs/select/base/Option.js +4 -4
- package/cjs/select/base/OptionGroup.js +4 -4
- package/cjs/select/base/PopupContent.js +4 -4
- package/cjs/select/base/Select.js +15 -10
- package/cjs/select/base/Select.js.map +1 -1
- package/cjs/select/hooks/useOptions.js +4 -4
- package/cjs/select/index.js +7 -7
- package/cjs/select/util/helper.js +4 -4
- package/cjs/select-input/SelectInput.js +7 -7
- package/cjs/select-input/index.js +7 -7
- package/cjs/select-input/useMultiple.js +4 -4
- package/cjs/select-input/useSingle.js +7 -7
- package/cjs/skeleton/Skeleton.js +4 -4
- package/cjs/skeleton/index.js +4 -4
- package/cjs/slider/Slider.js +4 -4
- package/cjs/slider/SliderHandleButton.js +4 -4
- package/cjs/slider/index.js +4 -4
- package/cjs/space/Space.js +4 -4
- package/cjs/space/index.js +4 -4
- package/cjs/steps/StepItem.js +4 -4
- package/cjs/steps/Steps.js +4 -4
- package/cjs/steps/index.js +4 -4
- package/cjs/sticky-tool/StickyItem.js +4 -4
- package/cjs/sticky-tool/StickyTool.js +4 -4
- package/cjs/sticky-tool/index.js +4 -4
- package/cjs/swiper/Swiper.js +4 -4
- package/cjs/swiper/SwiperItem.js +4 -4
- package/cjs/swiper/index.js +4 -4
- package/cjs/switch/Switch.js +8 -6
- package/cjs/switch/Switch.js.map +1 -1
- package/cjs/switch/index.js +4 -4
- package/cjs/switch/type.d.ts +4 -1
- package/cjs/table/BaseTable.js +10 -10
- package/cjs/table/Cell.js +4 -4
- package/cjs/table/EditableCell.js +7 -7
- package/cjs/table/Ellipsis.js +4 -4
- package/cjs/table/EnhancedTable.js +14 -14
- package/cjs/table/FilterController.js +8 -8
- package/cjs/table/PrimaryTable.js +13 -13
- package/cjs/table/SorterButton.js +4 -4
- package/cjs/table/TBody.js +7 -7
- package/cjs/table/TFoot.js +4 -4
- package/cjs/table/THead.js +4 -4
- package/cjs/table/TR.js +4 -4
- package/cjs/table/hooks/useAsyncLoading.js +4 -4
- package/cjs/table/hooks/useClassName.js +4 -4
- package/cjs/table/hooks/useColumnController.js +5 -5
- package/cjs/table/hooks/useDragSort.js +4 -4
- package/cjs/table/hooks/useEditableRow.js +3 -3
- package/cjs/table/hooks/useFilter.js +8 -8
- package/cjs/table/hooks/usePagination.js +10 -10
- package/cjs/table/hooks/useRowExpand.js +4 -4
- package/cjs/table/hooks/useRowSelect.js +6 -6
- package/cjs/table/hooks/useSorter.js +4 -4
- package/cjs/table/hooks/useStyle.js +4 -4
- package/cjs/table/hooks/useTableHeader.js +4 -4
- package/cjs/table/hooks/useTreeData.js +7 -7
- package/cjs/table/index.js +14 -14
- package/cjs/tabs/TabBar.js +4 -4
- package/cjs/tabs/TabNav.js +4 -4
- package/cjs/tabs/TabNavItem.js +4 -4
- package/cjs/tabs/TabPanel.js +4 -4
- package/cjs/tabs/Tabs.js +4 -4
- package/cjs/tabs/index.js +4 -4
- package/cjs/tabs/useTabClass.js +4 -4
- package/cjs/tag/CheckTag.js +4 -4
- package/cjs/tag/Tag.js +4 -4
- package/cjs/tag/index.js +4 -4
- package/cjs/tag-input/TagInput.js +4 -4
- package/cjs/tag-input/index.js +4 -4
- package/cjs/tag-input/useTagList.js +4 -4
- package/cjs/textarea/Textarea.js +4 -4
- package/cjs/textarea/index.js +4 -4
- package/cjs/time-picker/TimePicker.js +7 -7
- package/cjs/time-picker/TimeRangePicker.js +4 -4
- package/cjs/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/cjs/time-picker/index.js +7 -7
- package/cjs/time-picker/panel/SinglePanel.js +4 -4
- package/cjs/time-picker/panel/TimePickerPanel.js +4 -4
- package/cjs/timeline/Timeline.js +4 -4
- package/cjs/timeline/TimelineItem.js +4 -4
- package/cjs/timeline/index.js +4 -4
- package/cjs/tooltip/Tooltip.js +4 -4
- package/cjs/tooltip/TooltipLite.js +4 -4
- package/cjs/tooltip/index.js +4 -4
- package/cjs/transfer/Transfer.js +13 -13
- package/cjs/transfer/TransferList.js +12 -12
- package/cjs/transfer/index.js +13 -13
- package/cjs/transfer/utils.js +3 -3
- package/cjs/tree/Tree.js +13 -13
- package/cjs/tree/TreeItem.js +5 -5
- package/cjs/tree/index.js +13 -13
- package/cjs/tree/useStore.js +11 -11
- package/cjs/tree/useTreeConfig.js +4 -4
- package/cjs/tree-select/SelectArrow.js +4 -4
- package/cjs/tree-select/TreeSelect.js +13 -13
- package/cjs/tree-select/index.js +13 -13
- package/cjs/tree-select/useTreeSelectLocale.js +4 -4
- package/cjs/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/cjs/tree-select/useTreeSelectUtils.js +10 -10
- package/cjs/upload/hooks/useUpload.js +4 -4
- package/cjs/upload/index.js +5 -5
- package/cjs/upload/themes/DraggerFile.js +5 -5
- package/cjs/upload/themes/ImageCard.js +5 -5
- package/cjs/upload/themes/MultipleFlowList.js +5 -5
- package/cjs/upload/themes/NormalFile.js +4 -4
- package/cjs/upload/upload.js +5 -5
- package/cjs/watermark/Watermark.js +4 -4
- package/cjs/watermark/index.js +4 -4
- package/dist/tdesign.css +14 -6
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +26 -12
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +2 -2
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-0ed2653d.js → dep-10714810.js} +2 -2
- package/es/_chunks/{dep-0ed2653d.js.map → dep-10714810.js.map} +1 -1
- package/{esm/_chunks/dep-ab34288e.js → es/_chunks/dep-31fcfd53.js} +2 -2
- package/es/_chunks/{dep-ab34288e.js.map → dep-31fcfd53.js.map} +1 -1
- package/es/_chunks/{dep-2200ec94.js → dep-387bc865.js} +4 -4
- package/es/_chunks/{dep-2200ec94.js.map → dep-387bc865.js.map} +1 -1
- package/{esm/_chunks/dep-d47c7e9b.js → es/_chunks/dep-3981a46a.js} +1 -1
- package/{esm/_chunks/dep-d47c7e9b.js.map → es/_chunks/dep-3981a46a.js.map} +1 -1
- package/{esm/_chunks/dep-7482d700.js → es/_chunks/dep-3c55c68d.js} +1 -1
- package/{esm/_chunks/dep-7482d700.js.map → es/_chunks/dep-3c55c68d.js.map} +1 -1
- package/{esm/_chunks/dep-3c7d641d.js → es/_chunks/dep-3e33ad92.js} +5 -5
- package/{esm/_chunks/dep-3c7d641d.js.map → es/_chunks/dep-3e33ad92.js.map} +1 -1
- package/{esm/_chunks/dep-c9e9f69d.js → es/_chunks/dep-40aa72b4.js} +2 -2
- package/es/_chunks/{dep-c9e9f69d.js.map → dep-40aa72b4.js.map} +1 -1
- package/{esm/_chunks/dep-1ca7460e.js → es/_chunks/dep-56cdabff.js} +2 -2
- package/es/_chunks/{dep-1ca7460e.js.map → dep-56cdabff.js.map} +1 -1
- package/{esm/_chunks/dep-4acd9045.js → es/_chunks/dep-598ceadb.js} +2 -2
- package/{esm/_chunks/dep-4acd9045.js.map → es/_chunks/dep-598ceadb.js.map} +1 -1
- package/{esm/_chunks/dep-7a3d8766.js → es/_chunks/dep-624db2b1.js} +2 -2
- package/{esm/_chunks/dep-7a3d8766.js.map → es/_chunks/dep-624db2b1.js.map} +1 -1
- package/es/_chunks/{dep-84bd4b42.js → dep-648c8b5b.js} +1 -1
- package/es/_chunks/{dep-84bd4b42.js.map → dep-648c8b5b.js.map} +1 -1
- package/{esm/_chunks/dep-d72398a1.js → es/_chunks/dep-7b722120.js} +1 -1
- package/{esm/_chunks/dep-d72398a1.js.map → es/_chunks/dep-7b722120.js.map} +1 -1
- package/es/_chunks/{dep-a3445d3f.js → dep-7f3034ad.js} +3 -3
- package/es/_chunks/{dep-a3445d3f.js.map → dep-7f3034ad.js.map} +1 -1
- package/{esm/_chunks/dep-81793f96.js → es/_chunks/dep-7f6db092.js} +1 -1
- package/{esm/_chunks/dep-81793f96.js.map → es/_chunks/dep-7f6db092.js.map} +1 -1
- package/{esm/_chunks/dep-34e1698f.js → es/_chunks/dep-bf9a8e4b.js} +2 -2
- package/es/_chunks/{dep-34e1698f.js.map → dep-bf9a8e4b.js.map} +1 -1
- package/{esm/_chunks/dep-dd51e167.js → es/_chunks/dep-e007e43e.js} +4 -4
- package/{esm/_chunks/dep-dd51e167.js.map → es/_chunks/dep-e007e43e.js.map} +1 -1
- package/es/_chunks/{dep-6c5f889c.js → dep-e995a839.js} +1 -1
- package/{esm/_chunks/dep-6c5f889c.js.map → es/_chunks/dep-e995a839.js.map} +1 -1
- package/{esm/_chunks/dep-ab8ea120.js → es/_chunks/dep-efb15a63.js} +4 -4
- package/{esm/_chunks/dep-ab8ea120.js.map → es/_chunks/dep-efb15a63.js.map} +1 -1
- package/es/_common/js/tree/tree-node-model.js +9 -9
- package/es/_common/js/tree/tree-node.js +9 -9
- package/es/_common/js/tree/tree-store.js +10 -10
- package/es/_util/useAnimation.js +4 -4
- package/es/_util/useClickOutside.js +4 -4
- package/es/_util/useCommonClassName.js +4 -4
- package/es/_util/useRipple.js +4 -4
- package/es/affix/Affix.js +4 -4
- package/es/affix/index.js +4 -4
- package/es/alert/Alert.js +4 -4
- package/es/alert/index.js +4 -4
- package/es/anchor/Anchor.js +6 -6
- package/es/anchor/AnchorItem.js +4 -4
- package/es/anchor/AnchorTarget.js +4 -4
- package/es/anchor/index.js +6 -6
- package/es/auto-complete/AutoComplete.js +4 -4
- package/es/auto-complete/HighlightOption.js +4 -4
- package/es/auto-complete/OptionList.js +4 -4
- package/es/auto-complete/index.js +4 -4
- package/es/avatar/Avatar.js +5 -5
- package/es/avatar/AvatarGroup.js +5 -5
- package/es/avatar/index.js +5 -5
- package/es/back-top/BackTop.js +4 -4
- package/es/back-top/index.js +4 -4
- package/es/badge/Badge.js +4 -4
- package/es/badge/index.js +4 -4
- package/es/breadcrumb/Breadcrumb.js +4 -4
- package/es/breadcrumb/BreadcrumbItem.js +4 -4
- package/es/breadcrumb/index.js +4 -4
- package/es/button/Button.js +4 -4
- package/es/button/index.js +4 -4
- package/es/calendar/Calendar.js +8 -8
- package/es/calendar/CalendarCellComp.js +4 -4
- package/es/calendar/hooks/usePrefixClass.js +4 -4
- package/es/calendar/index.js +8 -8
- package/es/card/Card.js +4 -4
- package/es/card/index.js +4 -4
- package/es/cascader/Cascader.js +14 -14
- package/es/cascader/CascaderPanel.js +14 -14
- package/es/cascader/components/Item.js +7 -7
- package/es/cascader/components/Panel.js +9 -9
- package/es/cascader/core/effect.js +6 -6
- package/es/cascader/core/helper.js +3 -3
- package/es/cascader/hooks.js +12 -12
- package/es/cascader/index.js +14 -14
- package/es/cascader/interface.js +9 -9
- package/es/checkbox/Checkbox.js +5 -5
- package/es/checkbox/CheckboxGroup.js +5 -5
- package/es/checkbox/index.js +5 -5
- package/es/collapse/Collapse.js +10 -7
- package/es/collapse/Collapse.js.map +1 -1
- package/es/collapse/CollapseContext.d.ts +6 -2
- package/es/collapse/CollapseContext.js.map +1 -1
- package/es/collapse/CollapsePanel.js +8 -6
- package/es/collapse/CollapsePanel.js.map +1 -1
- package/es/collapse/index.js +4 -4
- package/es/collapse/type.d.ts +4 -1
- package/es/color-picker/ColorPicker.js +11 -11
- package/es/color-picker/ColorPickerPanel.js +11 -11
- package/es/color-picker/components/panel/format/index.js +7 -7
- package/es/color-picker/components/panel/format/inputs.js +4 -4
- package/es/color-picker/components/panel/header.js +5 -5
- package/es/color-picker/components/panel/index.js +11 -11
- package/es/color-picker/components/panel/linear-gradient.js +7 -7
- package/es/color-picker/components/panel/swatches.js +4 -4
- package/es/color-picker/components/trigger.js +4 -4
- package/es/color-picker/hooks/useClassNames.js +4 -4
- package/es/color-picker/index.js +11 -11
- package/es/comment/Comment.js +4 -4
- package/es/comment/index.js +4 -4
- package/es/common/Check.js +4 -4
- package/es/common/FakeArrow.js +4 -4
- package/es/common/Portal.js +4 -4
- package/es/config-provider/ConfigContext.js +4 -4
- package/es/config-provider/ConfigProvider.js +4 -4
- package/es/config-provider/index.js +4 -4
- package/es/date-picker/DatePicker.js +10 -10
- package/es/date-picker/DatePickerPanel.js +10 -10
- package/es/date-picker/DateRangePicker.js +10 -10
- package/es/date-picker/DateRangePickerPanel.js +10 -10
- package/es/date-picker/base/Cell.js +4 -4
- package/es/date-picker/base/Footer.js +4 -4
- package/es/date-picker/base/Header.js +10 -10
- package/es/date-picker/base/Table.js +4 -4
- package/es/date-picker/hooks/useRange.js +4 -4
- package/es/date-picker/hooks/useSingle.js +4 -4
- package/es/date-picker/hooks/useTableData.js +4 -4
- package/es/date-picker/index.js +10 -10
- package/es/date-picker/panel/ExtraContent.js +4 -4
- package/es/date-picker/panel/PanelContent.js +10 -10
- package/es/date-picker/panel/RangePanel.js +10 -10
- package/es/date-picker/panel/SinglePanel.js +10 -10
- package/es/dialog/Dialog.js +4 -4
- package/es/dialog/DialogCard.js +4 -4
- package/es/dialog/index.js +4 -4
- package/es/dialog/plugin.js +4 -4
- package/es/divider/Divider.js +4 -4
- package/es/divider/index.js +4 -4
- package/es/drawer/Drawer.js +4 -4
- package/es/drawer/index.js +4 -4
- package/es/dropdown/Dropdown.js +8 -8
- package/es/dropdown/DropdownItem.js +4 -4
- package/es/dropdown/DropdownMenu.js +4 -4
- package/es/dropdown/hooks/useDropdownOptions.js +4 -4
- package/es/dropdown/index.js +8 -8
- package/es/form/Form.js +15 -15
- package/es/form/FormItem.js +15 -15
- package/es/form/FormList.js +6 -6
- package/es/form/FormList.js.map +1 -1
- package/es/form/formModel.js +3 -3
- package/es/form/hooks/useFormItemStyle.js +4 -4
- package/es/form/hooks/useInstance.js +9 -7
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/index.js +15 -15
- package/es/form/useInitialData.js +15 -15
- package/es/grid/Col.js +4 -4
- package/es/grid/Row.js +4 -4
- package/es/grid/index.js +4 -4
- package/es/guide/Guide.js +4 -4
- package/es/guide/index.js +4 -4
- package/es/hooks/useCommonClassName.js +4 -4
- package/es/hooks/useConfig.js +4 -4
- package/es/hooks/useGlobalIcon.js +4 -4
- package/es/image/Image.js +4 -4
- package/es/image/index.js +4 -4
- package/es/image-viewer/ImageViewer.js +5 -5
- package/es/image-viewer/ImageViewerMini.js +5 -5
- package/es/image-viewer/ImageViewerModel.js +5 -5
- package/es/image-viewer/hooks/useIconMap.js +4 -4
- package/es/image-viewer/index.js +5 -5
- package/es/index.js +18 -18
- package/es/input/Input.js +4 -4
- package/es/input/InputGroup.js +4 -4
- package/es/input/index.js +4 -4
- package/es/input/style/index.css +0 -3
- package/es/input-adornment/InputAdornment.js +4 -4
- package/es/input-adornment/index.js +4 -4
- package/es/input-number/InputNumber.js +4 -4
- package/es/input-number/index.js +4 -4
- package/es/input-number/useInputNumber.js +4 -4
- package/es/layout/Aside.js +4 -4
- package/es/layout/Layout.js +4 -4
- package/es/layout/index.js +4 -4
- package/es/link/Link.js +4 -4
- package/es/link/index.js +4 -4
- package/es/list/List.js +4 -4
- package/es/list/ListItem.js +4 -4
- package/es/list/ListItemMeta.js +4 -4
- package/es/list/index.js +4 -4
- package/es/loading/Loading.js +4 -4
- package/es/loading/gradient.js +4 -4
- package/es/loading/index.js +4 -4
- package/es/loading/plugin.js +4 -4
- package/es/locale/LocalReceiver.js +4 -4
- package/es/menu/HeadMenu.js +4 -4
- package/es/menu/Menu.js +4 -4
- package/es/menu/MenuGroup.js +4 -4
- package/es/menu/MenuItem.js +4 -4
- package/es/menu/SubMenu.js +4 -4
- package/es/menu/index.js +4 -4
- package/es/message/Message.js +4 -4
- package/es/message/MessageClose.js +4 -4
- package/es/message/MessageComponent.js +4 -4
- package/es/message/MessageIcon.js +4 -4
- package/es/message/index.js +4 -4
- package/es/message/useMessageClass.js +4 -4
- package/es/notification/Notification.js +5 -5
- package/es/notification/NotificationList.js +5 -5
- package/es/notification/NotificationPlugin.js +5 -5
- package/es/notification/index.js +5 -5
- package/es/pagination/Pagination.js +10 -10
- package/es/pagination/PaginationMini.js +4 -4
- package/es/pagination/hooks/useBoundaryJumper.js +4 -4
- package/es/pagination/hooks/usePageNumber.js +4 -4
- package/es/pagination/hooks/usePrevNextJumper.js +4 -4
- package/es/pagination/hooks/useTotal.js +4 -4
- package/es/pagination/index.js +10 -10
- package/es/popconfirm/Popconfirm.js +4 -4
- package/es/popconfirm/Popcontent.js +4 -4
- package/es/popconfirm/index.js +4 -4
- package/es/popconfirm/style/index.css +1 -1
- package/es/popup/Popup.js +4 -4
- package/es/popup/index.js +4 -4
- package/es/popup/style/index.css +3 -0
- package/es/progress/Progress.js +4 -4
- package/es/progress/index.js +4 -4
- package/es/radio/Radio.js +5 -5
- package/es/radio/RadioGroup.js +5 -5
- package/es/radio/index.js +5 -5
- package/es/range-input/RangeInput.js +4 -4
- package/es/range-input/RangeInputPopup.js +4 -4
- package/es/range-input/index.js +4 -4
- package/es/rate/Rate.js +4 -4
- package/es/rate/index.js +4 -4
- package/es/select/base/Option.js +4 -4
- package/es/select/base/OptionGroup.js +4 -4
- package/es/select/base/PopupContent.js +4 -4
- package/es/select/base/Select.js +15 -10
- package/es/select/base/Select.js.map +1 -1
- package/es/select/hooks/useOptions.js +4 -4
- package/es/select/index.js +7 -7
- package/es/select/util/helper.js +4 -4
- package/es/select-input/SelectInput.js +7 -7
- package/es/select-input/index.js +7 -7
- package/es/select-input/useMultiple.js +4 -4
- package/es/select-input/useSingle.js +7 -7
- package/es/skeleton/Skeleton.js +4 -4
- package/es/skeleton/index.js +4 -4
- package/es/slider/Slider.js +4 -4
- package/es/slider/SliderHandleButton.js +4 -4
- package/es/slider/index.js +4 -4
- package/es/space/Space.js +4 -4
- package/es/space/index.js +4 -4
- package/es/steps/StepItem.js +4 -4
- package/es/steps/Steps.js +4 -4
- package/es/steps/index.js +4 -4
- package/es/sticky-tool/StickyItem.js +4 -4
- package/es/sticky-tool/StickyTool.js +4 -4
- package/es/sticky-tool/index.js +4 -4
- package/es/swiper/Swiper.js +4 -4
- package/es/swiper/SwiperItem.js +4 -4
- package/es/swiper/index.js +4 -4
- package/es/switch/Switch.js +8 -6
- package/es/switch/Switch.js.map +1 -1
- package/es/switch/index.js +4 -4
- package/es/switch/type.d.ts +4 -1
- package/es/table/BaseTable.js +10 -10
- package/es/table/Cell.js +4 -4
- package/es/table/EditableCell.js +7 -7
- package/es/table/Ellipsis.js +4 -4
- package/es/table/EnhancedTable.js +14 -14
- package/es/table/FilterController.js +8 -8
- package/es/table/PrimaryTable.js +13 -13
- package/es/table/SorterButton.js +4 -4
- package/es/table/TBody.js +7 -7
- package/es/table/TFoot.js +4 -4
- package/es/table/THead.js +4 -4
- package/es/table/TR.js +4 -4
- package/es/table/hooks/useAsyncLoading.js +4 -4
- package/es/table/hooks/useClassName.js +4 -4
- package/es/table/hooks/useColumnController.js +5 -5
- package/es/table/hooks/useDragSort.js +4 -4
- package/es/table/hooks/useEditableRow.js +3 -3
- package/es/table/hooks/useFilter.js +8 -8
- package/es/table/hooks/usePagination.js +10 -10
- package/es/table/hooks/useRowExpand.js +4 -4
- package/es/table/hooks/useRowSelect.js +6 -6
- package/es/table/hooks/useSorter.js +4 -4
- package/es/table/hooks/useStyle.js +4 -4
- package/es/table/hooks/useTableHeader.js +4 -4
- package/es/table/hooks/useTreeData.js +7 -7
- package/es/table/index.js +14 -14
- package/es/tabs/TabBar.js +4 -4
- package/es/tabs/TabNav.js +4 -4
- package/es/tabs/TabNavItem.js +4 -4
- package/es/tabs/TabPanel.js +4 -4
- package/es/tabs/Tabs.js +4 -4
- package/es/tabs/index.js +4 -4
- package/es/tabs/useTabClass.js +4 -4
- package/es/tag/CheckTag.js +4 -4
- package/es/tag/Tag.js +4 -4
- package/es/tag/index.js +4 -4
- package/es/tag-input/TagInput.js +4 -4
- package/es/tag-input/index.js +4 -4
- package/es/tag-input/useTagList.js +4 -4
- package/es/textarea/Textarea.js +4 -4
- package/es/textarea/index.js +4 -4
- package/es/time-picker/TimePicker.js +7 -7
- package/es/time-picker/TimeRangePicker.js +4 -4
- package/es/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/es/time-picker/index.js +7 -7
- package/es/time-picker/panel/SinglePanel.js +4 -4
- package/es/time-picker/panel/TimePickerPanel.js +4 -4
- package/es/timeline/Timeline.js +4 -4
- package/es/timeline/TimelineItem.js +4 -4
- package/es/timeline/index.js +4 -4
- package/es/timeline/style/index.css +0 -2
- package/es/tooltip/Tooltip.js +4 -4
- package/es/tooltip/TooltipLite.js +4 -4
- package/es/tooltip/index.js +4 -4
- package/es/tooltip/style/index.css +10 -0
- package/es/transfer/Transfer.js +13 -13
- package/es/transfer/TransferList.js +12 -12
- package/es/transfer/index.js +13 -13
- package/es/transfer/utils.js +3 -3
- package/es/tree/Tree.js +13 -13
- package/es/tree/TreeItem.js +5 -5
- package/es/tree/index.js +13 -13
- package/es/tree/useStore.js +11 -11
- package/es/tree/useTreeConfig.js +4 -4
- package/es/tree-select/SelectArrow.js +4 -4
- package/es/tree-select/TreeSelect.js +13 -13
- package/es/tree-select/index.js +13 -13
- package/es/tree-select/useTreeSelectLocale.js +4 -4
- package/es/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/es/tree-select/useTreeSelectUtils.js +10 -10
- package/es/upload/hooks/useUpload.js +4 -4
- package/es/upload/index.js +5 -5
- package/es/upload/themes/DraggerFile.js +5 -5
- package/es/upload/themes/ImageCard.js +5 -5
- package/es/upload/themes/MultipleFlowList.js +5 -5
- package/es/upload/themes/NormalFile.js +4 -4
- package/es/upload/upload.js +5 -5
- package/es/watermark/Watermark.js +4 -4
- package/es/watermark/index.js +4 -4
- package/esm/_chunks/{dep-0ed2653d.js → dep-10714810.js} +2 -2
- package/esm/_chunks/{dep-0ed2653d.js.map → dep-10714810.js.map} +1 -1
- package/{es/_chunks/dep-ab34288e.js → esm/_chunks/dep-31fcfd53.js} +2 -2
- package/esm/_chunks/{dep-ab34288e.js.map → dep-31fcfd53.js.map} +1 -1
- package/esm/_chunks/{dep-2200ec94.js → dep-387bc865.js} +4 -4
- package/esm/_chunks/{dep-2200ec94.js.map → dep-387bc865.js.map} +1 -1
- package/{es/_chunks/dep-7482d700.js → esm/_chunks/dep-3c55c68d.js} +1 -1
- package/{es/_chunks/dep-7482d700.js.map → esm/_chunks/dep-3c55c68d.js.map} +1 -1
- package/{es/_chunks/dep-3c7d641d.js → esm/_chunks/dep-3e33ad92.js} +5 -5
- package/{es/_chunks/dep-3c7d641d.js.map → esm/_chunks/dep-3e33ad92.js.map} +1 -1
- package/{es/_chunks/dep-c9e9f69d.js → esm/_chunks/dep-40aa72b4.js} +2 -2
- package/esm/_chunks/{dep-c9e9f69d.js.map → dep-40aa72b4.js.map} +1 -1
- package/{es/_chunks/dep-a8a69c2e.js → esm/_chunks/dep-4f39c8e3.js} +1 -1
- package/{es/_chunks/dep-a8a69c2e.js.map → esm/_chunks/dep-4f39c8e3.js.map} +1 -1
- package/{es/_chunks/dep-1ca7460e.js → esm/_chunks/dep-56cdabff.js} +2 -2
- package/esm/_chunks/{dep-1ca7460e.js.map → dep-56cdabff.js.map} +1 -1
- package/{es/_chunks/dep-4acd9045.js → esm/_chunks/dep-598ceadb.js} +2 -2
- package/{es/_chunks/dep-4acd9045.js.map → esm/_chunks/dep-598ceadb.js.map} +1 -1
- package/{es/_chunks/dep-7a3d8766.js → esm/_chunks/dep-624db2b1.js} +2 -2
- package/{es/_chunks/dep-7a3d8766.js.map → esm/_chunks/dep-624db2b1.js.map} +1 -1
- package/esm/_chunks/{dep-84bd4b42.js → dep-648c8b5b.js} +1 -1
- package/esm/_chunks/{dep-84bd4b42.js.map → dep-648c8b5b.js.map} +1 -1
- package/{es/_chunks/dep-d72398a1.js → esm/_chunks/dep-7b722120.js} +1 -1
- package/{es/_chunks/dep-d72398a1.js.map → esm/_chunks/dep-7b722120.js.map} +1 -1
- package/esm/_chunks/{dep-a3445d3f.js → dep-7f3034ad.js} +3 -3
- package/esm/_chunks/{dep-a3445d3f.js.map → dep-7f3034ad.js.map} +1 -1
- package/{es/_chunks/dep-b1eac571.js → esm/_chunks/dep-a27f147d.js} +1 -1
- package/{es/_chunks/dep-b1eac571.js.map → esm/_chunks/dep-a27f147d.js.map} +1 -1
- package/{es/_chunks/dep-34e1698f.js → esm/_chunks/dep-bf9a8e4b.js} +2 -2
- package/esm/_chunks/{dep-34e1698f.js.map → dep-bf9a8e4b.js.map} +1 -1
- package/{es/_chunks/dep-dd51e167.js → esm/_chunks/dep-e007e43e.js} +4 -4
- package/{es/_chunks/dep-dd51e167.js.map → esm/_chunks/dep-e007e43e.js.map} +1 -1
- package/esm/_chunks/{dep-6c5f889c.js → dep-e995a839.js} +1 -1
- package/{es/_chunks/dep-6c5f889c.js.map → esm/_chunks/dep-e995a839.js.map} +1 -1
- package/{es/_chunks/dep-ab8ea120.js → esm/_chunks/dep-efb15a63.js} +4 -4
- package/{es/_chunks/dep-ab8ea120.js.map → esm/_chunks/dep-efb15a63.js.map} +1 -1
- package/esm/_common/js/tree/tree-node-model.js +9 -9
- package/esm/_common/js/tree/tree-node.js +9 -9
- package/esm/_common/js/tree/tree-store.js +10 -10
- package/esm/_common/style/web/components/input/_index.less +0 -5
- package/esm/_common/style/web/components/popconfirm/_index.less +1 -1
- package/esm/_common/style/web/components/popup/_mixin.less +2 -0
- package/esm/_common/style/web/components/timeline/_index.less +0 -1
- package/esm/_common/style/web/components/tooltip/_index.less +13 -0
- package/esm/_util/useAnimation.js +4 -4
- package/esm/_util/useClickOutside.js +4 -4
- package/esm/_util/useCommonClassName.js +4 -4
- package/esm/_util/useRipple.js +4 -4
- package/esm/affix/Affix.js +4 -4
- package/esm/affix/index.js +4 -4
- package/esm/alert/Alert.js +4 -4
- package/esm/alert/index.js +4 -4
- package/esm/anchor/Anchor.js +6 -6
- package/esm/anchor/AnchorItem.js +4 -4
- package/esm/anchor/AnchorTarget.js +4 -4
- package/esm/anchor/index.js +6 -6
- package/esm/auto-complete/AutoComplete.js +4 -4
- package/esm/auto-complete/HighlightOption.js +4 -4
- package/esm/auto-complete/OptionList.js +4 -4
- package/esm/auto-complete/index.js +4 -4
- package/esm/avatar/Avatar.js +5 -5
- package/esm/avatar/AvatarGroup.js +5 -5
- package/esm/avatar/index.js +5 -5
- package/esm/back-top/BackTop.js +4 -4
- package/esm/back-top/index.js +4 -4
- package/esm/badge/Badge.js +4 -4
- package/esm/badge/index.js +4 -4
- package/esm/breadcrumb/Breadcrumb.js +4 -4
- package/esm/breadcrumb/BreadcrumbItem.js +4 -4
- package/esm/breadcrumb/index.js +4 -4
- package/esm/button/Button.js +4 -4
- package/esm/button/index.js +4 -4
- package/esm/calendar/Calendar.js +8 -8
- package/esm/calendar/CalendarCellComp.js +4 -4
- package/esm/calendar/hooks/usePrefixClass.js +4 -4
- package/esm/calendar/index.js +8 -8
- package/esm/card/Card.js +4 -4
- package/esm/card/index.js +4 -4
- package/esm/cascader/Cascader.js +14 -14
- package/esm/cascader/CascaderPanel.js +14 -14
- package/esm/cascader/components/Item.js +7 -7
- package/esm/cascader/components/Panel.js +9 -9
- package/esm/cascader/core/effect.js +6 -6
- package/esm/cascader/core/helper.js +3 -3
- package/esm/cascader/hooks.js +12 -12
- package/esm/cascader/index.js +14 -14
- package/esm/cascader/interface.js +9 -9
- package/esm/checkbox/Checkbox.js +5 -5
- package/esm/checkbox/CheckboxGroup.js +5 -5
- package/esm/checkbox/index.js +5 -5
- package/esm/collapse/Collapse.js +10 -7
- package/esm/collapse/Collapse.js.map +1 -1
- package/esm/collapse/CollapseContext.d.ts +6 -2
- package/esm/collapse/CollapseContext.js.map +1 -1
- package/esm/collapse/CollapsePanel.js +8 -6
- package/esm/collapse/CollapsePanel.js.map +1 -1
- package/esm/collapse/index.js +4 -4
- package/esm/collapse/type.d.ts +4 -1
- package/esm/color-picker/ColorPicker.js +11 -11
- package/esm/color-picker/ColorPickerPanel.js +11 -11
- package/esm/color-picker/components/panel/format/index.js +7 -7
- package/esm/color-picker/components/panel/format/inputs.js +4 -4
- package/esm/color-picker/components/panel/header.js +5 -5
- package/esm/color-picker/components/panel/index.js +11 -11
- package/esm/color-picker/components/panel/linear-gradient.js +7 -7
- package/esm/color-picker/components/panel/swatches.js +4 -4
- package/esm/color-picker/components/trigger.js +4 -4
- package/esm/color-picker/hooks/useClassNames.js +4 -4
- package/esm/color-picker/index.js +11 -11
- package/esm/comment/Comment.js +4 -4
- package/esm/comment/index.js +4 -4
- package/esm/common/Check.js +4 -4
- package/esm/common/FakeArrow.js +4 -4
- package/esm/common/Portal.js +4 -4
- package/esm/config-provider/ConfigContext.js +4 -4
- package/esm/config-provider/ConfigProvider.js +4 -4
- package/esm/config-provider/index.js +4 -4
- package/esm/date-picker/DatePicker.js +10 -10
- package/esm/date-picker/DatePickerPanel.js +10 -10
- package/esm/date-picker/DateRangePicker.js +10 -10
- package/esm/date-picker/DateRangePickerPanel.js +10 -10
- package/esm/date-picker/base/Cell.js +4 -4
- package/esm/date-picker/base/Footer.js +4 -4
- package/esm/date-picker/base/Header.js +10 -10
- package/esm/date-picker/base/Table.js +4 -4
- package/esm/date-picker/hooks/useRange.js +4 -4
- package/esm/date-picker/hooks/useSingle.js +4 -4
- package/esm/date-picker/hooks/useTableData.js +4 -4
- package/esm/date-picker/index.js +10 -10
- package/esm/date-picker/panel/ExtraContent.js +4 -4
- package/esm/date-picker/panel/PanelContent.js +10 -10
- package/esm/date-picker/panel/RangePanel.js +10 -10
- package/esm/date-picker/panel/SinglePanel.js +10 -10
- package/esm/dialog/Dialog.js +4 -4
- package/esm/dialog/DialogCard.js +4 -4
- package/esm/dialog/index.js +4 -4
- package/esm/dialog/plugin.js +4 -4
- package/esm/divider/Divider.js +4 -4
- package/esm/divider/index.js +4 -4
- package/esm/drawer/Drawer.js +4 -4
- package/esm/drawer/index.js +4 -4
- package/esm/dropdown/Dropdown.js +8 -8
- package/esm/dropdown/DropdownItem.js +4 -4
- package/esm/dropdown/DropdownMenu.js +4 -4
- package/esm/dropdown/hooks/useDropdownOptions.js +4 -4
- package/esm/dropdown/index.js +8 -8
- package/esm/form/Form.js +15 -15
- package/esm/form/FormItem.js +15 -15
- package/esm/form/FormList.js +6 -6
- package/esm/form/FormList.js.map +1 -1
- package/esm/form/formModel.js +3 -3
- package/esm/form/hooks/useFormItemStyle.js +4 -4
- package/esm/form/hooks/useInstance.js +9 -7
- package/esm/form/hooks/useInstance.js.map +1 -1
- package/esm/form/index.js +15 -15
- package/esm/form/useInitialData.js +15 -15
- package/esm/grid/Col.js +4 -4
- package/esm/grid/Row.js +4 -4
- package/esm/grid/index.js +4 -4
- package/esm/guide/Guide.js +4 -4
- package/esm/guide/index.js +4 -4
- package/esm/hooks/useCommonClassName.js +4 -4
- package/esm/hooks/useConfig.js +4 -4
- package/esm/hooks/useGlobalIcon.js +4 -4
- package/esm/image/Image.js +4 -4
- package/esm/image/index.js +4 -4
- package/esm/image-viewer/ImageViewer.js +5 -5
- package/esm/image-viewer/ImageViewerMini.js +5 -5
- package/esm/image-viewer/ImageViewerModel.js +5 -5
- package/esm/image-viewer/hooks/useIconMap.js +4 -4
- package/esm/image-viewer/index.js +5 -5
- package/esm/index.js +18 -18
- package/esm/input/Input.js +4 -4
- package/esm/input/InputGroup.js +4 -4
- package/esm/input/index.js +4 -4
- package/esm/input-adornment/InputAdornment.js +4 -4
- package/esm/input-adornment/index.js +4 -4
- package/esm/input-number/InputNumber.js +4 -4
- package/esm/input-number/index.js +4 -4
- package/esm/input-number/useInputNumber.js +4 -4
- package/esm/layout/Aside.js +4 -4
- package/esm/layout/Layout.js +4 -4
- package/esm/layout/index.js +4 -4
- package/esm/link/Link.js +4 -4
- package/esm/link/index.js +4 -4
- package/esm/list/List.js +4 -4
- package/esm/list/ListItem.js +4 -4
- package/esm/list/ListItemMeta.js +4 -4
- package/esm/list/index.js +4 -4
- package/esm/loading/Loading.js +4 -4
- package/esm/loading/gradient.js +4 -4
- package/esm/loading/index.js +4 -4
- package/esm/loading/plugin.js +4 -4
- package/esm/locale/LocalReceiver.js +4 -4
- package/esm/menu/HeadMenu.js +4 -4
- package/esm/menu/Menu.js +4 -4
- package/esm/menu/MenuGroup.js +4 -4
- package/esm/menu/MenuItem.js +4 -4
- package/esm/menu/SubMenu.js +4 -4
- package/esm/menu/index.js +4 -4
- package/esm/message/Message.js +4 -4
- package/esm/message/MessageClose.js +4 -4
- package/esm/message/MessageComponent.js +4 -4
- package/esm/message/MessageIcon.js +4 -4
- package/esm/message/index.js +4 -4
- package/esm/message/useMessageClass.js +4 -4
- package/esm/notification/Notification.js +5 -5
- package/esm/notification/NotificationList.js +5 -5
- package/esm/notification/NotificationPlugin.js +5 -5
- package/esm/notification/index.js +5 -5
- package/esm/pagination/Pagination.js +10 -10
- package/esm/pagination/PaginationMini.js +4 -4
- package/esm/pagination/hooks/useBoundaryJumper.js +4 -4
- package/esm/pagination/hooks/usePageNumber.js +4 -4
- package/esm/pagination/hooks/usePrevNextJumper.js +4 -4
- package/esm/pagination/hooks/useTotal.js +4 -4
- package/esm/pagination/index.js +10 -10
- package/esm/popconfirm/Popconfirm.js +4 -4
- package/esm/popconfirm/Popcontent.js +4 -4
- package/esm/popconfirm/index.js +4 -4
- package/esm/popup/Popup.js +4 -4
- package/esm/popup/index.js +4 -4
- package/esm/progress/Progress.js +4 -4
- package/esm/progress/index.js +4 -4
- package/esm/radio/Radio.js +5 -5
- package/esm/radio/RadioGroup.js +5 -5
- package/esm/radio/index.js +5 -5
- package/esm/range-input/RangeInput.js +4 -4
- package/esm/range-input/RangeInputPopup.js +4 -4
- package/esm/range-input/index.js +4 -4
- package/esm/rate/Rate.js +4 -4
- package/esm/rate/index.js +4 -4
- package/esm/select/base/Option.js +4 -4
- package/esm/select/base/OptionGroup.js +4 -4
- package/esm/select/base/PopupContent.js +4 -4
- package/esm/select/base/Select.js +15 -10
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/hooks/useOptions.js +4 -4
- package/esm/select/index.js +7 -7
- package/esm/select/util/helper.js +4 -4
- package/esm/select-input/SelectInput.js +7 -7
- package/esm/select-input/index.js +7 -7
- package/esm/select-input/useMultiple.js +4 -4
- package/esm/select-input/useSingle.js +7 -7
- package/esm/skeleton/Skeleton.js +4 -4
- package/esm/skeleton/index.js +4 -4
- package/esm/slider/Slider.js +4 -4
- package/esm/slider/SliderHandleButton.js +4 -4
- package/esm/slider/index.js +4 -4
- package/esm/space/Space.js +4 -4
- package/esm/space/index.js +4 -4
- package/esm/steps/StepItem.js +4 -4
- package/esm/steps/Steps.js +4 -4
- package/esm/steps/index.js +4 -4
- package/esm/sticky-tool/StickyItem.js +4 -4
- package/esm/sticky-tool/StickyTool.js +4 -4
- package/esm/sticky-tool/index.js +4 -4
- package/esm/swiper/Swiper.js +4 -4
- package/esm/swiper/SwiperItem.js +4 -4
- package/esm/swiper/index.js +4 -4
- package/esm/switch/Switch.js +8 -6
- package/esm/switch/Switch.js.map +1 -1
- package/esm/switch/index.js +4 -4
- package/esm/switch/type.d.ts +4 -1
- package/esm/table/BaseTable.js +10 -10
- package/esm/table/Cell.js +4 -4
- package/esm/table/EditableCell.js +7 -7
- package/esm/table/Ellipsis.js +4 -4
- package/esm/table/EnhancedTable.js +14 -14
- package/esm/table/FilterController.js +8 -8
- package/esm/table/PrimaryTable.js +13 -13
- package/esm/table/SorterButton.js +4 -4
- package/esm/table/TBody.js +7 -7
- package/esm/table/TFoot.js +4 -4
- package/esm/table/THead.js +4 -4
- package/esm/table/TR.js +4 -4
- package/esm/table/hooks/useAsyncLoading.js +4 -4
- package/esm/table/hooks/useClassName.js +4 -4
- package/esm/table/hooks/useColumnController.js +5 -5
- package/esm/table/hooks/useDragSort.js +4 -4
- package/esm/table/hooks/useEditableRow.js +3 -3
- package/esm/table/hooks/useFilter.js +8 -8
- package/esm/table/hooks/usePagination.js +10 -10
- package/esm/table/hooks/useRowExpand.js +4 -4
- package/esm/table/hooks/useRowSelect.js +6 -6
- package/esm/table/hooks/useSorter.js +4 -4
- package/esm/table/hooks/useStyle.js +4 -4
- package/esm/table/hooks/useTableHeader.js +4 -4
- package/esm/table/hooks/useTreeData.js +7 -7
- package/esm/table/index.js +14 -14
- package/esm/tabs/TabBar.js +4 -4
- package/esm/tabs/TabNav.js +4 -4
- package/esm/tabs/TabNavItem.js +4 -4
- package/esm/tabs/TabPanel.js +4 -4
- package/esm/tabs/Tabs.js +4 -4
- package/esm/tabs/index.js +4 -4
- package/esm/tabs/useTabClass.js +4 -4
- package/esm/tag/CheckTag.js +4 -4
- package/esm/tag/Tag.js +4 -4
- package/esm/tag/index.js +4 -4
- package/esm/tag-input/TagInput.js +4 -4
- package/esm/tag-input/index.js +4 -4
- package/esm/tag-input/useTagList.js +4 -4
- package/esm/textarea/Textarea.js +4 -4
- package/esm/textarea/index.js +4 -4
- package/esm/time-picker/TimePicker.js +7 -7
- package/esm/time-picker/TimeRangePicker.js +4 -4
- package/esm/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/esm/time-picker/index.js +7 -7
- package/esm/time-picker/panel/SinglePanel.js +4 -4
- package/esm/time-picker/panel/TimePickerPanel.js +4 -4
- package/esm/timeline/Timeline.js +4 -4
- package/esm/timeline/TimelineItem.js +4 -4
- package/esm/timeline/index.js +4 -4
- package/esm/tooltip/Tooltip.js +4 -4
- package/esm/tooltip/TooltipLite.js +4 -4
- package/esm/tooltip/index.js +4 -4
- package/esm/transfer/Transfer.js +13 -13
- package/esm/transfer/TransferList.js +12 -12
- package/esm/transfer/index.js +13 -13
- package/esm/transfer/utils.js +3 -3
- package/esm/tree/Tree.js +13 -13
- package/esm/tree/TreeItem.js +5 -5
- package/esm/tree/index.js +13 -13
- package/esm/tree/useStore.js +11 -11
- package/esm/tree/useTreeConfig.js +4 -4
- package/esm/tree-select/SelectArrow.js +4 -4
- package/esm/tree-select/TreeSelect.js +13 -13
- package/esm/tree-select/index.js +13 -13
- package/esm/tree-select/useTreeSelectLocale.js +4 -4
- package/esm/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/esm/tree-select/useTreeSelectUtils.js +10 -10
- package/esm/upload/hooks/useUpload.js +4 -4
- package/esm/upload/index.js +5 -5
- package/esm/upload/themes/DraggerFile.js +5 -5
- package/esm/upload/themes/ImageCard.js +5 -5
- package/esm/upload/themes/MultipleFlowList.js +5 -5
- package/esm/upload/themes/NormalFile.js +4 -4
- package/esm/upload/upload.js +5 -5
- package/esm/watermark/Watermark.js +4 -4
- package/esm/watermark/index.js +4 -4
- package/lib/_chunks/{dep-a40df943.js → dep-11a69b62.js} +1 -1
- package/lib/_chunks/{dep-a40df943.js.map → dep-11a69b62.js.map} +1 -1
- package/lib/_chunks/{dep-087598e7.js → dep-1f23b248.js} +1 -1
- package/lib/_chunks/{dep-087598e7.js.map → dep-1f23b248.js.map} +1 -1
- package/lib/_chunks/{dep-188c17e5.js → dep-2699ef45.js} +3 -3
- package/lib/_chunks/{dep-188c17e5.js.map → dep-2699ef45.js.map} +1 -1
- package/lib/_chunks/{dep-400a846e.js → dep-2af64d4c.js} +1 -1
- package/lib/_chunks/{dep-400a846e.js.map → dep-2af64d4c.js.map} +1 -1
- package/lib/_chunks/{dep-e0e87778.js → dep-35865b94.js} +4 -4
- package/lib/_chunks/{dep-e0e87778.js.map → dep-35865b94.js.map} +1 -1
- package/lib/_chunks/{dep-80796a32.js → dep-397c5176.js} +1 -1
- package/lib/_chunks/{dep-80796a32.js.map → dep-397c5176.js.map} +1 -1
- package/lib/_chunks/{dep-4834c672.js → dep-4869c8ad.js} +2 -2
- package/lib/_chunks/{dep-4834c672.js.map → dep-4869c8ad.js.map} +1 -1
- package/lib/_chunks/{dep-7f87ff4d.js → dep-491e2b74.js} +1 -1
- package/lib/_chunks/{dep-7f87ff4d.js.map → dep-491e2b74.js.map} +1 -1
- package/lib/_chunks/{dep-7f1c0cef.js → dep-4a3cb03b.js} +2 -2
- package/lib/_chunks/{dep-7f1c0cef.js.map → dep-4a3cb03b.js.map} +1 -1
- package/lib/_chunks/{dep-8f46326f.js → dep-50bee7ca.js} +1 -1
- package/lib/_chunks/{dep-8f46326f.js.map → dep-50bee7ca.js.map} +1 -1
- package/lib/_chunks/{dep-0f2872ca.js → dep-6ce3ee53.js} +2 -2
- package/lib/_chunks/{dep-0f2872ca.js.map → dep-6ce3ee53.js.map} +1 -1
- package/lib/_chunks/{dep-99c8db88.js → dep-72645369.js} +2 -2
- package/lib/_chunks/{dep-99c8db88.js.map → dep-72645369.js.map} +1 -1
- package/lib/_chunks/{dep-a11b7ebf.js → dep-750d8251.js} +2 -2
- package/lib/_chunks/{dep-a11b7ebf.js.map → dep-750d8251.js.map} +1 -1
- package/lib/_chunks/{dep-7e61dd4d.js → dep-c32a5d96.js} +4 -4
- package/lib/_chunks/{dep-7e61dd4d.js.map → dep-c32a5d96.js.map} +1 -1
- package/lib/_chunks/{dep-f1f90210.js → dep-ce50854f.js} +2 -2
- package/lib/_chunks/{dep-f1f90210.js.map → dep-ce50854f.js.map} +1 -1
- package/lib/_chunks/{dep-2c8e21db.js → dep-cedd695e.js} +5 -5
- package/lib/_chunks/{dep-2c8e21db.js.map → dep-cedd695e.js.map} +1 -1
- package/lib/_chunks/{dep-e5fbcdf2.js → dep-d56fbf38.js} +4 -4
- package/lib/_chunks/{dep-e5fbcdf2.js.map → dep-d56fbf38.js.map} +1 -1
- package/lib/_chunks/{dep-49e8367a.js → dep-e959a5e3.js} +2 -2
- package/lib/_chunks/{dep-49e8367a.js.map → dep-e959a5e3.js.map} +1 -1
- package/lib/_common/js/tree/tree-node-model.js +9 -9
- package/lib/_common/js/tree/tree-node.js +9 -9
- package/lib/_common/js/tree/tree-store.js +10 -10
- package/lib/_util/useAnimation.js +4 -4
- package/lib/_util/useClickOutside.js +4 -4
- package/lib/_util/useCommonClassName.js +4 -4
- package/lib/_util/useRipple.js +4 -4
- package/lib/affix/Affix.js +4 -4
- package/lib/affix/index.js +4 -4
- package/lib/alert/Alert.js +4 -4
- package/lib/alert/index.js +4 -4
- package/lib/anchor/Anchor.js +6 -6
- package/lib/anchor/AnchorItem.js +4 -4
- package/lib/anchor/AnchorTarget.js +4 -4
- package/lib/anchor/index.js +6 -6
- package/lib/auto-complete/AutoComplete.js +4 -4
- package/lib/auto-complete/HighlightOption.js +4 -4
- package/lib/auto-complete/OptionList.js +4 -4
- package/lib/auto-complete/index.js +4 -4
- package/lib/avatar/Avatar.js +5 -5
- package/lib/avatar/AvatarGroup.js +5 -5
- package/lib/avatar/index.js +5 -5
- package/lib/back-top/BackTop.js +4 -4
- package/lib/back-top/index.js +4 -4
- package/lib/badge/Badge.js +4 -4
- package/lib/badge/index.js +4 -4
- package/lib/breadcrumb/Breadcrumb.js +4 -4
- package/lib/breadcrumb/BreadcrumbItem.js +4 -4
- package/lib/breadcrumb/index.js +4 -4
- package/lib/button/Button.js +4 -4
- package/lib/button/index.js +4 -4
- package/lib/calendar/Calendar.js +8 -8
- package/lib/calendar/CalendarCellComp.js +4 -4
- package/lib/calendar/hooks/usePrefixClass.js +4 -4
- package/lib/calendar/index.js +8 -8
- package/lib/card/Card.js +4 -4
- package/lib/card/index.js +4 -4
- package/lib/cascader/Cascader.js +14 -14
- package/lib/cascader/CascaderPanel.js +14 -14
- package/lib/cascader/components/Item.js +7 -7
- package/lib/cascader/components/Panel.js +9 -9
- package/lib/cascader/core/effect.js +6 -6
- package/lib/cascader/core/helper.js +3 -3
- package/lib/cascader/hooks.js +12 -12
- package/lib/cascader/index.js +14 -14
- package/lib/cascader/interface.js +9 -9
- package/lib/checkbox/Checkbox.js +5 -5
- package/lib/checkbox/CheckboxGroup.js +5 -5
- package/lib/checkbox/index.js +5 -5
- package/lib/collapse/Collapse.js +10 -7
- package/lib/collapse/Collapse.js.map +1 -1
- package/lib/collapse/CollapseContext.d.ts +6 -2
- package/lib/collapse/CollapseContext.js.map +1 -1
- package/lib/collapse/CollapsePanel.js +8 -6
- package/lib/collapse/CollapsePanel.js.map +1 -1
- package/lib/collapse/index.js +4 -4
- package/lib/collapse/type.d.ts +4 -1
- package/lib/color-picker/ColorPicker.js +11 -11
- package/lib/color-picker/ColorPickerPanel.js +11 -11
- package/lib/color-picker/components/panel/format/index.js +7 -7
- package/lib/color-picker/components/panel/format/inputs.js +4 -4
- package/lib/color-picker/components/panel/header.js +5 -5
- package/lib/color-picker/components/panel/index.js +11 -11
- package/lib/color-picker/components/panel/linear-gradient.js +7 -7
- package/lib/color-picker/components/panel/swatches.js +4 -4
- package/lib/color-picker/components/trigger.js +4 -4
- package/lib/color-picker/hooks/useClassNames.js +4 -4
- package/lib/color-picker/index.js +11 -11
- package/lib/comment/Comment.js +4 -4
- package/lib/comment/index.js +4 -4
- package/lib/common/Check.js +4 -4
- package/lib/common/FakeArrow.js +4 -4
- package/lib/common/Portal.js +4 -4
- package/lib/config-provider/ConfigContext.js +4 -4
- package/lib/config-provider/ConfigProvider.js +4 -4
- package/lib/config-provider/index.js +4 -4
- package/lib/date-picker/DatePicker.js +10 -10
- package/lib/date-picker/DatePickerPanel.js +10 -10
- package/lib/date-picker/DateRangePicker.js +10 -10
- package/lib/date-picker/DateRangePickerPanel.js +10 -10
- package/lib/date-picker/base/Cell.js +4 -4
- package/lib/date-picker/base/Footer.js +4 -4
- package/lib/date-picker/base/Header.js +10 -10
- package/lib/date-picker/base/Table.js +4 -4
- package/lib/date-picker/hooks/useRange.js +4 -4
- package/lib/date-picker/hooks/useSingle.js +4 -4
- package/lib/date-picker/hooks/useTableData.js +4 -4
- package/lib/date-picker/index.js +10 -10
- package/lib/date-picker/panel/ExtraContent.js +4 -4
- package/lib/date-picker/panel/PanelContent.js +10 -10
- package/lib/date-picker/panel/RangePanel.js +10 -10
- package/lib/date-picker/panel/SinglePanel.js +10 -10
- package/lib/dialog/Dialog.js +4 -4
- package/lib/dialog/DialogCard.js +4 -4
- package/lib/dialog/index.js +4 -4
- package/lib/dialog/plugin.js +4 -4
- package/lib/divider/Divider.js +4 -4
- package/lib/divider/index.js +4 -4
- package/lib/drawer/Drawer.js +4 -4
- package/lib/drawer/index.js +4 -4
- package/lib/dropdown/Dropdown.js +8 -8
- package/lib/dropdown/DropdownItem.js +4 -4
- package/lib/dropdown/DropdownMenu.js +4 -4
- package/lib/dropdown/hooks/useDropdownOptions.js +4 -4
- package/lib/dropdown/index.js +8 -8
- package/lib/form/Form.js +15 -15
- package/lib/form/FormItem.js +15 -15
- package/lib/form/FormList.js +6 -6
- package/lib/form/FormList.js.map +1 -1
- package/lib/form/formModel.js +3 -3
- package/lib/form/hooks/useFormItemStyle.js +4 -4
- package/lib/form/hooks/useInstance.js +9 -7
- package/lib/form/hooks/useInstance.js.map +1 -1
- package/lib/form/index.js +15 -15
- package/lib/form/useInitialData.js +15 -15
- package/lib/grid/Col.js +4 -4
- package/lib/grid/Row.js +4 -4
- package/lib/grid/index.js +4 -4
- package/lib/guide/Guide.js +4 -4
- package/lib/guide/index.js +4 -4
- package/lib/hooks/useCommonClassName.js +4 -4
- package/lib/hooks/useConfig.js +4 -4
- package/lib/hooks/useGlobalIcon.js +4 -4
- package/lib/image/Image.js +4 -4
- package/lib/image/index.js +4 -4
- package/lib/image-viewer/ImageViewer.js +5 -5
- package/lib/image-viewer/ImageViewerMini.js +5 -5
- package/lib/image-viewer/ImageViewerModel.js +5 -5
- package/lib/image-viewer/hooks/useIconMap.js +4 -4
- package/lib/image-viewer/index.js +5 -5
- package/lib/index.js +18 -18
- package/lib/input/Input.js +4 -4
- package/lib/input/InputGroup.js +4 -4
- package/lib/input/index.js +4 -4
- package/lib/input-adornment/InputAdornment.js +4 -4
- package/lib/input-adornment/index.js +4 -4
- package/lib/input-number/InputNumber.js +4 -4
- package/lib/input-number/index.js +4 -4
- package/lib/input-number/useInputNumber.js +4 -4
- package/lib/layout/Aside.js +4 -4
- package/lib/layout/Layout.js +4 -4
- package/lib/layout/index.js +4 -4
- package/lib/link/Link.js +4 -4
- package/lib/link/index.js +4 -4
- package/lib/list/List.js +4 -4
- package/lib/list/ListItem.js +4 -4
- package/lib/list/ListItemMeta.js +4 -4
- package/lib/list/index.js +4 -4
- package/lib/loading/Loading.js +4 -4
- package/lib/loading/gradient.js +4 -4
- package/lib/loading/index.js +4 -4
- package/lib/loading/plugin.js +4 -4
- package/lib/locale/LocalReceiver.js +4 -4
- package/lib/menu/HeadMenu.js +4 -4
- package/lib/menu/Menu.js +4 -4
- package/lib/menu/MenuGroup.js +4 -4
- package/lib/menu/MenuItem.js +4 -4
- package/lib/menu/SubMenu.js +4 -4
- package/lib/menu/index.js +4 -4
- package/lib/message/Message.js +4 -4
- package/lib/message/MessageClose.js +4 -4
- package/lib/message/MessageComponent.js +4 -4
- package/lib/message/MessageIcon.js +4 -4
- package/lib/message/index.js +4 -4
- package/lib/message/useMessageClass.js +4 -4
- package/lib/notification/Notification.js +5 -5
- package/lib/notification/NotificationList.js +5 -5
- package/lib/notification/NotificationPlugin.js +5 -5
- package/lib/notification/index.js +5 -5
- package/lib/pagination/Pagination.js +10 -10
- package/lib/pagination/PaginationMini.js +4 -4
- package/lib/pagination/hooks/useBoundaryJumper.js +4 -4
- package/lib/pagination/hooks/usePageNumber.js +4 -4
- package/lib/pagination/hooks/usePrevNextJumper.js +4 -4
- package/lib/pagination/hooks/useTotal.js +4 -4
- package/lib/pagination/index.js +10 -10
- package/lib/popconfirm/Popconfirm.js +4 -4
- package/lib/popconfirm/Popcontent.js +4 -4
- package/lib/popconfirm/index.js +4 -4
- package/lib/popup/Popup.js +4 -4
- package/lib/popup/index.js +4 -4
- package/lib/progress/Progress.js +4 -4
- package/lib/progress/index.js +4 -4
- package/lib/radio/Radio.js +5 -5
- package/lib/radio/RadioGroup.js +5 -5
- package/lib/radio/index.js +5 -5
- package/lib/range-input/RangeInput.js +4 -4
- package/lib/range-input/RangeInputPopup.js +4 -4
- package/lib/range-input/index.js +4 -4
- package/lib/rate/Rate.js +4 -4
- package/lib/rate/index.js +4 -4
- package/lib/select/base/Option.js +4 -4
- package/lib/select/base/OptionGroup.js +4 -4
- package/lib/select/base/PopupContent.js +4 -4
- package/lib/select/base/Select.js +15 -10
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/hooks/useOptions.js +4 -4
- package/lib/select/index.js +7 -7
- package/lib/select/util/helper.js +4 -4
- package/lib/select-input/SelectInput.js +7 -7
- package/lib/select-input/index.js +7 -7
- package/lib/select-input/useMultiple.js +4 -4
- package/lib/select-input/useSingle.js +7 -7
- package/lib/skeleton/Skeleton.js +4 -4
- package/lib/skeleton/index.js +4 -4
- package/lib/slider/Slider.js +4 -4
- package/lib/slider/SliderHandleButton.js +4 -4
- package/lib/slider/index.js +4 -4
- package/lib/space/Space.js +4 -4
- package/lib/space/index.js +4 -4
- package/lib/steps/StepItem.js +4 -4
- package/lib/steps/Steps.js +4 -4
- package/lib/steps/index.js +4 -4
- package/lib/sticky-tool/StickyItem.js +4 -4
- package/lib/sticky-tool/StickyTool.js +4 -4
- package/lib/sticky-tool/index.js +4 -4
- package/lib/swiper/Swiper.js +4 -4
- package/lib/swiper/SwiperItem.js +4 -4
- package/lib/swiper/index.js +4 -4
- package/lib/switch/Switch.js +8 -6
- package/lib/switch/Switch.js.map +1 -1
- package/lib/switch/index.js +4 -4
- package/lib/switch/type.d.ts +4 -1
- package/lib/table/BaseTable.js +10 -10
- package/lib/table/Cell.js +4 -4
- package/lib/table/EditableCell.js +7 -7
- package/lib/table/Ellipsis.js +4 -4
- package/lib/table/EnhancedTable.js +14 -14
- package/lib/table/FilterController.js +8 -8
- package/lib/table/PrimaryTable.js +13 -13
- package/lib/table/SorterButton.js +4 -4
- package/lib/table/TBody.js +7 -7
- package/lib/table/TFoot.js +4 -4
- package/lib/table/THead.js +4 -4
- package/lib/table/TR.js +4 -4
- package/lib/table/hooks/useAsyncLoading.js +4 -4
- package/lib/table/hooks/useClassName.js +4 -4
- package/lib/table/hooks/useColumnController.js +5 -5
- package/lib/table/hooks/useDragSort.js +4 -4
- package/lib/table/hooks/useEditableRow.js +3 -3
- package/lib/table/hooks/useFilter.js +8 -8
- package/lib/table/hooks/usePagination.js +10 -10
- package/lib/table/hooks/useRowExpand.js +4 -4
- package/lib/table/hooks/useRowSelect.js +6 -6
- package/lib/table/hooks/useSorter.js +4 -4
- package/lib/table/hooks/useStyle.js +4 -4
- package/lib/table/hooks/useTableHeader.js +4 -4
- package/lib/table/hooks/useTreeData.js +7 -7
- package/lib/table/index.js +14 -14
- package/lib/tabs/TabBar.js +4 -4
- package/lib/tabs/TabNav.js +4 -4
- package/lib/tabs/TabNavItem.js +4 -4
- package/lib/tabs/TabPanel.js +4 -4
- package/lib/tabs/Tabs.js +4 -4
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/useTabClass.js +4 -4
- package/lib/tag/CheckTag.js +4 -4
- package/lib/tag/Tag.js +4 -4
- package/lib/tag/index.js +4 -4
- package/lib/tag-input/TagInput.js +4 -4
- package/lib/tag-input/index.js +4 -4
- package/lib/tag-input/useTagList.js +4 -4
- package/lib/textarea/Textarea.js +4 -4
- package/lib/textarea/index.js +4 -4
- package/lib/time-picker/TimePicker.js +7 -7
- package/lib/time-picker/TimeRangePicker.js +4 -4
- package/lib/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/lib/time-picker/index.js +7 -7
- package/lib/time-picker/panel/SinglePanel.js +4 -4
- package/lib/time-picker/panel/TimePickerPanel.js +4 -4
- package/lib/timeline/Timeline.js +4 -4
- package/lib/timeline/TimelineItem.js +4 -4
- package/lib/timeline/index.js +4 -4
- package/lib/tooltip/Tooltip.js +4 -4
- package/lib/tooltip/TooltipLite.js +4 -4
- package/lib/tooltip/index.js +4 -4
- package/lib/transfer/Transfer.js +13 -13
- package/lib/transfer/TransferList.js +12 -12
- package/lib/transfer/index.js +13 -13
- package/lib/transfer/utils.js +3 -3
- package/lib/tree/Tree.js +13 -13
- package/lib/tree/TreeItem.js +5 -5
- package/lib/tree/index.js +13 -13
- package/lib/tree/useStore.js +11 -11
- package/lib/tree/useTreeConfig.js +4 -4
- package/lib/tree-select/SelectArrow.js +4 -4
- package/lib/tree-select/TreeSelect.js +13 -13
- package/lib/tree-select/index.js +13 -13
- package/lib/tree-select/useTreeSelectLocale.js +4 -4
- package/lib/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/lib/tree-select/useTreeSelectUtils.js +10 -10
- package/lib/upload/hooks/useUpload.js +4 -4
- package/lib/upload/index.js +5 -5
- package/lib/upload/themes/DraggerFile.js +5 -5
- package/lib/upload/themes/ImageCard.js +5 -5
- package/lib/upload/themes/MultipleFlowList.js +5 -5
- package/lib/upload/themes/NormalFile.js +4 -4
- package/lib/upload/upload.js +5 -5
- package/lib/watermark/Watermark.js +4 -4
- package/lib/watermark/index.js +4 -4
- package/package.json +2 -2
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v1.1.1
|
|
3
|
+
* (c) 2023 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var _baseSlice = require('./dep-c5e3ead1.js');
|
|
10
|
+
|
|
11
|
+
var baseSlice = _baseSlice._baseSlice;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Casts `array` to a slice if it's needed.
|
|
15
|
+
*
|
|
16
|
+
* @private
|
|
17
|
+
* @param {Array} array The array to inspect.
|
|
18
|
+
* @param {number} start The start position.
|
|
19
|
+
* @param {number} [end=array.length] The end position.
|
|
20
|
+
* @returns {Array} Returns the cast slice.
|
|
21
|
+
*/
|
|
22
|
+
function castSlice(array, start, end) {
|
|
23
|
+
var length = array.length;
|
|
24
|
+
end = end === undefined ? length : end;
|
|
25
|
+
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
26
|
+
}
|
|
27
|
+
var _castSlice = castSlice;
|
|
28
|
+
|
|
29
|
+
/** Used to compose unicode character classes. */
|
|
30
|
+
var rsAstralRange$1 = "\\ud800-\\udfff",
|
|
31
|
+
rsComboMarksRange$1 = "\\u0300-\\u036f",
|
|
32
|
+
reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f",
|
|
33
|
+
rsComboSymbolsRange$1 = "\\u20d0-\\u20ff",
|
|
34
|
+
rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
|
|
35
|
+
rsVarRange$1 = "\\ufe0e\\ufe0f";
|
|
36
|
+
|
|
37
|
+
/** Used to compose unicode capture groups. */
|
|
38
|
+
var rsZWJ$1 = "\\u200d";
|
|
39
|
+
|
|
40
|
+
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
|
41
|
+
var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Checks if `string` contains Unicode symbols.
|
|
45
|
+
*
|
|
46
|
+
* @private
|
|
47
|
+
* @param {string} string The string to inspect.
|
|
48
|
+
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
49
|
+
*/
|
|
50
|
+
function hasUnicode$1(string) {
|
|
51
|
+
return reHasUnicode.test(string);
|
|
52
|
+
}
|
|
53
|
+
var _hasUnicode = hasUnicode$1;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Converts an ASCII `string` to an array.
|
|
57
|
+
*
|
|
58
|
+
* @private
|
|
59
|
+
* @param {string} string The string to convert.
|
|
60
|
+
* @returns {Array} Returns the converted array.
|
|
61
|
+
*/
|
|
62
|
+
function asciiToArray$1(string) {
|
|
63
|
+
return string.split('');
|
|
64
|
+
}
|
|
65
|
+
var _asciiToArray = asciiToArray$1;
|
|
66
|
+
|
|
67
|
+
/** Used to compose unicode character classes. */
|
|
68
|
+
var rsAstralRange = "\\ud800-\\udfff",
|
|
69
|
+
rsComboMarksRange = "\\u0300-\\u036f",
|
|
70
|
+
reComboHalfMarksRange = "\\ufe20-\\ufe2f",
|
|
71
|
+
rsComboSymbolsRange = "\\u20d0-\\u20ff",
|
|
72
|
+
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
|
|
73
|
+
rsVarRange = "\\ufe0e\\ufe0f";
|
|
74
|
+
|
|
75
|
+
/** Used to compose unicode capture groups. */
|
|
76
|
+
var rsAstral = '[' + rsAstralRange + ']',
|
|
77
|
+
rsCombo = '[' + rsComboRange + ']',
|
|
78
|
+
rsFitz = "\\ud83c[\\udffb-\\udfff]",
|
|
79
|
+
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
80
|
+
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
81
|
+
rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}",
|
|
82
|
+
rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]",
|
|
83
|
+
rsZWJ = "\\u200d";
|
|
84
|
+
|
|
85
|
+
/** Used to compose unicode regexes. */
|
|
86
|
+
var reOptMod = rsModifier + '?',
|
|
87
|
+
rsOptVar = '[' + rsVarRange + ']?',
|
|
88
|
+
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
89
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
90
|
+
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
|
91
|
+
|
|
92
|
+
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
|
93
|
+
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Converts a Unicode `string` to an array.
|
|
97
|
+
*
|
|
98
|
+
* @private
|
|
99
|
+
* @param {string} string The string to convert.
|
|
100
|
+
* @returns {Array} Returns the converted array.
|
|
101
|
+
*/
|
|
102
|
+
function unicodeToArray$1(string) {
|
|
103
|
+
return string.match(reUnicode) || [];
|
|
104
|
+
}
|
|
105
|
+
var _unicodeToArray = unicodeToArray$1;
|
|
106
|
+
|
|
107
|
+
var asciiToArray = _asciiToArray,
|
|
108
|
+
hasUnicode = _hasUnicode,
|
|
109
|
+
unicodeToArray = _unicodeToArray;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Converts `string` to an array.
|
|
113
|
+
*
|
|
114
|
+
* @private
|
|
115
|
+
* @param {string} string The string to convert.
|
|
116
|
+
* @returns {Array} Returns the converted array.
|
|
117
|
+
*/
|
|
118
|
+
function stringToArray(string) {
|
|
119
|
+
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
120
|
+
}
|
|
121
|
+
var _stringToArray = stringToArray;
|
|
122
|
+
|
|
123
|
+
exports._castSlice = _castSlice;
|
|
124
|
+
exports._hasUnicode = _hasUnicode;
|
|
125
|
+
exports._stringToArray = _stringToArray;
|
|
126
|
+
//# sourceMappingURL=dep-3cbfdaa1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dep-3cbfdaa1.js","sources":["../../node_modules/lodash/_castSlice.js","../../node_modules/lodash/_hasUnicode.js","../../node_modules/lodash/_asciiToArray.js","../../node_modules/lodash/_unicodeToArray.js","../../node_modules/lodash/_stringToArray.js"],"sourcesContent":["var baseSlice = require('./_baseSlice');\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nmodule.exports = castSlice;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nmodule.exports = asciiToArray;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nmodule.exports = unicodeToArray;\n","var asciiToArray = require('./_asciiToArray'),\n hasUnicode = require('./_hasUnicode'),\n unicodeToArray = require('./_unicodeToArray');\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nmodule.exports = stringToArray;\n"],"names":["baseSlice","require$$0","castSlice","array","start","end","length","undefined","_castSlice","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsVarRange","rsZWJ","reHasUnicode","RegExp","hasUnicode","string","test","_hasUnicode","asciiToArray","split","_asciiToArray","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","reOptMod","rsOptVar","rsOptJoin","join","rsSeq","rsSymbol","reUnicode","unicodeToArray","match","_unicodeToArray","require$$1","require$$2","stringToArray","_stringToArray"],"mappings":";;;;;;;;;;AAAA,IAAIA,SAAS,GAAGC,qBAAuB,CAAA;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,SAASA,CAACC,KAAK,EAAEC,KAAK,EAAEC,GAAG,EAAE;AACpC,EAAA,IAAIC,MAAM,GAAGH,KAAK,CAACG,MAAM,CAAA;AACzBD,EAAAA,GAAG,GAAGA,GAAG,KAAKE,SAAS,GAAGD,MAAM,GAAGD,GAAG,CAAA;AACtC,EAAA,OAAQ,CAACD,KAAK,IAAIC,GAAG,IAAIC,MAAM,GAAIH,KAAK,GAAGH,SAAS,CAACG,KAAK,EAAEC,KAAK,EAAEC,GAAG,CAAC,CAAA;AACzE,CAAA;AAEAG,IAAAA,UAAc,GAAGN;;;AChBjB,IAAIO,eAAa,GAAG,iBAAiB;AACjCC,EAAAA,mBAAiB,GAAG,iBAAiB;AACrCC,EAAAA,uBAAqB,GAAG,iBAAiB;AACzCC,EAAAA,qBAAmB,GAAG,iBAAiB;AACvCC,EAAAA,cAAY,GAAGH,mBAAiB,GAAGC,uBAAqB,GAAGC,qBAAmB;AAC9EE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@@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v1.0.4
|
|
3
|
+
* (c) 2023 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var isObject$1 = require('./dep-226175a4.js');
|
|
10
|
+
var _baseGetTag = require('./dep-4e0e0ffa.js');
|
|
11
|
+
var toNumber$1 = require('./dep-1663b0df.js');
|
|
12
|
+
|
|
13
|
+
var root = _baseGetTag._root;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
17
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
18
|
+
*
|
|
19
|
+
* @static
|
|
20
|
+
* @memberOf _
|
|
21
|
+
* @since 2.4.0
|
|
22
|
+
* @category Date
|
|
23
|
+
* @returns {number} Returns the timestamp.
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* _.defer(function(stamp) {
|
|
27
|
+
* console.log(_.now() - stamp);
|
|
28
|
+
* }, _.now());
|
|
29
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
30
|
+
*/
|
|
31
|
+
var now$1 = function now() {
|
|
32
|
+
return root.Date.now();
|
|
33
|
+
};
|
|
34
|
+
var now_1 = now$1;
|
|
35
|
+
|
|
36
|
+
var isObject = isObject$1.isObject_1,
|
|
37
|
+
now = now_1,
|
|
38
|
+
toNumber = toNumber$1.toNumber_1;
|
|
39
|
+
|
|
40
|
+
/** Error message constants. */
|
|
41
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
42
|
+
|
|
43
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
44
|
+
var nativeMax = Math.max,
|
|
45
|
+
nativeMin = Math.min;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
49
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
50
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
51
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
52
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
53
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
54
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
55
|
+
* calls to the debounced function return the result of the last `func`
|
|
56
|
+
* invocation.
|
|
57
|
+
*
|
|
58
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
59
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
60
|
+
* is invoked more than once during the `wait` timeout.
|
|
61
|
+
*
|
|
62
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
63
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
64
|
+
*
|
|
65
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
66
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
67
|
+
*
|
|
68
|
+
* @static
|
|
69
|
+
* @memberOf _
|
|
70
|
+
* @since 0.1.0
|
|
71
|
+
* @category Function
|
|
72
|
+
* @param {Function} func The function to debounce.
|
|
73
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
74
|
+
* @param {Object} [options={}] The options object.
|
|
75
|
+
* @param {boolean} [options.leading=false]
|
|
76
|
+
* Specify invoking on the leading edge of the timeout.
|
|
77
|
+
* @param {number} [options.maxWait]
|
|
78
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
79
|
+
* @param {boolean} [options.trailing=true]
|
|
80
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
81
|
+
* @returns {Function} Returns the new debounced function.
|
|
82
|
+
* @example
|
|
83
|
+
*
|
|
84
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
85
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
86
|
+
*
|
|
87
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
88
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
89
|
+
* 'leading': true,
|
|
90
|
+
* 'trailing': false
|
|
91
|
+
* }));
|
|
92
|
+
*
|
|
93
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
94
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
95
|
+
* var source = new EventSource('/stream');
|
|
96
|
+
* jQuery(source).on('message', debounced);
|
|
97
|
+
*
|
|
98
|
+
* // Cancel the trailing debounced invocation.
|
|
99
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
100
|
+
*/
|
|
101
|
+
function debounce(func, wait, options) {
|
|
102
|
+
var lastArgs,
|
|
103
|
+
lastThis,
|
|
104
|
+
maxWait,
|
|
105
|
+
result,
|
|
106
|
+
timerId,
|
|
107
|
+
lastCallTime,
|
|
108
|
+
lastInvokeTime = 0,
|
|
109
|
+
leading = false,
|
|
110
|
+
maxing = false,
|
|
111
|
+
trailing = true;
|
|
112
|
+
if (typeof func != 'function') {
|
|
113
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
114
|
+
}
|
|
115
|
+
wait = toNumber(wait) || 0;
|
|
116
|
+
if (isObject(options)) {
|
|
117
|
+
leading = !!options.leading;
|
|
118
|
+
maxing = 'maxWait' in options;
|
|
119
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
120
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
121
|
+
}
|
|
122
|
+
function invokeFunc(time) {
|
|
123
|
+
var args = lastArgs,
|
|
124
|
+
thisArg = lastThis;
|
|
125
|
+
lastArgs = lastThis = undefined;
|
|
126
|
+
lastInvokeTime = time;
|
|
127
|
+
result = func.apply(thisArg, args);
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
function leadingEdge(time) {
|
|
131
|
+
// Reset any `maxWait` timer.
|
|
132
|
+
lastInvokeTime = time;
|
|
133
|
+
// Start the timer for the trailing edge.
|
|
134
|
+
timerId = setTimeout(timerExpired, wait);
|
|
135
|
+
// Invoke the leading edge.
|
|
136
|
+
return leading ? invokeFunc(time) : result;
|
|
137
|
+
}
|
|
138
|
+
function remainingWait(time) {
|
|
139
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
140
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
141
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
142
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
143
|
+
}
|
|
144
|
+
function shouldInvoke(time) {
|
|
145
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
146
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
147
|
+
|
|
148
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
149
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
150
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
151
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
152
|
+
}
|
|
153
|
+
function timerExpired() {
|
|
154
|
+
var time = now();
|
|
155
|
+
if (shouldInvoke(time)) {
|
|
156
|
+
return trailingEdge(time);
|
|
157
|
+
}
|
|
158
|
+
// Restart the timer.
|
|
159
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
160
|
+
}
|
|
161
|
+
function trailingEdge(time) {
|
|
162
|
+
timerId = undefined;
|
|
163
|
+
|
|
164
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
165
|
+
// debounced at least once.
|
|
166
|
+
if (trailing && lastArgs) {
|
|
167
|
+
return invokeFunc(time);
|
|
168
|
+
}
|
|
169
|
+
lastArgs = lastThis = undefined;
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
function cancel() {
|
|
173
|
+
if (timerId !== undefined) {
|
|
174
|
+
clearTimeout(timerId);
|
|
175
|
+
}
|
|
176
|
+
lastInvokeTime = 0;
|
|
177
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
178
|
+
}
|
|
179
|
+
function flush() {
|
|
180
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
181
|
+
}
|
|
182
|
+
function debounced() {
|
|
183
|
+
var time = now(),
|
|
184
|
+
isInvoking = shouldInvoke(time);
|
|
185
|
+
lastArgs = arguments;
|
|
186
|
+
lastThis = this;
|
|
187
|
+
lastCallTime = time;
|
|
188
|
+
if (isInvoking) {
|
|
189
|
+
if (timerId === undefined) {
|
|
190
|
+
return leadingEdge(lastCallTime);
|
|
191
|
+
}
|
|
192
|
+
if (maxing) {
|
|
193
|
+
// Handle invocations in a tight loop.
|
|
194
|
+
clearTimeout(timerId);
|
|
195
|
+
timerId = setTimeout(timerExpired, wait);
|
|
196
|
+
return invokeFunc(lastCallTime);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (timerId === undefined) {
|
|
200
|
+
timerId = setTimeout(timerExpired, wait);
|
|
201
|
+
}
|
|
202
|
+
return result;
|
|
203
|
+
}
|
|
204
|
+
debounced.cancel = cancel;
|
|
205
|
+
debounced.flush = flush;
|
|
206
|
+
return debounced;
|
|
207
|
+
}
|
|
208
|
+
var debounce_1 = debounce;
|
|
209
|
+
|
|
210
|
+
exports.debounce_1 = debounce_1;
|
|
211
|
+
//# sourceMappingURL=dep-3d9b6af3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dep-3d9b6af3.js","sources":["../../node_modules/lodash/now.js","../../node_modules/lodash/debounce.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"names":["root","require$$0","now","Date","now_1","isObject","require$$1","toNumber","require$$2","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","debounce_1"],"mappings":";;;;;;;;;;;;AAAA,IAAIA,IAAI,GAAGC,iBAAkB,CAAA;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,KAAG,GAAG,SAANA,GAAG,GAAc;AACnB,EAAA,OAAOF,IAAI,CAACG,IAAI,CAACD,GAAG,EAAE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A,UAAU,GAAGN,YAAY,CAACZ,IAAI,CAAC,CAAA;AAEnCZ,IAAAA,QAAQ,GAAG+B,SAAS,CAAA;AACpB9B,IAAAA,QAAQ,GAAG,IAAI,CAAA;AACfI,IAAAA,YAAY,GAAGO,IAAI,CAAA;AAEnB,IAAA,IAAIkB,UAAU,EAAE;MACd,IAAI1B,OAAO,KAAKW,SAAS,EAAE;QACzB,OAAOE,WAAW,CAACZ,YAAY,CAAC,CAAA;AACjC,OAAA;AACD,MAAA,IAAIG,MAAM,EAAE;AAClB;QACQmB,YAAY,CAACvB,OAAO,CAAC,CAAA;AACrBA,QAAAA,OAAO,GAAGc,UAAU,CAACC,YAAY,EAAErB,IAAI,CAAC,CAAA;QACxC,OAAOa,UAAU,CAACN,YAAY,CAAC,CAAA;AAChC,OAAA;AACF,KAAA;IACD,IAAID,OAAO,KAAKW,SAAS,EAAE;AACzBX,MAAAA,OAAO,GAAGc,UAAU,CAACC,YAAY,EAAErB,IAAI,CAAC,CAAA;AACzC,KAAA;AACD,IAAA,OAAOK,MAAM,CAAA;AACd,GAAA;EACD0B,SAAS,CAACH,MAAM,GAAGA,MAAM,CAAA;EACzBG,SAAS,CAACD,KAAK,GAAGA,KAAK,CAAA;AACvB,EAAA,OAAOC,SAAS,CAAA;AAClB,CAAA;AAEAG,IAAAA,UAAc,GAAGpC;;;;"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
var _cacheHas = require('./dep-34fd0cce.js');
|
|
10
10
|
var toString = require('./dep-8969dbab.js');
|
|
11
11
|
var _baseUnary = require('./dep-cc729c2f.js');
|
|
12
|
-
var _flatRest = require('./dep-
|
|
12
|
+
var _flatRest = require('./dep-df31fbac.js');
|
|
13
13
|
var _baseRest = require('./dep-8ff5b4dc.js');
|
|
14
14
|
|
|
15
15
|
var SetCache = _cacheHas._SetCache,
|
|
@@ -106,4 +106,4 @@ var difference = baseRest(function (array, values) {
|
|
|
106
106
|
var difference_1 = difference;
|
|
107
107
|
|
|
108
108
|
exports.difference_1 = difference_1;
|
|
109
|
-
//# sourceMappingURL=dep-
|
|
109
|
+
//# sourceMappingURL=dep-3db154de.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dep-
|
|
1
|
+
{"version":3,"file":"dep-3db154de.js","sources":["../../node_modules/lodash/_baseDifference.js","../../node_modules/lodash/difference.js"],"sourcesContent":["var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n"],"names":["SetCache","require$$0","arrayIncludes","require$$1","arrayIncludesWith","require$$2","arrayMap","require$$3","baseUnary","require$$4","cacheHas","require$$5","LARGE_ARRAY_SIZE","baseDifference","array","values","iteratee","comparator","index","includes","isCommon","length","result","valuesLength","outer","value","computed","valuesIndex","push","_baseDifference","baseFlatten","baseRest","isArrayLikeObject","difference","difference_1"],"mappings":";;;;;;;;;;;;;;AAAA,IAAIA,QAAQ,GAAGC,mBAAsB;AACjCC,EAAAA,aAAa,GAAGC,wBAA2B;AAC3CC,EAAAA,iBAAiB,GAAGC,4BAA+B;AACnDC,EAAAA,QAAQ,GAAGC,kBAAsB;AACjCC,EAAAA,SAAS,GAAGC,qBAAuB;AACnCC,EAAAA,QAAQ,GAAGC,mBAAsB,CAAA;;AAErC;AACA,IAAIC,gBAAgB,GAAG,GAAG,CAAA;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAcA,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAE;EAC3D,IAAIC,KAAK,GAAG,CAAC,CAAC;AACVC,IAAAA,QAAQ,GAAGjB,aAAa;AACx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;AACDF,MAAAA,MAAM,CAACM,IAAI,CAACH,KAAK,CAAC,CAAA;KACnB,MACI,IAAI,CAACN,QAAQ,CAACJ,MAAM,EAAEW,QAAQ,EAAET,UAAU,CAAC,EAAE;AAChDK,MAAAA,MAAM,CAACM,IAAI,CAACH,KAAK,CAAC,CAAA;AACnB,KAAA;AACF,GAAA;AACD,EAAA,OAAOH,MAAM,CAAA;AACf,CAAA;AAEA,IAAAO,eAAc,GAAGhB,gBAAc;;AClE/B,IAAIA,cAAc,GAAGZ,eAA4B;AAC7C6B,EAAAA,WAAW,GAAG3B,sBAAyB;AACvC4B,EAAAA,QAAQ,GAAG1B,mBAAsB;AACjC2B,EAAAA,iBAAiB,GAAGzB,6BAA8B,CAAA;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI0B,UAAU,GAAGF,QAAQ,CAAC,UAASjB,KAAK,EAAEC,MAAM,EAAE;EAChD,OAAOiB,iBAAiB,CAAClB,KAAK,CAAC,GAC3BD,cAAc,CAACC,KAAK,EAAEgB,WAAW,CAACf,MAAM,EAAE,CAAC,EAAEiB,iBAAiB,EAAE,IAAI,CAAC,CAAC,GACtE,EAAE,CAAA;AACR,CAAC,CAAC,CAAA;AAEFE,IAAAA,YAAc,GAAGD;;;;"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v1.0.4
|
|
3
|
+
* (c) 2023 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var defineProperty = require('./dep-b3bd96b5.js');
|
|
10
|
+
var slicedToArray = require('./dep-2e54fd55.js');
|
|
11
|
+
var objectWithoutProperties = require('./dep-6eb660e1.js');
|
|
12
|
+
var React = require('react');
|
|
13
|
+
var classNames = require('classnames');
|
|
14
|
+
var hooks_useConfig = require('../hooks/useConfig.js');
|
|
15
|
+
var _util_forwardRefWithStatics = require('../_util/forwardRefWithStatics.js');
|
|
16
|
+
var _util_useCommonClassName = require('../_util/useCommonClassName.js');
|
|
17
|
+
var _util_composeRefs = require('../_util/composeRefs.js');
|
|
18
|
+
var avatar_AvatarContext = require('../avatar/AvatarContext.js');
|
|
19
|
+
var avatar_defaultProps = require('../avatar/defaultProps.js');
|
|
20
|
+
var hooks_useResizeObserver = require('../hooks/useResizeObserver.js');
|
|
21
|
+
var image_index = require('../image/index.js');
|
|
22
|
+
var _util_parseTNode = require('../_util/parseTNode.js');
|
|
23
|
+
|
|
24
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
|
+
|
|
26
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
28
|
+
|
|
29
|
+
var _excluded$1 = ["className", "cascading", "collapseAvatar", "max", "size", "children"];
|
|
30
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
32
|
+
var AvatarGroup = function AvatarGroup(props) {
|
|
33
|
+
var _classNames;
|
|
34
|
+
var _useConfig = hooks_useConfig["default"](),
|
|
35
|
+
classPrefix = _useConfig.classPrefix;
|
|
36
|
+
var preClass = "".concat(classPrefix, "-avatar");
|
|
37
|
+
var className = props.className,
|
|
38
|
+
cascading = props.cascading,
|
|
39
|
+
collapseAvatar = props.collapseAvatar,
|
|
40
|
+
max = props.max,
|
|
41
|
+
size = props.size,
|
|
42
|
+
children = props.children,
|
|
43
|
+
avatarGroupProps = objectWithoutProperties._objectWithoutProperties(props, _excluded$1);
|
|
44
|
+
var childrenList = React__default["default"].Children.toArray(children);
|
|
45
|
+
var allChildrenList;
|
|
46
|
+
if (childrenList.length > 0) {
|
|
47
|
+
allChildrenList = childrenList.map(function (child, index) {
|
|
48
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$1({
|
|
49
|
+
key: "avatar-group-item-".concat(index)
|
|
50
|
+
}, child.props));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
var groupClass = classNames__default["default"]("".concat(preClass, "-group"), className, (_classNames = {}, defineProperty._defineProperty(_classNames, "".concat(preClass, "--offset-right"), cascading === "right-up"), defineProperty._defineProperty(_classNames, "".concat(preClass, "--offset-left"), cascading === "left-up"), _classNames));
|
|
54
|
+
var childrenCount = childrenList.length;
|
|
55
|
+
if (max && childrenCount > max) {
|
|
56
|
+
var showList = allChildrenList.slice(0, max);
|
|
57
|
+
var ellipsisAvatar = /* @__PURE__ */React__default["default"].createElement(Avatar, {
|
|
58
|
+
className: "".concat(preClass, "__collapse")
|
|
59
|
+
}, _util_parseTNode["default"](collapseAvatar) || "+".concat(childrenCount - max));
|
|
60
|
+
showList.push( /* @__PURE__ */React__default["default"].createElement(React.Fragment, {
|
|
61
|
+
key: "t-avatar__collapse"
|
|
62
|
+
}, ellipsisAvatar));
|
|
63
|
+
return /* @__PURE__ */React__default["default"].createElement(avatar_AvatarContext.AvatarContextProvider, {
|
|
64
|
+
size: size
|
|
65
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
66
|
+
className: groupClass
|
|
67
|
+
}, showList));
|
|
68
|
+
}
|
|
69
|
+
return /* @__PURE__ */React__default["default"].createElement(avatar_AvatarContext.AvatarContextProvider, {
|
|
70
|
+
size: size
|
|
71
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1({
|
|
72
|
+
className: groupClass
|
|
73
|
+
}, avatarGroupProps), allChildrenList));
|
|
74
|
+
};
|
|
75
|
+
AvatarGroup.displayName = "AvatarGroup";
|
|
76
|
+
AvatarGroup.defaultProps = avatar_defaultProps.avatarGroupDefaultProps;
|
|
77
|
+
|
|
78
|
+
var _excluded = ["alt", "hideOnLoadFailed", "icon", "image", "shape", "size", "onError", "children", "content", "style", "className"];
|
|
79
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
80
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
81
|
+
var Avatar = _util_forwardRefWithStatics["default"](function (props, ref) {
|
|
82
|
+
var _classNames;
|
|
83
|
+
var alt = props.alt,
|
|
84
|
+
hideOnLoadFailed = props.hideOnLoadFailed,
|
|
85
|
+
icon = props.icon,
|
|
86
|
+
image = props.image,
|
|
87
|
+
shape = props.shape,
|
|
88
|
+
avatarSize = props.size,
|
|
89
|
+
onError = props.onError,
|
|
90
|
+
children = props.children,
|
|
91
|
+
content = props.content,
|
|
92
|
+
style = props.style,
|
|
93
|
+
className = props.className,
|
|
94
|
+
avatarProps = objectWithoutProperties._objectWithoutProperties(props, _excluded);
|
|
95
|
+
var groupSize = React.useContext(avatar_AvatarContext["default"]);
|
|
96
|
+
var _useConfig = hooks_useConfig["default"](),
|
|
97
|
+
classPrefix = _useConfig.classPrefix;
|
|
98
|
+
var _useState = React.useState(1),
|
|
99
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
100
|
+
scale = _useState2[0],
|
|
101
|
+
setScale = _useState2[1];
|
|
102
|
+
var _useState3 = React.useState(true),
|
|
103
|
+
_useState4 = slicedToArray._slicedToArray(_useState3, 2),
|
|
104
|
+
isImgExist = _useState4[0],
|
|
105
|
+
setIsImgExist = _useState4[1];
|
|
106
|
+
var avatarRef = React.useRef(null);
|
|
107
|
+
var avatarChildrenRef = React.useRef(null);
|
|
108
|
+
var size = avatarSize === void 0 ? groupSize : avatarSize;
|
|
109
|
+
var gap = 4;
|
|
110
|
+
var handleScale = function handleScale() {
|
|
111
|
+
if (!avatarChildrenRef.current || !avatarRef.current) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
var childrenWidth = avatarChildrenRef.current.offsetWidth;
|
|
115
|
+
var avatarWidth = avatarRef.current.offsetWidth;
|
|
116
|
+
if (childrenWidth !== 0 && avatarWidth !== 0) {
|
|
117
|
+
if (gap * 2 < avatarWidth) {
|
|
118
|
+
setScale(avatarWidth - gap * 2 < childrenWidth ? (avatarWidth - gap * 2) / childrenWidth : 1);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
hooks_useResizeObserver["default"](avatarChildrenRef.current, handleScale);
|
|
123
|
+
var handleImgLoadError = function handleImgLoadError(ctx) {
|
|
124
|
+
onError === null || onError === void 0 ? void 0 : onError(ctx);
|
|
125
|
+
!hideOnLoadFailed && setIsImgExist(false);
|
|
126
|
+
};
|
|
127
|
+
React.useEffect(function () {
|
|
128
|
+
setIsImgExist(true);
|
|
129
|
+
setScale(1);
|
|
130
|
+
}, [props.image]);
|
|
131
|
+
React.useEffect(function () {
|
|
132
|
+
handleScale();
|
|
133
|
+
}, []);
|
|
134
|
+
var _useCommonClassName = _util_useCommonClassName["default"](),
|
|
135
|
+
SIZE = _useCommonClassName.SIZE;
|
|
136
|
+
var numSizeStyle = size && !SIZE[size] ? {
|
|
137
|
+
width: size,
|
|
138
|
+
height: size,
|
|
139
|
+
fontSize: "".concat(Number.parseInt(size, 10) / 2, "px")
|
|
140
|
+
} : {};
|
|
141
|
+
var imageStyle = size && !SIZE[size] ? {
|
|
142
|
+
width: size,
|
|
143
|
+
height: size
|
|
144
|
+
} : {};
|
|
145
|
+
var preClass = "".concat(classPrefix, "-avatar");
|
|
146
|
+
var avatarClass = classNames__default["default"](preClass, className, (_classNames = {}, defineProperty._defineProperty(_classNames, SIZE[size], !!SIZE[size]), defineProperty._defineProperty(_classNames, "".concat(preClass, "--").concat(shape), !!shape), defineProperty._defineProperty(_classNames, "".concat(preClass, "__icon"), !!icon), _classNames));
|
|
147
|
+
var renderChildren;
|
|
148
|
+
if (image && isImgExist) {
|
|
149
|
+
renderChildren = /* @__PURE__ */React__default["default"].createElement(image_index.Image, _objectSpread({
|
|
150
|
+
src: image,
|
|
151
|
+
alt: alt,
|
|
152
|
+
style: imageStyle,
|
|
153
|
+
onError: handleImgLoadError
|
|
154
|
+
}, props.imageProps));
|
|
155
|
+
} else if (icon) {
|
|
156
|
+
renderChildren = icon;
|
|
157
|
+
} else {
|
|
158
|
+
var childrenStyle = {
|
|
159
|
+
transform: "scale(".concat(scale, ")")
|
|
160
|
+
};
|
|
161
|
+
renderChildren = /* @__PURE__ */React__default["default"].createElement("span", {
|
|
162
|
+
ref: _util_composeRefs["default"](ref, avatarChildrenRef),
|
|
163
|
+
style: childrenStyle
|
|
164
|
+
}, children || content);
|
|
165
|
+
}
|
|
166
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread({
|
|
167
|
+
ref: _util_composeRefs["default"](ref, avatarRef),
|
|
168
|
+
className: avatarClass,
|
|
169
|
+
style: _objectSpread(_objectSpread({}, numSizeStyle), style)
|
|
170
|
+
}, avatarProps), renderChildren);
|
|
171
|
+
}, {
|
|
172
|
+
Group: AvatarGroup
|
|
173
|
+
});
|
|
174
|
+
Avatar.displayName = "Avatar";
|
|
175
|
+
Avatar.defaultProps = avatar_defaultProps.avatarDefaultProps;
|
|
176
|
+
|
|
177
|
+
exports.Avatar = Avatar;
|
|
178
|
+
exports.AvatarGroup = AvatarGroup;
|
|
179
|
+
//# sourceMappingURL=dep-3fd6430b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dep-3fd6430b.js","sources":["../../src/avatar/AvatarGroup.tsx","../../src/avatar/Avatar.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport classNames from 'classnames';\nimport Avatar from './Avatar';\nimport useConfig from '../hooks/useConfig';\nimport { AvatarContextProvider } from './AvatarContext';\nimport { TdAvatarGroupProps } from './type';\nimport { StyledProps } from '../common';\nimport { avatarGroupDefaultProps } from './defaultProps';\nimport parseTNode from '../_util/parseTNode';\n\nexport interface AvatarGroupProps extends TdAvatarGroupProps, StyledProps {\n children?: React.ReactNode;\n}\nconst AvatarGroup = (props: AvatarGroupProps) => {\n const { classPrefix } = useConfig();\n const preClass = `${classPrefix}-avatar`;\n const { className, cascading, collapseAvatar, max, size, children, ...avatarGroupProps } = props;\n\n const childrenList = React.Children.toArray(children);\n let allChildrenList;\n if (childrenList.length > 0) {\n allChildrenList = childrenList.map((child: JSX.Element, index: number) =>\n React.cloneElement(child, { key: `avatar-group-item-${index}`, ...child.props }),\n );\n }\n const groupClass = classNames(`${preClass}-group`, className, {\n [`${preClass}--offset-right`]: cascading === 'right-up',\n [`${preClass}--offset-left`]: cascading === 'left-up',\n });\n\n const childrenCount = childrenList.length;\n if (max && childrenCount > max) {\n const showList = allChildrenList.slice(0, max);\n const ellipsisAvatar = (\n <Avatar className={`${preClass}__collapse`}>{parseTNode(collapseAvatar) || `+${childrenCount - max}`}</Avatar>\n );\n showList.push(<Fragment key=\"t-avatar__collapse\">{ellipsisAvatar}</Fragment>);\n return (\n <AvatarContextProvider size={size}>\n <div className={groupClass}>{showList}</div>\n </AvatarContextProvider>\n );\n }\n return (\n <AvatarContextProvider size={size}>\n <div className={groupClass} {...avatarGroupProps}>\n {allChildrenList}\n </div>\n </AvatarContextProvider>\n );\n};\n\nAvatarGroup.displayName = 'AvatarGroup';\nAvatarGroup.defaultProps = avatarGroupDefaultProps;\n\nexport default AvatarGroup;\n","import React, { useRef, useState, useEffect, useContext, Ref } from 'react';\nimport classNames from 'classnames';\nimport useConfig from '../hooks/useConfig';\nimport forwardRefWithStatics from '../_util/forwardRefWithStatics';\nimport useCommonClassName from '../_util/useCommonClassName';\nimport composeRefs from '../_util/composeRefs';\nimport { TdAvatarProps } from './type';\nimport { StyledProps } from '../common';\nimport AvatarContext from './AvatarContext';\nimport AvatarGroup from './AvatarGroup';\nimport { avatarDefaultProps } from './defaultProps';\nimport useResizeObserver from '../hooks/useResizeObserver';\nimport Image, { ImageProps } from '../image';\n\nexport interface AvatarProps extends TdAvatarProps, StyledProps {\n children?: React.ReactNode;\n}\n\nconst Avatar = forwardRefWithStatics(\n (props: AvatarProps, ref: Ref<HTMLElement>) => {\n const {\n alt,\n hideOnLoadFailed,\n icon,\n image,\n shape,\n size: avatarSize,\n onError,\n children,\n content,\n style,\n className,\n ...avatarProps\n } = props;\n const groupSize = useContext(AvatarContext);\n\n const { classPrefix } = useConfig();\n const [scale, setScale] = useState(1);\n const [isImgExist, setIsImgExist] = useState(true);\n const avatarRef = useRef<HTMLElement>(null);\n const avatarChildrenRef = useRef<HTMLElement>(null);\n const size = avatarSize === undefined ? groupSize : avatarSize;\n const gap = 4;\n const handleScale = () => {\n if (!avatarChildrenRef.current || !avatarRef.current) {\n return;\n }\n const childrenWidth = avatarChildrenRef.current.offsetWidth;\n const avatarWidth = avatarRef.current.offsetWidth;\n\n if (childrenWidth !== 0 && avatarWidth !== 0) {\n if (gap * 2 < avatarWidth) {\n setScale(avatarWidth - gap * 2 < childrenWidth ? (avatarWidth - gap * 2) / childrenWidth : 1);\n }\n }\n };\n useResizeObserver(avatarChildrenRef.current, handleScale);\n\n const handleImgLoadError: ImageProps['onError'] = (ctx) => {\n onError?.(ctx);\n !hideOnLoadFailed && setIsImgExist(false);\n };\n\n useEffect(() => {\n setIsImgExist(true);\n setScale(1);\n }, [props.image]);\n\n useEffect(() => {\n handleScale();\n }, []);\n\n const { SIZE } = useCommonClassName();\n const numSizeStyle: React.CSSProperties =\n size && !SIZE[size]\n ? {\n width: size,\n height: size,\n fontSize: `${Number.parseInt(size, 10) / 2}px`,\n }\n : {};\n const imageStyle: React.CSSProperties =\n size && !SIZE[size]\n ? {\n width: size,\n height: size,\n }\n : {};\n\n const preClass = `${classPrefix}-avatar`;\n\n const avatarClass = classNames(preClass, className, {\n [SIZE[size]]: !!SIZE[size],\n [`${preClass}--${shape}`]: !!shape,\n [`${preClass}__icon`]: !!icon,\n });\n let renderChildren;\n if (image && isImgExist) {\n renderChildren = (\n <Image src={image} alt={alt} style={imageStyle} onError={handleImgLoadError} {...props.imageProps} />\n );\n } else if (icon) {\n renderChildren = icon;\n } else {\n const childrenStyle: React.CSSProperties = {\n transform: `scale(${scale})`,\n };\n renderChildren = (\n <span ref={composeRefs(ref, avatarChildrenRef)} style={childrenStyle}>\n {children || content}\n </span>\n );\n }\n return (\n <div\n ref={composeRefs(ref, avatarRef) as any}\n className={avatarClass}\n style={{ ...numSizeStyle, ...style }}\n {...avatarProps}\n >\n {renderChildren}\n </div>\n );\n },\n { Group: AvatarGroup },\n);\n\nAvatar.displayName = 'Avatar';\nAvatar.defaultProps = avatarDefaultProps;\n\nexport default Avatar;\n"],"names":["AvatarGroup","props","useConfig","classPrefix","preClass","className","cascading","collapseAvatar","max","size","children","avatarGroupProps","_excluded","childrenList","React","Children","toArray","allChildrenList","length","map","child","index","cloneElement","_objectSpread","key","groupClass","classNames","childrenCount","showList","slice","ellipsisAvatar","createElement","Avatar","parseTNode","push","Fragment","AvatarContextProvider","displayName","defaultProps","avatarGroupDefaultProps","forwardRefWithStatics","ref","alt","hideOnLoadFailed","icon","image","shape","avatarSize","onError","content","style","avatarProps","groupSize","useContext","AvatarContext","useState","_slicedToArray","scale","setScale","isImgExist","setIsImgExist","avatarRef","useRef","avatarChildrenRef","gap","handleScale","current","childrenWidth","offsetWidth","avatarWidth","useResizeObserver","handleImgLoadError","ctx","useEffect","useCommonClassName","SIZE","numSizeStyle","width","height","fontSize","Number","parseInt","imageStyle","avatarClass","_defineProperty","renderChildren","Image","src","imageProps","childrenStyle","transform","composeRefs","Group","avatarDefaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAMA,WAAA,GAAc,SAAdA,WAAA,CAAeC,KAA4B,EAAA;AAAA,EAAA,IAAA,WAAA,CAAA;AACzC,EAAA,IAAA,UAAA,GAAkBC,0BAAU,EAAA;AAA1BC,IAAAA,WAAY,cAAZA,WAAY,CAAA;EACpB,IAAMC,WAAcD,EAAAA,CAAAA,MAAAA,CAAAA,WAAA,EAAA,SAAA,CAAA,CAAA;AACd,EAAA,IAAEE,YAAmFJ,KAAA,CAAnFI;IAAWC,SAAW,GAA6DL,KAAA,CAAxEK,SAAW;IAAAC,cAAA,GAA6DN,KAAA,CAA7DM,cAAA;IAAgBC,MAA6CP,KAAA,CAA7CO;IAAKC,IAAM,GAAkCR,KAAA,CAAxCQ,IAAM;IAAAC,QAAA,GAAkCT,KAAA,CAAlCS,QAAA;AAAaC,IAAAA,oEAAqBV,KAAA,EAAAW,WAAA,CAAA,CAAA;EAE3F,IAAMC,YAAe,GAAAC,yBAAA,CAAMC,QAAS,CAAAC,OAAA,CAAQN,QAAQ,CAAA,CAAA;AAChD,EAAA,IAAAO,eAAA,CAAA;AACA,EAAA,IAAAJ,YAAA,CAAaK,SAAS,CAAG,EAAA;IAC3BD,eAAA,GAAkBJ,YAAa,CAAAM,GAAA,CAAI,UAACC,KAAA,EAAoBC,KACt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