@rockshin/tao-ui 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -7
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/component-manifest.json +1352 -24
- package/dist/components/affix/affix.css +11 -0
- package/dist/components/affix/affix.d.ts +21 -0
- package/dist/components/affix/affix.js +140 -0
- package/dist/components/alert/alert.css +1 -0
- package/dist/components/app/app-modals.d.ts +2 -0
- package/dist/components/app/app-modals.js +266 -0
- package/dist/components/app/app-notices.d.ts +6 -0
- package/dist/components/app/app-notices.js +334 -0
- package/dist/components/app/app-types.d.ts +154 -0
- package/dist/components/app/app-types.js +0 -0
- package/dist/components/app/app.css +221 -0
- package/dist/components/app/app.d.ts +7 -0
- package/dist/components/app/app.js +69 -0
- package/dist/components/auto-complete/auto-complete.css +35 -0
- package/dist/components/auto-complete/auto-complete.d.ts +47 -0
- package/dist/components/auto-complete/auto-complete.js +106 -0
- package/dist/components/avatar/avatar.css +95 -0
- package/dist/components/avatar/avatar.d.ts +50 -0
- package/dist/components/avatar/avatar.js +159 -0
- package/dist/components/badge/badge.css +165 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.js +412 -0
- package/dist/components/border-beam/border-beam.css +35 -0
- package/dist/components/border-beam/border-beam.d.ts +27 -0
- package/dist/components/border-beam/border-beam.js +215 -0
- package/dist/components/button/button.css +7 -0
- package/dist/components/calendar/calendar.css +126 -0
- package/dist/components/calendar/calendar.d.ts +56 -0
- package/dist/components/calendar/calendar.js +178 -0
- package/dist/components/card/card-tabs.d.ts +43 -0
- package/dist/components/card/card-tabs.js +455 -0
- package/dist/components/card/card.css +401 -0
- package/dist/components/card/card.d.ts +74 -0
- package/dist/components/card/card.js +362 -0
- package/dist/components/carousel/carousel.css +232 -0
- package/dist/components/carousel/carousel.d.ts +35 -0
- package/dist/components/carousel/carousel.js +248 -0
- package/dist/components/cascader/cascader.css +123 -0
- package/dist/components/cascader/cascader.d.ts +58 -0
- package/dist/components/cascader/cascader.js +132 -0
- package/dist/components/checkbox/checkbox.css +7 -0
- package/dist/components/collapse/collapse-panels.d.ts +4 -0
- package/dist/components/collapse/collapse-panels.js +413 -0
- package/dist/components/collapse/collapse.css +199 -0
- package/dist/components/collapse/collapse.d.ts +77 -0
- package/dist/components/{collapsible/collapsible.js → collapse/collapse.js} +26 -10
- package/dist/components/color-picker/color-picker-types.d.ts +78 -0
- package/dist/components/color-picker/color-picker-types.js +0 -0
- package/dist/components/color-picker/color-picker.css +265 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/color-picker.js +1049 -0
- package/dist/components/color-picker/color.d.ts +35 -0
- package/dist/components/color-picker/color.js +65 -0
- package/dist/components/date-picker/calendar/calendar-grid.js +4 -11
- package/dist/components/date-picker/calendar/calendar-header.js +76 -69
- package/dist/components/date-picker/calendar/month-grid.js +20 -31
- package/dist/components/date-picker/calendar/time-panel.js +46 -41
- package/dist/components/date-picker/date-picker.css +22 -56
- package/dist/components/date-picker/date-picker.d.ts +2 -0
- package/dist/components/date-picker/date-picker.js +14 -9
- package/dist/components/date-picker/presets.js +5 -2
- package/dist/components/date-picker/range-picker.d.ts +2 -0
- package/dist/components/date-picker/range-picker.js +16 -13
- package/dist/components/descriptions/descriptions.css +109 -0
- package/dist/components/descriptions/descriptions.d.ts +49 -0
- package/dist/components/descriptions/descriptions.js +189 -0
- package/dist/components/divider/divider.css +71 -0
- package/dist/components/divider/divider.d.ts +31 -0
- package/dist/components/divider/divider.js +83 -0
- package/dist/components/drawer/drawer.js +199 -184
- package/dist/components/empty/empty.css +35 -0
- package/dist/components/empty/empty.d.ts +25 -0
- package/dist/components/empty/empty.js +278 -0
- package/dist/components/float-button/float-button.css +146 -0
- package/dist/components/float-button/float-button.d.ts +67 -0
- package/dist/components/float-button/float-button.js +347 -0
- package/dist/components/form/form-item.d.ts +1 -1
- package/dist/components/form/form-item.js +1 -0
- package/dist/components/form/form.css +15 -0
- package/dist/components/form/form.js +4 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +109 -84
- package/dist/components/image/image-icons.d.ts +16 -0
- package/dist/components/image/image-icons.js +63 -0
- package/dist/components/image/image.css +253 -0
- package/dist/components/image/image.d.ts +75 -0
- package/dist/components/image/image.js +818 -0
- package/dist/components/input/base-input.d.ts +25 -0
- package/dist/components/input/base-input.js +104 -0
- package/dist/components/input/input-shared.css +75 -0
- package/dist/components/input/input-shared.d.ts +59 -0
- package/dist/components/input/input-shared.js +152 -0
- package/dist/components/input/input.css +107 -10
- package/dist/components/input/input.d.ts +12 -16
- package/dist/components/input/input.js +11 -154
- package/dist/components/input/otp.d.ts +29 -0
- package/dist/components/input/otp.js +335 -0
- package/dist/components/input/password.d.ts +12 -0
- package/dist/components/input/password.js +117 -0
- package/dist/components/input/search.d.ts +16 -0
- package/dist/components/input/search.js +99 -0
- package/dist/components/input-number/input-number.d.ts +2 -2
- package/dist/components/input-number/input-number.js +2 -2
- package/dist/components/list/list-pagination.css +127 -0
- package/dist/components/list/list-pagination.d.ts +38 -0
- package/dist/components/list/list-pagination.js +322 -0
- package/dist/components/list/list.css +225 -0
- package/dist/components/list/list.d.ts +77 -0
- package/dist/components/list/list.js +660 -0
- package/dist/components/listy/listy.css +55 -0
- package/dist/components/listy/listy.d.ts +20 -0
- package/dist/components/listy/listy.js +158 -0
- package/dist/components/masonry/masonry.css +13 -0
- package/dist/components/masonry/masonry.d.ts +39 -0
- package/dist/components/masonry/masonry.js +287 -0
- package/dist/components/mentions/mentions.css +179 -0
- package/dist/components/mentions/mentions.d.ts +48 -0
- package/dist/components/mentions/mentions.js +115 -0
- package/dist/components/modal/modal.css +1 -0
- package/dist/components/modal/modal.d.ts +30 -4
- package/dist/components/modal/modal.js +534 -241
- package/dist/components/pagination/pagination.css +10 -0
- package/dist/components/progress/progress.css +187 -0
- package/dist/components/progress/progress.d.ts +66 -0
- package/dist/components/progress/progress.js +567 -0
- package/dist/components/qr-code/qr-code.css +39 -0
- package/dist/components/qr-code/qr-code.d.ts +43 -0
- package/dist/components/qr-code/qr-code.js +286 -0
- package/dist/components/radio/radio.css +7 -0
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +78 -73
- package/dist/components/rate/rate.css +97 -0
- package/dist/components/rate/rate.d.ts +17 -0
- package/dist/components/rate/rate.js +172 -0
- package/dist/components/result/result.css +69 -0
- package/dist/components/result/result.d.ts +33 -0
- package/dist/components/result/result.js +320 -0
- package/dist/components/segmented/segmented.css +134 -0
- package/dist/components/segmented/segmented.d.ts +40 -0
- package/dist/components/segmented/segmented.js +169 -0
- package/dist/components/select/mobile-select.css +1 -16
- package/dist/components/select/mobile-select.d.ts +11 -4
- package/dist/components/select/mobile-select.js +172 -59
- package/dist/components/select/select-tags.js +178 -130
- package/dist/components/select/select-types.d.ts +53 -0
- package/dist/components/select/select.css +86 -8
- package/dist/components/select/select.js +59 -31
- package/dist/components/select/use-select-selection.js +44 -43
- package/dist/components/skeleton/skeleton.css +129 -0
- package/dist/components/skeleton/skeleton.d.ts +78 -0
- package/dist/components/skeleton/skeleton.js +457 -0
- package/dist/components/slider/slider.css +191 -0
- package/dist/components/slider/slider.d.ts +47 -0
- package/dist/components/slider/slider.js +310 -0
- package/dist/components/spinner/spinner.css +1 -1
- package/dist/components/statistic/statistic.css +34 -0
- package/dist/components/statistic/statistic.d.ts +46 -0
- package/dist/components/statistic/statistic.js +491 -0
- package/dist/components/steps/steps.css +53 -3
- package/dist/components/switch/switch-touch.css +20 -0
- package/dist/components/switch/switch.css +24 -13
- package/dist/components/switch/switch.js +8 -5
- package/dist/components/table/table.css +0 -5
- package/dist/components/table/table.js +21 -22
- package/dist/components/textarea/textarea.css +21 -1
- package/dist/components/textarea/textarea.d.ts +12 -6
- package/dist/components/textarea/textarea.js +120 -219
- package/dist/components/time-picker/time-picker.css +212 -0
- package/dist/components/time-picker/time-picker.d.ts +63 -0
- package/dist/components/time-picker/time-picker.js +356 -0
- package/dist/components/timeline/timeline.css +259 -0
- package/dist/components/timeline/timeline.d.ts +50 -0
- package/dist/components/timeline/timeline.js +140 -0
- package/dist/components/tour/tour.css +151 -0
- package/dist/components/tour/tour.d.ts +45 -0
- package/dist/components/tour/tour.js +575 -0
- package/dist/components/transfer/transfer-list.d.ts +2 -0
- package/dist/components/transfer/transfer-list.js +513 -0
- package/dist/components/transfer/transfer-parts.d.ts +3 -0
- package/dist/components/transfer/transfer-parts.js +163 -0
- package/dist/components/transfer/transfer-types.d.ts +163 -0
- package/dist/components/transfer/transfer-types.js +0 -0
- package/dist/components/transfer/transfer.css +226 -0
- package/dist/components/transfer/transfer.d.ts +13 -0
- package/dist/components/transfer/transfer.js +204 -0
- package/dist/components/tree/tree-check.d.ts +1 -0
- package/dist/components/tree/tree-check.js +36 -0
- package/dist/components/tree/tree.css +245 -0
- package/dist/components/tree/tree.d.ts +46 -0
- package/dist/components/tree/tree.js +388 -0
- package/dist/components/tree-select/select-engine.css +238 -0
- package/dist/components/tree-select/select-engine.d.ts +20 -0
- package/dist/components/tree-select/select-engine.js +46 -0
- package/dist/components/tree-select/tree-select.css +25 -0
- package/dist/components/tree-select/tree-select.d.ts +50 -0
- package/dist/components/tree-select/tree-select.js +130 -0
- package/dist/components/upload/upload-types.d.ts +135 -0
- package/dist/components/upload/upload-types.js +0 -0
- package/dist/components/upload/upload.css +166 -0
- package/dist/components/upload/upload.d.ts +12 -0
- package/dist/components/upload/upload.js +465 -0
- package/dist/components/watermark/watermark-context.d.ts +7 -0
- package/dist/components/watermark/watermark-context.js +20 -0
- package/dist/components/watermark/watermark.css +10 -0
- package/dist/components/watermark/watermark.d.ts +38 -0
- package/dist/components/watermark/watermark.js +436 -0
- package/dist/docs/component-docs.d.ts +35 -29
- package/dist/docs/component-docs.js +75 -3
- package/dist/docs/components/affix.doc.d.ts +14 -0
- package/dist/docs/components/affix.doc.js +22 -0
- package/dist/docs/components/app.doc.d.ts +18 -0
- package/dist/docs/components/app.doc.js +42 -0
- package/dist/docs/components/auto-complete.doc.d.ts +18 -0
- package/dist/docs/components/auto-complete.doc.js +49 -0
- package/dist/docs/components/avatar.doc.d.ts +17 -0
- package/dist/docs/components/avatar.doc.js +36 -0
- package/dist/docs/components/badge.doc.d.ts +17 -0
- package/dist/docs/components/badge.doc.js +34 -0
- package/dist/docs/components/border-beam.doc.d.ts +14 -0
- package/dist/docs/components/border-beam.doc.js +22 -0
- package/dist/docs/components/{collapsible.doc.d.ts → calendar.doc.d.ts} +1 -1
- package/dist/docs/components/calendar.doc.js +45 -0
- package/dist/docs/components/card.doc.d.ts +17 -0
- package/dist/docs/components/card.doc.js +39 -0
- package/dist/docs/components/carousel.doc.d.ts +15 -0
- package/dist/docs/components/carousel.doc.js +26 -0
- package/dist/docs/components/cascader.doc.d.ts +18 -0
- package/dist/docs/components/cascader.doc.js +54 -0
- package/dist/docs/components/collapse.doc.d.ts +18 -0
- package/dist/docs/components/collapse.doc.js +47 -0
- package/dist/docs/components/color-picker.doc.d.ts +18 -0
- package/dist/docs/components/color-picker.doc.js +46 -0
- package/dist/docs/components/descriptions.doc.d.ts +14 -0
- package/dist/docs/components/descriptions.doc.js +26 -0
- package/dist/docs/components/divider.doc.d.ts +17 -0
- package/dist/docs/components/divider.doc.js +34 -0
- package/dist/docs/components/empty.doc.d.ts +18 -0
- package/dist/docs/components/empty.doc.js +40 -0
- package/dist/docs/components/float-button.doc.d.ts +14 -0
- package/dist/docs/components/float-button.doc.js +23 -0
- package/dist/docs/components/form.doc.d.ts +1 -1
- package/dist/docs/components/image.doc.d.ts +15 -0
- package/dist/docs/components/image.doc.js +38 -0
- package/dist/docs/components/input.doc.js +11 -4
- package/dist/docs/components/list.doc.d.ts +18 -0
- package/dist/docs/components/list.doc.js +43 -0
- package/dist/docs/components/listy.doc.d.ts +18 -0
- package/dist/docs/components/listy.doc.js +40 -0
- package/dist/docs/components/masonry.doc.d.ts +14 -0
- package/dist/docs/components/masonry.doc.js +22 -0
- package/dist/docs/components/mentions.doc.d.ts +18 -0
- package/dist/docs/components/mentions.doc.js +43 -0
- package/dist/docs/components/modal.doc.js +3 -0
- package/dist/docs/components/progress.doc.d.ts +18 -0
- package/dist/docs/components/progress.doc.js +41 -0
- package/dist/docs/components/qr-code.doc.d.ts +18 -0
- package/dist/docs/components/qr-code.doc.js +41 -0
- package/dist/docs/components/rate.doc.d.ts +18 -0
- package/dist/docs/components/rate.doc.js +38 -0
- package/dist/docs/components/result.doc.d.ts +18 -0
- package/dist/docs/components/result.doc.js +42 -0
- package/dist/docs/components/segmented.doc.d.ts +14 -0
- package/dist/docs/components/segmented.doc.js +24 -0
- package/dist/docs/components/skeleton.doc.d.ts +18 -0
- package/dist/docs/components/skeleton.doc.js +42 -0
- package/dist/docs/components/slider.doc.d.ts +18 -0
- package/dist/docs/components/slider.doc.js +41 -0
- package/dist/docs/components/statistic.doc.d.ts +14 -0
- package/dist/docs/components/statistic.doc.js +27 -0
- package/dist/docs/components/textarea.doc.js +4 -2
- package/dist/docs/components/time-picker.doc.d.ts +18 -0
- package/dist/docs/components/time-picker.doc.js +45 -0
- package/dist/docs/components/timeline.doc.d.ts +14 -0
- package/dist/docs/components/timeline.doc.js +29 -0
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/docs/components/tour.doc.d.ts +15 -0
- package/dist/docs/components/tour.doc.js +36 -0
- package/dist/docs/components/transfer.doc.d.ts +18 -0
- package/dist/docs/components/transfer.doc.js +48 -0
- package/dist/docs/components/tree-select.doc.d.ts +18 -0
- package/dist/docs/components/tree-select.doc.js +55 -0
- package/dist/docs/components/tree.doc.d.ts +18 -0
- package/dist/docs/components/tree.doc.js +46 -0
- package/dist/docs/components/upload.doc.d.ts +18 -0
- package/dist/docs/components/upload.doc.js +43 -0
- package/dist/docs/components/watermark.doc.d.ts +14 -0
- package/dist/docs/components/watermark.doc.js +22 -0
- package/dist/entries/affix.d.ts +3 -0
- package/dist/entries/{collapsible.js → affix.js} +1 -1
- package/dist/entries/app.d.ts +3 -0
- package/dist/entries/app.js +4 -0
- package/dist/entries/auto-complete.d.ts +4 -0
- package/dist/entries/auto-complete.js +4 -0
- package/dist/entries/avatar.d.ts +3 -0
- package/dist/entries/avatar.js +4 -0
- package/dist/entries/badge.d.ts +3 -0
- package/dist/entries/badge.js +4 -0
- package/dist/entries/border-beam.d.ts +3 -0
- package/dist/entries/border-beam.js +4 -0
- package/dist/entries/calendar.d.ts +3 -0
- package/dist/entries/calendar.js +4 -0
- package/dist/entries/card.d.ts +3 -0
- package/dist/entries/card.js +4 -0
- package/dist/entries/carousel.d.ts +3 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/cascader.d.ts +4 -0
- package/dist/entries/cascader.js +4 -0
- package/dist/entries/collapse.d.ts +3 -0
- package/dist/entries/collapse.js +4 -0
- package/dist/entries/color-picker.d.ts +5 -0
- package/dist/entries/color-picker.js +4 -0
- package/dist/entries/descriptions.d.ts +3 -0
- package/dist/entries/descriptions.js +4 -0
- package/dist/entries/divider.d.ts +3 -0
- package/dist/entries/divider.js +4 -0
- package/dist/entries/empty.d.ts +3 -0
- package/dist/entries/empty.js +4 -0
- package/dist/entries/float-button.d.ts +3 -0
- package/dist/entries/float-button.js +4 -0
- package/dist/entries/image.d.ts +3 -0
- package/dist/entries/image.js +4 -0
- package/dist/entries/input.d.ts +1 -1
- package/dist/entries/list.d.ts +3 -0
- package/dist/entries/list.js +4 -0
- package/dist/entries/listy.d.ts +3 -0
- package/dist/entries/listy.js +4 -0
- package/dist/entries/masonry.d.ts +3 -0
- package/dist/entries/masonry.js +4 -0
- package/dist/entries/mentions.d.ts +4 -0
- package/dist/entries/mentions.js +4 -0
- package/dist/entries/progress.d.ts +3 -0
- package/dist/entries/progress.js +4 -0
- package/dist/entries/provider.d.ts +1 -1
- package/dist/entries/provider.js +1 -1
- package/dist/entries/qr-code.d.ts +4 -0
- package/dist/entries/qr-code.js +4 -0
- package/dist/entries/rate.d.ts +3 -0
- package/dist/entries/rate.js +4 -0
- package/dist/entries/result.d.ts +3 -0
- package/dist/entries/result.js +4 -0
- package/dist/entries/segmented.d.ts +3 -0
- package/dist/entries/segmented.js +4 -0
- package/dist/entries/skeleton.d.ts +3 -0
- package/dist/entries/skeleton.js +4 -0
- package/dist/entries/slider.d.ts +3 -0
- package/dist/entries/slider.js +4 -0
- package/dist/entries/statistic.d.ts +3 -0
- package/dist/entries/statistic.js +4 -0
- package/dist/entries/textarea.d.ts +1 -1
- package/dist/entries/time-picker.d.ts +3 -0
- package/dist/entries/time-picker.js +4 -0
- package/dist/entries/timeline.d.ts +3 -0
- package/dist/entries/timeline.js +4 -0
- package/dist/entries/tour.d.ts +3 -0
- package/dist/entries/tour.js +4 -0
- package/dist/entries/transfer.d.ts +3 -0
- package/dist/entries/transfer.js +4 -0
- package/dist/entries/tree-select.d.ts +4 -0
- package/dist/entries/tree-select.js +4 -0
- package/dist/entries/tree.d.ts +3 -0
- package/dist/entries/tree.js +4 -0
- package/dist/entries/upload.d.ts +4 -0
- package/dist/entries/upload.js +4 -0
- package/dist/entries/util.d.ts +1 -0
- package/dist/entries/util.js +1 -0
- package/dist/entries/watermark.d.ts +3 -0
- package/dist/entries/watermark.js +4 -0
- package/dist/index.d.ts +51 -6
- package/dist/index.js +39 -3
- package/dist/provider/locale.d.ts +65 -0
- package/dist/provider/locale.js +146 -0
- package/dist/provider/tao-provider.d.ts +16 -1
- package/dist/provider/tao-provider.js +105 -87
- package/dist/theme/control.css +12 -2
- package/dist/theme/theme.css +4 -2
- package/dist/theme/tokens.d.ts +2 -2
- package/dist/theme/tokens.js +1 -0
- package/dist/utils/breakpoint.d.ts +2 -2
- package/dist/utils/breakpoint.js +3 -1
- package/dist/utils/field-label.d.ts +4 -0
- package/dist/utils/field-label.js +7 -0
- package/dist/utils/interop-default.d.ts +2 -0
- package/dist/utils/interop-default.js +4 -0
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.js +0 -0
- package/llms.txt +493 -22
- package/package.json +33 -9
- package/dist/components/collapsible/collapsible.css +0 -49
- package/dist/components/collapsible/collapsible.d.ts +0 -39
- package/dist/docs/components/collapsible.doc.js +0 -39
- package/dist/entries/collapsible.d.ts +0 -3
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { Children, Fragment, createContext, forwardRef, useContext, useImperativeHandle, useRef, useState } from "react";
|
|
4
|
+
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
5
|
+
import { cx } from "../../utils/semantic.js";
|
|
6
|
+
import { Empty } from "../empty/empty.js";
|
|
7
|
+
import { ListPaginationControl } from "./list-pagination.js";
|
|
8
|
+
import { Spinner } from "../spinner/spinner.js";
|
|
9
|
+
import "./list.css";
|
|
10
|
+
const ListContext = /*#__PURE__*/ createContext({});
|
|
11
|
+
const Meta = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
12
|
+
const $ = c(39);
|
|
13
|
+
let avatar;
|
|
14
|
+
let children;
|
|
15
|
+
let className;
|
|
16
|
+
let classNames;
|
|
17
|
+
let description;
|
|
18
|
+
let prefixCls;
|
|
19
|
+
let rest;
|
|
20
|
+
let style;
|
|
21
|
+
let styles;
|
|
22
|
+
let title;
|
|
23
|
+
if ($[0] !== t0) {
|
|
24
|
+
({ avatar, title, description, prefixCls, className, classNames, styles, style, children, ...rest } = t0);
|
|
25
|
+
$[0] = t0;
|
|
26
|
+
$[1] = avatar;
|
|
27
|
+
$[2] = children;
|
|
28
|
+
$[3] = className;
|
|
29
|
+
$[4] = classNames;
|
|
30
|
+
$[5] = description;
|
|
31
|
+
$[6] = prefixCls;
|
|
32
|
+
$[7] = rest;
|
|
33
|
+
$[8] = style;
|
|
34
|
+
$[9] = styles;
|
|
35
|
+
$[10] = title;
|
|
36
|
+
} else {
|
|
37
|
+
avatar = $[1];
|
|
38
|
+
children = $[2];
|
|
39
|
+
className = $[3];
|
|
40
|
+
classNames = $[4];
|
|
41
|
+
description = $[5];
|
|
42
|
+
prefixCls = $[6];
|
|
43
|
+
rest = $[7];
|
|
44
|
+
style = $[8];
|
|
45
|
+
styles = $[9];
|
|
46
|
+
title = $[10];
|
|
47
|
+
}
|
|
48
|
+
const root = useRef(null);
|
|
49
|
+
let t1;
|
|
50
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
51
|
+
t1 = ()=>({
|
|
52
|
+
nativeElement: root.current
|
|
53
|
+
});
|
|
54
|
+
$[11] = t1;
|
|
55
|
+
} else t1 = $[11];
|
|
56
|
+
useImperativeHandle(ref, t1);
|
|
57
|
+
const t2 = classNames?.root;
|
|
58
|
+
let t3;
|
|
59
|
+
if ($[12] !== className || $[13] !== prefixCls || $[14] !== t2) {
|
|
60
|
+
t3 = cx(prefixCls, t2, className);
|
|
61
|
+
$[12] = className;
|
|
62
|
+
$[13] = prefixCls;
|
|
63
|
+
$[14] = t2;
|
|
64
|
+
$[15] = t3;
|
|
65
|
+
} else t3 = $[15];
|
|
66
|
+
const t4 = styles?.root;
|
|
67
|
+
let t5;
|
|
68
|
+
if ($[16] !== style || $[17] !== t4) {
|
|
69
|
+
t5 = {
|
|
70
|
+
...t4,
|
|
71
|
+
...style
|
|
72
|
+
};
|
|
73
|
+
$[16] = style;
|
|
74
|
+
$[17] = t4;
|
|
75
|
+
$[18] = t5;
|
|
76
|
+
} else t5 = $[18];
|
|
77
|
+
let t6;
|
|
78
|
+
if ($[19] !== avatar || $[20] !== classNames?.avatar || $[21] !== styles?.avatar) {
|
|
79
|
+
t6 = null != avatar && /*#__PURE__*/ jsx("div", {
|
|
80
|
+
"data-tao-list-meta-avatar": "",
|
|
81
|
+
className: classNames?.avatar,
|
|
82
|
+
style: styles?.avatar,
|
|
83
|
+
children: avatar
|
|
84
|
+
});
|
|
85
|
+
$[19] = avatar;
|
|
86
|
+
$[20] = classNames?.avatar;
|
|
87
|
+
$[21] = styles?.avatar;
|
|
88
|
+
$[22] = t6;
|
|
89
|
+
} else t6 = $[22];
|
|
90
|
+
let t7;
|
|
91
|
+
if ($[23] !== classNames?.content || $[24] !== classNames?.description || $[25] !== classNames?.title || $[26] !== description || $[27] !== styles?.content || $[28] !== styles?.description || $[29] !== styles?.title || $[30] !== title) {
|
|
92
|
+
t7 = (null != title || null != description) && /*#__PURE__*/ jsxs("div", {
|
|
93
|
+
"data-tao-list-meta-content": "",
|
|
94
|
+
className: classNames?.content,
|
|
95
|
+
style: styles?.content,
|
|
96
|
+
children: [
|
|
97
|
+
null != title && /*#__PURE__*/ jsx("h4", {
|
|
98
|
+
"data-tao-list-meta-title": "",
|
|
99
|
+
className: classNames?.title,
|
|
100
|
+
style: styles?.title,
|
|
101
|
+
children: title
|
|
102
|
+
}),
|
|
103
|
+
null != description && /*#__PURE__*/ jsx("div", {
|
|
104
|
+
"data-tao-list-meta-description": "",
|
|
105
|
+
className: classNames?.description,
|
|
106
|
+
style: styles?.description,
|
|
107
|
+
children: description
|
|
108
|
+
})
|
|
109
|
+
]
|
|
110
|
+
});
|
|
111
|
+
$[23] = classNames?.content;
|
|
112
|
+
$[24] = classNames?.description;
|
|
113
|
+
$[25] = classNames?.title;
|
|
114
|
+
$[26] = description;
|
|
115
|
+
$[27] = styles?.content;
|
|
116
|
+
$[28] = styles?.description;
|
|
117
|
+
$[29] = styles?.title;
|
|
118
|
+
$[30] = title;
|
|
119
|
+
$[31] = t7;
|
|
120
|
+
} else t7 = $[31];
|
|
121
|
+
let t8;
|
|
122
|
+
if ($[32] !== children || $[33] !== rest || $[34] !== t3 || $[35] !== t5 || $[36] !== t6 || $[37] !== t7) {
|
|
123
|
+
t8 = /*#__PURE__*/ jsxs("div", {
|
|
124
|
+
...rest,
|
|
125
|
+
ref: root,
|
|
126
|
+
"data-tao-list-meta": "",
|
|
127
|
+
className: t3,
|
|
128
|
+
style: t5,
|
|
129
|
+
children: [
|
|
130
|
+
t6,
|
|
131
|
+
t7,
|
|
132
|
+
children
|
|
133
|
+
]
|
|
134
|
+
});
|
|
135
|
+
$[32] = children;
|
|
136
|
+
$[33] = rest;
|
|
137
|
+
$[34] = t3;
|
|
138
|
+
$[35] = t5;
|
|
139
|
+
$[36] = t6;
|
|
140
|
+
$[37] = t7;
|
|
141
|
+
$[38] = t8;
|
|
142
|
+
} else t8 = $[38];
|
|
143
|
+
return t8;
|
|
144
|
+
});
|
|
145
|
+
Meta.displayName = 'List.Item.Meta';
|
|
146
|
+
const ItemRoot = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
147
|
+
const $ = c(40);
|
|
148
|
+
let actions;
|
|
149
|
+
let children;
|
|
150
|
+
let className;
|
|
151
|
+
let classNames;
|
|
152
|
+
let colStyle;
|
|
153
|
+
let extra;
|
|
154
|
+
let prefixCls;
|
|
155
|
+
let rest;
|
|
156
|
+
let style;
|
|
157
|
+
let styles;
|
|
158
|
+
if ($[0] !== t0) {
|
|
159
|
+
({ children, prefixCls, extra, actions, className, classNames, style, styles, colStyle, ...rest } = t0);
|
|
160
|
+
$[0] = t0;
|
|
161
|
+
$[1] = actions;
|
|
162
|
+
$[2] = children;
|
|
163
|
+
$[3] = className;
|
|
164
|
+
$[4] = classNames;
|
|
165
|
+
$[5] = colStyle;
|
|
166
|
+
$[6] = extra;
|
|
167
|
+
$[7] = prefixCls;
|
|
168
|
+
$[8] = rest;
|
|
169
|
+
$[9] = style;
|
|
170
|
+
$[10] = styles;
|
|
171
|
+
} else {
|
|
172
|
+
actions = $[1];
|
|
173
|
+
children = $[2];
|
|
174
|
+
className = $[3];
|
|
175
|
+
classNames = $[4];
|
|
176
|
+
colStyle = $[5];
|
|
177
|
+
extra = $[6];
|
|
178
|
+
prefixCls = $[7];
|
|
179
|
+
rest = $[8];
|
|
180
|
+
style = $[9];
|
|
181
|
+
styles = $[10];
|
|
182
|
+
}
|
|
183
|
+
const { itemLayout: t1, grid } = useContext(ListContext);
|
|
184
|
+
const itemLayout = void 0 === t1 ? "horizontal" : t1;
|
|
185
|
+
let t2;
|
|
186
|
+
if ($[11] !== actions || $[12] !== classNames?.actions || $[13] !== styles?.actions) {
|
|
187
|
+
t2 = actions?.length ? /*#__PURE__*/ jsx("ul", {
|
|
188
|
+
"data-tao-list-item-actions": "",
|
|
189
|
+
className: classNames?.actions,
|
|
190
|
+
style: styles?.actions,
|
|
191
|
+
children: actions.map(_temp)
|
|
192
|
+
}) : null;
|
|
193
|
+
$[11] = actions;
|
|
194
|
+
$[12] = classNames?.actions;
|
|
195
|
+
$[13] = styles?.actions;
|
|
196
|
+
$[14] = t2;
|
|
197
|
+
} else t2 = $[14];
|
|
198
|
+
const actionNodes = t2;
|
|
199
|
+
const t3 = grid ? "" : void 0;
|
|
200
|
+
const t4 = classNames?.root;
|
|
201
|
+
let t5;
|
|
202
|
+
if ($[15] !== className || $[16] !== prefixCls || $[17] !== t4) {
|
|
203
|
+
t5 = cx(prefixCls, t4, className);
|
|
204
|
+
$[15] = className;
|
|
205
|
+
$[16] = prefixCls;
|
|
206
|
+
$[17] = t4;
|
|
207
|
+
$[18] = t5;
|
|
208
|
+
} else t5 = $[18];
|
|
209
|
+
const t6 = styles?.root;
|
|
210
|
+
let t7;
|
|
211
|
+
if ($[19] !== colStyle || $[20] !== style || $[21] !== t6) {
|
|
212
|
+
t7 = {
|
|
213
|
+
...colStyle,
|
|
214
|
+
...t6,
|
|
215
|
+
...style
|
|
216
|
+
};
|
|
217
|
+
$[19] = colStyle;
|
|
218
|
+
$[20] = style;
|
|
219
|
+
$[21] = t6;
|
|
220
|
+
$[22] = t7;
|
|
221
|
+
} else t7 = $[22];
|
|
222
|
+
const t8 = "vertical" === itemLayout && actionNodes;
|
|
223
|
+
let t9;
|
|
224
|
+
if ($[23] !== children || $[24] !== t8) {
|
|
225
|
+
t9 = /*#__PURE__*/ jsxs("div", {
|
|
226
|
+
"data-tao-list-item-main": "",
|
|
227
|
+
children: [
|
|
228
|
+
children,
|
|
229
|
+
t8
|
|
230
|
+
]
|
|
231
|
+
});
|
|
232
|
+
$[23] = children;
|
|
233
|
+
$[24] = t8;
|
|
234
|
+
$[25] = t9;
|
|
235
|
+
} else t9 = $[25];
|
|
236
|
+
const t10 = "vertical" !== itemLayout && actionNodes;
|
|
237
|
+
let t11;
|
|
238
|
+
if ($[26] !== classNames?.extra || $[27] !== extra || $[28] !== styles?.extra) {
|
|
239
|
+
t11 = null != extra && /*#__PURE__*/ jsx("div", {
|
|
240
|
+
"data-tao-list-item-extra": "",
|
|
241
|
+
className: classNames?.extra,
|
|
242
|
+
style: styles?.extra,
|
|
243
|
+
children: extra
|
|
244
|
+
});
|
|
245
|
+
$[26] = classNames?.extra;
|
|
246
|
+
$[27] = extra;
|
|
247
|
+
$[28] = styles?.extra;
|
|
248
|
+
$[29] = t11;
|
|
249
|
+
} else t11 = $[29];
|
|
250
|
+
let t12;
|
|
251
|
+
if ($[30] !== itemLayout || $[31] !== ref || $[32] !== rest || $[33] !== t10 || $[34] !== t11 || $[35] !== t3 || $[36] !== t5 || $[37] !== t7 || $[38] !== t9) {
|
|
252
|
+
t12 = /*#__PURE__*/ jsx("li", {
|
|
253
|
+
"data-tao-list-item-wrapper": "",
|
|
254
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
255
|
+
...rest,
|
|
256
|
+
ref: ref,
|
|
257
|
+
"data-tao-list-item": "",
|
|
258
|
+
"data-tao-layout": itemLayout,
|
|
259
|
+
"data-tao-grid": t3,
|
|
260
|
+
className: t5,
|
|
261
|
+
style: t7,
|
|
262
|
+
children: [
|
|
263
|
+
t9,
|
|
264
|
+
t10,
|
|
265
|
+
t11
|
|
266
|
+
]
|
|
267
|
+
})
|
|
268
|
+
});
|
|
269
|
+
$[30] = itemLayout;
|
|
270
|
+
$[31] = ref;
|
|
271
|
+
$[32] = rest;
|
|
272
|
+
$[33] = t10;
|
|
273
|
+
$[34] = t11;
|
|
274
|
+
$[35] = t3;
|
|
275
|
+
$[36] = t5;
|
|
276
|
+
$[37] = t7;
|
|
277
|
+
$[38] = t9;
|
|
278
|
+
$[39] = t12;
|
|
279
|
+
} else t12 = $[39];
|
|
280
|
+
return t12;
|
|
281
|
+
});
|
|
282
|
+
ItemRoot.displayName = 'List.Item';
|
|
283
|
+
const Item = Object.assign(ItemRoot, {
|
|
284
|
+
Meta: Meta
|
|
285
|
+
});
|
|
286
|
+
function gridVariables(grid) {
|
|
287
|
+
if (!grid) return {};
|
|
288
|
+
const result = {
|
|
289
|
+
'--tao-list-columns': grid.column ?? 1
|
|
290
|
+
};
|
|
291
|
+
for (const bp of [
|
|
292
|
+
'xs',
|
|
293
|
+
'sm',
|
|
294
|
+
'md',
|
|
295
|
+
'lg',
|
|
296
|
+
'xl',
|
|
297
|
+
'xxl',
|
|
298
|
+
'xxxl'
|
|
299
|
+
])if (grid[bp]) result[`--tao-list-columns-${bp}`] = grid[bp];
|
|
300
|
+
const [horizontal, vertical] = Array.isArray(grid.gutter) ? grid.gutter : [
|
|
301
|
+
grid.gutter,
|
|
302
|
+
grid.gutter
|
|
303
|
+
];
|
|
304
|
+
for (const [axis, value] of [
|
|
305
|
+
[
|
|
306
|
+
'x',
|
|
307
|
+
horizontal
|
|
308
|
+
],
|
|
309
|
+
[
|
|
310
|
+
'y',
|
|
311
|
+
vertical
|
|
312
|
+
]
|
|
313
|
+
])if ('number' == typeof value) result[`--tao-list-gap-${axis}`] = `${value}px`;
|
|
314
|
+
else if (value) for (const [bp, size] of Object.entries(value))result[`--tao-list-gap-${axis}-${bp}`] = `${size}px`;
|
|
315
|
+
return result;
|
|
316
|
+
}
|
|
317
|
+
function ListRoot(t0, ref) {
|
|
318
|
+
const $ = c(103);
|
|
319
|
+
let children;
|
|
320
|
+
let className;
|
|
321
|
+
let classNames;
|
|
322
|
+
let extra;
|
|
323
|
+
let footer;
|
|
324
|
+
let grid;
|
|
325
|
+
let header;
|
|
326
|
+
let loadMore;
|
|
327
|
+
let locale;
|
|
328
|
+
let prefixCls;
|
|
329
|
+
let renderItem;
|
|
330
|
+
let rest;
|
|
331
|
+
let rootClassName;
|
|
332
|
+
let rowKey;
|
|
333
|
+
let size;
|
|
334
|
+
let style;
|
|
335
|
+
let styles;
|
|
336
|
+
let t1;
|
|
337
|
+
let t2;
|
|
338
|
+
let t3;
|
|
339
|
+
let t4;
|
|
340
|
+
let t5;
|
|
341
|
+
let t6;
|
|
342
|
+
if ($[0] !== t0) {
|
|
343
|
+
({ bordered: t1, split: t2, dataSource: t3, renderItem, rowKey, children, grid, itemLayout: t4, size, loading: t5, header, footer, extra, loadMore, pagination: t6, locale, prefixCls, rootClassName, className, classNames, styles, style, ...rest } = t0);
|
|
344
|
+
$[0] = t0;
|
|
345
|
+
$[1] = children;
|
|
346
|
+
$[2] = className;
|
|
347
|
+
$[3] = classNames;
|
|
348
|
+
$[4] = extra;
|
|
349
|
+
$[5] = footer;
|
|
350
|
+
$[6] = grid;
|
|
351
|
+
$[7] = header;
|
|
352
|
+
$[8] = loadMore;
|
|
353
|
+
$[9] = locale;
|
|
354
|
+
$[10] = prefixCls;
|
|
355
|
+
$[11] = renderItem;
|
|
356
|
+
$[12] = rest;
|
|
357
|
+
$[13] = rootClassName;
|
|
358
|
+
$[14] = rowKey;
|
|
359
|
+
$[15] = size;
|
|
360
|
+
$[16] = style;
|
|
361
|
+
$[17] = styles;
|
|
362
|
+
$[18] = t1;
|
|
363
|
+
$[19] = t2;
|
|
364
|
+
$[20] = t3;
|
|
365
|
+
$[21] = t4;
|
|
366
|
+
$[22] = t5;
|
|
367
|
+
$[23] = t6;
|
|
368
|
+
} else {
|
|
369
|
+
children = $[1];
|
|
370
|
+
className = $[2];
|
|
371
|
+
classNames = $[3];
|
|
372
|
+
extra = $[4];
|
|
373
|
+
footer = $[5];
|
|
374
|
+
grid = $[6];
|
|
375
|
+
header = $[7];
|
|
376
|
+
loadMore = $[8];
|
|
377
|
+
locale = $[9];
|
|
378
|
+
prefixCls = $[10];
|
|
379
|
+
renderItem = $[11];
|
|
380
|
+
rest = $[12];
|
|
381
|
+
rootClassName = $[13];
|
|
382
|
+
rowKey = $[14];
|
|
383
|
+
size = $[15];
|
|
384
|
+
style = $[16];
|
|
385
|
+
styles = $[17];
|
|
386
|
+
t1 = $[18];
|
|
387
|
+
t2 = $[19];
|
|
388
|
+
t3 = $[20];
|
|
389
|
+
t4 = $[21];
|
|
390
|
+
t5 = $[22];
|
|
391
|
+
t6 = $[23];
|
|
392
|
+
}
|
|
393
|
+
const bordered = void 0 === t1 ? false : t1;
|
|
394
|
+
const split = void 0 === t2 ? true : t2;
|
|
395
|
+
let t7;
|
|
396
|
+
if ($[24] !== t3) {
|
|
397
|
+
t7 = void 0 === t3 ? [] : t3;
|
|
398
|
+
$[24] = t3;
|
|
399
|
+
$[25] = t7;
|
|
400
|
+
} else t7 = $[25];
|
|
401
|
+
const dataSource = t7;
|
|
402
|
+
const itemLayout = void 0 === t4 ? "horizontal" : t4;
|
|
403
|
+
const loading = void 0 === t5 ? false : t5;
|
|
404
|
+
const pagination = void 0 === t6 ? false : t6;
|
|
405
|
+
const config = useTaoConfig();
|
|
406
|
+
let t8;
|
|
407
|
+
if ($[26] !== pagination) {
|
|
408
|
+
t8 = pagination || {};
|
|
409
|
+
$[26] = pagination;
|
|
410
|
+
$[27] = t8;
|
|
411
|
+
} else t8 = $[27];
|
|
412
|
+
const paging = t8;
|
|
413
|
+
const [page, setPage] = useState(paging.defaultCurrent ?? 1);
|
|
414
|
+
const [pageSize, setPageSize] = useState(paging.defaultPageSize ?? 10);
|
|
415
|
+
const total = paging.total ?? dataSource.length;
|
|
416
|
+
const resolvedPageSize = paging.pageSize ?? pageSize;
|
|
417
|
+
const current = Math.max(1, Math.min(paging.current ?? page, Math.ceil(total / resolvedPageSize)));
|
|
418
|
+
const start = (current - 1) * resolvedPageSize;
|
|
419
|
+
let t9;
|
|
420
|
+
if ($[28] !== dataSource || $[29] !== pagination || $[30] !== resolvedPageSize || $[31] !== start) {
|
|
421
|
+
t9 = pagination && dataSource.length > start ? dataSource.slice(start, start + resolvedPageSize) : dataSource;
|
|
422
|
+
$[28] = dataSource;
|
|
423
|
+
$[29] = pagination;
|
|
424
|
+
$[30] = resolvedPageSize;
|
|
425
|
+
$[31] = start;
|
|
426
|
+
$[32] = t9;
|
|
427
|
+
} else t9 = $[32];
|
|
428
|
+
const data = t9;
|
|
429
|
+
let t10;
|
|
430
|
+
if ($[33] !== loading) {
|
|
431
|
+
t10 = "boolean" == typeof loading ? {
|
|
432
|
+
spinning: loading
|
|
433
|
+
} : loading;
|
|
434
|
+
$[33] = loading;
|
|
435
|
+
$[34] = t10;
|
|
436
|
+
} else t10 = $[34];
|
|
437
|
+
const spinner = t10;
|
|
438
|
+
const isLoading = spinner.spinning ?? "object" == typeof loading;
|
|
439
|
+
let t11;
|
|
440
|
+
if ($[35] !== classNames?.pagination || $[36] !== current || $[37] !== pagination || $[38] !== paging || $[39] !== resolvedPageSize || $[40] !== styles?.pagination || $[41] !== total) {
|
|
441
|
+
t11 = pagination && !(paging.hideOnSinglePage && total <= resolvedPageSize) ? /*#__PURE__*/ jsx("div", {
|
|
442
|
+
"data-tao-list-pagination": "",
|
|
443
|
+
"data-tao-align": paging.align ?? "end",
|
|
444
|
+
className: classNames?.pagination,
|
|
445
|
+
style: styles?.pagination,
|
|
446
|
+
children: /*#__PURE__*/ jsx(ListPaginationControl, {
|
|
447
|
+
...paging,
|
|
448
|
+
total: total,
|
|
449
|
+
current: current,
|
|
450
|
+
pageSize: resolvedPageSize,
|
|
451
|
+
onChange: (next, nextSize, info)=>{
|
|
452
|
+
setPage(next);
|
|
453
|
+
setPageSize(nextSize);
|
|
454
|
+
if (info) paging.onChange?.(next, nextSize, info);
|
|
455
|
+
else paging.onChange?.(next, nextSize);
|
|
456
|
+
}
|
|
457
|
+
})
|
|
458
|
+
}) : null;
|
|
459
|
+
$[35] = classNames?.pagination;
|
|
460
|
+
$[36] = current;
|
|
461
|
+
$[37] = pagination;
|
|
462
|
+
$[38] = paging;
|
|
463
|
+
$[39] = resolvedPageSize;
|
|
464
|
+
$[40] = styles?.pagination;
|
|
465
|
+
$[41] = total;
|
|
466
|
+
$[42] = t11;
|
|
467
|
+
} else t11 = $[42];
|
|
468
|
+
const paginationNode = t11;
|
|
469
|
+
let t12;
|
|
470
|
+
if ($[43] !== children || $[44] !== data || $[45] !== renderItem || $[46] !== rowKey) {
|
|
471
|
+
t12 = data.length ? data.map((value, index)=>{
|
|
472
|
+
const key = "function" == typeof rowKey ? rowKey(value) : rowKey ? value[rowKey] : value?.key ?? index;
|
|
473
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
474
|
+
children: renderItem?.(value, index)
|
|
475
|
+
}, key);
|
|
476
|
+
}) : children;
|
|
477
|
+
$[43] = children;
|
|
478
|
+
$[44] = data;
|
|
479
|
+
$[45] = renderItem;
|
|
480
|
+
$[46] = rowKey;
|
|
481
|
+
$[47] = t12;
|
|
482
|
+
} else t12 = $[47];
|
|
483
|
+
const content = t12;
|
|
484
|
+
let t13;
|
|
485
|
+
if ($[48] !== grid || $[49] !== itemLayout) {
|
|
486
|
+
t13 = {
|
|
487
|
+
grid,
|
|
488
|
+
itemLayout
|
|
489
|
+
};
|
|
490
|
+
$[48] = grid;
|
|
491
|
+
$[49] = itemLayout;
|
|
492
|
+
$[50] = t13;
|
|
493
|
+
} else t13 = $[50];
|
|
494
|
+
const t14 = "default" === size ? "medium" : size ?? config.size;
|
|
495
|
+
const t15 = bordered ? "" : void 0;
|
|
496
|
+
const t16 = split ? "" : void 0;
|
|
497
|
+
const t17 = grid ? "" : void 0;
|
|
498
|
+
const t18 = classNames?.root;
|
|
499
|
+
let t19;
|
|
500
|
+
if ($[51] !== className || $[52] !== prefixCls || $[53] !== rootClassName || $[54] !== t18) {
|
|
501
|
+
t19 = cx(prefixCls, t18, rootClassName, className);
|
|
502
|
+
$[51] = className;
|
|
503
|
+
$[52] = prefixCls;
|
|
504
|
+
$[53] = rootClassName;
|
|
505
|
+
$[54] = t18;
|
|
506
|
+
$[55] = t19;
|
|
507
|
+
} else t19 = $[55];
|
|
508
|
+
let t20;
|
|
509
|
+
if ($[56] !== grid) {
|
|
510
|
+
t20 = gridVariables(grid);
|
|
511
|
+
$[56] = grid;
|
|
512
|
+
$[57] = t20;
|
|
513
|
+
} else t20 = $[57];
|
|
514
|
+
const t21 = styles?.root;
|
|
515
|
+
let t22;
|
|
516
|
+
if ($[58] !== style || $[59] !== t20 || $[60] !== t21) {
|
|
517
|
+
t22 = {
|
|
518
|
+
...t20,
|
|
519
|
+
...t21,
|
|
520
|
+
...style
|
|
521
|
+
};
|
|
522
|
+
$[58] = style;
|
|
523
|
+
$[59] = t20;
|
|
524
|
+
$[60] = t21;
|
|
525
|
+
$[61] = t22;
|
|
526
|
+
} else t22 = $[61];
|
|
527
|
+
const t23 = ("top" === paging.position || "both" === paging.position) && paginationNode;
|
|
528
|
+
let t24;
|
|
529
|
+
if ($[62] !== classNames?.header || $[63] !== header || $[64] !== styles?.header) {
|
|
530
|
+
t24 = null != header && /*#__PURE__*/ jsx("div", {
|
|
531
|
+
"data-tao-list-header": "",
|
|
532
|
+
className: classNames?.header,
|
|
533
|
+
style: styles?.header,
|
|
534
|
+
children: header
|
|
535
|
+
});
|
|
536
|
+
$[62] = classNames?.header;
|
|
537
|
+
$[63] = header;
|
|
538
|
+
$[64] = styles?.header;
|
|
539
|
+
$[65] = t24;
|
|
540
|
+
} else t24 = $[65];
|
|
541
|
+
const t25 = classNames?.items;
|
|
542
|
+
const t26 = styles?.items;
|
|
543
|
+
let t27;
|
|
544
|
+
if ($[66] !== classNames?.empty || $[67] !== content || $[68] !== isLoading || $[69] !== locale?.emptyText || $[70] !== styles?.empty) {
|
|
545
|
+
t27 = Children.count(content) ? content : isLoading ? /*#__PURE__*/ jsx("li", {
|
|
546
|
+
"data-tao-list-loading": ""
|
|
547
|
+
}) : /*#__PURE__*/ jsx("li", {
|
|
548
|
+
"data-tao-list-empty": "",
|
|
549
|
+
className: classNames?.empty,
|
|
550
|
+
style: styles?.empty,
|
|
551
|
+
children: locale?.emptyText ?? /*#__PURE__*/ jsx(Empty, {
|
|
552
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
553
|
+
})
|
|
554
|
+
});
|
|
555
|
+
$[66] = classNames?.empty;
|
|
556
|
+
$[67] = content;
|
|
557
|
+
$[68] = isLoading;
|
|
558
|
+
$[69] = locale?.emptyText;
|
|
559
|
+
$[70] = styles?.empty;
|
|
560
|
+
$[71] = t27;
|
|
561
|
+
} else t27 = $[71];
|
|
562
|
+
let t28;
|
|
563
|
+
if ($[72] !== t25 || $[73] !== t26 || $[74] !== t27) {
|
|
564
|
+
t28 = /*#__PURE__*/ jsx("ul", {
|
|
565
|
+
"data-tao-list-items": "",
|
|
566
|
+
className: t25,
|
|
567
|
+
style: t26,
|
|
568
|
+
children: t27
|
|
569
|
+
});
|
|
570
|
+
$[72] = t25;
|
|
571
|
+
$[73] = t26;
|
|
572
|
+
$[74] = t27;
|
|
573
|
+
$[75] = t28;
|
|
574
|
+
} else t28 = $[75];
|
|
575
|
+
let t29;
|
|
576
|
+
if ($[76] !== isLoading || $[77] !== spinner || $[78] !== t28) {
|
|
577
|
+
t29 = /*#__PURE__*/ jsx(Spinner, {
|
|
578
|
+
...spinner,
|
|
579
|
+
spinning: isLoading,
|
|
580
|
+
children: t28
|
|
581
|
+
});
|
|
582
|
+
$[76] = isLoading;
|
|
583
|
+
$[77] = spinner;
|
|
584
|
+
$[78] = t28;
|
|
585
|
+
$[79] = t29;
|
|
586
|
+
} else t29 = $[79];
|
|
587
|
+
let t30;
|
|
588
|
+
if ($[80] !== classNames?.footer || $[81] !== footer || $[82] !== styles?.footer) {
|
|
589
|
+
t30 = null != footer && /*#__PURE__*/ jsx("div", {
|
|
590
|
+
"data-tao-list-footer": "",
|
|
591
|
+
className: classNames?.footer,
|
|
592
|
+
style: styles?.footer,
|
|
593
|
+
children: footer
|
|
594
|
+
});
|
|
595
|
+
$[80] = classNames?.footer;
|
|
596
|
+
$[81] = footer;
|
|
597
|
+
$[82] = styles?.footer;
|
|
598
|
+
$[83] = t30;
|
|
599
|
+
} else t30 = $[83];
|
|
600
|
+
const t31 = "top" !== paging.position && paginationNode;
|
|
601
|
+
let t32;
|
|
602
|
+
if ($[84] !== extra || $[85] !== loadMore || $[86] !== ref || $[87] !== rest || $[88] !== t14 || $[89] !== t15 || $[90] !== t16 || $[91] !== t17 || $[92] !== t19 || $[93] !== t22 || $[94] !== t23 || $[95] !== t24 || $[96] !== t29 || $[97] !== t30 || $[98] !== t31) {
|
|
603
|
+
t32 = /*#__PURE__*/ jsxs("div", {
|
|
604
|
+
...rest,
|
|
605
|
+
ref: ref,
|
|
606
|
+
"data-tao-list": "",
|
|
607
|
+
"data-tao-size": t14,
|
|
608
|
+
"data-tao-bordered": t15,
|
|
609
|
+
"data-tao-split": t16,
|
|
610
|
+
"data-tao-grid": t17,
|
|
611
|
+
className: t19,
|
|
612
|
+
style: t22,
|
|
613
|
+
children: [
|
|
614
|
+
t23,
|
|
615
|
+
t24,
|
|
616
|
+
t29,
|
|
617
|
+
extra,
|
|
618
|
+
loadMore,
|
|
619
|
+
t30,
|
|
620
|
+
t31
|
|
621
|
+
]
|
|
622
|
+
});
|
|
623
|
+
$[84] = extra;
|
|
624
|
+
$[85] = loadMore;
|
|
625
|
+
$[86] = ref;
|
|
626
|
+
$[87] = rest;
|
|
627
|
+
$[88] = t14;
|
|
628
|
+
$[89] = t15;
|
|
629
|
+
$[90] = t16;
|
|
630
|
+
$[91] = t17;
|
|
631
|
+
$[92] = t19;
|
|
632
|
+
$[93] = t22;
|
|
633
|
+
$[94] = t23;
|
|
634
|
+
$[95] = t24;
|
|
635
|
+
$[96] = t29;
|
|
636
|
+
$[97] = t30;
|
|
637
|
+
$[98] = t31;
|
|
638
|
+
$[99] = t32;
|
|
639
|
+
} else t32 = $[99];
|
|
640
|
+
let t33;
|
|
641
|
+
if ($[100] !== t13 || $[101] !== t32) {
|
|
642
|
+
t33 = /*#__PURE__*/ jsx(ListContext.Provider, {
|
|
643
|
+
value: t13,
|
|
644
|
+
children: t32
|
|
645
|
+
});
|
|
646
|
+
$[100] = t13;
|
|
647
|
+
$[101] = t32;
|
|
648
|
+
$[102] = t33;
|
|
649
|
+
} else t33 = $[102];
|
|
650
|
+
return t33;
|
|
651
|
+
}
|
|
652
|
+
const List = Object.assign(/*#__PURE__*/ forwardRef(ListRoot), {
|
|
653
|
+
Item: Item
|
|
654
|
+
});
|
|
655
|
+
function _temp(action, index) {
|
|
656
|
+
return /*#__PURE__*/ jsx("li", {
|
|
657
|
+
children: action
|
|
658
|
+
}, String(index));
|
|
659
|
+
}
|
|
660
|
+
export { List };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[data-tao-listy] {
|
|
2
|
+
min-width: 0;
|
|
3
|
+
color: var(--tao-color-text);
|
|
4
|
+
font-family: var(--tao-font-family);
|
|
5
|
+
font-size: var(--tao-font-size-base);
|
|
6
|
+
line-height: var(--tao-line-height);
|
|
7
|
+
--rc-virtual-list-scrollbar-bg: var(--tao-color-fill-secondary);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-tao-listy] > div {
|
|
11
|
+
background: var(--tao-color-bg-container);
|
|
12
|
+
border-radius: var(--tao-radius);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-tao-listy] .tao-listy-item-slot {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
padding: var(--tao-listy-item-padding-block, 12px)
|
|
21
|
+
var(--tao-listy-item-padding-inline, 16px);
|
|
22
|
+
overflow-wrap: anywhere;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-tao-listy][data-tao-hoverable] .tao-listy-item-slot:hover {
|
|
26
|
+
background: var(--tao-listy-item-hover-bg, var(--tao-color-fill-quaternary));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-tao-listy] .tao-listy-group-slot {
|
|
30
|
+
padding: var(--tao-listy-item-padding-block, 12px)
|
|
31
|
+
var(--tao-listy-item-padding-inline, 16px);
|
|
32
|
+
color: var(--tao-color-text-secondary);
|
|
33
|
+
background: var(--tao-color-bg-container);
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-tao-listy] [class*="-group-header-sticky"] {
|
|
39
|
+
z-index: 1;
|
|
40
|
+
position: sticky;
|
|
41
|
+
top: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-tao-listy] [class*="-group-header-fixed"] {
|
|
45
|
+
inset-inline: 0;
|
|
46
|
+
z-index: 1;
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-tao-listy] [class*="-scrollbar-thumb"] {
|
|
52
|
+
border-radius: var(--tao-radius);
|
|
53
|
+
background: var(--tao-color-fill-secondary);
|
|
54
|
+
}
|
|
55
|
+
|