@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,172 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import rate from "@rc-component/rate";
|
|
4
|
+
import { cloneElement, forwardRef } from "react";
|
|
5
|
+
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
6
|
+
import { cx } from "../../utils/semantic.js";
|
|
7
|
+
import { Tooltip } from "../tooltip/tooltip.js";
|
|
8
|
+
import "./rate.css";
|
|
9
|
+
import { interopDefault } from "../../utils/interop-default.js";
|
|
10
|
+
const RcRateComponent = /*#__PURE__*/ interopDefault(rate);
|
|
11
|
+
const Star = /*#__PURE__*/ jsx("svg", {
|
|
12
|
+
"data-tao-rate-icon": "",
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
width: "1em",
|
|
15
|
+
height: "1em",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
|
+
d: "m12 2.4 2.96 6 6.62.96-4.8 4.67 1.14 6.6L12 17.52l-5.92 3.11 1.13-6.6-4.79-4.67L9.04 8.4Z"
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
const Rate = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
23
|
+
const $ = c(41);
|
|
24
|
+
let characterRender;
|
|
25
|
+
let className;
|
|
26
|
+
let classNames;
|
|
27
|
+
let disabled;
|
|
28
|
+
let rest;
|
|
29
|
+
let rootClassName;
|
|
30
|
+
let size;
|
|
31
|
+
let style;
|
|
32
|
+
let styles;
|
|
33
|
+
let t1;
|
|
34
|
+
let t2;
|
|
35
|
+
let t3;
|
|
36
|
+
let tooltips;
|
|
37
|
+
if ($[0] !== t0) {
|
|
38
|
+
({ prefixCls: t1, rootClassName, className, classNames, style, styles, tooltips, size, disabled, readOnly: t2, character: t3, characterRender, ...rest } = t0);
|
|
39
|
+
$[0] = t0;
|
|
40
|
+
$[1] = characterRender;
|
|
41
|
+
$[2] = className;
|
|
42
|
+
$[3] = classNames;
|
|
43
|
+
$[4] = disabled;
|
|
44
|
+
$[5] = rest;
|
|
45
|
+
$[6] = rootClassName;
|
|
46
|
+
$[7] = size;
|
|
47
|
+
$[8] = style;
|
|
48
|
+
$[9] = styles;
|
|
49
|
+
$[10] = t1;
|
|
50
|
+
$[11] = t2;
|
|
51
|
+
$[12] = t3;
|
|
52
|
+
$[13] = tooltips;
|
|
53
|
+
} else {
|
|
54
|
+
characterRender = $[1];
|
|
55
|
+
className = $[2];
|
|
56
|
+
classNames = $[3];
|
|
57
|
+
disabled = $[4];
|
|
58
|
+
rest = $[5];
|
|
59
|
+
rootClassName = $[6];
|
|
60
|
+
size = $[7];
|
|
61
|
+
style = $[8];
|
|
62
|
+
styles = $[9];
|
|
63
|
+
t1 = $[10];
|
|
64
|
+
t2 = $[11];
|
|
65
|
+
t3 = $[12];
|
|
66
|
+
tooltips = $[13];
|
|
67
|
+
}
|
|
68
|
+
const prefixCls = void 0 === t1 ? "tao-rate" : t1;
|
|
69
|
+
const readOnly = void 0 === t2 ? false : t2;
|
|
70
|
+
const character = void 0 === t3 ? Star : t3;
|
|
71
|
+
const config = useTaoConfig();
|
|
72
|
+
const resolvedDisabled = disabled ?? config.disabled;
|
|
73
|
+
let t4;
|
|
74
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
75
|
+
t4 = {
|
|
76
|
+
role: "radiogroup"
|
|
77
|
+
};
|
|
78
|
+
$[14] = t4;
|
|
79
|
+
} else t4 = $[14];
|
|
80
|
+
const t5 = "middle" === size ? "medium" : size ?? config.size;
|
|
81
|
+
const t6 = resolvedDisabled ? "" : void 0;
|
|
82
|
+
const t7 = readOnly ? "" : void 0;
|
|
83
|
+
const t8 = readOnly || void 0;
|
|
84
|
+
const t9 = resolvedDisabled || void 0;
|
|
85
|
+
const t10 = resolvedDisabled || readOnly;
|
|
86
|
+
const t11 = classNames?.root;
|
|
87
|
+
let t12;
|
|
88
|
+
if ($[15] !== className || $[16] !== rootClassName || $[17] !== t11) {
|
|
89
|
+
t12 = cx(t11, rootClassName, className);
|
|
90
|
+
$[15] = className;
|
|
91
|
+
$[16] = rootClassName;
|
|
92
|
+
$[17] = t11;
|
|
93
|
+
$[18] = t12;
|
|
94
|
+
} else t12 = $[18];
|
|
95
|
+
const t13 = styles?.root;
|
|
96
|
+
let t14;
|
|
97
|
+
if ($[19] !== style || $[20] !== t13) {
|
|
98
|
+
t14 = {
|
|
99
|
+
...t13,
|
|
100
|
+
...style
|
|
101
|
+
};
|
|
102
|
+
$[19] = style;
|
|
103
|
+
$[20] = t13;
|
|
104
|
+
$[21] = t14;
|
|
105
|
+
} else t14 = $[21];
|
|
106
|
+
let t15;
|
|
107
|
+
if ($[22] !== characterRender || $[23] !== classNames?.item || $[24] !== styles?.item || $[25] !== tooltips) {
|
|
108
|
+
t15 = (node, info)=>{
|
|
109
|
+
const index = info.index ?? 0;
|
|
110
|
+
const half = !!info.allowHalf && (info.value ?? 0) > index && (info.value ?? 0) < index + 1;
|
|
111
|
+
const child = /*#__PURE__*/ cloneElement(node, {
|
|
112
|
+
...{
|
|
113
|
+
"data-tao-rate-item": "",
|
|
114
|
+
"data-tao-half": half ? "" : void 0,
|
|
115
|
+
"data-tao-full": (info.value ?? 0) >= index + 1 ? "" : void 0
|
|
116
|
+
},
|
|
117
|
+
className: cx(node.props.className, classNames?.item),
|
|
118
|
+
style: styles?.item
|
|
119
|
+
});
|
|
120
|
+
const rendered = characterRender ? characterRender(child, info) : child;
|
|
121
|
+
const tip = tooltips?.[index];
|
|
122
|
+
return tip ? /*#__PURE__*/ jsx(Tooltip, {
|
|
123
|
+
..."string" == typeof tip ? {
|
|
124
|
+
title: tip
|
|
125
|
+
} : tip,
|
|
126
|
+
children: rendered
|
|
127
|
+
}) : rendered;
|
|
128
|
+
};
|
|
129
|
+
$[22] = characterRender;
|
|
130
|
+
$[23] = classNames?.item;
|
|
131
|
+
$[24] = styles?.item;
|
|
132
|
+
$[25] = tooltips;
|
|
133
|
+
$[26] = t15;
|
|
134
|
+
} else t15 = $[26];
|
|
135
|
+
let t16;
|
|
136
|
+
if ($[27] !== character || $[28] !== prefixCls || $[29] !== ref || $[30] !== rest || $[31] !== t10 || $[32] !== t12 || $[33] !== t14 || $[34] !== t15 || $[35] !== t5 || $[36] !== t6 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
|
|
137
|
+
t16 = /*#__PURE__*/ jsx(RcRateComponent, {
|
|
138
|
+
...rest,
|
|
139
|
+
ref: ref,
|
|
140
|
+
...t4,
|
|
141
|
+
"data-tao-rate": "",
|
|
142
|
+
"data-tao-size": t5,
|
|
143
|
+
"data-tao-disabled": t6,
|
|
144
|
+
"data-tao-readonly": t7,
|
|
145
|
+
"aria-readonly": t8,
|
|
146
|
+
"aria-disabled": t9,
|
|
147
|
+
prefixCls: prefixCls,
|
|
148
|
+
disabled: t10,
|
|
149
|
+
character: character,
|
|
150
|
+
className: t12,
|
|
151
|
+
style: t14,
|
|
152
|
+
characterRender: t15
|
|
153
|
+
});
|
|
154
|
+
$[27] = character;
|
|
155
|
+
$[28] = prefixCls;
|
|
156
|
+
$[29] = ref;
|
|
157
|
+
$[30] = rest;
|
|
158
|
+
$[31] = t10;
|
|
159
|
+
$[32] = t12;
|
|
160
|
+
$[33] = t14;
|
|
161
|
+
$[34] = t15;
|
|
162
|
+
$[35] = t5;
|
|
163
|
+
$[36] = t6;
|
|
164
|
+
$[37] = t7;
|
|
165
|
+
$[38] = t8;
|
|
166
|
+
$[39] = t9;
|
|
167
|
+
$[40] = t16;
|
|
168
|
+
} else t16 = $[40];
|
|
169
|
+
return t16;
|
|
170
|
+
});
|
|
171
|
+
Rate.displayName = 'Rate';
|
|
172
|
+
export { Rate };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[data-tao-result] {
|
|
2
|
+
padding: var(--tao-padding-xl) var(--tao-padding-lg);
|
|
3
|
+
color: var(--tao-color-text);
|
|
4
|
+
font-family: var(--tao-font-family);
|
|
5
|
+
font-size: var(--tao-font-size);
|
|
6
|
+
line-height: var(--tao-line-height);
|
|
7
|
+
text-align: center;
|
|
8
|
+
overflow-wrap: anywhere;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-tao-result-icon] {
|
|
12
|
+
color: var(--tao-color-primary);
|
|
13
|
+
margin-block-end: var(--tao-margin-lg);
|
|
14
|
+
line-height: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-tao-result-icon] > svg {
|
|
18
|
+
width: 64px;
|
|
19
|
+
height: 64px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-tao-result][data-tao-status="success"] [data-tao-result-icon] {
|
|
23
|
+
color: var(--tao-color-success);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-tao-result][data-tao-status="error"] [data-tao-result-icon] {
|
|
27
|
+
color: var(--tao-color-error);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-tao-result][data-tao-status="warning"] [data-tao-result-icon] {
|
|
31
|
+
color: var(--tao-color-warning);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-tao-result-code] {
|
|
35
|
+
color: var(--tao-color-text-tertiary);
|
|
36
|
+
font-size: clamp(64px, 16vw, 96px);
|
|
37
|
+
font-weight: var(--tao-font-weight-strong);
|
|
38
|
+
font-variant-numeric: tabular-nums;
|
|
39
|
+
letter-spacing: -.03em;
|
|
40
|
+
display: inline-block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-tao-result-title] {
|
|
44
|
+
font-size: var(--tao-font-size-xl);
|
|
45
|
+
font-weight: var(--tao-font-weight-strong);
|
|
46
|
+
line-height: var(--tao-line-height);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-tao-result-subtitle] {
|
|
50
|
+
color: var(--tao-color-text-secondary);
|
|
51
|
+
margin-block-start: var(--tao-margin-xs);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-tao-result-extra] {
|
|
55
|
+
justify-content: center;
|
|
56
|
+
gap: var(--tao-padding-sm);
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
margin-block-start: var(--tao-margin-lg);
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-tao-result-body] {
|
|
63
|
+
padding: var(--tao-padding-lg);
|
|
64
|
+
border-radius: var(--tao-radius);
|
|
65
|
+
background: var(--tao-color-bg-container-disabled);
|
|
66
|
+
text-align: start;
|
|
67
|
+
margin-block-start: var(--tao-margin-lg);
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
|
|
3
|
+
import './result.css';
|
|
4
|
+
export type ExceptionStatusType = 403 | 404 | 500 | '403' | '404' | '500';
|
|
5
|
+
export type ResultStatusType = ExceptionStatusType | 'success' | 'error' | 'info' | 'warning';
|
|
6
|
+
export type ResultSemanticPart = 'root' | 'title' | 'subTitle' | 'body' | 'extra' | 'icon';
|
|
7
|
+
export interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
8
|
+
status?: ResultStatusType;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
subTitle?: ReactNode;
|
|
12
|
+
extra?: ReactNode;
|
|
13
|
+
prefixCls?: string;
|
|
14
|
+
rootClassName?: string;
|
|
15
|
+
classNames?: SemanticClassNames<ResultSemanticPart> | ((info: {
|
|
16
|
+
props: ResultProps;
|
|
17
|
+
}) => SemanticClassNames<ResultSemanticPart>);
|
|
18
|
+
styles?: SemanticStyles<ResultSemanticPart> | ((info: {
|
|
19
|
+
props: ResultProps;
|
|
20
|
+
}) => SemanticStyles<ResultSemanticPart>);
|
|
21
|
+
}
|
|
22
|
+
export interface ResultRef {
|
|
23
|
+
nativeElement: HTMLDivElement;
|
|
24
|
+
}
|
|
25
|
+
declare function ForbiddenImage(): import("react").JSX.Element;
|
|
26
|
+
declare function NotFoundImage(): import("react").JSX.Element;
|
|
27
|
+
declare function ServerErrorImage(): import("react").JSX.Element;
|
|
28
|
+
export declare const Result: import("react").ForwardRefExoticComponent<ResultProps & import("react").RefAttributes<ResultRef>> & {
|
|
29
|
+
PRESENTED_IMAGE_403: typeof ForbiddenImage;
|
|
30
|
+
PRESENTED_IMAGE_404: typeof NotFoundImage;
|
|
31
|
+
PRESENTED_IMAGE_500: typeof ServerErrorImage;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { forwardRef, useImperativeHandle, useRef } from "react";
|
|
4
|
+
import { cx } from "../../utils/semantic.js";
|
|
5
|
+
import "./result.css";
|
|
6
|
+
function ResultIcon(t0) {
|
|
7
|
+
const $ = c(2);
|
|
8
|
+
const { status } = t0;
|
|
9
|
+
let t1;
|
|
10
|
+
if ($[0] !== status) {
|
|
11
|
+
t1 = /*#__PURE__*/ jsxs("svg", {
|
|
12
|
+
viewBox: "0 0 48 48",
|
|
13
|
+
fill: "none",
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
children: [
|
|
16
|
+
"warning" === status ? /*#__PURE__*/ jsx("path", {
|
|
17
|
+
d: "M24 6L44 41H4L24 6z",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeWidth: "2",
|
|
20
|
+
strokeLinejoin: "round"
|
|
21
|
+
}) : /*#__PURE__*/ jsx("circle", {
|
|
22
|
+
cx: "24",
|
|
23
|
+
cy: "24",
|
|
24
|
+
r: "19",
|
|
25
|
+
stroke: "currentColor",
|
|
26
|
+
strokeWidth: "2"
|
|
27
|
+
}),
|
|
28
|
+
"success" === status ? /*#__PURE__*/ jsx("path", {
|
|
29
|
+
d: "m14 24 7 7 14-15",
|
|
30
|
+
stroke: "currentColor",
|
|
31
|
+
strokeWidth: "2.5",
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
strokeLinejoin: "round"
|
|
34
|
+
}) : "error" === status ? /*#__PURE__*/ jsx("path", {
|
|
35
|
+
d: "m17 17 14 14m0-14L17 31",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "2.5",
|
|
38
|
+
strokeLinecap: "round"
|
|
39
|
+
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
40
|
+
children: [
|
|
41
|
+
/*#__PURE__*/ jsx("path", {
|
|
42
|
+
d: "warning" === status ? "M24 19v11" : "M24 23v10",
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
strokeWidth: "2.5",
|
|
45
|
+
strokeLinecap: "round"
|
|
46
|
+
}),
|
|
47
|
+
/*#__PURE__*/ jsx("circle", {
|
|
48
|
+
cx: "24",
|
|
49
|
+
cy: "warning" === status ? 35 : 16,
|
|
50
|
+
r: "1.5",
|
|
51
|
+
fill: "currentColor"
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
$[0] = status;
|
|
58
|
+
$[1] = t1;
|
|
59
|
+
} else t1 = $[1];
|
|
60
|
+
return t1;
|
|
61
|
+
}
|
|
62
|
+
function ForbiddenImage() {
|
|
63
|
+
const $ = c(1);
|
|
64
|
+
let t0;
|
|
65
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t0 = /*#__PURE__*/ jsx("span", {
|
|
67
|
+
"data-tao-result-code": "",
|
|
68
|
+
children: "403"
|
|
69
|
+
});
|
|
70
|
+
$[0] = t0;
|
|
71
|
+
} else t0 = $[0];
|
|
72
|
+
return t0;
|
|
73
|
+
}
|
|
74
|
+
function NotFoundImage() {
|
|
75
|
+
const $ = c(1);
|
|
76
|
+
let t0;
|
|
77
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
78
|
+
t0 = /*#__PURE__*/ jsx("span", {
|
|
79
|
+
"data-tao-result-code": "",
|
|
80
|
+
children: "404"
|
|
81
|
+
});
|
|
82
|
+
$[0] = t0;
|
|
83
|
+
} else t0 = $[0];
|
|
84
|
+
return t0;
|
|
85
|
+
}
|
|
86
|
+
function ServerErrorImage() {
|
|
87
|
+
const $ = c(1);
|
|
88
|
+
let t0;
|
|
89
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
90
|
+
t0 = /*#__PURE__*/ jsx("span", {
|
|
91
|
+
"data-tao-result-code": "",
|
|
92
|
+
children: "500"
|
|
93
|
+
});
|
|
94
|
+
$[0] = t0;
|
|
95
|
+
} else t0 = $[0];
|
|
96
|
+
return t0;
|
|
97
|
+
}
|
|
98
|
+
const exceptionImages = {
|
|
99
|
+
403: ForbiddenImage,
|
|
100
|
+
404: NotFoundImage,
|
|
101
|
+
500: ServerErrorImage
|
|
102
|
+
};
|
|
103
|
+
const renderable = (value)=>null != value && 'boolean' != typeof value;
|
|
104
|
+
const ResultRoot = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
105
|
+
const $ = c(68);
|
|
106
|
+
let children;
|
|
107
|
+
let className;
|
|
108
|
+
let classNames;
|
|
109
|
+
let extra;
|
|
110
|
+
let icon;
|
|
111
|
+
let rest;
|
|
112
|
+
let rootClassName;
|
|
113
|
+
let style;
|
|
114
|
+
let styles;
|
|
115
|
+
let subTitle;
|
|
116
|
+
let t0;
|
|
117
|
+
let t1;
|
|
118
|
+
let title;
|
|
119
|
+
if ($[0] !== props) {
|
|
120
|
+
({ status: t0, icon, title, subTitle, extra, children, prefixCls: t1, className, rootClassName, style, classNames, styles, ...rest } = props);
|
|
121
|
+
$[0] = props;
|
|
122
|
+
$[1] = children;
|
|
123
|
+
$[2] = className;
|
|
124
|
+
$[3] = classNames;
|
|
125
|
+
$[4] = extra;
|
|
126
|
+
$[5] = icon;
|
|
127
|
+
$[6] = rest;
|
|
128
|
+
$[7] = rootClassName;
|
|
129
|
+
$[8] = style;
|
|
130
|
+
$[9] = styles;
|
|
131
|
+
$[10] = subTitle;
|
|
132
|
+
$[11] = t0;
|
|
133
|
+
$[12] = t1;
|
|
134
|
+
$[13] = title;
|
|
135
|
+
} else {
|
|
136
|
+
children = $[1];
|
|
137
|
+
className = $[2];
|
|
138
|
+
classNames = $[3];
|
|
139
|
+
extra = $[4];
|
|
140
|
+
icon = $[5];
|
|
141
|
+
rest = $[6];
|
|
142
|
+
rootClassName = $[7];
|
|
143
|
+
style = $[8];
|
|
144
|
+
styles = $[9];
|
|
145
|
+
subTitle = $[10];
|
|
146
|
+
t0 = $[11];
|
|
147
|
+
t1 = $[12];
|
|
148
|
+
title = $[13];
|
|
149
|
+
}
|
|
150
|
+
const status = void 0 === t0 ? "info" : t0;
|
|
151
|
+
const prefixCls = void 0 === t1 ? "tao-result" : t1;
|
|
152
|
+
let names;
|
|
153
|
+
let t2;
|
|
154
|
+
if ($[14] !== classNames || $[15] !== props || $[16] !== status || $[17] !== styles) {
|
|
155
|
+
const resolvedProps = {
|
|
156
|
+
...props,
|
|
157
|
+
status
|
|
158
|
+
};
|
|
159
|
+
names = "function" == typeof classNames ? classNames({
|
|
160
|
+
props: resolvedProps
|
|
161
|
+
}) : classNames;
|
|
162
|
+
t2 = "function" == typeof styles ? styles({
|
|
163
|
+
props: resolvedProps
|
|
164
|
+
}) : styles;
|
|
165
|
+
$[14] = classNames;
|
|
166
|
+
$[15] = props;
|
|
167
|
+
$[16] = status;
|
|
168
|
+
$[17] = styles;
|
|
169
|
+
$[18] = names;
|
|
170
|
+
$[19] = t2;
|
|
171
|
+
} else {
|
|
172
|
+
names = $[18];
|
|
173
|
+
t2 = $[19];
|
|
174
|
+
}
|
|
175
|
+
const slots = t2;
|
|
176
|
+
const root = useRef(null);
|
|
177
|
+
let t3;
|
|
178
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
179
|
+
t3 = ()=>({
|
|
180
|
+
nativeElement: root.current
|
|
181
|
+
});
|
|
182
|
+
$[20] = t3;
|
|
183
|
+
} else t3 = $[20];
|
|
184
|
+
useImperativeHandle(ref, t3);
|
|
185
|
+
const exception = 403 === status || "403" === status || 404 === status || "404" === status || 500 === status || "500" === status;
|
|
186
|
+
const ExceptionImage = exception ? exceptionImages[String(status)] : void 0;
|
|
187
|
+
const t4 = `${prefixCls}-${status}`;
|
|
188
|
+
const t5 = names?.root;
|
|
189
|
+
let t6;
|
|
190
|
+
if ($[21] !== className || $[22] !== prefixCls || $[23] !== rootClassName || $[24] !== t4 || $[25] !== t5) {
|
|
191
|
+
t6 = cx(prefixCls, t4, t5, className, rootClassName);
|
|
192
|
+
$[21] = className;
|
|
193
|
+
$[22] = prefixCls;
|
|
194
|
+
$[23] = rootClassName;
|
|
195
|
+
$[24] = t4;
|
|
196
|
+
$[25] = t5;
|
|
197
|
+
$[26] = t6;
|
|
198
|
+
} else t6 = $[26];
|
|
199
|
+
const t7 = slots?.root;
|
|
200
|
+
let t8;
|
|
201
|
+
if ($[27] !== style || $[28] !== t7) {
|
|
202
|
+
t8 = {
|
|
203
|
+
...t7,
|
|
204
|
+
...style
|
|
205
|
+
};
|
|
206
|
+
$[27] = style;
|
|
207
|
+
$[28] = t7;
|
|
208
|
+
$[29] = t8;
|
|
209
|
+
} else t8 = $[29];
|
|
210
|
+
let t9;
|
|
211
|
+
if ($[30] !== ExceptionImage || $[31] !== exception || $[32] !== icon || $[33] !== names?.icon || $[34] !== prefixCls || $[35] !== slots?.icon || $[36] !== status) {
|
|
212
|
+
t9 = (exception || null !== icon && false !== icon) && /*#__PURE__*/ jsx("div", {
|
|
213
|
+
"data-tao-result-icon": "",
|
|
214
|
+
className: cx(`${prefixCls}-icon`, names?.icon),
|
|
215
|
+
style: slots?.icon,
|
|
216
|
+
children: ExceptionImage ? /*#__PURE__*/ jsx(ExceptionImage, {}) : renderable(icon) ? icon : /*#__PURE__*/ jsx(ResultIcon, {
|
|
217
|
+
status: status
|
|
218
|
+
})
|
|
219
|
+
});
|
|
220
|
+
$[30] = ExceptionImage;
|
|
221
|
+
$[31] = exception;
|
|
222
|
+
$[32] = icon;
|
|
223
|
+
$[33] = names?.icon;
|
|
224
|
+
$[34] = prefixCls;
|
|
225
|
+
$[35] = slots?.icon;
|
|
226
|
+
$[36] = status;
|
|
227
|
+
$[37] = t9;
|
|
228
|
+
} else t9 = $[37];
|
|
229
|
+
let t10;
|
|
230
|
+
if ($[38] !== names?.title || $[39] !== prefixCls || $[40] !== slots?.title || $[41] !== title) {
|
|
231
|
+
t10 = renderable(title) && /*#__PURE__*/ jsx("div", {
|
|
232
|
+
"data-tao-result-title": "",
|
|
233
|
+
className: cx(`${prefixCls}-title`, names?.title),
|
|
234
|
+
style: slots?.title,
|
|
235
|
+
children: title
|
|
236
|
+
});
|
|
237
|
+
$[38] = names?.title;
|
|
238
|
+
$[39] = prefixCls;
|
|
239
|
+
$[40] = slots?.title;
|
|
240
|
+
$[41] = title;
|
|
241
|
+
$[42] = t10;
|
|
242
|
+
} else t10 = $[42];
|
|
243
|
+
let t11;
|
|
244
|
+
if ($[43] !== names?.subTitle || $[44] !== prefixCls || $[45] !== slots?.subTitle || $[46] !== subTitle) {
|
|
245
|
+
t11 = renderable(subTitle) && /*#__PURE__*/ jsx("div", {
|
|
246
|
+
"data-tao-result-subtitle": "",
|
|
247
|
+
className: cx(`${prefixCls}-subtitle`, names?.subTitle),
|
|
248
|
+
style: slots?.subTitle,
|
|
249
|
+
children: subTitle
|
|
250
|
+
});
|
|
251
|
+
$[43] = names?.subTitle;
|
|
252
|
+
$[44] = prefixCls;
|
|
253
|
+
$[45] = slots?.subTitle;
|
|
254
|
+
$[46] = subTitle;
|
|
255
|
+
$[47] = t11;
|
|
256
|
+
} else t11 = $[47];
|
|
257
|
+
let t12;
|
|
258
|
+
if ($[48] !== extra || $[49] !== names?.extra || $[50] !== prefixCls || $[51] !== slots?.extra) {
|
|
259
|
+
t12 = renderable(extra) && /*#__PURE__*/ jsx("div", {
|
|
260
|
+
"data-tao-result-extra": "",
|
|
261
|
+
className: cx(`${prefixCls}-extra`, names?.extra),
|
|
262
|
+
style: slots?.extra,
|
|
263
|
+
children: extra
|
|
264
|
+
});
|
|
265
|
+
$[48] = extra;
|
|
266
|
+
$[49] = names?.extra;
|
|
267
|
+
$[50] = prefixCls;
|
|
268
|
+
$[51] = slots?.extra;
|
|
269
|
+
$[52] = t12;
|
|
270
|
+
} else t12 = $[52];
|
|
271
|
+
let t13;
|
|
272
|
+
if ($[53] !== children || $[54] !== names?.body || $[55] !== prefixCls || $[56] !== slots?.body) {
|
|
273
|
+
t13 = renderable(children) && /*#__PURE__*/ jsx("div", {
|
|
274
|
+
"data-tao-result-body": "",
|
|
275
|
+
className: cx(`${prefixCls}-body`, names?.body),
|
|
276
|
+
style: slots?.body,
|
|
277
|
+
children: children
|
|
278
|
+
});
|
|
279
|
+
$[53] = children;
|
|
280
|
+
$[54] = names?.body;
|
|
281
|
+
$[55] = prefixCls;
|
|
282
|
+
$[56] = slots?.body;
|
|
283
|
+
$[57] = t13;
|
|
284
|
+
} else t13 = $[57];
|
|
285
|
+
let t14;
|
|
286
|
+
if ($[58] !== rest || $[59] !== status || $[60] !== t10 || $[61] !== t11 || $[62] !== t12 || $[63] !== t13 || $[64] !== t6 || $[65] !== t8 || $[66] !== t9) {
|
|
287
|
+
t14 = /*#__PURE__*/ jsxs("div", {
|
|
288
|
+
...rest,
|
|
289
|
+
ref: root,
|
|
290
|
+
"data-tao-result": "",
|
|
291
|
+
"data-tao-status": status,
|
|
292
|
+
className: t6,
|
|
293
|
+
style: t8,
|
|
294
|
+
children: [
|
|
295
|
+
t9,
|
|
296
|
+
t10,
|
|
297
|
+
t11,
|
|
298
|
+
t12,
|
|
299
|
+
t13
|
|
300
|
+
]
|
|
301
|
+
});
|
|
302
|
+
$[58] = rest;
|
|
303
|
+
$[59] = status;
|
|
304
|
+
$[60] = t10;
|
|
305
|
+
$[61] = t11;
|
|
306
|
+
$[62] = t12;
|
|
307
|
+
$[63] = t13;
|
|
308
|
+
$[64] = t6;
|
|
309
|
+
$[65] = t8;
|
|
310
|
+
$[66] = t9;
|
|
311
|
+
$[67] = t14;
|
|
312
|
+
} else t14 = $[67];
|
|
313
|
+
return t14;
|
|
314
|
+
});
|
|
315
|
+
const result_Result = Object.assign(ResultRoot, {
|
|
316
|
+
PRESENTED_IMAGE_403: ForbiddenImage,
|
|
317
|
+
PRESENTED_IMAGE_404: NotFoundImage,
|
|
318
|
+
PRESENTED_IMAGE_500: ServerErrorImage
|
|
319
|
+
});
|
|
320
|
+
export { result_Result as Result };
|