antd3-esm 1.0.1
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/LICENSE +21 -0
- package/dist/Checkbox.js +164 -0
- package/dist/CommonMixin.js +816 -0
- package/dist/Divider.js +646 -0
- package/dist/Notification.js +279 -0
- package/dist/Pagination.js +1106 -0
- package/dist/PortalWrapper.js +347 -0
- package/dist/RowContext.js +5 -0
- package/dist/Sider.js +533 -0
- package/dist/TextArea.js +432 -0
- package/dist/_arrayMap.js +68 -0
- package/dist/_assignValue.js +95 -0
- package/dist/_copyArray.js +31 -0
- package/dist/_hasPath.js +53 -0
- package/dist/_overArg.js +437 -0
- package/dist/_stringToArray.js +136 -0
- package/dist/antd/es/affix.js +12 -0
- package/dist/antd/es/alert.js +5 -0
- package/dist/antd/es/anchor.js +466 -0
- package/dist/antd/es/auto-complete.js +5 -0
- package/dist/antd/es/avatar.js +5 -0
- package/dist/antd/es/back-top.js +5 -0
- package/dist/antd/es/badge.js +5 -0
- package/dist/antd/es/breadcrumb.js +18 -0
- package/dist/antd/es/button.js +12 -0
- package/dist/antd/es/calendar.js +953 -0
- package/dist/antd/es/card.js +5 -0
- package/dist/antd/es/carousel.js +5 -0
- package/dist/antd/es/cascader.js +1275 -0
- package/dist/antd/es/checkbox.js +11 -0
- package/dist/antd/es/col.js +4 -0
- package/dist/antd/es/collapse.js +688 -0
- package/dist/antd/es/comment.js +5 -0
- package/dist/antd/es/config-provider.js +2 -0
- package/dist/antd/es/date-picker.js +4322 -0
- package/dist/antd/es/descriptions.js +342 -0
- package/dist/antd/es/divider.js +53 -0
- package/dist/antd/es/drawer.js +1115 -0
- package/dist/antd/es/dropdown.js +14 -0
- package/dist/antd/es/empty.js +6 -0
- package/dist/antd/es/form.js +5008 -0
- package/dist/antd/es/grid.js +13 -0
- package/dist/antd/es/icon.js +6 -0
- package/dist/antd/es/input-number.js +5 -0
- package/dist/antd/es/input.js +16 -0
- package/dist/antd/es/layout.js +14 -0
- package/dist/antd/es/list.js +5 -0
- package/dist/antd/es/locale/ar_EG.js +102 -0
- package/dist/antd/es/locale/bg_BG.js +98 -0
- package/dist/antd/es/locale/ca_ES.js +96 -0
- package/dist/antd/es/locale/cs_CZ.js +96 -0
- package/dist/antd/es/locale/da_DK.js +98 -0
- package/dist/antd/es/locale/de_DE.js +98 -0
- package/dist/antd/es/locale/default.js +2 -0
- package/dist/antd/es/locale/el_GR.js +98 -0
- package/dist/antd/es/locale/en_GB.js +98 -0
- package/dist/antd/es/locale/en_US.js +2 -0
- package/dist/antd/es/locale/es_ES.js +114 -0
- package/dist/antd/es/locale/et_EE.js +98 -0
- package/dist/antd/es/locale/fa_IR.js +98 -0
- package/dist/antd/es/locale/fi_FI.js +99 -0
- package/dist/antd/es/locale/fr_BE.js +102 -0
- package/dist/antd/es/locale/fr_FR.js +102 -0
- package/dist/antd/es/locale/ga_IE.js +99 -0
- package/dist/antd/es/locale/he_IL.js +99 -0
- package/dist/antd/es/locale/hi_IN.js +107 -0
- package/dist/antd/es/locale/hr_HR.js +113 -0
- package/dist/antd/es/locale/hu_HU.js +99 -0
- package/dist/antd/es/locale/hy_AM.js +109 -0
- package/dist/antd/es/locale/id_ID.js +101 -0
- package/dist/antd/es/locale/is_IS.js +98 -0
- package/dist/antd/es/locale/it_IT.js +111 -0
- package/dist/antd/es/locale/ja_JP.js +96 -0
- package/dist/antd/es/locale/kn_IN.js +107 -0
- package/dist/antd/es/locale/ko_KR.js +98 -0
- package/dist/antd/es/locale/ku_IQ.js +98 -0
- package/dist/antd/es/locale/lv_LV.js +98 -0
- package/dist/antd/es/locale/mk_MK.js +113 -0
- package/dist/antd/es/locale/mn_MN.js +99 -0
- package/dist/antd/es/locale/ms_MY.js +118 -0
- package/dist/antd/es/locale/nb_NO.js +97 -0
- package/dist/antd/es/locale/ne_NP.js +44 -0
- package/dist/antd/es/locale/nl_BE.js +98 -0
- package/dist/antd/es/locale/nl_NL.js +117 -0
- package/dist/antd/es/locale/pl_PL.js +98 -0
- package/dist/antd/es/locale/pt_BR.js +104 -0
- package/dist/antd/es/locale/pt_PT.js +127 -0
- package/dist/antd/es/locale/ro_RO.js +118 -0
- package/dist/antd/es/locale/ru_RU.js +110 -0
- package/dist/antd/es/locale/sk_SK.js +118 -0
- package/dist/antd/es/locale/sl_SI.js +96 -0
- package/dist/antd/es/locale/sr_RS.js +97 -0
- package/dist/antd/es/locale/sv_SE.js +101 -0
- package/dist/antd/es/locale/ta_IN.js +119 -0
- package/dist/antd/es/locale/th_TH.js +117 -0
- package/dist/antd/es/locale/tr_TR.js +112 -0
- package/dist/antd/es/locale/uk_UA.js +97 -0
- package/dist/antd/es/locale/vi_VN.js +99 -0
- package/dist/antd/es/locale/zh_CN.js +104 -0
- package/dist/antd/es/locale/zh_TW.js +100 -0
- package/dist/antd/es/locale-provider.js +6 -0
- package/dist/antd/es/mention.js +23215 -0
- package/dist/antd/es/mentions.js +961 -0
- package/dist/antd/es/menu.js +5 -0
- package/dist/antd/es/message.js +161 -0
- package/dist/antd/es/modal.js +885 -0
- package/dist/antd/es/notification.js +216 -0
- package/dist/antd/es/page-header.js +350 -0
- package/dist/antd/es/pagination.js +15 -0
- package/dist/antd/es/popconfirm.js +215 -0
- package/dist/antd/es/popover.js +5 -0
- package/dist/antd/es/progress.js +10 -0
- package/dist/antd/es/radio.js +10 -0
- package/dist/antd/es/rate.js +5 -0
- package/dist/antd/es/result.js +828 -0
- package/dist/antd/es/row.js +9 -0
- package/dist/antd/es/select.js +5 -0
- package/dist/antd/es/skeleton.js +370 -0
- package/dist/antd/es/slider.js +5 -0
- package/dist/antd/es/spin.js +11 -0
- package/dist/antd/es/statistic.js +650 -0
- package/dist/antd/es/steps.js +5 -0
- package/dist/antd/es/style.js +5 -0
- package/dist/antd/es/switch.js +5 -0
- package/dist/antd/es/table.js +7057 -0
- package/dist/antd/es/tabs.js +5 -0
- package/dist/antd/es/tag.js +12 -0
- package/dist/antd/es/time-picker.js +10 -0
- package/dist/antd/es/timeline.js +206 -0
- package/dist/antd/es/tooltip.js +9 -0
- package/dist/antd/es/transfer.js +2508 -0
- package/dist/antd/es/tree-select.js +5 -0
- package/dist/antd/es/tree.js +10 -0
- package/dist/antd/es/typography.js +1246 -0
- package/dist/antd/es/upload.js +3418 -0
- package/dist/antd/es/version.js +7 -0
- package/dist/col.js +142 -0
- package/dist/config-provider.js +6949 -0
- package/dist/dropdown.js +442 -0
- package/dist/get.js +1043 -0
- package/dist/icon.js +6138 -0
- package/dist/identity.js +230 -0
- package/dist/index.js +462 -0
- package/dist/index10.js +478 -0
- package/dist/index11.js +232 -0
- package/dist/index12.js +2766 -0
- package/dist/index13.js +422 -0
- package/dist/index14.js +283 -0
- package/dist/index15.js +1755 -0
- package/dist/index2.js +374 -0
- package/dist/index3.js +407 -0
- package/dist/index4.js +522 -0
- package/dist/index5.js +601 -0
- package/dist/index6.js +601 -0
- package/dist/index7.js +364 -0
- package/dist/index8.js +436 -0
- package/dist/index9.js +130 -0
- package/dist/input.js +475 -0
- package/dist/isLength.js +402 -0
- package/dist/keys.js +292 -0
- package/dist/menu.js +8138 -0
- package/dist/progress.js +852 -0
- package/dist/raf.js +34 -0
- package/dist/responsiveObserve.js +444 -0
- package/dist/row.js +173 -0
- package/dist/scrollTo.js +66 -0
- package/dist/toInteger.js +123 -0
- package/dist/toString.js +84 -0
- package/dist/transButton.js +121 -0
- package/dist/tree.js +3017 -0
- package/dist/warning.js +55 -0
- package/dist/wave.js +230 -0
- package/dist/zh_CN.js +17 -0
- package/package.json +160 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { R as default } from '../../row.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../../config-provider.js';
|
|
4
|
+
import '../../RowContext.js';
|
|
5
|
+
import '../../input.js';
|
|
6
|
+
import '../../menu.js';
|
|
7
|
+
import 'react-dom';
|
|
8
|
+
import '../../icon.js';
|
|
9
|
+
import '../../responsiveObserve.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n } from '../../config-provider.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-select {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n outline: 0;\n}\n.ant-select ul,\n.ant-select ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-select > ul > li > a {\n padding: 0;\n background-color: #fff;\n}\n.ant-select-arrow {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n top: 50%;\n right: 11px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 1;\n transform-origin: 50% 50%;\n}\n.ant-select-arrow > * {\n line-height: 1;\n}\n.ant-select-arrow svg {\n display: inline-block;\n}\n.ant-select-arrow::before {\n display: none;\n}\n.ant-select-arrow .ant-select-arrow-icon {\n display: block;\n}\n.ant-select-arrow .ant-select-arrow-icon svg {\n transition: transform 0.3s;\n}\n.ant-select-selection {\n display: block;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-top-width: 1.02px;\n border-radius: 4px;\n outline: none;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n user-select: none;\n}\n.ant-select-selection:hover {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.ant-select-focused .ant-select-selection,\n.ant-select-selection:focus,\n.ant-select-selection:active {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-select-selection__clear {\n position: absolute;\n top: 50%;\n right: 11px;\n z-index: 1;\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n font-style: normal;\n line-height: 12px;\n text-align: center;\n text-transform: none;\n background: #fff;\n cursor: pointer;\n opacity: 0;\n transition: color 0.3s ease, opacity 0.15s ease;\n text-rendering: auto;\n}\n.ant-select-selection__clear::before {\n display: block;\n}\n.ant-select-selection__clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-select-selection:hover .ant-select-selection__clear {\n opacity: 1;\n}\n.ant-select-selection-selected-value {\n float: left;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-select-no-arrow .ant-select-selection-selected-value {\n padding-right: 0;\n}\n.ant-select-disabled {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-disabled .ant-select-selection {\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-select-disabled .ant-select-selection:hover,\n.ant-select-disabled .ant-select-selection:focus,\n.ant-select-disabled .ant-select-selection:active {\n border-color: #d9d9d9;\n box-shadow: none;\n}\n.ant-select-disabled .ant-select-selection__clear {\n display: none;\n visibility: hidden;\n pointer-events: none;\n}\n.ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice {\n padding-right: 10px;\n color: rgba(0, 0, 0, 0.33);\n background: #f5f5f5;\n}\n.ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice__remove {\n display: none;\n}\n.ant-select-selection--single {\n position: relative;\n height: 32px;\n cursor: pointer;\n}\n.ant-select-selection--single .ant-select-selection__rendered {\n margin-right: 24px;\n}\n.ant-select-no-arrow .ant-select-selection__rendered {\n margin-right: 11px;\n}\n.ant-select-selection__rendered {\n position: relative;\n display: block;\n margin-right: 11px;\n margin-left: 11px;\n line-height: 30px;\n}\n.ant-select-selection__rendered::after {\n display: inline-block;\n width: 0;\n visibility: hidden;\n content: '.';\n pointer-events: none;\n}\n.ant-select-lg {\n font-size: 16px;\n}\n.ant-select-lg .ant-select-selection--single {\n height: 40px;\n}\n.ant-select-lg .ant-select-selection__rendered {\n line-height: 38px;\n}\n.ant-select-lg .ant-select-selection--multiple {\n min-height: 40px;\n}\n.ant-select-lg .ant-select-selection--multiple .ant-select-selection__rendered li {\n height: 32px;\n line-height: 32px;\n}\n.ant-select-lg .ant-select-selection--multiple .ant-select-selection__clear,\n.ant-select-lg .ant-select-selection--multiple .ant-select-arrow {\n top: 20px;\n}\n.ant-select-sm .ant-select-selection--single {\n height: 24px;\n}\n.ant-select-sm .ant-select-selection__rendered {\n margin-left: 7px;\n line-height: 22px;\n}\n.ant-select-sm .ant-select-selection--multiple {\n min-height: 24px;\n}\n.ant-select-sm .ant-select-selection--multiple .ant-select-selection__rendered li {\n height: 16px;\n line-height: 14px;\n}\n.ant-select-sm .ant-select-selection--multiple .ant-select-selection__clear,\n.ant-select-sm .ant-select-selection--multiple .ant-select-arrow {\n top: 12px;\n}\n.ant-select-sm .ant-select-selection__clear,\n.ant-select-sm .ant-select-arrow {\n right: 8px;\n}\n.ant-select-disabled .ant-select-selection__choice__remove {\n color: rgba(0, 0, 0, 0.25);\n cursor: default;\n}\n.ant-select-disabled .ant-select-selection__choice__remove:hover {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-search__field__wrap {\n position: relative;\n display: inline-block;\n}\n.ant-select-selection__placeholder,\n.ant-select-search__field__placeholder {\n position: absolute;\n top: 50%;\n right: 9px;\n left: 0;\n max-width: 100%;\n height: 20px;\n margin-top: -10px;\n overflow: hidden;\n color: #bfbfbf;\n line-height: 20px;\n white-space: nowrap;\n text-align: left;\n text-overflow: ellipsis;\n}\n.ant-select-search__field__placeholder {\n left: 12px;\n}\n.ant-select-search__field__mirror {\n position: absolute;\n top: 0;\n left: 0;\n white-space: pre;\n opacity: 0;\n pointer-events: none;\n}\n.ant-select-search--inline {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.ant-select-search--inline .ant-select-search__field__wrap {\n width: 100%;\n height: 100%;\n}\n.ant-select-search--inline .ant-select-search__field {\n width: 100%;\n height: 100%;\n font-size: 100%;\n line-height: 1;\n background: transparent;\n border-width: 0;\n border-radius: 4px;\n outline: 0;\n}\n.ant-select-search--inline > i {\n float: right;\n}\n.ant-select-selection--multiple {\n min-height: 32px;\n padding-bottom: 3px;\n cursor: text;\n zoom: 1;\n}\n.ant-select-selection--multiple::before,\n.ant-select-selection--multiple::after {\n display: table;\n content: '';\n}\n.ant-select-selection--multiple::after {\n clear: both;\n}\n.ant-select-selection--multiple .ant-select-search--inline {\n position: static;\n float: left;\n width: auto;\n max-width: 100%;\n padding: 0;\n}\n.ant-select-selection--multiple .ant-select-search--inline .ant-select-search__field {\n width: 0.75em;\n max-width: 100%;\n padding: 1px;\n}\n.ant-select-selection--multiple .ant-select-selection__rendered {\n height: auto;\n margin-bottom: -3px;\n margin-left: 5px;\n}\n.ant-select-selection--multiple .ant-select-selection__placeholder {\n margin-left: 6px;\n}\n.ant-select-selection--multiple > ul > li,\n.ant-select-selection--multiple .ant-select-selection__rendered > ul > li {\n height: 24px;\n margin-top: 3px;\n line-height: 22px;\n}\n.ant-select-selection--multiple .ant-select-selection__choice {\n position: relative;\n float: left;\n max-width: 99%;\n margin-right: 4px;\n padding: 0 20px 0 10px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.65);\n background-color: #fafafa;\n border: 1px solid #e8e8e8;\n border-radius: 2px;\n cursor: default;\n transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-select-selection--multiple .ant-select-selection__choice__disabled {\n padding: 0 10px;\n}\n.ant-select-selection--multiple .ant-select-selection__choice__content {\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-select-selection--multiple .ant-select-selection__choice__remove {\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n right: 4px;\n color: rgba(0, 0, 0, 0.45);\n font-weight: bold;\n line-height: inherit;\n cursor: pointer;\n transition: all 0.3s;\n display: inline-block;\n font-size: 12px;\n font-size: 10px \\9;\n transform: scale(0.83333333) rotate(0deg);\n}\n.ant-select-selection--multiple .ant-select-selection__choice__remove > * {\n line-height: 1;\n}\n.ant-select-selection--multiple .ant-select-selection__choice__remove svg {\n display: inline-block;\n}\n.ant-select-selection--multiple .ant-select-selection__choice__remove::before {\n display: none;\n}\n.ant-select-selection--multiple .ant-select-selection__choice__remove .ant-select-selection--multiple .ant-select-selection__choice__remove-icon {\n display: block;\n}\n:root .ant-select-selection--multiple .ant-select-selection__choice__remove {\n font-size: 12px;\n}\n.ant-select-selection--multiple .ant-select-selection__choice__remove:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-select-selection--multiple .ant-select-selection__clear,\n.ant-select-selection--multiple .ant-select-arrow {\n top: 16px;\n}\n.ant-select-allow-clear .ant-select-selection--multiple .ant-select-selection__rendered,\n.ant-select-show-arrow .ant-select-selection--multiple .ant-select-selection__rendered {\n margin-right: 20px;\n}\n.ant-select-open .ant-select-arrow-icon svg {\n transform: rotate(180deg);\n}\n.ant-select-open .ant-select-selection {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-select-combobox .ant-select-arrow {\n display: none;\n}\n.ant-select-combobox .ant-select-search--inline {\n float: none;\n width: 100%;\n height: 100%;\n}\n.ant-select-combobox .ant-select-search__field__wrap {\n width: 100%;\n height: 100%;\n}\n.ant-select-combobox .ant-select-search__field {\n position: relative;\n z-index: 1;\n width: 100%;\n height: 100%;\n box-shadow: none;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0s;\n}\n.ant-select-combobox.ant-select-allow-clear .ant-select-selection:hover .ant-select-selection__rendered,\n.ant-select-combobox.ant-select-show-arrow .ant-select-selection:hover .ant-select-selection__rendered {\n margin-right: 20px;\n}\n.ant-select-dropdown {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n box-sizing: border-box;\n font-size: 14px;\n font-variant: initial;\n background-color: #fff;\n border-radius: 4px;\n outline: none;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n}\n.ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-bottomLeft,\n.ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-bottomLeft {\n animation-name: antSlideUpIn;\n}\n.ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-topLeft,\n.ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-topLeft {\n animation-name: antSlideDownIn;\n}\n.ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-bottomLeft {\n animation-name: antSlideUpOut;\n}\n.ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-topLeft {\n animation-name: antSlideDownOut;\n}\n.ant-select-dropdown-hidden {\n display: none;\n}\n.ant-select-dropdown-menu {\n max-height: 250px;\n margin-bottom: 0;\n padding: 4px 0;\n padding-left: 0;\n overflow: auto;\n list-style: none;\n outline: none;\n}\n.ant-select-dropdown-menu-item-group-list {\n margin: 0;\n padding: 0;\n}\n.ant-select-dropdown-menu-item-group-list > .ant-select-dropdown-menu-item {\n padding-left: 20px;\n}\n.ant-select-dropdown-menu-item-group-title {\n height: 32px;\n padding: 0 12px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n line-height: 32px;\n}\n.ant-select-dropdown-menu-item-group-list .ant-select-dropdown-menu-item:first-child:not(:last-child),\n.ant-select-dropdown-menu-item-group:not(:last-child) .ant-select-dropdown-menu-item-group-list .ant-select-dropdown-menu-item:last-child {\n border-radius: 0;\n}\n.ant-select-dropdown-menu-item {\n position: relative;\n display: block;\n padding: 5px 12px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.65);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {\n background-color: #e6f7ff;\n}\n.ant-select-dropdown-menu-item-selected {\n color: rgba(0, 0, 0, 0.65);\n font-weight: 600;\n background-color: #fafafa;\n}\n.ant-select-dropdown-menu-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-dropdown-menu-item-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) {\n background-color: #e6f7ff;\n}\n.ant-select-dropdown-menu-item-divider {\n height: 1px;\n margin: 1px 0;\n overflow: hidden;\n line-height: 0;\n background-color: #e8e8e8;\n}\n.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item {\n padding-right: 32px;\n}\n.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item .ant-select-selected-icon {\n position: absolute;\n top: 50%;\n right: 12px;\n color: transparent;\n font-weight: bold;\n font-size: 12px;\n text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0;\n transform: translateY(-50%);\n transition: all 0.2s;\n}\n.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:hover .ant-select-selected-icon {\n color: rgba(0, 0, 0, 0.87);\n}\n.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-disabled .ant-select-selected-icon {\n display: none;\n}\n.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected .ant-select-selected-icon,\n.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected:hover .ant-select-selected-icon {\n display: inline-block;\n color: #1890ff;\n}\n.ant-select-dropdown--empty.ant-select-dropdown--multiple .ant-select-dropdown-menu-item {\n padding-right: 12px;\n}\n.ant-select-dropdown-container-open .ant-select-dropdown,\n.ant-select-dropdown-open .ant-select-dropdown {\n display: block;\n}\n/*# sourceMappingURL=index.css.map */";
|
|
5
|
+
n(css,{"prepend":true});
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { n, c as classNames, C as ConfigConsumer } from '../../config-provider.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-skeleton {\n display: table;\n width: 100%;\n}\n.ant-skeleton-header {\n display: table-cell;\n padding-right: 16px;\n vertical-align: top;\n}\n.ant-skeleton-header .ant-skeleton-avatar {\n display: inline-block;\n vertical-align: top;\n background: #f2f2f2;\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-header .ant-skeleton-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-header .ant-skeleton-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-content {\n display: table-cell;\n width: 100%;\n vertical-align: top;\n}\n.ant-skeleton-content .ant-skeleton-title {\n width: 100%;\n height: 16px;\n margin-top: 16px;\n background: #f2f2f2;\n}\n.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {\n margin-top: 24px;\n}\n.ant-skeleton-content .ant-skeleton-paragraph {\n padding: 0;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li {\n width: 100%;\n height: 16px;\n list-style: none;\n background: #f2f2f2;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {\n width: 61%;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li + li {\n margin-top: 16px;\n}\n.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {\n margin-top: 12px;\n}\n.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {\n margin-top: 28px;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {\n background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {\n background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n@keyframes ant-skeleton-loading {\n 0% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0 50%;\n }\n}\n/*# sourceMappingURL=index.css.map */";
|
|
5
|
+
n(css,{"prepend":true});
|
|
6
|
+
|
|
7
|
+
function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
|
|
8
|
+
|
|
9
|
+
function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
10
|
+
|
|
11
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
|
|
13
|
+
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
|
|
15
|
+
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
|
+
|
|
17
|
+
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); return Constructor; }
|
|
18
|
+
|
|
19
|
+
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
|
|
20
|
+
|
|
21
|
+
function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
|
|
22
|
+
|
|
23
|
+
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
24
|
+
|
|
25
|
+
function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
|
|
26
|
+
|
|
27
|
+
function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
28
|
+
|
|
29
|
+
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
|
+
|
|
31
|
+
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
32
|
+
|
|
33
|
+
var SkeletonAvatar = /*#__PURE__*/function (_React$Component) {
|
|
34
|
+
_inherits$2(SkeletonAvatar, _React$Component);
|
|
35
|
+
|
|
36
|
+
var _super = _createSuper$2(SkeletonAvatar);
|
|
37
|
+
|
|
38
|
+
function SkeletonAvatar() {
|
|
39
|
+
_classCallCheck$2(this, SkeletonAvatar);
|
|
40
|
+
|
|
41
|
+
return _super.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
_createClass$2(SkeletonAvatar, [{
|
|
45
|
+
key: "render",
|
|
46
|
+
value: function render() {
|
|
47
|
+
var _classNames, _classNames2;
|
|
48
|
+
|
|
49
|
+
var _this$props = this.props,
|
|
50
|
+
prefixCls = _this$props.prefixCls,
|
|
51
|
+
className = _this$props.className,
|
|
52
|
+
style = _this$props.style,
|
|
53
|
+
size = _this$props.size,
|
|
54
|
+
shape = _this$props.shape;
|
|
55
|
+
var sizeCls = classNames((_classNames = {}, _defineProperty$1(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), _defineProperty$1(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _classNames));
|
|
56
|
+
var shapeCls = classNames((_classNames2 = {}, _defineProperty$1(_classNames2, "".concat(prefixCls, "-circle"), shape === 'circle'), _defineProperty$1(_classNames2, "".concat(prefixCls, "-square"), shape === 'square'), _classNames2));
|
|
57
|
+
var sizeStyle = typeof size === 'number' ? {
|
|
58
|
+
width: size,
|
|
59
|
+
height: size,
|
|
60
|
+
lineHeight: "".concat(size, "px")
|
|
61
|
+
} : {};
|
|
62
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
63
|
+
className: classNames(prefixCls, className, sizeCls, shapeCls),
|
|
64
|
+
style: _extends$2(_extends$2({}, sizeStyle), style)
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}]);
|
|
68
|
+
|
|
69
|
+
return SkeletonAvatar;
|
|
70
|
+
}(React.Component);
|
|
71
|
+
|
|
72
|
+
SkeletonAvatar.defaultProps = {
|
|
73
|
+
size: 'large'
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
77
|
+
|
|
78
|
+
var Title = function Title(_ref) {
|
|
79
|
+
var prefixCls = _ref.prefixCls,
|
|
80
|
+
className = _ref.className,
|
|
81
|
+
width = _ref.width,
|
|
82
|
+
style = _ref.style;
|
|
83
|
+
return /*#__PURE__*/React.createElement("h3", {
|
|
84
|
+
className: classNames(prefixCls, className),
|
|
85
|
+
style: _extends$1({
|
|
86
|
+
width: width
|
|
87
|
+
}, style)
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
92
|
+
|
|
93
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
94
|
+
|
|
95
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
96
|
+
|
|
97
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
98
|
+
|
|
99
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
100
|
+
|
|
101
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
102
|
+
|
|
103
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
104
|
+
|
|
105
|
+
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
106
|
+
|
|
107
|
+
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
108
|
+
|
|
109
|
+
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); return Constructor; }
|
|
110
|
+
|
|
111
|
+
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
112
|
+
|
|
113
|
+
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
114
|
+
|
|
115
|
+
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
116
|
+
|
|
117
|
+
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
|
|
118
|
+
|
|
119
|
+
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
120
|
+
|
|
121
|
+
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
122
|
+
|
|
123
|
+
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
124
|
+
|
|
125
|
+
var Paragraph = /*#__PURE__*/function (_React$Component) {
|
|
126
|
+
_inherits$1(Paragraph, _React$Component);
|
|
127
|
+
|
|
128
|
+
var _super = _createSuper$1(Paragraph);
|
|
129
|
+
|
|
130
|
+
function Paragraph() {
|
|
131
|
+
_classCallCheck$1(this, Paragraph);
|
|
132
|
+
|
|
133
|
+
return _super.apply(this, arguments);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
_createClass$1(Paragraph, [{
|
|
137
|
+
key: "getWidth",
|
|
138
|
+
value: function getWidth(index) {
|
|
139
|
+
var _this$props = this.props,
|
|
140
|
+
width = _this$props.width,
|
|
141
|
+
_this$props$rows = _this$props.rows,
|
|
142
|
+
rows = _this$props$rows === void 0 ? 2 : _this$props$rows;
|
|
143
|
+
|
|
144
|
+
if (Array.isArray(width)) {
|
|
145
|
+
return width[index];
|
|
146
|
+
} // last paragraph
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
if (rows - 1 === index) {
|
|
150
|
+
return width;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return undefined;
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
key: "render",
|
|
157
|
+
value: function render() {
|
|
158
|
+
var _this = this;
|
|
159
|
+
|
|
160
|
+
var _this$props2 = this.props,
|
|
161
|
+
prefixCls = _this$props2.prefixCls,
|
|
162
|
+
className = _this$props2.className,
|
|
163
|
+
style = _this$props2.style,
|
|
164
|
+
rows = _this$props2.rows;
|
|
165
|
+
|
|
166
|
+
var rowList = _toConsumableArray(Array(rows)).map(function (_, index) {
|
|
167
|
+
return (
|
|
168
|
+
/*#__PURE__*/
|
|
169
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
170
|
+
React.createElement("li", {
|
|
171
|
+
key: index,
|
|
172
|
+
style: {
|
|
173
|
+
width: _this.getWidth(index)
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
);
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
180
|
+
className: classNames(prefixCls, className),
|
|
181
|
+
style: style
|
|
182
|
+
}, rowList);
|
|
183
|
+
}
|
|
184
|
+
}]);
|
|
185
|
+
|
|
186
|
+
return Paragraph;
|
|
187
|
+
}(React.Component);
|
|
188
|
+
|
|
189
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
190
|
+
|
|
191
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
192
|
+
|
|
193
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
194
|
+
|
|
195
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
196
|
+
|
|
197
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
|
|
198
|
+
|
|
199
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
200
|
+
|
|
201
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
202
|
+
|
|
203
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
204
|
+
|
|
205
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
206
|
+
|
|
207
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
208
|
+
|
|
209
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
210
|
+
|
|
211
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
212
|
+
|
|
213
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
214
|
+
|
|
215
|
+
function getComponentProps(prop) {
|
|
216
|
+
if (prop && _typeof(prop) === 'object') {
|
|
217
|
+
return prop;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return {};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function getAvatarBasicProps(hasTitle, hasParagraph) {
|
|
224
|
+
if (hasTitle && !hasParagraph) {
|
|
225
|
+
return {
|
|
226
|
+
shape: 'square'
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
shape: 'circle'
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function getTitleBasicProps(hasAvatar, hasParagraph) {
|
|
236
|
+
if (!hasAvatar && hasParagraph) {
|
|
237
|
+
return {
|
|
238
|
+
width: '38%'
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (hasAvatar && hasParagraph) {
|
|
243
|
+
return {
|
|
244
|
+
width: '50%'
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return {};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function getParagraphBasicProps(hasAvatar, hasTitle) {
|
|
252
|
+
var basicProps = {}; // Width
|
|
253
|
+
|
|
254
|
+
if (!hasAvatar || !hasTitle) {
|
|
255
|
+
basicProps.width = '61%';
|
|
256
|
+
} // Rows
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
if (!hasAvatar && hasTitle) {
|
|
260
|
+
basicProps.rows = 3;
|
|
261
|
+
} else {
|
|
262
|
+
basicProps.rows = 2;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return basicProps;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
var Skeleton = /*#__PURE__*/function (_React$Component) {
|
|
269
|
+
_inherits(Skeleton, _React$Component);
|
|
270
|
+
|
|
271
|
+
var _super = _createSuper(Skeleton);
|
|
272
|
+
|
|
273
|
+
function Skeleton() {
|
|
274
|
+
var _this;
|
|
275
|
+
|
|
276
|
+
_classCallCheck(this, Skeleton);
|
|
277
|
+
|
|
278
|
+
_this = _super.apply(this, arguments);
|
|
279
|
+
|
|
280
|
+
_this.renderSkeleton = function (_ref) {
|
|
281
|
+
var getPrefixCls = _ref.getPrefixCls;
|
|
282
|
+
var _this$props = _this.props,
|
|
283
|
+
customizePrefixCls = _this$props.prefixCls,
|
|
284
|
+
loading = _this$props.loading,
|
|
285
|
+
className = _this$props.className,
|
|
286
|
+
children = _this$props.children,
|
|
287
|
+
avatar = _this$props.avatar,
|
|
288
|
+
title = _this$props.title,
|
|
289
|
+
paragraph = _this$props.paragraph,
|
|
290
|
+
active = _this$props.active;
|
|
291
|
+
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
292
|
+
|
|
293
|
+
if (loading || !('loading' in _this.props)) {
|
|
294
|
+
var _classNames;
|
|
295
|
+
|
|
296
|
+
var hasAvatar = !!avatar;
|
|
297
|
+
var hasTitle = !!title;
|
|
298
|
+
var hasParagraph = !!paragraph; // Avatar
|
|
299
|
+
|
|
300
|
+
var avatarNode;
|
|
301
|
+
|
|
302
|
+
if (hasAvatar) {
|
|
303
|
+
var avatarProps = _extends(_extends({
|
|
304
|
+
prefixCls: "".concat(prefixCls, "-avatar")
|
|
305
|
+
}, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));
|
|
306
|
+
|
|
307
|
+
avatarNode = /*#__PURE__*/React.createElement("div", {
|
|
308
|
+
className: "".concat(prefixCls, "-header")
|
|
309
|
+
}, /*#__PURE__*/React.createElement(SkeletonAvatar, avatarProps));
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
var contentNode;
|
|
313
|
+
|
|
314
|
+
if (hasTitle || hasParagraph) {
|
|
315
|
+
// Title
|
|
316
|
+
var $title;
|
|
317
|
+
|
|
318
|
+
if (hasTitle) {
|
|
319
|
+
var titleProps = _extends(_extends({
|
|
320
|
+
prefixCls: "".concat(prefixCls, "-title")
|
|
321
|
+
}, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));
|
|
322
|
+
|
|
323
|
+
$title = /*#__PURE__*/React.createElement(Title, titleProps);
|
|
324
|
+
} // Paragraph
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
var paragraphNode;
|
|
328
|
+
|
|
329
|
+
if (hasParagraph) {
|
|
330
|
+
var paragraphProps = _extends(_extends({
|
|
331
|
+
prefixCls: "".concat(prefixCls, "-paragraph")
|
|
332
|
+
}, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));
|
|
333
|
+
|
|
334
|
+
paragraphNode = /*#__PURE__*/React.createElement(Paragraph, paragraphProps);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
contentNode = /*#__PURE__*/React.createElement("div", {
|
|
338
|
+
className: "".concat(prefixCls, "-content")
|
|
339
|
+
}, $title, paragraphNode);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
var cls = classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-with-avatar"), hasAvatar), _defineProperty(_classNames, "".concat(prefixCls, "-active"), active), _classNames));
|
|
343
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
344
|
+
className: cls
|
|
345
|
+
}, avatarNode, contentNode);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
return children;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
return _this;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
_createClass(Skeleton, [{
|
|
355
|
+
key: "render",
|
|
356
|
+
value: function render() {
|
|
357
|
+
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderSkeleton);
|
|
358
|
+
}
|
|
359
|
+
}]);
|
|
360
|
+
|
|
361
|
+
return Skeleton;
|
|
362
|
+
}(React.Component);
|
|
363
|
+
|
|
364
|
+
Skeleton.defaultProps = {
|
|
365
|
+
avatar: false,
|
|
366
|
+
title: true,
|
|
367
|
+
paragraph: true
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export { Skeleton as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n } from '../../config-provider.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-slider {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n height: 12px;\n margin: 14px 6px 10px;\n padding: 4px 0;\n cursor: pointer;\n touch-action: none;\n}\n.ant-slider-vertical {\n width: 12px;\n height: 100%;\n margin: 6px 10px;\n padding: 0 4px;\n}\n.ant-slider-vertical .ant-slider-rail {\n width: 4px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-track {\n width: 4px;\n}\n.ant-slider-vertical .ant-slider-handle {\n margin-bottom: -7px;\n margin-left: -5px;\n}\n.ant-slider-vertical .ant-slider-mark {\n top: 0;\n left: 12px;\n width: 18px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-mark-text {\n left: 4px;\n white-space: nowrap;\n}\n.ant-slider-vertical .ant-slider-step {\n width: 4px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-dot {\n top: auto;\n left: 2px;\n margin-bottom: -4px;\n}\n.ant-slider-tooltip .ant-tooltip-inner {\n min-width: unset;\n}\n.ant-slider-with-marks {\n margin-bottom: 28px;\n}\n.ant-slider-rail {\n position: absolute;\n width: 100%;\n height: 4px;\n background-color: #f5f5f5;\n border-radius: 2px;\n transition: background-color 0.3s;\n}\n.ant-slider-track {\n position: absolute;\n height: 4px;\n background-color: #91d5ff;\n border-radius: 4px;\n transition: background-color 0.3s;\n}\n.ant-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n background-color: #fff;\n border: solid 2px #91d5ff;\n border-radius: 50%;\n box-shadow: 0;\n cursor: pointer;\n transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n.ant-slider-handle:focus {\n border-color: #46a6ff;\n outline: none;\n box-shadow: 0 0 0 5px rgba(24, 144, 255, 0.2);\n}\n.ant-slider-handle.ant-tooltip-open {\n border-color: #1890ff;\n}\n.ant-slider:hover .ant-slider-rail {\n background-color: #e1e1e1;\n}\n.ant-slider:hover .ant-slider-track {\n background-color: #69c0ff;\n}\n.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {\n border-color: #69c0ff;\n}\n.ant-slider-mark {\n position: absolute;\n top: 14px;\n left: 0;\n width: 100%;\n font-size: 14px;\n}\n.ant-slider-mark-text {\n position: absolute;\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n text-align: center;\n word-break: keep-all;\n cursor: pointer;\n}\n.ant-slider-mark-text-active {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n}\n.ant-slider-dot {\n position: absolute;\n top: -2px;\n width: 8px;\n height: 8px;\n margin-left: -4px;\n background-color: #fff;\n border: 2px solid #e8e8e8;\n border-radius: 50%;\n cursor: pointer;\n}\n.ant-slider-dot:first-child {\n margin-left: -4px;\n}\n.ant-slider-dot:last-child {\n margin-left: -4px;\n}\n.ant-slider-dot-active {\n border-color: #8cc8ff;\n}\n.ant-slider-disabled {\n cursor: not-allowed;\n}\n.ant-slider-disabled .ant-slider-track {\n background-color: rgba(0, 0, 0, 0.25) !important;\n}\n.ant-slider-disabled .ant-slider-handle,\n.ant-slider-disabled .ant-slider-dot {\n background-color: #fff;\n border-color: rgba(0, 0, 0, 0.25) !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n.ant-slider-disabled .ant-slider-mark-text,\n.ant-slider-disabled .ant-slider-dot {\n cursor: not-allowed !important;\n}\n/*# sourceMappingURL=index.css.map */";
|
|
5
|
+
n(css,{"prepend":true});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n } from '../../config-provider.js';
|
|
2
|
+
export { S as default } from '../../index11.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../input.js';
|
|
5
|
+
import '../../menu.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
import '../../icon.js';
|
|
8
|
+
import '../../tree.js';
|
|
9
|
+
|
|
10
|
+
var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-spin {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n display: none;\n color: #1890ff;\n text-align: center;\n vertical-align: middle;\n opacity: 0;\n transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-spin-spinning {\n position: static;\n display: inline-block;\n opacity: 1;\n}\n.ant-spin-nested-loading {\n position: relative;\n}\n.ant-spin-nested-loading > div > .ant-spin {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 4;\n display: block;\n width: 100%;\n height: 100%;\n max-height: 400px;\n}\n.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -10px;\n}\n.ant-spin-nested-loading > div > .ant-spin .ant-spin-text {\n position: absolute;\n top: 50%;\n width: 100%;\n padding-top: 5px;\n text-shadow: 0 1px 2px #fff;\n}\n.ant-spin-nested-loading > div > .ant-spin.ant-spin-show-text .ant-spin-dot {\n margin-top: -20px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm .ant-spin-dot {\n margin: -7px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm .ant-spin-text {\n padding-top: 2px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm.ant-spin-show-text .ant-spin-dot {\n margin-top: -17px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-dot {\n margin: -16px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-text {\n padding-top: 11px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg.ant-spin-show-text .ant-spin-dot {\n margin-top: -26px;\n}\n.ant-spin-container {\n position: relative;\n transition: opacity 0.3s;\n}\n.ant-spin-container::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 10;\n display: none \\9;\n width: 100%;\n height: 100%;\n background: #fff;\n opacity: 0;\n transition: all 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-spin-blur {\n clear: both;\n overflow: hidden;\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n}\n.ant-spin-blur::after {\n opacity: 0.4;\n pointer-events: auto;\n}\n.ant-spin-tip {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-spin-dot {\n position: relative;\n display: inline-block;\n font-size: 20px;\n width: 1em;\n height: 1em;\n}\n.ant-spin-dot-item {\n position: absolute;\n display: block;\n width: 9px;\n height: 9px;\n background-color: #1890ff;\n border-radius: 100%;\n transform: scale(0.75);\n transform-origin: 50% 50%;\n opacity: 0.3;\n animation: antSpinMove 1s infinite linear alternate;\n}\n.ant-spin-dot-item:nth-child(1) {\n top: 0;\n left: 0;\n}\n.ant-spin-dot-item:nth-child(2) {\n top: 0;\n right: 0;\n animation-delay: 0.4s;\n}\n.ant-spin-dot-item:nth-child(3) {\n right: 0;\n bottom: 0;\n animation-delay: 0.8s;\n}\n.ant-spin-dot-item:nth-child(4) {\n bottom: 0;\n left: 0;\n animation-delay: 1.2s;\n}\n.ant-spin-dot-spin {\n transform: rotate(45deg);\n animation: antRotate 1.2s infinite linear;\n}\n.ant-spin-sm .ant-spin-dot {\n font-size: 14px;\n}\n.ant-spin-sm .ant-spin-dot i {\n width: 6px;\n height: 6px;\n}\n.ant-spin-lg .ant-spin-dot {\n font-size: 32px;\n}\n.ant-spin-lg .ant-spin-dot i {\n width: 14px;\n height: 14px;\n}\n.ant-spin.ant-spin-show-text .ant-spin-text {\n display: block;\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /* IE10+ */\n .ant-spin-blur {\n background: #fff;\n opacity: 0.5;\n }\n}\n@keyframes antSpinMove {\n to {\n opacity: 1;\n }\n}\n@keyframes antRotate {\n to {\n transform: rotate(405deg);\n }\n}\n/*# sourceMappingURL=index.css.map */";
|
|
11
|
+
n(css,{"prepend":true});
|