@douyinfe/semi-ui 2.30.0-alpha.0 → 2.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/semi.css +29 -380
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +2189 -2061
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/_portal/index.js +2 -2
- package/lib/cjs/_utils/index.js +3 -1
- package/lib/cjs/anchor/index.d.ts +1 -1
- package/lib/cjs/anchor/index.js +9 -9
- package/lib/cjs/anchor/link.js +8 -8
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- package/lib/cjs/autoComplete/index.js +8 -4
- package/lib/cjs/autoComplete/option.js +7 -7
- package/lib/cjs/avatar/avatarGroup.js +7 -7
- package/lib/cjs/avatar/index.js +12 -12
- package/lib/cjs/badge/index.js +8 -8
- package/lib/cjs/banner/index.js +12 -12
- package/lib/cjs/breadcrumb/index.js +12 -12
- package/lib/cjs/breadcrumb/item.js +8 -8
- package/lib/cjs/button/Button.js +9 -9
- package/lib/cjs/button/buttonGroup.js +5 -5
- package/lib/cjs/button/splitButtonGroup.js +1 -1
- package/lib/cjs/calendar/dayCalendar.js +13 -13
- package/lib/cjs/calendar/dayCol.js +17 -17
- package/lib/cjs/calendar/monthCalendar.js +38 -38
- package/lib/cjs/calendar/rangeCalendar.js +27 -27
- package/lib/cjs/calendar/timeCol.js +6 -6
- package/lib/cjs/calendar/weekCalendar.js +27 -27
- package/lib/cjs/card/cardGroup.js +2 -2
- package/lib/cjs/card/index.js +16 -16
- package/lib/cjs/card/meta.js +5 -5
- package/lib/cjs/carousel/CarouselArrow.js +6 -6
- package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/cjs/carousel/CarouselIndicator.js +6 -6
- package/lib/cjs/carousel/index.d.ts +2 -2
- package/lib/cjs/carousel/index.js +12 -12
- package/lib/cjs/cascader/index.d.ts +2 -0
- package/lib/cjs/cascader/index.js +44 -36
- package/lib/cjs/cascader/item.js +26 -26
- package/lib/cjs/checkbox/checkbox.js +14 -14
- package/lib/cjs/checkbox/checkboxGroup.js +4 -4
- package/lib/cjs/checkbox/checkboxInner.js +6 -6
- package/lib/cjs/collapse/item.js +9 -9
- package/lib/cjs/collapsible/index.js +3 -3
- package/lib/cjs/configProvider/index.js +1 -1
- package/lib/cjs/datePicker/dateInput.js +16 -16
- package/lib/cjs/datePicker/datePicker.d.ts +2 -2
- package/lib/cjs/datePicker/datePicker.js +9 -9
- package/lib/cjs/datePicker/footer.js +1 -1
- package/lib/cjs/datePicker/index.js +1 -1
- package/lib/cjs/datePicker/month.js +2 -2
- package/lib/cjs/datePicker/monthsGrid.d.ts +2 -2
- package/lib/cjs/datePicker/monthsGrid.js +27 -27
- package/lib/cjs/datePicker/navigation.js +1 -1
- package/lib/cjs/datePicker/quickControl.d.ts +1 -1
- package/lib/cjs/datePicker/quickControl.js +14 -14
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.js +4 -4
- package/lib/cjs/descriptions/index.js +3 -3
- package/lib/cjs/descriptions/item.js +5 -5
- package/lib/cjs/divider/index.js +7 -7
- package/lib/cjs/dropdown/dropdownDivider.js +1 -1
- package/lib/cjs/dropdown/dropdownItem.js +7 -7
- package/lib/cjs/dropdown/dropdownMenu.js +1 -1
- package/lib/cjs/dropdown/dropdownTitle.js +2 -2
- package/lib/cjs/dropdown/index.d.ts +1 -1
- package/lib/cjs/dropdown/index.js +3 -3
- package/lib/cjs/empty/index.js +7 -7
- package/lib/cjs/form/arrayField.js +1 -1
- package/lib/cjs/form/baseForm.d.ts +4 -4
- package/lib/cjs/form/baseForm.js +2 -2
- package/lib/cjs/form/errorMessage.js +1 -1
- package/lib/cjs/form/field.d.ts +4 -4
- package/lib/cjs/form/group.js +6 -6
- package/lib/cjs/form/hoc/withField.js +16 -16
- package/lib/cjs/form/label.js +9 -9
- package/lib/cjs/form/slot.js +5 -5
- package/lib/cjs/grid/col.js +11 -11
- package/lib/cjs/grid/row.js +4 -4
- package/lib/cjs/highlight/index.js +1 -1
- package/lib/cjs/iconButton/index.js +5 -5
- package/lib/cjs/image/image.js +10 -10
- package/lib/cjs/image/preview.js +3 -3
- package/lib/cjs/image/previewFooter.js +12 -12
- package/lib/cjs/image/previewHeader.js +3 -3
- package/lib/cjs/image/previewImage.js +7 -7
- package/lib/cjs/image/previewInner.js +7 -7
- package/lib/cjs/input/index.js +38 -38
- package/lib/cjs/input/inputGroup.js +7 -7
- package/lib/cjs/input/textarea.js +14 -14
- package/lib/cjs/inputNumber/index.js +11 -11
- package/lib/cjs/layout/Sider.js +3 -3
- package/lib/cjs/layout/index.js +2 -2
- package/lib/cjs/list/index.js +11 -11
- package/lib/cjs/list/item.js +6 -6
- package/lib/cjs/locale/source/ar.js +5 -5
- package/lib/cjs/locale/source/de.js +5 -5
- package/lib/cjs/locale/source/en_GB.js +5 -5
- package/lib/cjs/locale/source/en_US.js +4 -4
- package/lib/cjs/locale/source/es.js +5 -5
- package/lib/cjs/locale/source/fr.js +5 -5
- package/lib/cjs/locale/source/id_ID.js +4 -4
- package/lib/cjs/locale/source/it.js +5 -5
- package/lib/cjs/locale/source/ja_JP.js +5 -5
- package/lib/cjs/locale/source/ko_KR.js +4 -4
- package/lib/cjs/locale/source/ms_MY.js +4 -4
- package/lib/cjs/locale/source/nl_NL.d.ts +1 -1
- package/lib/cjs/locale/source/nl_NL.js +6 -6
- package/lib/cjs/locale/source/pl_PL.js +4 -4
- package/lib/cjs/locale/source/pt_BR.js +5 -5
- package/lib/cjs/locale/source/ro.d.ts +13 -0
- package/lib/cjs/locale/source/ro.js +17 -4
- package/lib/cjs/locale/source/ru_RU.js +4 -4
- package/lib/cjs/locale/source/sv_SE.js +4 -4
- package/lib/cjs/locale/source/th_TH.js +5 -5
- package/lib/cjs/locale/source/tr_TR.js +5 -5
- package/lib/cjs/locale/source/vi_VN.js +5 -5
- package/lib/cjs/locale/source/zh_CN.js +4 -4
- package/lib/cjs/locale/source/zh_TW.js +4 -4
- package/lib/cjs/modal/ConfirmModal.js +7 -7
- package/lib/cjs/modal/Modal.js +4 -4
- package/lib/cjs/modal/ModalContent.js +24 -24
- package/lib/cjs/modal/confirm.js +9 -0
- package/lib/cjs/modal/useModal/index.js +1 -1
- package/lib/cjs/navigation/CollapseButton.js +1 -1
- package/lib/cjs/navigation/Footer.js +2 -2
- package/lib/cjs/navigation/Header.js +5 -5
- package/lib/cjs/navigation/Item.js +16 -16
- package/lib/cjs/navigation/SubNav.js +14 -14
- package/lib/cjs/navigation/index.js +8 -8
- package/lib/cjs/notification/index.js +3 -3
- package/lib/cjs/notification/notice.js +12 -12
- package/lib/cjs/overflowList/index.d.ts +1 -1
- package/lib/cjs/overflowList/index.js +6 -6
- package/lib/cjs/pagination/index.js +24 -24
- package/lib/cjs/popconfirm/index.d.ts +11 -7
- package/lib/cjs/popconfirm/index.js +97 -60
- package/lib/cjs/popover/index.d.ts +8 -2
- package/lib/cjs/popover/index.js +17 -5
- package/lib/cjs/progress/index.js +14 -14
- package/lib/cjs/radio/radio.d.ts +1 -1
- package/lib/cjs/radio/radio.js +22 -22
- package/lib/cjs/radio/radioGroup.d.ts +1 -1
- package/lib/cjs/radio/radioGroup.js +5 -5
- package/lib/cjs/radio/radioInner.js +7 -7
- package/lib/cjs/rating/index.js +5 -5
- package/lib/cjs/rating/item.js +11 -11
- package/lib/cjs/scrollList/index.js +5 -5
- package/lib/cjs/scrollList/scrollItem.js +13 -13
- package/lib/cjs/select/index.d.ts +1 -1
- package/lib/cjs/select/index.js +61 -61
- package/lib/cjs/select/option.js +7 -7
- package/lib/cjs/sideSheet/SideSheetContent.js +10 -10
- package/lib/cjs/sideSheet/index.js +7 -7
- package/lib/cjs/skeleton/index.js +1 -1
- package/lib/cjs/skeleton/item.js +4 -4
- package/lib/cjs/slider/index.js +28 -28
- package/lib/cjs/space/index.js +12 -12
- package/lib/cjs/spin/icon.js +2 -2
- package/lib/cjs/spin/index.js +6 -6
- package/lib/cjs/steps/basicStep.d.ts +0 -2
- package/lib/cjs/steps/basicStep.js +15 -20
- package/lib/cjs/steps/basicSteps.js +6 -6
- package/lib/cjs/steps/fillStep.d.ts +0 -1
- package/lib/cjs/steps/fillStep.js +10 -11
- package/lib/cjs/steps/fillSteps.js +5 -4
- package/lib/cjs/steps/index.d.ts +1 -4
- package/lib/cjs/steps/navStep.d.ts +0 -3
- package/lib/cjs/steps/navStep.js +8 -26
- package/lib/cjs/steps/navSteps.js +2 -2
- package/lib/cjs/steps/step.d.ts +1 -5
- package/lib/cjs/steps/step.js +3 -3
- package/lib/cjs/table/Body/BaseRow.js +5 -5
- package/lib/cjs/table/Body/ExpandedRow.js +3 -3
- package/lib/cjs/table/Body/SectionRow.js +1 -1
- package/lib/cjs/table/Body/index.js +8 -8
- package/lib/cjs/table/ColGroup.js +2 -2
- package/lib/cjs/table/ColumnFilter.js +3 -3
- package/lib/cjs/table/ColumnSelection.js +2 -2
- package/lib/cjs/table/ColumnSorter.js +7 -7
- package/lib/cjs/table/CustomExpandIcon.js +2 -2
- package/lib/cjs/table/HeadTable.js +3 -3
- package/lib/cjs/table/Table.d.ts +2 -2
- package/lib/cjs/table/Table.js +20 -20
- package/lib/cjs/table/TableCell.js +8 -8
- package/lib/cjs/table/TableHeader.js +1 -1
- package/lib/cjs/table/TableHeaderRow.js +8 -8
- package/lib/cjs/table/TablePagination.js +3 -3
- package/lib/cjs/tabs/TabBar.js +12 -12
- package/lib/cjs/tabs/TabItem.js +7 -7
- package/lib/cjs/tabs/TabPane.js +3 -3
- package/lib/cjs/tabs/index.js +2 -2
- package/lib/cjs/tag/group.js +5 -5
- package/lib/cjs/tag/index.js +13 -13
- package/lib/cjs/tagInput/index.js +33 -33
- package/lib/cjs/timePicker/Combobox.js +4 -4
- package/lib/cjs/timePicker/TimeInput.js +4 -4
- package/lib/cjs/timePicker/TimePicker.js +8 -8
- package/lib/cjs/timeline/index.js +8 -8
- package/lib/cjs/timeline/item.js +7 -7
- package/lib/cjs/toast/index.js +5 -5
- package/lib/cjs/toast/toast.js +9 -9
- package/lib/cjs/tooltip/index.d.ts +8 -4
- package/lib/cjs/tooltip/index.js +17 -7
- package/lib/cjs/transfer/index.js +31 -31
- package/lib/cjs/tree/autoSizer.js +1 -1
- package/lib/cjs/tree/index.js +6 -6
- package/lib/cjs/tree/nodeList.js +1 -1
- package/lib/cjs/tree/treeNode.js +26 -26
- package/lib/cjs/treeSelect/index.d.ts +2 -1
- package/lib/cjs/treeSelect/index.js +63 -51
- package/lib/cjs/typography/base.js +14 -14
- package/lib/cjs/typography/copyable.js +3 -3
- package/lib/cjs/typography/numeral.d.ts +1 -1
- package/lib/cjs/typography/paragraph.js +1 -1
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/cjs/typography/title.js +1 -1
- package/lib/cjs/typography/util.js +1 -1
- package/lib/cjs/upload/fileCard.js +32 -32
- package/lib/cjs/upload/index.js +37 -37
- package/lib/es/_portal/index.js +2 -2
- package/lib/es/_utils/index.js +3 -1
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/anchor/index.js +9 -9
- package/lib/es/anchor/link.js +8 -8
- package/lib/es/autoComplete/index.d.ts +1 -1
- package/lib/es/autoComplete/index.js +8 -4
- package/lib/es/autoComplete/option.js +7 -7
- package/lib/es/avatar/avatarGroup.js +7 -7
- package/lib/es/avatar/index.js +12 -12
- package/lib/es/badge/index.js +8 -8
- package/lib/es/banner/index.js +12 -12
- package/lib/es/breadcrumb/index.js +12 -12
- package/lib/es/breadcrumb/item.js +8 -8
- package/lib/es/button/Button.js +9 -9
- package/lib/es/button/buttonGroup.js +5 -5
- package/lib/es/button/splitButtonGroup.js +1 -1
- package/lib/es/calendar/dayCalendar.js +13 -13
- package/lib/es/calendar/dayCol.js +17 -17
- package/lib/es/calendar/monthCalendar.js +38 -38
- package/lib/es/calendar/rangeCalendar.js +27 -27
- package/lib/es/calendar/timeCol.js +6 -6
- package/lib/es/calendar/weekCalendar.js +27 -27
- package/lib/es/card/cardGroup.js +2 -2
- package/lib/es/card/index.js +16 -16
- package/lib/es/card/meta.js +5 -5
- package/lib/es/carousel/CarouselArrow.js +6 -6
- package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/es/carousel/CarouselIndicator.js +6 -6
- package/lib/es/carousel/index.d.ts +2 -2
- package/lib/es/carousel/index.js +12 -12
- package/lib/es/cascader/index.d.ts +2 -0
- package/lib/es/cascader/index.js +44 -36
- package/lib/es/cascader/item.js +26 -26
- package/lib/es/checkbox/checkbox.js +14 -14
- package/lib/es/checkbox/checkboxGroup.js +4 -4
- package/lib/es/checkbox/checkboxInner.js +6 -6
- package/lib/es/collapse/item.js +9 -9
- package/lib/es/collapsible/index.js +3 -3
- package/lib/es/configProvider/index.js +1 -1
- package/lib/es/datePicker/dateInput.js +16 -16
- package/lib/es/datePicker/datePicker.d.ts +2 -2
- package/lib/es/datePicker/datePicker.js +9 -9
- package/lib/es/datePicker/footer.js +1 -1
- package/lib/es/datePicker/index.js +1 -1
- package/lib/es/datePicker/month.js +2 -2
- package/lib/es/datePicker/monthsGrid.d.ts +2 -2
- package/lib/es/datePicker/monthsGrid.js +27 -27
- package/lib/es/datePicker/navigation.js +1 -1
- package/lib/es/datePicker/quickControl.d.ts +1 -1
- package/lib/es/datePicker/quickControl.js +14 -14
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.js +4 -4
- package/lib/es/descriptions/index.js +3 -3
- package/lib/es/descriptions/item.js +5 -5
- package/lib/es/divider/index.js +7 -7
- package/lib/es/dropdown/dropdownDivider.js +1 -1
- package/lib/es/dropdown/dropdownItem.js +7 -7
- package/lib/es/dropdown/dropdownMenu.js +1 -1
- package/lib/es/dropdown/dropdownTitle.js +2 -2
- package/lib/es/dropdown/index.d.ts +1 -1
- package/lib/es/dropdown/index.js +3 -3
- package/lib/es/empty/index.js +7 -7
- package/lib/es/form/arrayField.js +1 -1
- package/lib/es/form/baseForm.d.ts +4 -4
- package/lib/es/form/baseForm.js +2 -2
- package/lib/es/form/errorMessage.js +1 -1
- package/lib/es/form/field.d.ts +4 -4
- package/lib/es/form/group.js +6 -6
- package/lib/es/form/hoc/withField.js +16 -16
- package/lib/es/form/label.js +9 -9
- package/lib/es/form/slot.js +5 -5
- package/lib/es/grid/col.js +11 -11
- package/lib/es/grid/row.js +4 -4
- package/lib/es/highlight/index.js +1 -1
- package/lib/es/iconButton/index.js +5 -5
- package/lib/es/image/image.js +10 -10
- package/lib/es/image/preview.js +3 -3
- package/lib/es/image/previewFooter.js +12 -12
- package/lib/es/image/previewHeader.js +3 -3
- package/lib/es/image/previewImage.js +7 -7
- package/lib/es/image/previewInner.js +7 -7
- package/lib/es/input/index.js +38 -38
- package/lib/es/input/inputGroup.js +7 -7
- package/lib/es/input/textarea.js +14 -14
- package/lib/es/inputNumber/index.js +11 -11
- package/lib/es/layout/Sider.js +3 -3
- package/lib/es/layout/index.js +2 -2
- package/lib/es/list/index.js +11 -11
- package/lib/es/list/item.js +6 -6
- package/lib/es/locale/source/ar.js +5 -5
- package/lib/es/locale/source/de.js +5 -5
- package/lib/es/locale/source/en_GB.js +5 -5
- package/lib/es/locale/source/en_US.js +4 -4
- package/lib/es/locale/source/es.js +5 -5
- package/lib/es/locale/source/fr.js +5 -5
- package/lib/es/locale/source/id_ID.js +4 -4
- package/lib/es/locale/source/it.js +5 -5
- package/lib/es/locale/source/ja_JP.js +5 -5
- package/lib/es/locale/source/ko_KR.js +4 -4
- package/lib/es/locale/source/ms_MY.js +4 -4
- package/lib/es/locale/source/nl_NL.d.ts +1 -1
- package/lib/es/locale/source/nl_NL.js +6 -6
- package/lib/es/locale/source/pl_PL.js +4 -4
- package/lib/es/locale/source/pt_BR.js +5 -5
- package/lib/es/locale/source/ro.d.ts +13 -0
- package/lib/es/locale/source/ro.js +17 -4
- package/lib/es/locale/source/ru_RU.js +4 -4
- package/lib/es/locale/source/sv_SE.js +4 -4
- package/lib/es/locale/source/th_TH.js +5 -5
- package/lib/es/locale/source/tr_TR.js +5 -5
- package/lib/es/locale/source/vi_VN.js +5 -5
- package/lib/es/locale/source/zh_CN.js +4 -4
- package/lib/es/locale/source/zh_TW.js +4 -4
- package/lib/es/modal/ConfirmModal.js +7 -7
- package/lib/es/modal/Modal.js +4 -4
- package/lib/es/modal/ModalContent.js +24 -24
- package/lib/es/modal/confirm.js +9 -0
- package/lib/es/modal/useModal/index.js +1 -1
- package/lib/es/navigation/CollapseButton.js +1 -1
- package/lib/es/navigation/Footer.js +2 -2
- package/lib/es/navigation/Header.js +5 -5
- package/lib/es/navigation/Item.js +16 -16
- package/lib/es/navigation/SubNav.js +14 -14
- package/lib/es/navigation/index.js +8 -8
- package/lib/es/notification/index.js +3 -3
- package/lib/es/notification/notice.js +12 -12
- package/lib/es/overflowList/index.d.ts +1 -1
- package/lib/es/overflowList/index.js +6 -6
- package/lib/es/pagination/index.js +24 -24
- package/lib/es/popconfirm/index.d.ts +11 -7
- package/lib/es/popconfirm/index.js +95 -60
- package/lib/es/popover/index.d.ts +8 -2
- package/lib/es/popover/index.js +17 -5
- package/lib/es/progress/index.js +14 -14
- package/lib/es/radio/radio.d.ts +1 -1
- package/lib/es/radio/radio.js +22 -22
- package/lib/es/radio/radioGroup.d.ts +1 -1
- package/lib/es/radio/radioGroup.js +5 -5
- package/lib/es/radio/radioInner.js +7 -7
- package/lib/es/rating/index.js +5 -5
- package/lib/es/rating/item.js +11 -11
- package/lib/es/scrollList/index.js +5 -5
- package/lib/es/scrollList/scrollItem.js +13 -13
- package/lib/es/select/index.d.ts +1 -1
- package/lib/es/select/index.js +61 -61
- package/lib/es/select/option.js +7 -7
- package/lib/es/sideSheet/SideSheetContent.js +10 -10
- package/lib/es/sideSheet/index.js +7 -7
- package/lib/es/skeleton/index.js +1 -1
- package/lib/es/skeleton/item.js +4 -4
- package/lib/es/slider/index.js +28 -28
- package/lib/es/space/index.js +12 -12
- package/lib/es/spin/icon.js +2 -2
- package/lib/es/spin/index.js +6 -6
- package/lib/es/steps/basicStep.d.ts +0 -2
- package/lib/es/steps/basicStep.js +15 -20
- package/lib/es/steps/basicSteps.js +6 -6
- package/lib/es/steps/fillStep.d.ts +0 -1
- package/lib/es/steps/fillStep.js +10 -11
- package/lib/es/steps/fillSteps.js +5 -4
- package/lib/es/steps/index.d.ts +1 -4
- package/lib/es/steps/navStep.d.ts +0 -3
- package/lib/es/steps/navStep.js +8 -21
- package/lib/es/steps/navSteps.js +2 -2
- package/lib/es/steps/step.d.ts +1 -5
- package/lib/es/steps/step.js +3 -3
- package/lib/es/table/Body/BaseRow.js +5 -5
- package/lib/es/table/Body/ExpandedRow.js +3 -3
- package/lib/es/table/Body/SectionRow.js +1 -1
- package/lib/es/table/Body/index.js +8 -8
- package/lib/es/table/ColGroup.js +2 -2
- package/lib/es/table/ColumnFilter.js +3 -3
- package/lib/es/table/ColumnSelection.js +2 -2
- package/lib/es/table/ColumnSorter.js +7 -7
- package/lib/es/table/CustomExpandIcon.js +2 -2
- package/lib/es/table/HeadTable.js +3 -3
- package/lib/es/table/Table.d.ts +2 -2
- package/lib/es/table/Table.js +20 -20
- package/lib/es/table/TableCell.js +8 -8
- package/lib/es/table/TableHeader.js +1 -1
- package/lib/es/table/TableHeaderRow.js +8 -8
- package/lib/es/table/TablePagination.js +3 -3
- package/lib/es/tabs/TabBar.js +12 -12
- package/lib/es/tabs/TabItem.js +7 -7
- package/lib/es/tabs/TabPane.js +3 -3
- package/lib/es/tabs/index.js +2 -2
- package/lib/es/tag/group.js +5 -5
- package/lib/es/tag/index.js +13 -13
- package/lib/es/tagInput/index.js +33 -33
- package/lib/es/timePicker/Combobox.js +4 -4
- package/lib/es/timePicker/TimeInput.js +4 -4
- package/lib/es/timePicker/TimePicker.js +8 -8
- package/lib/es/timeline/index.js +8 -8
- package/lib/es/timeline/item.js +7 -7
- package/lib/es/toast/index.js +5 -5
- package/lib/es/toast/toast.js +9 -9
- package/lib/es/tooltip/index.d.ts +8 -4
- package/lib/es/tooltip/index.js +17 -7
- package/lib/es/transfer/index.js +31 -31
- package/lib/es/tree/autoSizer.js +1 -1
- package/lib/es/tree/index.js +6 -6
- package/lib/es/tree/nodeList.js +1 -1
- package/lib/es/tree/treeNode.js +26 -26
- package/lib/es/treeSelect/index.d.ts +2 -1
- package/lib/es/treeSelect/index.js +63 -51
- package/lib/es/typography/base.js +14 -14
- package/lib/es/typography/copyable.js +3 -3
- package/lib/es/typography/numeral.d.ts +1 -1
- package/lib/es/typography/paragraph.js +1 -1
- package/lib/es/typography/title.d.ts +1 -1
- package/lib/es/typography/title.js +1 -1
- package/lib/es/typography/util.js +1 -1
- package/lib/es/upload/fileCard.js +32 -32
- package/lib/es/upload/index.js +37 -37
- package/package.json +9 -9
|
@@ -116,7 +116,7 @@ export default class PreviewInner extends BaseComponent {
|
|
|
116
116
|
|
|
117
117
|
if (!getPopupContainer && this.bodyOverflow !== 'hidden') {
|
|
118
118
|
document.body.style.overflow = 'hidden';
|
|
119
|
-
document.body.style.width =
|
|
119
|
+
document.body.style.width = `calc(${this.originBodyWidth || '100%'} - ${this.scrollBarWidth}px)`;
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
enabledBodyScroll: () => {
|
|
@@ -328,12 +328,12 @@ export default class PreviewInner extends BaseComponent {
|
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
const previewPrefixCls =
|
|
331
|
+
const previewPrefixCls = `${prefixCls}-preview`;
|
|
332
332
|
const previewWrapperCls = cls(previewPrefixCls, {
|
|
333
|
-
[
|
|
334
|
-
[
|
|
333
|
+
[`${prefixCls}-hide`]: !visible,
|
|
334
|
+
[`${previewPrefixCls}-popup`]: getPopupContainer
|
|
335
335
|
}, className);
|
|
336
|
-
const hideViewerCls = !viewerVisible ?
|
|
336
|
+
const hideViewerCls = !viewerVisible ? `${previewPrefixCls}-hide` : "";
|
|
337
337
|
const total = imgSrc.length;
|
|
338
338
|
const showPrev = total !== 1 && (infinite || currentIndex !== 0);
|
|
339
339
|
const showNext = total !== 1 && (infinite || currentIndex !== total - 1);
|
|
@@ -371,7 +371,7 @@ export default class PreviewInner extends BaseComponent {
|
|
|
371
371
|
/*#__PURE__*/
|
|
372
372
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
373
373
|
React.createElement("div", {
|
|
374
|
-
className: cls(
|
|
374
|
+
className: cls(`${previewPrefixCls}-icon`, `${previewPrefixCls}-prev`, hideViewerCls),
|
|
375
375
|
onClick: () => this.handleSwitchImage("prev")
|
|
376
376
|
}, /*#__PURE__*/React.createElement(IconArrowLeft, {
|
|
377
377
|
size: "large"
|
|
@@ -379,7 +379,7 @@ export default class PreviewInner extends BaseComponent {
|
|
|
379
379
|
/*#__PURE__*/
|
|
380
380
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
381
381
|
React.createElement("div", {
|
|
382
|
-
className: cls(
|
|
382
|
+
className: cls(`${previewPrefixCls}-icon`, `${previewPrefixCls}-next`, hideViewerCls),
|
|
383
383
|
onClick: () => this.handleSwitchImage("next")
|
|
384
384
|
}, /*#__PURE__*/React.createElement(IconArrowRight, {
|
|
385
385
|
size: "large"
|
package/lib/es/input/index.js
CHANGED
|
@@ -168,9 +168,9 @@ class Input extends BaseComponent {
|
|
|
168
168
|
|
|
169
169
|
if (addonBefore) {
|
|
170
170
|
const prefixWrapperCls = cls({
|
|
171
|
-
[
|
|
172
|
-
[
|
|
173
|
-
[
|
|
171
|
+
[`${prefixCls}-prepend`]: true,
|
|
172
|
+
[`${prefixCls}-prepend-text`]: addonBefore && _isString(addonBefore),
|
|
173
|
+
[`${prefixCls}-prepend-icon`]: isSemiIcon(addonBefore)
|
|
174
174
|
});
|
|
175
175
|
return /*#__PURE__*/React.createElement("div", {
|
|
176
176
|
className: prefixWrapperCls,
|
|
@@ -188,9 +188,9 @@ class Input extends BaseComponent {
|
|
|
188
188
|
|
|
189
189
|
if (addonAfter) {
|
|
190
190
|
const prefixWrapperCls = cls({
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
[
|
|
191
|
+
[`${prefixCls}-append`]: true,
|
|
192
|
+
[`${prefixCls}-append-text`]: addonAfter && _isString(addonAfter),
|
|
193
|
+
[`${prefixCls}-append-icon`]: isSemiIcon(addonAfter)
|
|
194
194
|
});
|
|
195
195
|
return /*#__PURE__*/React.createElement("div", {
|
|
196
196
|
className: prefixWrapperCls,
|
|
@@ -202,7 +202,7 @@ class Input extends BaseComponent {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
renderClearBtn() {
|
|
205
|
-
const clearCls = cls(
|
|
205
|
+
const clearCls = cls(`${prefixCls}-clearbtn`);
|
|
206
206
|
const {
|
|
207
207
|
clearIcon
|
|
208
208
|
} = this.props;
|
|
@@ -230,7 +230,7 @@ class Input extends BaseComponent {
|
|
|
230
230
|
mode,
|
|
231
231
|
disabled
|
|
232
232
|
} = this.props;
|
|
233
|
-
const modeCls = cls(
|
|
233
|
+
const modeCls = cls(`${prefixCls}-modebtn`);
|
|
234
234
|
const modeIcon = eyeClosed ? /*#__PURE__*/React.createElement(IconEyeClosedSolid, null) : /*#__PURE__*/React.createElement(IconEyeOpened, null); // alway show password button for a11y
|
|
235
235
|
|
|
236
236
|
const showModeBtn = mode === 'password' && !disabled;
|
|
@@ -265,10 +265,10 @@ class Input extends BaseComponent {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
const prefixWrapperCls = cls({
|
|
268
|
-
[
|
|
269
|
-
[
|
|
270
|
-
[
|
|
271
|
-
[
|
|
268
|
+
[`${prefixCls}-prefix`]: true,
|
|
269
|
+
[`${prefixCls}-inset-label`]: insetLabel,
|
|
270
|
+
[`${prefixCls}-prefix-text`]: labelNode && _isString(labelNode),
|
|
271
|
+
[`${prefixCls}-prefix-icon`]: isSemiIcon(labelNode)
|
|
272
272
|
});
|
|
273
273
|
return (
|
|
274
274
|
/*#__PURE__*/
|
|
@@ -307,10 +307,10 @@ class Input extends BaseComponent {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
const suffixWrapperCls = cls({
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
310
|
+
[`${prefixCls}-suffix`]: true,
|
|
311
|
+
[`${prefixCls}-suffix-text`]: suffix && _isString(suffix),
|
|
312
|
+
[`${prefixCls}-suffix-icon`]: isSemiIcon(suffix),
|
|
313
|
+
[`${prefixCls}-suffix-hidden`]: suffixAllowClear && Boolean(hideSuffix)
|
|
314
314
|
});
|
|
315
315
|
return (
|
|
316
316
|
/*#__PURE__*/
|
|
@@ -387,31 +387,31 @@ class Input extends BaseComponent {
|
|
|
387
387
|
const suffixAllowClear = this.showClearBtn();
|
|
388
388
|
const suffixIsIcon = isSemiIcon(suffix);
|
|
389
389
|
const ref = this.getInputRef();
|
|
390
|
-
const wrapperPrefix =
|
|
390
|
+
const wrapperPrefix = `${prefixCls}-wrapper`;
|
|
391
391
|
const wrapperCls = cls(wrapperPrefix, className, {
|
|
392
|
-
[
|
|
393
|
-
[
|
|
394
|
-
[
|
|
395
|
-
[
|
|
396
|
-
[
|
|
397
|
-
[
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
402
|
-
[
|
|
403
|
-
[
|
|
404
|
-
[
|
|
405
|
-
[
|
|
406
|
-
[
|
|
407
|
-
[
|
|
408
|
-
[
|
|
392
|
+
[`${prefixCls}-wrapper__with-prefix`]: prefix || insetLabel,
|
|
393
|
+
[`${prefixCls}-wrapper__with-suffix`]: suffix,
|
|
394
|
+
[`${prefixCls}-wrapper__with-suffix-hidden`]: suffixAllowClear && Boolean(hideSuffix),
|
|
395
|
+
[`${prefixCls}-wrapper__with-suffix-icon`]: suffixIsIcon,
|
|
396
|
+
[`${prefixCls}-wrapper__with-append`]: addonBefore,
|
|
397
|
+
[`${prefixCls}-wrapper__with-prepend`]: addonAfter,
|
|
398
|
+
[`${prefixCls}-wrapper__with-append-only`]: addonBefore && !addonAfter,
|
|
399
|
+
[`${prefixCls}-wrapper__with-prepend-only`]: !addonBefore && addonAfter,
|
|
400
|
+
[`${wrapperPrefix}-readonly`]: readonly,
|
|
401
|
+
[`${wrapperPrefix}-disabled`]: disabled,
|
|
402
|
+
[`${wrapperPrefix}-warning`]: validateStatus === 'warning',
|
|
403
|
+
[`${wrapperPrefix}-error`]: validateStatus === 'error',
|
|
404
|
+
[`${wrapperPrefix}-focus`]: isFocus,
|
|
405
|
+
[`${wrapperPrefix}-clearable`]: showClear,
|
|
406
|
+
[`${wrapperPrefix}-modebtn`]: mode === 'password',
|
|
407
|
+
[`${wrapperPrefix}-hidden`]: type === 'hidden',
|
|
408
|
+
[`${wrapperPrefix}-${size}`]: size
|
|
409
409
|
});
|
|
410
410
|
const inputCls = cls(prefixCls, {
|
|
411
|
-
[
|
|
412
|
-
[
|
|
413
|
-
[
|
|
414
|
-
[
|
|
411
|
+
[`${prefixCls}-${size}`]: size,
|
|
412
|
+
[`${prefixCls}-disabled`]: disabled,
|
|
413
|
+
[`${prefixCls}-sibling-clearbtn`]: this.foundation.isAllowClear(),
|
|
414
|
+
[`${prefixCls}-sibling-modebtn`]: mode === 'password'
|
|
415
415
|
});
|
|
416
416
|
const inputValue = value === null || value === undefined ? '' : value;
|
|
417
417
|
const inputProps = Object.assign(Object.assign({}, rest), {
|
|
@@ -36,12 +36,12 @@ export default class inputGroup extends BaseComponent {
|
|
|
36
36
|
rest = __rest(_a, ["size", "className", "label", "labelPosition"]);
|
|
37
37
|
|
|
38
38
|
const groupWrapperCls = cls({
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
39
|
+
[`${prefixCls}-group-wrapper`]: true,
|
|
40
|
+
[`${prefixCls}-group-wrapper-with-top-label`]: labelPosition === 'top',
|
|
41
|
+
[`${prefixCls}-group-wrapper-with-left-label`]: labelPosition === 'left'
|
|
42
42
|
});
|
|
43
|
-
const groupCls = cls(
|
|
44
|
-
[
|
|
43
|
+
const groupCls = cls(`${prefixCls}-group`, className, {
|
|
44
|
+
[`${prefixCls}-${size}`]: size !== 'default'
|
|
45
45
|
}); // const labelCls = cls(label.className, '');
|
|
46
46
|
|
|
47
47
|
const defaultName = 'input-group';
|
|
@@ -74,8 +74,8 @@ export default class inputGroup extends BaseComponent {
|
|
|
74
74
|
} = _a,
|
|
75
75
|
rest = __rest(_a, ["size", "style", "className", "children", "label", "onBlur", "onFocus", "disabled"]);
|
|
76
76
|
|
|
77
|
-
const groupCls = cls(
|
|
78
|
-
[
|
|
77
|
+
const groupCls = cls(`${prefixCls}-group`, {
|
|
78
|
+
[`${prefixCls}-${size}`]: size !== 'default'
|
|
79
79
|
}, className);
|
|
80
80
|
let inner;
|
|
81
81
|
|
package/lib/es/input/textarea.js
CHANGED
|
@@ -152,8 +152,8 @@ class TextArea extends BaseComponent {
|
|
|
152
152
|
showClear
|
|
153
153
|
} = this.props;
|
|
154
154
|
const displayClearBtn = this.foundation.isAllowClear();
|
|
155
|
-
const clearCls = cls(
|
|
156
|
-
[
|
|
155
|
+
const clearCls = cls(`${prefixCls}-clearbtn`, {
|
|
156
|
+
[`${prefixCls}-clearbtn-hidden`]: !displayClearBtn
|
|
157
157
|
});
|
|
158
158
|
|
|
159
159
|
if (showClear) {
|
|
@@ -185,8 +185,8 @@ class TextArea extends BaseComponent {
|
|
|
185
185
|
|
|
186
186
|
current = value ? _isFunction(getValueLength) ? getValueLength(value) : value.length : 0;
|
|
187
187
|
total = maxCount || null;
|
|
188
|
-
countCls = cls(
|
|
189
|
-
[
|
|
188
|
+
countCls = cls(`${prefixCls}-textarea-counter`, {
|
|
189
|
+
[`${prefixCls}-textarea-counter-exceed`]: current > total
|
|
190
190
|
});
|
|
191
191
|
counter = /*#__PURE__*/React.createElement("div", {
|
|
192
192
|
className: countCls
|
|
@@ -227,19 +227,19 @@ class TextArea extends BaseComponent {
|
|
|
227
227
|
value,
|
|
228
228
|
minLength: stateMinLength
|
|
229
229
|
} = this.state;
|
|
230
|
-
const wrapperCls = cls(className,
|
|
231
|
-
[
|
|
232
|
-
[
|
|
233
|
-
[
|
|
234
|
-
[
|
|
230
|
+
const wrapperCls = cls(className, `${prefixCls}-textarea-wrapper`, {
|
|
231
|
+
[`${prefixCls}-textarea-wrapper-disabled`]: disabled,
|
|
232
|
+
[`${prefixCls}-textarea-wrapper-readonly`]: readonly,
|
|
233
|
+
[`${prefixCls}-textarea-wrapper-${validateStatus}`]: Boolean(validateStatus),
|
|
234
|
+
[`${prefixCls}-textarea-wrapper-focus`]: isFocus // [`${prefixCls}-textarea-wrapper-resize`]: !autosize && resize,
|
|
235
235
|
|
|
236
236
|
}); // const ref = this.props.forwardRef || this.textAreaRef;
|
|
237
237
|
|
|
238
|
-
const itemCls = cls(
|
|
239
|
-
[
|
|
240
|
-
[
|
|
241
|
-
[
|
|
242
|
-
[
|
|
238
|
+
const itemCls = cls(`${prefixCls}-textarea`, {
|
|
239
|
+
[`${prefixCls}-textarea-disabled`]: disabled,
|
|
240
|
+
[`${prefixCls}-textarea-readonly`]: readonly,
|
|
241
|
+
[`${prefixCls}-textarea-autosize`]: autosize,
|
|
242
|
+
[`${prefixCls}-textarea-showClear`]: showClear
|
|
243
243
|
});
|
|
244
244
|
const itemProps = Object.assign(Object.assign({}, _omit(rest, 'insetLabel', 'insetLabelId', 'getValueLength', 'onClear', 'showClear')), {
|
|
245
245
|
className: itemCls,
|
|
@@ -92,17 +92,17 @@ class InputNumber extends BaseComponent {
|
|
|
92
92
|
} = this.state;
|
|
93
93
|
const notAllowedUp = disabled ? disabled : number === max;
|
|
94
94
|
const notAllowedDown = disabled ? disabled : number === min;
|
|
95
|
-
const suffixChildrenCls = classnames(
|
|
96
|
-
[
|
|
97
|
-
[
|
|
95
|
+
const suffixChildrenCls = classnames(`${prefixCls}-number-suffix-btns`, {
|
|
96
|
+
[`${prefixCls}-number-suffix-btns-inner`]: innerButtons,
|
|
97
|
+
[`${prefixCls}-number-suffix-btns-inner-hover`]: innerButtons && hovering && !focusing
|
|
98
98
|
});
|
|
99
|
-
const upClassName = classnames(
|
|
100
|
-
[
|
|
101
|
-
[
|
|
99
|
+
const upClassName = classnames(`${prefixCls}-number-button`, `${prefixCls}-number-button-up`, {
|
|
100
|
+
[`${prefixCls}-number-button-up-disabled`]: disabled,
|
|
101
|
+
[`${prefixCls}-number-button-up-not-allowed`]: notAllowedUp
|
|
102
102
|
});
|
|
103
|
-
const downClassName = classnames(
|
|
104
|
-
[
|
|
105
|
-
[
|
|
103
|
+
const downClassName = classnames(`${prefixCls}-number-button`, `${prefixCls}-number-button-down`, {
|
|
104
|
+
[`${prefixCls}-number-button-down-disabled`]: disabled,
|
|
105
|
+
[`${prefixCls}-number-button-down-not-allowed`]: notAllowedDown
|
|
106
106
|
});
|
|
107
107
|
return /*#__PURE__*/React.createElement("div", {
|
|
108
108
|
className: suffixChildrenCls
|
|
@@ -428,8 +428,8 @@ class InputNumber extends BaseComponent {
|
|
|
428
428
|
value,
|
|
429
429
|
number
|
|
430
430
|
} = this.state;
|
|
431
|
-
const inputNumberCls = classnames(className,
|
|
432
|
-
[
|
|
431
|
+
const inputNumberCls = classnames(className, `${prefixCls}-number`, {
|
|
432
|
+
[`${prefixCls}-number-size-${size}`]: size
|
|
433
433
|
});
|
|
434
434
|
const buttons = this.renderButtons();
|
|
435
435
|
const ariaProps = {
|
package/lib/es/layout/Sider.js
CHANGED
|
@@ -29,7 +29,7 @@ const generateId = (() => {
|
|
|
29
29
|
let i = 0;
|
|
30
30
|
return () => {
|
|
31
31
|
i += 1;
|
|
32
|
-
return
|
|
32
|
+
return `${cssClasses.PREFIX}-sider-${i}`;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
|
|
@@ -92,14 +92,14 @@ class Sider extends React.PureComponent {
|
|
|
92
92
|
others = __rest(_a, ["prefixCls", "className", "children", "style"]);
|
|
93
93
|
|
|
94
94
|
const classString = cls(className, {
|
|
95
|
-
[
|
|
95
|
+
[`${prefixCls}-sider`]: true
|
|
96
96
|
});
|
|
97
97
|
return /*#__PURE__*/React.createElement("aside", Object.assign({
|
|
98
98
|
className: classString,
|
|
99
99
|
"aria-label": this.props['aria-label'],
|
|
100
100
|
style: style
|
|
101
101
|
}, getDataAttr(others)), /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
className:
|
|
102
|
+
className: `${prefixCls}-sider-children`
|
|
103
103
|
}, children));
|
|
104
104
|
}
|
|
105
105
|
|
package/lib/es/layout/index.js
CHANGED
|
@@ -51,7 +51,7 @@ class Basic extends React.PureComponent {
|
|
|
51
51
|
} = _a,
|
|
52
52
|
others = __rest(_a, ["prefixCls", "type", "className", "children", "tagName"]);
|
|
53
53
|
|
|
54
|
-
const classString = cls(className,
|
|
54
|
+
const classString = cls(className, `${prefixCls}-${type}`);
|
|
55
55
|
return /*#__PURE__*/React.createElement(tagName, Object.assign({
|
|
56
56
|
className: classString
|
|
57
57
|
}, others), children);
|
|
@@ -109,7 +109,7 @@ class Layout extends React.Component {
|
|
|
109
109
|
siders
|
|
110
110
|
} = this.state;
|
|
111
111
|
const classString = cls(className, prefixCls, {
|
|
112
|
-
[
|
|
112
|
+
[`${prefixCls}-has-sider`]: typeof hasSider === 'boolean' && hasSider || siders.length > 0 || React.Children.toArray(children).some(child => {
|
|
113
113
|
return /*#__PURE__*/React.isValidElement(child) && child.type && child.type.elementType === "Layout.Sider";
|
|
114
114
|
})
|
|
115
115
|
});
|
package/lib/es/list/index.js
CHANGED
|
@@ -23,14 +23,14 @@ class List extends BaseComponent {
|
|
|
23
23
|
|
|
24
24
|
if (emptyContent) {
|
|
25
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
className:
|
|
26
|
+
className: `${cssClasses.PREFIX}-empty`,
|
|
27
27
|
"x-semi-prop": "emptyContent"
|
|
28
28
|
}, emptyContent);
|
|
29
29
|
} else {
|
|
30
30
|
return /*#__PURE__*/React.createElement(LocaleConsumer, {
|
|
31
31
|
componentName: "List"
|
|
32
32
|
}, locale => /*#__PURE__*/React.createElement("div", {
|
|
33
|
-
className:
|
|
33
|
+
className: `${cssClasses.PREFIX}-empty`
|
|
34
34
|
}, locale.emptyText));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
@@ -54,7 +54,7 @@ class List extends BaseComponent {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
return /*#__PURE__*/React.createElement("ul", {
|
|
57
|
-
className:
|
|
57
|
+
className: `${prefixCls}-items`
|
|
58
58
|
}, childrenList ? childrenList : null, children);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -78,11 +78,11 @@ class List extends BaseComponent {
|
|
|
78
78
|
children
|
|
79
79
|
} = this.props;
|
|
80
80
|
const wrapperCls = cls(prefixCls, className, {
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
81
|
+
[`${prefixCls}-flex`]: layout === 'horizontal',
|
|
82
|
+
[`${prefixCls}-${size}`]: size,
|
|
83
|
+
[`${prefixCls}-grid`]: grid,
|
|
84
|
+
[`${prefixCls}-split`]: split,
|
|
85
|
+
[`${prefixCls}-bordered`]: bordered
|
|
86
86
|
});
|
|
87
87
|
let childrenList;
|
|
88
88
|
|
|
@@ -90,7 +90,7 @@ class List extends BaseComponent {
|
|
|
90
90
|
childrenList = [];
|
|
91
91
|
const items = renderItem ? dataSource.map((item, index) => renderItem(item, index)) : [];
|
|
92
92
|
React.Children.forEach(items, (child, index) => {
|
|
93
|
-
const itemKey = child.key ||
|
|
93
|
+
const itemKey = child.key || `list-item-${index}`;
|
|
94
94
|
childrenList.push( /*#__PURE__*/React.cloneElement(child, {
|
|
95
95
|
key: itemKey
|
|
96
96
|
}));
|
|
@@ -103,7 +103,7 @@ class List extends BaseComponent {
|
|
|
103
103
|
className: wrapperCls,
|
|
104
104
|
style: style
|
|
105
105
|
}, header ? /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className:
|
|
106
|
+
className: `${cssClasses.PREFIX}-header`,
|
|
107
107
|
"x-semi-prop": "header"
|
|
108
108
|
}, header) : null, /*#__PURE__*/React.createElement(ListContext.Provider, {
|
|
109
109
|
value: {
|
|
@@ -115,7 +115,7 @@ class List extends BaseComponent {
|
|
|
115
115
|
spinning: loading,
|
|
116
116
|
size: "large"
|
|
117
117
|
}, this.wrapChildren(childrenList, children))), footer ? /*#__PURE__*/React.createElement("div", {
|
|
118
|
-
className:
|
|
118
|
+
className: `${cssClasses.PREFIX}-footer`,
|
|
119
119
|
"x-semi-prop": "footer"
|
|
120
120
|
}, footer) : null, loadMore ? loadMore : null);
|
|
121
121
|
}
|
package/lib/es/list/item.js
CHANGED
|
@@ -56,9 +56,9 @@ export default class ListItem extends PureComponent {
|
|
|
56
56
|
} = this.context;
|
|
57
57
|
const handleContextMenu = onRightClick ? onRightClick : contextOnRightClick;
|
|
58
58
|
const handleClick = onClick ? onClick : contextOnClick;
|
|
59
|
-
const itemCls = cls(
|
|
60
|
-
const bodyCls = cls(
|
|
61
|
-
[
|
|
59
|
+
const itemCls = cls(`${prefixCls}-item`, className);
|
|
60
|
+
const bodyCls = cls(`${prefixCls}-item-body`, {
|
|
61
|
+
[`${prefixCls}-item-body-${align}`]: align
|
|
62
62
|
});
|
|
63
63
|
let body;
|
|
64
64
|
|
|
@@ -66,9 +66,9 @@ export default class ListItem extends PureComponent {
|
|
|
66
66
|
body = /*#__PURE__*/React.createElement("div", {
|
|
67
67
|
className: bodyCls
|
|
68
68
|
}, header ? /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className:
|
|
69
|
+
className: `${prefixCls}-item-body-header`
|
|
70
70
|
}, header) : null, main ? /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className:
|
|
71
|
+
className: `${prefixCls}-item-body-main`
|
|
72
72
|
}, main) : null);
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -83,7 +83,7 @@ export default class ListItem extends PureComponent {
|
|
|
83
83
|
onMouseEnter: onMouseEnter,
|
|
84
84
|
onMouseLeave: onMouseLeave
|
|
85
85
|
}, body ? body : null, children, extra ? /*#__PURE__*/React.createElement("div", {
|
|
86
|
-
className:
|
|
86
|
+
className: `${prefixCls}-item-extra`
|
|
87
87
|
}, extra) : null);
|
|
88
88
|
|
|
89
89
|
if (this.context && contextGrid) {
|
|
@@ -3,8 +3,8 @@ const local = {
|
|
|
3
3
|
code: 'ar',
|
|
4
4
|
dateFnsLocale: arSA,
|
|
5
5
|
Pagination: {
|
|
6
|
-
pageSize: '
|
|
7
|
-
total: '
|
|
6
|
+
pageSize: 'العناصر في كل صفحة: ${pageSize}',
|
|
7
|
+
total: 'إجمالي الصفحات: ${total}',
|
|
8
8
|
jumpTo: 'اقفز إلى',
|
|
9
9
|
page: ' الصفحات'
|
|
10
10
|
},
|
|
@@ -80,7 +80,7 @@ const local = {
|
|
|
80
80
|
Sun: 'الأحد'
|
|
81
81
|
},
|
|
82
82
|
localeFormatToken: {
|
|
83
|
-
FORMAT_SWITCH_DATE: 'dd
|
|
83
|
+
FORMAT_SWITCH_DATE: 'yyyy/MM/dd'
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
Popconfirm: {
|
|
@@ -144,8 +144,8 @@ const local = {
|
|
|
144
144
|
clear: 'واضح',
|
|
145
145
|
selectAll: 'اختر الكل',
|
|
146
146
|
clearSelectAll: 'إلغاء تحديد الكل',
|
|
147
|
-
total: "
|
|
148
|
-
selected: "
|
|
147
|
+
total: "إجمالي العناصر: ${total}",
|
|
148
|
+
selected: "العناصر المحددة: ${total}"
|
|
149
149
|
},
|
|
150
150
|
Form: {
|
|
151
151
|
optional: '(اختياري)'
|
|
@@ -3,8 +3,8 @@ const local = {
|
|
|
3
3
|
code: 'de',
|
|
4
4
|
dateFnsLocale: de,
|
|
5
5
|
Pagination: {
|
|
6
|
-
pageSize: '${pageSize}
|
|
7
|
-
total: '${total}
|
|
6
|
+
pageSize: 'Elemente pro Seite: ${pageSize}',
|
|
7
|
+
total: 'Seiten gesamt: ${total}',
|
|
8
8
|
jumpTo: 'Springen zu',
|
|
9
9
|
page: ' Seiten'
|
|
10
10
|
},
|
|
@@ -80,7 +80,7 @@ const local = {
|
|
|
80
80
|
Sun: 'So.'
|
|
81
81
|
},
|
|
82
82
|
localeFormatToken: {
|
|
83
|
-
FORMAT_SWITCH_DATE: 'yyyy
|
|
83
|
+
FORMAT_SWITCH_DATE: 'dd.MM.yyyy'
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
Popconfirm: {
|
|
@@ -144,8 +144,8 @@ const local = {
|
|
|
144
144
|
clear: 'Löschen',
|
|
145
145
|
selectAll: 'Alles auswählen',
|
|
146
146
|
clearSelectAll: 'Alles abwählen',
|
|
147
|
-
total: '
|
|
148
|
-
selected: '${total}
|
|
147
|
+
total: 'Elemente gesamt: ${total}',
|
|
148
|
+
selected: 'Elemente ausgewählt: ${total}'
|
|
149
149
|
},
|
|
150
150
|
Form: {
|
|
151
151
|
optional: '(Optional)'
|
|
@@ -3,8 +3,8 @@ const local = {
|
|
|
3
3
|
code: 'en-GB',
|
|
4
4
|
dateFnsLocale: enGB,
|
|
5
5
|
Pagination: {
|
|
6
|
-
pageSize: '${pageSize}
|
|
7
|
-
total: '${total}
|
|
6
|
+
pageSize: 'Items per page: ${pageSize}',
|
|
7
|
+
total: 'Total pages: ${total}',
|
|
8
8
|
jumpTo: 'Jump to',
|
|
9
9
|
page: ' page'
|
|
10
10
|
},
|
|
@@ -80,7 +80,7 @@ const local = {
|
|
|
80
80
|
Sun: 'Sun'
|
|
81
81
|
},
|
|
82
82
|
localeFormatToken: {
|
|
83
|
-
FORMAT_SWITCH_DATE: '
|
|
83
|
+
FORMAT_SWITCH_DATE: 'MM/dd/yyyy'
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
Popconfirm: {
|
|
@@ -144,8 +144,8 @@ const local = {
|
|
|
144
144
|
clear: 'Clear',
|
|
145
145
|
selectAll: 'Select all',
|
|
146
146
|
clearSelectAll: 'Unselect all',
|
|
147
|
-
total: 'Total ${total}
|
|
148
|
-
selected: '${total}
|
|
147
|
+
total: 'Total items: ${total}',
|
|
148
|
+
selected: 'Items selected: ${total}'
|
|
149
149
|
},
|
|
150
150
|
Form: {
|
|
151
151
|
optional: '(optional)'
|
|
@@ -3,8 +3,8 @@ const local = {
|
|
|
3
3
|
code: 'en-US',
|
|
4
4
|
dateFnsLocale: enUS,
|
|
5
5
|
Pagination: {
|
|
6
|
-
pageSize: '${pageSize}
|
|
7
|
-
total: '${total}
|
|
6
|
+
pageSize: 'Items per page: ${pageSize}',
|
|
7
|
+
total: 'Total pages: ${total}',
|
|
8
8
|
jumpTo: 'Jump to',
|
|
9
9
|
page: ' page'
|
|
10
10
|
},
|
|
@@ -144,8 +144,8 @@ const local = {
|
|
|
144
144
|
clear: 'Clear',
|
|
145
145
|
selectAll: 'Select all',
|
|
146
146
|
clearSelectAll: 'Unselect all',
|
|
147
|
-
total: 'Total ${total}
|
|
148
|
-
selected: '${total}
|
|
147
|
+
total: 'Total items: ${total}',
|
|
148
|
+
selected: 'Items selected: ${total}'
|
|
149
149
|
},
|
|
150
150
|
Form: {
|
|
151
151
|
optional: '(optional)'
|
|
@@ -8,8 +8,8 @@ const locale = {
|
|
|
8
8
|
code: 'es',
|
|
9
9
|
dateFnsLocale: es,
|
|
10
10
|
Pagination: {
|
|
11
|
-
pageSize: '${pageSize}
|
|
12
|
-
total: '${total}
|
|
11
|
+
pageSize: 'Elementos por página: ${pageSize}',
|
|
12
|
+
total: 'Páginas totales: ${total}',
|
|
13
13
|
jumpTo: 'Ir a',
|
|
14
14
|
page: ' páginas'
|
|
15
15
|
},
|
|
@@ -85,7 +85,7 @@ const locale = {
|
|
|
85
85
|
Sun: 'Dom'
|
|
86
86
|
},
|
|
87
87
|
localeFormatToken: {
|
|
88
|
-
FORMAT_SWITCH_DATE: 'yyyy
|
|
88
|
+
FORMAT_SWITCH_DATE: 'dd/MM/yyyy'
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
Popconfirm: {
|
|
@@ -149,8 +149,8 @@ const locale = {
|
|
|
149
149
|
clear: 'Limpiar',
|
|
150
150
|
selectAll: 'Seleccionar todo',
|
|
151
151
|
clearSelectAll: 'Deseleccionar todo',
|
|
152
|
-
total: '
|
|
153
|
-
selected: '${total}
|
|
152
|
+
total: 'Elementos totales: ${total}',
|
|
153
|
+
selected: 'Elementos seleccionados: ${total}'
|
|
154
154
|
},
|
|
155
155
|
Form: {
|
|
156
156
|
optional: '(opcional)'
|
|
@@ -3,8 +3,8 @@ const local = {
|
|
|
3
3
|
code: 'fr',
|
|
4
4
|
dateFnsLocale: fr,
|
|
5
5
|
Pagination: {
|
|
6
|
-
pageSize: '${pageSize}
|
|
7
|
-
total: '${total}
|
|
6
|
+
pageSize: 'Éléments par page : ${pageSize}',
|
|
7
|
+
total: 'Total des pages : ${total}',
|
|
8
8
|
jumpTo: 'Sauter à',
|
|
9
9
|
page: ' pages'
|
|
10
10
|
},
|
|
@@ -80,7 +80,7 @@ const local = {
|
|
|
80
80
|
Sun: 'dim.'
|
|
81
81
|
},
|
|
82
82
|
localeFormatToken: {
|
|
83
|
-
FORMAT_SWITCH_DATE: 'yyyy
|
|
83
|
+
FORMAT_SWITCH_DATE: 'dd/MM/yyyy'
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
Popconfirm: {
|
|
@@ -144,8 +144,8 @@ const local = {
|
|
|
144
144
|
clear: 'Supprimer',
|
|
145
145
|
selectAll: 'Sélectionner tout',
|
|
146
146
|
clearSelectAll: 'Désélectionner tout',
|
|
147
|
-
total: '
|
|
148
|
-
selected: '${total}
|
|
147
|
+
total: 'Total des éléments : ${total}',
|
|
148
|
+
selected: 'Éléments sélectionnés : ${total}'
|
|
149
149
|
},
|
|
150
150
|
Form: {
|
|
151
151
|
optional: '(optionnel)'
|