@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
package/lib/cjs/slider/index.js
CHANGED
|
@@ -74,10 +74,10 @@ class Slider extends _baseComponent.default {
|
|
|
74
74
|
tipChildren
|
|
75
75
|
} = this.foundation.computeHandleVisibleVal(tooltipVisible && isInRenderTree, tipFormatter, range);
|
|
76
76
|
const minClass = (0, _classnames.default)(_constants.cssClasses.HANDLE, {
|
|
77
|
-
[
|
|
77
|
+
[`${_constants.cssClasses.HANDLE}-clicked`]: chooseMovePos === 'min' && isDrag
|
|
78
78
|
});
|
|
79
79
|
const maxClass = (0, _classnames.default)(_constants.cssClasses.HANDLE, {
|
|
80
|
-
[
|
|
80
|
+
[`${_constants.cssClasses.HANDLE}-clicked`]: chooseMovePos === 'max' && isDrag
|
|
81
81
|
});
|
|
82
82
|
const {
|
|
83
83
|
min,
|
|
@@ -98,13 +98,13 @@ class Slider extends _baseComponent.default {
|
|
|
98
98
|
trigger: "custom",
|
|
99
99
|
rePosKey: minPercent,
|
|
100
100
|
visible: isInRenderTree && (tipVisible.min || firstDotFocusVisible),
|
|
101
|
-
className:
|
|
101
|
+
className: `${_constants.cssClasses.HANDLE}-tooltip`
|
|
102
102
|
}, /*#__PURE__*/_react.default.createElement("span", Object.assign({
|
|
103
103
|
onMouseOver: this.foundation.checkAndUpdateIsInRenderTreeState,
|
|
104
104
|
ref: this.minHanleEl,
|
|
105
105
|
className: minClass,
|
|
106
106
|
style: {
|
|
107
|
-
[stylePos]:
|
|
107
|
+
[stylePos]: `${minPercent * 100}%`,
|
|
108
108
|
zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1
|
|
109
109
|
},
|
|
110
110
|
onMouseDown: e => {
|
|
@@ -150,12 +150,12 @@ class Slider extends _baseComponent.default {
|
|
|
150
150
|
trigger: "custom",
|
|
151
151
|
rePosKey: minPercent,
|
|
152
152
|
visible: isInRenderTree && (tipVisible.min || firstDotFocusVisible),
|
|
153
|
-
className:
|
|
153
|
+
className: `${_constants.cssClasses.HANDLE}-tooltip`
|
|
154
154
|
}, /*#__PURE__*/_react.default.createElement("span", Object.assign({
|
|
155
155
|
ref: this.minHanleEl,
|
|
156
156
|
className: minClass,
|
|
157
157
|
style: {
|
|
158
|
-
[stylePos]:
|
|
158
|
+
[stylePos]: `${minPercent * 100}%`,
|
|
159
159
|
zIndex: chooseMovePos === 'min' ? 2 : 1
|
|
160
160
|
},
|
|
161
161
|
onMouseDown: e => {
|
|
@@ -201,12 +201,12 @@ class Slider extends _baseComponent.default {
|
|
|
201
201
|
trigger: "custom",
|
|
202
202
|
rePosKey: maxPercent,
|
|
203
203
|
visible: isInRenderTree && (tipVisible.max || secondDotFocusVisible),
|
|
204
|
-
className:
|
|
204
|
+
className: `${_constants.cssClasses.HANDLE}-tooltip`
|
|
205
205
|
}, /*#__PURE__*/_react.default.createElement("span", Object.assign({
|
|
206
206
|
ref: this.maxHanleEl,
|
|
207
207
|
className: maxClass,
|
|
208
208
|
style: {
|
|
209
|
-
[stylePos]:
|
|
209
|
+
[stylePos]: `${maxPercent * 100}%`,
|
|
210
210
|
zIndex: chooseMovePos === 'max' ? 2 : 1
|
|
211
211
|
},
|
|
212
212
|
onMouseDown: e => {
|
|
@@ -260,11 +260,11 @@ class Slider extends _baseComponent.default {
|
|
|
260
260
|
const minPercent = percentInfo.min;
|
|
261
261
|
const maxPercent = percentInfo.max;
|
|
262
262
|
let trackStyle = !vertical ? {
|
|
263
|
-
width: range ?
|
|
264
|
-
left: range ?
|
|
263
|
+
width: range ? `${(maxPercent - minPercent) * 100}%` : `${minPercent * 100}%`,
|
|
264
|
+
left: range ? `${minPercent * 100}%` : 0
|
|
265
265
|
} : {
|
|
266
|
-
height: range ?
|
|
267
|
-
top: range ?
|
|
266
|
+
height: range ? `${(maxPercent - minPercent) * 100}%` : `${minPercent * 100}%`,
|
|
267
|
+
top: range ? `${minPercent * 100}%` : 0
|
|
268
268
|
};
|
|
269
269
|
trackStyle = included ? trackStyle : {};
|
|
270
270
|
return (
|
|
@@ -290,8 +290,8 @@ class Slider extends _baseComponent.default {
|
|
|
290
290
|
className: _constants.cssClasses.DOTS
|
|
291
291
|
}, Object.keys(marks).map(mark => {
|
|
292
292
|
const activeResult = this.foundation.isMarkActive(Number(mark));
|
|
293
|
-
const markClass = (0, _classnames.default)(
|
|
294
|
-
[
|
|
293
|
+
const markClass = (0, _classnames.default)(`${prefixCls}-dot`, {
|
|
294
|
+
[`${prefixCls}-dot-active`]: this.foundation.isMarkActive(Number(mark)) === 'active'
|
|
295
295
|
});
|
|
296
296
|
const markPercent = (Number(mark) - min) / (max - min);
|
|
297
297
|
return activeResult ?
|
|
@@ -302,7 +302,7 @@ class Slider extends _baseComponent.default {
|
|
|
302
302
|
onClick: this.foundation.handleWrapClick,
|
|
303
303
|
className: markClass,
|
|
304
304
|
style: {
|
|
305
|
-
[stylePos]:
|
|
305
|
+
[stylePos]: `calc(${markPercent * 100}% - 2px)`
|
|
306
306
|
}
|
|
307
307
|
}) : null;
|
|
308
308
|
})) : null;
|
|
@@ -328,9 +328,9 @@ class Slider extends _baseComponent.default {
|
|
|
328
328
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
329
329
|
_react.default.createElement("span", {
|
|
330
330
|
key: mark,
|
|
331
|
-
className: (0, _classnames.default)(
|
|
331
|
+
className: (0, _classnames.default)(`${prefixCls}-mark${vertical && verticalReverse ? '-reverse' : ''}`),
|
|
332
332
|
style: {
|
|
333
|
-
[stylePos]:
|
|
333
|
+
[stylePos]: `${markPercent * 100}%`
|
|
334
334
|
},
|
|
335
335
|
onClick: this.foundation.handleWrapClick
|
|
336
336
|
}, marks[mark]) : null;
|
|
@@ -608,19 +608,19 @@ class Slider extends _baseComponent.default {
|
|
|
608
608
|
range,
|
|
609
609
|
className
|
|
610
610
|
} = this.props;
|
|
611
|
-
const wrapperClass = (0, _classnames.default)(
|
|
612
|
-
[
|
|
613
|
-
[
|
|
614
|
-
[
|
|
611
|
+
const wrapperClass = (0, _classnames.default)(`${prefixCls}-wrapper`, {
|
|
612
|
+
[`${prefixCls}-disabled`]: disabled,
|
|
613
|
+
[`${_constants.cssClasses.VERTICAL}-wrapper`]: vertical,
|
|
614
|
+
[`${prefixCls}-reverse`]: vertical && verticalReverse
|
|
615
615
|
}, className);
|
|
616
|
-
const boundaryClass = (0, _classnames.default)(
|
|
617
|
-
[
|
|
616
|
+
const boundaryClass = (0, _classnames.default)(`${prefixCls}-boundary`, {
|
|
617
|
+
[`${prefixCls}-boundary-show`]: this.props.showBoundary && this.state.showBoundary
|
|
618
618
|
});
|
|
619
619
|
const sliderCls = (0, _classnames.default)({
|
|
620
|
-
[
|
|
620
|
+
[`${prefixCls}`]: !vertical,
|
|
621
621
|
[_constants.cssClasses.VERTICAL]: vertical
|
|
622
622
|
});
|
|
623
|
-
const ariaLabel = range ?
|
|
623
|
+
const ariaLabel = range ? `Range: ${this._getAriaValueText(currentValue[0], 0)} to ${this._getAriaValueText(currentValue[1], 1)}` : undefined;
|
|
624
624
|
|
|
625
625
|
const slider = /*#__PURE__*/_react.default.createElement("div", {
|
|
626
626
|
className: wrapperClass,
|
|
@@ -630,15 +630,15 @@ class Slider extends _baseComponent.default {
|
|
|
630
630
|
onMouseEnter: () => this.foundation.handleWrapperEnter(),
|
|
631
631
|
onMouseLeave: () => this.foundation.handleWrapperLeave()
|
|
632
632
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
633
|
-
className:
|
|
633
|
+
className: `${prefixCls}-rail`,
|
|
634
634
|
onClick: this.foundation.handleWrapClick,
|
|
635
635
|
style: railStyle
|
|
636
636
|
}), this.renderTrack(), this.renderStepDot(), /*#__PURE__*/_react.default.createElement("div", null, this.renderHandle()), this.renderLabel(), /*#__PURE__*/_react.default.createElement("div", {
|
|
637
637
|
className: boundaryClass
|
|
638
638
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
639
|
-
className:
|
|
639
|
+
className: `${prefixCls}-boundary-min`
|
|
640
640
|
}, min), /*#__PURE__*/_react.default.createElement("span", {
|
|
641
|
-
className:
|
|
641
|
+
className: `${prefixCls}-boundary-max`
|
|
642
642
|
}, max)));
|
|
643
643
|
|
|
644
644
|
if (!vertical) {
|
package/lib/cjs/space/index.js
CHANGED
|
@@ -57,27 +57,27 @@ class Space extends _react.PureComponent {
|
|
|
57
57
|
if ((0, _isString2.default)(spacing[0])) {
|
|
58
58
|
spacingHorizontalType = spacing[0];
|
|
59
59
|
} else if ((0, _isNumber2.default)(spacing[0])) {
|
|
60
|
-
realStyle.columnGap =
|
|
60
|
+
realStyle.columnGap = `${spacing[0]}px`;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
if ((0, _isString2.default)(spacing[1])) {
|
|
64
64
|
spacingVerticalType = spacing[1];
|
|
65
65
|
} else if ((0, _isNumber2.default)(spacing[1])) {
|
|
66
|
-
realStyle.rowGap =
|
|
66
|
+
realStyle.rowGap = `${spacing[1]}px`;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
const classNames = (0, _classnames.default)(prefixCls, className, {
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
71
|
+
[`${prefixCls}-align-${align}`]: align,
|
|
72
|
+
[`${prefixCls}-vertical`]: vertical,
|
|
73
|
+
[`${prefixCls}-horizontal`]: !vertical,
|
|
74
|
+
[`${prefixCls}-wrap`]: isWrap,
|
|
75
|
+
[`${prefixCls}-tight-horizontal`]: spacingHorizontalType === _constants.strings.SPACING_TIGHT,
|
|
76
|
+
[`${prefixCls}-tight-vertical`]: spacingVerticalType === _constants.strings.SPACING_TIGHT,
|
|
77
|
+
[`${prefixCls}-medium-horizontal`]: spacingHorizontalType === _constants.strings.SPACING_MEDIUM,
|
|
78
|
+
[`${prefixCls}-medium-vertical`]: spacingVerticalType === _constants.strings.SPACING_MEDIUM,
|
|
79
|
+
[`${prefixCls}-loose-horizontal`]: spacingHorizontalType === _constants.strings.SPACING_LOOSE,
|
|
80
|
+
[`${prefixCls}-loose-vertical`]: spacingVerticalType === _constants.strings.SPACING_LOOSE
|
|
81
81
|
});
|
|
82
82
|
const childrenNodes = (0, _utils.flatten)(children);
|
|
83
83
|
return /*#__PURE__*/_react.default.createElement("div", {
|
package/lib/cjs/spin/icon.js
CHANGED
|
@@ -42,7 +42,7 @@ function Icon() {
|
|
|
42
42
|
_propsId = _id;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
const id =
|
|
45
|
+
const id = `linearGradient-${_propsId}`;
|
|
46
46
|
return /*#__PURE__*/_react.default.createElement("svg", Object.assign({}, rest, {
|
|
47
47
|
className: className,
|
|
48
48
|
width: "48",
|
|
@@ -83,7 +83,7 @@ function Icon() {
|
|
|
83
83
|
height: "36"
|
|
84
84
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
85
85
|
d: "M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",
|
|
86
|
-
stroke:
|
|
86
|
+
stroke: `url(#${id})`,
|
|
87
87
|
strokeWidth: "4",
|
|
88
88
|
strokeLinecap: "round"
|
|
89
89
|
})));
|
package/lib/cjs/spin/index.js
CHANGED
|
@@ -77,9 +77,9 @@ class Spin extends _baseComponent.default {
|
|
|
77
77
|
loading
|
|
78
78
|
} = this.state;
|
|
79
79
|
return loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
-
className:
|
|
80
|
+
className: `${prefixCls}-wrapper`
|
|
81
81
|
}, indicator ? /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
-
className:
|
|
82
|
+
className: `${prefixCls}-animate`,
|
|
83
83
|
"x-semi-prop": "indicator"
|
|
84
84
|
}, indicator) : /*#__PURE__*/_react.default.createElement(_icon.default, null), tip ? /*#__PURE__*/_react.default.createElement("div", {
|
|
85
85
|
"x-semi-prop": "tip"
|
|
@@ -99,15 +99,15 @@ class Spin extends _baseComponent.default {
|
|
|
99
99
|
loading
|
|
100
100
|
} = this.state;
|
|
101
101
|
const spinCls = (0, _classnames.default)(prefixCls, wrapperClassName, {
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
102
|
+
[`${prefixCls}-${size}`]: size,
|
|
103
|
+
[`${prefixCls}-block`]: children,
|
|
104
|
+
[`${prefixCls}-hidden`]: !loading
|
|
105
105
|
});
|
|
106
106
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
107
107
|
className: spinCls,
|
|
108
108
|
style: style
|
|
109
109
|
}, this.renderSpin(), /*#__PURE__*/_react.default.createElement("div", {
|
|
110
|
-
className:
|
|
110
|
+
className: `${prefixCls}-children`,
|
|
111
111
|
style: childStyle,
|
|
112
112
|
"x-semi-prop": "children"
|
|
113
113
|
}, children));
|
|
@@ -19,8 +19,6 @@ export interface BasicStepProps {
|
|
|
19
19
|
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
20
20
|
"role"?: React.AriaRole;
|
|
21
21
|
"aria-label"?: React.AriaAttributes["aria-label"];
|
|
22
|
-
type?: string;
|
|
23
|
-
direction?: string;
|
|
24
22
|
}
|
|
25
23
|
export declare enum stepSizeMapIconSize {
|
|
26
24
|
small = "large",
|
|
@@ -42,9 +42,7 @@ const BasicStep = props => {
|
|
|
42
42
|
stepNumber,
|
|
43
43
|
onClick,
|
|
44
44
|
onChange,
|
|
45
|
-
onKeyDown
|
|
46
|
-
type: typeInProps,
|
|
47
|
-
direction: directionInProps
|
|
45
|
+
onKeyDown
|
|
48
46
|
} = props;
|
|
49
47
|
|
|
50
48
|
const renderIcon = () => {
|
|
@@ -64,13 +62,13 @@ const BasicStep = props => {
|
|
|
64
62
|
|
|
65
63
|
case 'wait':
|
|
66
64
|
inner = /*#__PURE__*/_react.default.createElement("span", {
|
|
67
|
-
className:
|
|
65
|
+
className: `${prefixCls}-number-icon`
|
|
68
66
|
}, stepNumber);
|
|
69
67
|
break;
|
|
70
68
|
|
|
71
69
|
case 'process':
|
|
72
70
|
inner = /*#__PURE__*/_react.default.createElement("span", {
|
|
73
|
-
className:
|
|
71
|
+
className: `${prefixCls}-number-icon`
|
|
74
72
|
}, stepNumber);
|
|
75
73
|
progress = true;
|
|
76
74
|
break;
|
|
@@ -94,21 +92,18 @@ const BasicStep = props => {
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
const cls = (0, _classnames.default)({
|
|
97
|
-
[
|
|
98
|
-
[
|
|
99
|
-
[
|
|
95
|
+
[`${prefixCls}-icon`]: true,
|
|
96
|
+
[`${prefixCls}-custom-icon`]: 'icon' in props,
|
|
97
|
+
[`${prefixCls}-icon-process`]: progress
|
|
100
98
|
});
|
|
101
99
|
return inner ? /*#__PURE__*/_react.default.createElement("span", {
|
|
102
100
|
className: cls
|
|
103
101
|
}, inner) : null;
|
|
104
102
|
};
|
|
105
103
|
|
|
106
|
-
const classString = (0, _classnames.default)(prefixCls,
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
["".concat(prefixCls, "-basic")]: typeInProps,
|
|
110
|
-
["".concat(prefixCls, "-").concat(directionInProps)]: directionInProps,
|
|
111
|
-
["".concat(prefixCls, "-small")]: size === 'small'
|
|
104
|
+
const classString = (0, _classnames.default)(prefixCls, `${prefixCls}-${status}`, {
|
|
105
|
+
[`${prefixCls}-active`]: active,
|
|
106
|
+
[`${prefixCls}-done`]: done
|
|
112
107
|
}, className);
|
|
113
108
|
|
|
114
109
|
const handleClick = e => {
|
|
@@ -139,17 +134,17 @@ const BasicStep = props => {
|
|
|
139
134
|
onClick: e => handleClick(e),
|
|
140
135
|
onKeyDown: handleKeyDown
|
|
141
136
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
142
|
-
className:
|
|
137
|
+
className: `${prefixCls}-container`
|
|
143
138
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className:
|
|
139
|
+
className: `${prefixCls}-left`
|
|
145
140
|
}, renderIcon()), /*#__PURE__*/_react.default.createElement("div", {
|
|
146
|
-
className:
|
|
141
|
+
className: `${prefixCls}-content`
|
|
147
142
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
148
|
-
className:
|
|
143
|
+
className: `${prefixCls}-title`
|
|
149
144
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
-
className:
|
|
145
|
+
className: `${prefixCls}-title-text`
|
|
151
146
|
}, title)), description && /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
-
className:
|
|
147
|
+
className: `${prefixCls}-description`
|
|
153
148
|
}, description))));
|
|
154
149
|
};
|
|
155
150
|
|
|
@@ -43,12 +43,12 @@ const Steps = props => {
|
|
|
43
43
|
|
|
44
44
|
const stepNumber = initial + index;
|
|
45
45
|
const childProps = Object.assign({
|
|
46
|
-
stepNumber:
|
|
46
|
+
stepNumber: `${stepNumber + 1}`,
|
|
47
47
|
size
|
|
48
48
|
}, child.props);
|
|
49
49
|
|
|
50
50
|
if (status === 'error' && index === current - 1) {
|
|
51
|
-
childProps.className =
|
|
51
|
+
childProps.className = `${prefixCls}-next-error`;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (!child.props.status) {
|
|
@@ -76,10 +76,10 @@ const Steps = props => {
|
|
|
76
76
|
return content;
|
|
77
77
|
}, [children, initial, prefixCls, direction, status, current, size, onChange]);
|
|
78
78
|
const wrapperCls = (0, _classnames.default)(className, {
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
[
|
|
79
|
+
[`${prefixCls}-basic`]: true,
|
|
80
|
+
[`${prefixCls}-${direction}`]: true,
|
|
81
|
+
[`${prefixCls}-${size}`]: size !== 'default',
|
|
82
|
+
[`${prefixCls}-hasline`]: hasLine
|
|
83
83
|
});
|
|
84
84
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
85
85
|
"aria-label": props["aria-label"],
|
|
@@ -15,7 +15,6 @@ export interface FillStepProps {
|
|
|
15
15
|
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
16
16
|
"role"?: React.AriaRole;
|
|
17
17
|
"aria-label"?: React.AriaAttributes["aria-label"];
|
|
18
|
-
type?: string;
|
|
19
18
|
}
|
|
20
19
|
declare const FillStep: {
|
|
21
20
|
(props: FillStepProps): JSX.Element;
|
|
@@ -75,10 +75,10 @@ const FillStep = props => {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
const cls = (0, _classnames.default)({
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
78
|
+
[`${prefixCls}-left`]: true,
|
|
79
|
+
[`${prefixCls}-icon`]: 'icon' in props,
|
|
80
|
+
[`${prefixCls}-plain`]: !('icon' in props),
|
|
81
|
+
[`${prefixCls}-icon-process`]: progress
|
|
82
82
|
});
|
|
83
83
|
return inner ? /*#__PURE__*/_react.default.createElement("div", {
|
|
84
84
|
className: cls
|
|
@@ -110,9 +110,8 @@ const FillStep = props => {
|
|
|
110
110
|
tabIndex: 0,
|
|
111
111
|
className: (0, _classnames.default)({
|
|
112
112
|
[prefixCls]: true,
|
|
113
|
-
[
|
|
114
|
-
[
|
|
115
|
-
["".concat(prefixCls, "-fill")]: props.type === 'fill'
|
|
113
|
+
[`${prefixCls}-${status}`]: Boolean(status),
|
|
114
|
+
[`${prefixCls}-clickable`]: onClick
|
|
116
115
|
}, className),
|
|
117
116
|
style: style,
|
|
118
117
|
onClick: e => {
|
|
@@ -120,14 +119,14 @@ const FillStep = props => {
|
|
|
120
119
|
},
|
|
121
120
|
onKeyDown: handleKeyDown
|
|
122
121
|
}, renderIcon(), /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
-
className:
|
|
122
|
+
className: `${prefixCls}-content`
|
|
124
123
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
className:
|
|
124
|
+
className: `${prefixCls}-title`,
|
|
126
125
|
title: typeof title === 'string' ? title : null
|
|
127
126
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
128
|
-
className:
|
|
127
|
+
className: `${prefixCls}-title-text`
|
|
129
128
|
}, title)), /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
-
className:
|
|
129
|
+
className: `${prefixCls}-description`,
|
|
131
130
|
title: typeof description === 'string' ? description : null
|
|
132
131
|
}, description)));
|
|
133
132
|
};
|
|
@@ -37,7 +37,7 @@ const Steps = props => {
|
|
|
37
37
|
const filteredChildren = _react.Children.toArray(children).filter(c => /*#__PURE__*/(0, _react.isValidElement)(c));
|
|
38
38
|
|
|
39
39
|
const colStyle = direction === 'vertical' ? null : {
|
|
40
|
-
width:
|
|
40
|
+
width: `${100 / filteredChildren.length}%`
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
const content = _react.Children.map(filteredChildren, (child, index) => {
|
|
@@ -47,11 +47,12 @@ const Steps = props => {
|
|
|
47
47
|
|
|
48
48
|
const stepNumber = initial + index;
|
|
49
49
|
const childProps = Object.assign({
|
|
50
|
-
stepNumber:
|
|
50
|
+
stepNumber: `${stepNumber + 1}`,
|
|
51
|
+
direction
|
|
51
52
|
}, child.props);
|
|
52
53
|
|
|
53
54
|
if (status === 'error' && index === current - 1) {
|
|
54
|
-
childProps.className =
|
|
55
|
+
childProps.className = `${prefixCls}-next-error`;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
if (!child.props.status) {
|
|
@@ -79,7 +80,7 @@ const Steps = props => {
|
|
|
79
80
|
}, [children, initial, prefixCls, direction, status, current, onChange]);
|
|
80
81
|
const wrapperCls = (0, _classnames.default)(className, {
|
|
81
82
|
[prefixCls]: true,
|
|
82
|
-
[
|
|
83
|
+
[`${prefixCls}-${direction}`]: true
|
|
83
84
|
});
|
|
84
85
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
85
86
|
className: wrapperCls,
|
package/lib/cjs/steps/index.d.ts
CHANGED
|
@@ -22,10 +22,7 @@ export interface NavStepsAllProps extends NavStepsProps {
|
|
|
22
22
|
}
|
|
23
23
|
export declare type StepsProps = FillStepsAllProps | BasicStepsAllProps | NavStepsAllProps;
|
|
24
24
|
declare class Steps extends Component<StepsProps> {
|
|
25
|
-
static Step:
|
|
26
|
-
(props: import("./step").StepProps): JSX.Element;
|
|
27
|
-
elementType: string;
|
|
28
|
-
};
|
|
25
|
+
static Step: (props: import("./step").StepProps) => JSX.Element;
|
|
29
26
|
static propTypes: {
|
|
30
27
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
28
|
type: PropTypes.Requireable<string>;
|
|
@@ -13,9 +13,6 @@ export interface NavStepProps {
|
|
|
13
13
|
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
14
14
|
"role"?: React.AriaRole;
|
|
15
15
|
"aria-label"?: React.AriaAttributes["aria-label"];
|
|
16
|
-
type?: string;
|
|
17
|
-
lastOne?: boolean;
|
|
18
|
-
size?: string;
|
|
19
16
|
}
|
|
20
17
|
declare const NavStep: {
|
|
21
18
|
(props: NavStepProps): JSX.Element;
|
package/lib/cjs/steps/navStep.js
CHANGED
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
|
|
9
|
-
|
|
10
8
|
var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
|
|
11
9
|
|
|
12
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
13
|
|
|
@@ -19,10 +17,6 @@ var _constants = require("@douyinfe/semi-foundation/lib/cjs/steps/constants");
|
|
|
19
17
|
|
|
20
18
|
var _semiIcons = require("@douyinfe/semi-icons");
|
|
21
19
|
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
21
|
|
|
28
22
|
const NavStep = props => {
|
|
@@ -36,15 +30,10 @@ const NavStep = props => {
|
|
|
36
30
|
total,
|
|
37
31
|
onClick,
|
|
38
32
|
onKeyDown,
|
|
39
|
-
onChange
|
|
40
|
-
lastOne,
|
|
41
|
-
type,
|
|
42
|
-
size
|
|
33
|
+
onChange
|
|
43
34
|
} = props;
|
|
44
35
|
const classString = (0, _classnames.default)(prefixCls, {
|
|
45
|
-
[
|
|
46
|
-
["".concat(prefixCls, "-nav")]: type,
|
|
47
|
-
["".concat(prefixCls, "-small")]: size === 'small'
|
|
36
|
+
[`${prefixCls}-active`]: active
|
|
48
37
|
}, className);
|
|
49
38
|
|
|
50
39
|
const handleClick = e => {
|
|
@@ -65,13 +54,6 @@ const NavStep = props => {
|
|
|
65
54
|
}
|
|
66
55
|
};
|
|
67
56
|
|
|
68
|
-
const notLastOne = (0, _react.useMemo)(() => {
|
|
69
|
-
if ((0, _isNumber2.default)(index) && (0, _isNumber2.default)(total)) {
|
|
70
|
-
return index !== total - 1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return !Boolean(lastOne);
|
|
74
|
-
}, [index, total, lastOne]);
|
|
75
57
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
76
58
|
role: props["role"],
|
|
77
59
|
"aria-label": props["aria-label"],
|
|
@@ -82,13 +64,13 @@ const NavStep = props => {
|
|
|
82
64
|
onClick: e => handleClick(e),
|
|
83
65
|
onKeyDown: handleKeyDown
|
|
84
66
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
className:
|
|
67
|
+
className: `${prefixCls}-container`
|
|
86
68
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
className:
|
|
69
|
+
className: `${prefixCls}-content`
|
|
88
70
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
-
className:
|
|
90
|
-
}, title)),
|
|
91
|
-
className:
|
|
71
|
+
className: `${prefixCls}-title`
|
|
72
|
+
}, title)), index !== total - 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
+
className: `${prefixCls}-icon`
|
|
92
74
|
}, /*#__PURE__*/_react.default.createElement(_semiIcons.IconChevronRight, {
|
|
93
75
|
size: "small"
|
|
94
76
|
}))));
|
|
@@ -58,8 +58,8 @@ const Steps = props => {
|
|
|
58
58
|
return content;
|
|
59
59
|
}, [children, prefixCls, current, size, initial, onChange]);
|
|
60
60
|
const wrapperCls = (0, _classnames.default)(className, {
|
|
61
|
-
[
|
|
62
|
-
[
|
|
61
|
+
[`${prefixCls}-nav`]: true,
|
|
62
|
+
[`${prefixCls}-${size}`]: size !== 'default'
|
|
63
63
|
});
|
|
64
64
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
65
|
"aria-label": props["aria-label"],
|
package/lib/cjs/steps/step.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ export interface StepProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
11
|
-
type?: string;
|
|
12
11
|
}
|
|
13
|
-
declare const Step:
|
|
14
|
-
(props: StepProps): JSX.Element;
|
|
15
|
-
elementType: string;
|
|
16
|
-
};
|
|
12
|
+
declare const Step: (props: StepProps) => JSX.Element;
|
|
17
13
|
export default Step;
|
package/lib/cjs/steps/step.js
CHANGED
|
@@ -22,8 +22,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
|
|
24
24
|
const Step = props => {
|
|
25
|
-
const
|
|
26
|
-
|
|
25
|
+
const {
|
|
26
|
+
type
|
|
27
|
+
} = (0, _react.useContext)(_context.default);
|
|
27
28
|
|
|
28
29
|
const renderStep = () => {
|
|
29
30
|
switch (type) {
|
|
@@ -44,6 +45,5 @@ const Step = props => {
|
|
|
44
45
|
return renderStep();
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
Step.elementType = 'Steps.Step';
|
|
48
48
|
var _default = Step;
|
|
49
49
|
exports.default = _default;
|
|
@@ -242,7 +242,7 @@ class TableRow extends _baseComponent.default {
|
|
|
242
242
|
hideExpandedColumn: hideExpandedColumn,
|
|
243
243
|
indentSize: indentSize,
|
|
244
244
|
isSection: isSection,
|
|
245
|
-
prefixCls:
|
|
245
|
+
prefixCls: `${prefixCls}`,
|
|
246
246
|
column: column,
|
|
247
247
|
key: columnIndex,
|
|
248
248
|
index: index,
|
|
@@ -293,10 +293,10 @@ class TableRow extends _baseComponent.default {
|
|
|
293
293
|
|
|
294
294
|
this.adapter.setCache('customRowProps', Object.assign({}, rowProps));
|
|
295
295
|
const baseRowStyle = Object.assign(Object.assign({}, style), customStyle);
|
|
296
|
-
const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? replaceClassName : (0, _classnames.default)(className,
|
|
297
|
-
[
|
|
298
|
-
[
|
|
299
|
-
[
|
|
296
|
+
const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? replaceClassName : (0, _classnames.default)(className, `${prefixCls}-row`, {
|
|
297
|
+
[`${prefixCls}-row-selected`]: selected,
|
|
298
|
+
[`${prefixCls}-row-expanded`]: expanded,
|
|
299
|
+
[`${prefixCls}-row-hovered`]: hovered
|
|
300
300
|
}, customClassName);
|
|
301
301
|
const ariaProps = {};
|
|
302
302
|
|