@douyinfe/semi-ui 2.27.1-alpha.2 → 2.27.1-alpha.3
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 +8 -7
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +1738 -1745
- 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 +1 -3
- 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 +4 -8
- 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.d.ts +2 -2
- package/lib/cjs/button/Button.js +9 -9
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/buttonGroup.js +5 -5
- package/lib/cjs/button/index.d.ts +2 -2
- 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 +1 -1
- package/lib/cjs/carousel/index.js +12 -12
- package/lib/cjs/cascader/index.d.ts +1 -1
- package/lib/cjs/cascader/index.js +36 -36
- package/lib/cjs/cascader/item.d.ts +1 -1
- package/lib/cjs/cascader/item.js +25 -25
- 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.d.ts +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 +1 -1
- package/lib/cjs/datePicker/monthsGrid.js +27 -27
- package/lib/cjs/datePicker/navigation.js +1 -1
- package/lib/cjs/datePicker/quickControl.js +14 -14
- 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.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 +1 -1
- package/lib/cjs/form/baseForm.js +2 -2
- package/lib/cjs/form/errorMessage.js +1 -1
- package/lib/cjs/form/field.d.ts +1 -1
- package/lib/cjs/form/group.js +2 -2
- 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.d.ts +1 -1
- package/lib/cjs/input/index.js +38 -38
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- 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/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/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 +18 -18
- package/lib/cjs/navigation/SubNav.js +17 -17
- 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.js +6 -6
- package/lib/cjs/pagination/index.js +26 -26
- package/lib/cjs/popconfirm/index.js +9 -9
- package/lib/cjs/popover/index.d.ts +1 -1
- package/lib/cjs/popover/index.js +2 -2
- package/lib/cjs/progress/index.js +14 -14
- package/lib/cjs/radio/radio.js +22 -22
- package/lib/cjs/radio/radioGroup.js +5 -5
- package/lib/cjs/radio/radioInner.js +7 -7
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/index.js +5 -5
- package/lib/cjs/rating/item.d.ts +1 -1
- 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.js +57 -57
- 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.js +14 -14
- package/lib/cjs/steps/basicSteps.js +6 -6
- package/lib/cjs/steps/fillStep.js +10 -10
- package/lib/cjs/steps/fillSteps.js +4 -4
- package/lib/cjs/steps/navStep.js +5 -5
- package/lib/cjs/steps/navSteps.js +2 -2
- package/lib/cjs/switch/index.d.ts +1 -1
- 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/table/index.d.ts +1 -1
- package/lib/cjs/tabs/TabBar.js +18 -18
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.js +8 -8
- package/lib/cjs/timePicker/index.d.ts +1 -1
- 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 +1 -1
- package/lib/cjs/tooltip/index.js +7 -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.js +41 -41
- package/lib/cjs/typography/base.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/cjs/typography/paragraph.js +1 -1
- package/lib/cjs/typography/text.d.ts +1 -1
- package/lib/cjs/typography/title.d.ts +2 -2
- 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 +1 -3
- 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 +4 -8
- 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.d.ts +2 -2
- package/lib/es/button/Button.js +9 -9
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/buttonGroup.js +5 -5
- package/lib/es/button/index.d.ts +2 -2
- 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 +1 -1
- package/lib/es/carousel/index.js +12 -12
- package/lib/es/cascader/index.d.ts +1 -1
- package/lib/es/cascader/index.js +36 -36
- package/lib/es/cascader/item.d.ts +1 -1
- package/lib/es/cascader/item.js +25 -25
- 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.d.ts +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 +1 -1
- package/lib/es/datePicker/monthsGrid.js +27 -27
- package/lib/es/datePicker/navigation.js +1 -1
- package/lib/es/datePicker/quickControl.js +14 -14
- 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.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 +1 -1
- package/lib/es/form/baseForm.js +2 -2
- package/lib/es/form/errorMessage.js +1 -1
- package/lib/es/form/field.d.ts +1 -1
- package/lib/es/form/group.js +2 -2
- 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.d.ts +1 -1
- package/lib/es/input/index.js +38 -38
- package/lib/es/input/inputGroup.d.ts +1 -1
- 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/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/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 +18 -18
- package/lib/es/navigation/SubNav.js +17 -17
- 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.js +6 -6
- package/lib/es/pagination/index.js +26 -26
- package/lib/es/popconfirm/index.js +9 -9
- package/lib/es/popover/index.d.ts +1 -1
- package/lib/es/popover/index.js +2 -2
- package/lib/es/progress/index.js +14 -14
- package/lib/es/radio/radio.js +22 -22
- package/lib/es/radio/radioGroup.js +5 -5
- package/lib/es/radio/radioInner.js +7 -7
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/index.js +5 -5
- package/lib/es/rating/item.d.ts +1 -1
- 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.js +57 -57
- 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.js +14 -14
- package/lib/es/steps/basicSteps.js +6 -6
- package/lib/es/steps/fillStep.js +10 -10
- package/lib/es/steps/fillSteps.js +4 -4
- package/lib/es/steps/navStep.js +5 -5
- package/lib/es/steps/navSteps.js +2 -2
- package/lib/es/switch/index.d.ts +1 -1
- 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/table/index.d.ts +1 -1
- package/lib/es/tabs/TabBar.js +18 -18
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.js +8 -8
- package/lib/es/timePicker/index.d.ts +1 -1
- 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 +1 -1
- package/lib/es/tooltip/index.js +7 -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.js +41 -41
- package/lib/es/typography/base.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/es/typography/paragraph.js +1 -1
- package/lib/es/typography/text.d.ts +1 -1
- package/lib/es/typography/title.d.ts +2 -2
- 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 +8 -8
package/lib/es/tree/treeNode.js
CHANGED
|
@@ -249,7 +249,7 @@ export default class TreeNode extends PureComponent {
|
|
|
249
249
|
searchWords: [keyword],
|
|
250
250
|
option: {
|
|
251
251
|
highlightTag: 'span',
|
|
252
|
-
highlightClassName:
|
|
252
|
+
highlightClassName: "".concat(prefixcls, "-highlight")
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
} else {
|
|
@@ -277,22 +277,22 @@ export default class TreeNode extends PureComponent {
|
|
|
277
277
|
|
|
278
278
|
if (loading) {
|
|
279
279
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
280
|
-
wrapperClassName:
|
|
280
|
+
wrapperClassName: "".concat(prefixcls, "-spin-icon")
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
if (showIcon) {
|
|
285
285
|
return /*#__PURE__*/React.createElement(IconTreeTriangleDown, {
|
|
286
286
|
role: 'button',
|
|
287
|
-
"aria-label":
|
|
288
|
-
className:
|
|
287
|
+
"aria-label": "".concat(expanded ? 'Expand' : 'Collapse', " the tree item"),
|
|
288
|
+
className: "".concat(prefixcls, "-expand-icon"),
|
|
289
289
|
size: "small",
|
|
290
290
|
onClick: this.onExpand
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
return /*#__PURE__*/React.createElement("span", {
|
|
295
|
-
className:
|
|
295
|
+
className: "".concat(prefixcls, "-empty-icon")
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
|
|
@@ -335,14 +335,14 @@ export default class TreeNode extends PureComponent {
|
|
|
335
335
|
} else {
|
|
336
336
|
if (!hasChild) {
|
|
337
337
|
itemIcon = /*#__PURE__*/React.createElement(IconFile, {
|
|
338
|
-
className:
|
|
338
|
+
className: "".concat(prefixcls, "-item-icon")
|
|
339
339
|
});
|
|
340
340
|
} else {
|
|
341
341
|
// eslint-disable-next-line max-len
|
|
342
342
|
itemIcon = expanded ? /*#__PURE__*/React.createElement(IconFolderOpen, {
|
|
343
|
-
className:
|
|
343
|
+
className: "".concat(prefixcls, "-item-icon")
|
|
344
344
|
}) : /*#__PURE__*/React.createElement(IconFolder, {
|
|
345
|
-
className:
|
|
345
|
+
className: "".concat(prefixcls, "-item-icon")
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -356,12 +356,12 @@ export default class TreeNode extends PureComponent {
|
|
|
356
356
|
emptyContent
|
|
357
357
|
} = this.props;
|
|
358
358
|
const wrapperCls = cls(prefixcls, {
|
|
359
|
-
[
|
|
359
|
+
["".concat(prefixcls, "-empty")]: true
|
|
360
360
|
});
|
|
361
361
|
return /*#__PURE__*/React.createElement("ul", {
|
|
362
362
|
className: wrapperCls
|
|
363
363
|
}, /*#__PURE__*/React.createElement("li", {
|
|
364
|
-
className:
|
|
364
|
+
className: "".concat(prefixcls, "-label ").concat(prefixcls, "-label-empty"),
|
|
365
365
|
"x-semi-prop": "emptyContent"
|
|
366
366
|
}, emptyContent));
|
|
367
367
|
} // eslint-disable-next-line max-lines-per-function
|
|
@@ -404,20 +404,20 @@ export default class TreeNode extends PureComponent {
|
|
|
404
404
|
const dragOverGapTop = dragOverNodeKey === eventKey && dropPosition === -1;
|
|
405
405
|
const dragOverGapBottom = dragOverNodeKey === eventKey && dropPosition === 1;
|
|
406
406
|
const nodeCls = cls(prefixcls, {
|
|
407
|
-
[
|
|
408
|
-
[
|
|
409
|
-
[
|
|
410
|
-
[
|
|
411
|
-
[
|
|
412
|
-
[
|
|
413
|
-
[
|
|
414
|
-
[
|
|
415
|
-
[
|
|
407
|
+
["".concat(prefixcls, "-level-").concat(level + 1)]: true,
|
|
408
|
+
["".concat(prefixcls, "-collapsed")]: !expanded,
|
|
409
|
+
["".concat(prefixcls, "-disabled")]: Boolean(disabled),
|
|
410
|
+
["".concat(prefixcls, "-selected")]: selected,
|
|
411
|
+
["".concat(prefixcls, "-active")]: !multiple && active,
|
|
412
|
+
["".concat(prefixcls, "-ellipsis")]: labelEllipsis,
|
|
413
|
+
["".concat(prefixcls, "-filtered")]: filtered && treeNodeFilterProp !== 'label',
|
|
414
|
+
["".concat(prefixcls, "-drag-over")]: !disabled && dragOver,
|
|
415
|
+
["".concat(prefixcls, "-draggable")]: !disabled && draggable && !renderFullLabel,
|
|
416
416
|
// When draggable + renderFullLabel is enabled, the default style
|
|
417
|
-
[
|
|
417
|
+
["".concat(prefixcls, "-fullLabel-draggable")]: !disabled && draggable && renderFullLabel,
|
|
418
418
|
// When draggable + renderFullLabel is turned on, the style of dragover
|
|
419
|
-
[
|
|
420
|
-
[
|
|
419
|
+
["".concat(prefixcls, "-fullLabel-drag-over-gap-top")]: !disabled && dragOverGapTop && renderFullLabel,
|
|
420
|
+
["".concat(prefixcls, "-fullLabel-drag-over-gap-bottom")]: !disabled && dragOverGapBottom && renderFullLabel
|
|
421
421
|
});
|
|
422
422
|
const labelProps = {
|
|
423
423
|
onClick: this.onClick,
|
|
@@ -471,9 +471,9 @@ export default class TreeNode extends PureComponent {
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
const labelCls = cls(
|
|
475
|
-
[
|
|
476
|
-
[
|
|
474
|
+
const labelCls = cls("".concat(prefixcls, "-label"), {
|
|
475
|
+
["".concat(prefixcls, "-drag-over-gap-top")]: !disabled && dragOverGapTop,
|
|
476
|
+
["".concat(prefixcls, "-drag-over-gap-bottom")]: !disabled && dragOverGapBottom
|
|
477
477
|
});
|
|
478
478
|
|
|
479
479
|
const setsize = _get(rest, ['data', 'children', 'length']);
|
|
@@ -499,7 +499,7 @@ export default class TreeNode extends PureComponent {
|
|
|
499
499
|
}, dragProps), this.renderArrow(), /*#__PURE__*/React.createElement("span", {
|
|
500
500
|
className: labelCls
|
|
501
501
|
}, multiple ? this.renderCheckbox() : null, this.renderIcon(), /*#__PURE__*/React.createElement("span", {
|
|
502
|
-
className:
|
|
502
|
+
className: "".concat(prefixcls, "-label-text")
|
|
503
503
|
}, this.renderRealLabel())));
|
|
504
504
|
}
|
|
505
505
|
|
|
@@ -47,9 +47,9 @@ class TreeSelect extends BaseComponent {
|
|
|
47
47
|
suffix
|
|
48
48
|
} = this.props;
|
|
49
49
|
const suffixWrapperCls = cls({
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
50
|
+
["".concat(prefixcls, "-suffix")]: true,
|
|
51
|
+
["".concat(prefixcls, "-suffix-text")]: suffix && _isString(suffix),
|
|
52
|
+
["".concat(prefixcls, "-suffix-icon")]: isSemiIcon(suffix)
|
|
53
53
|
});
|
|
54
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
55
55
|
className: suffixWrapperCls,
|
|
@@ -65,11 +65,11 @@ class TreeSelect extends BaseComponent {
|
|
|
65
65
|
} = this.props;
|
|
66
66
|
const labelNode = prefix || insetLabel;
|
|
67
67
|
const prefixWrapperCls = cls({
|
|
68
|
-
[
|
|
68
|
+
["".concat(prefixcls, "-prefix")]: true,
|
|
69
69
|
// to be doublechecked
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
70
|
+
["".concat(prefixcls, "-inset-label")]: insetLabel,
|
|
71
|
+
["".concat(prefixcls, "-prefix-text")]: labelNode && _isString(labelNode),
|
|
72
|
+
["".concat(prefixcls, "-prefix-icon")]: isSemiIcon(labelNode)
|
|
73
73
|
});
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
75
75
|
className: prefixWrapperCls,
|
|
@@ -89,7 +89,7 @@ class TreeSelect extends BaseComponent {
|
|
|
89
89
|
const style = Object.assign({
|
|
90
90
|
minWidth: dropdownMinWidth
|
|
91
91
|
}, dropdownStyle);
|
|
92
|
-
const popoverCls = cls(dropdownClassName,
|
|
92
|
+
const popoverCls = cls(dropdownClassName, "".concat(prefixcls, "-popover"));
|
|
93
93
|
return /*#__PURE__*/React.createElement("div", {
|
|
94
94
|
className: popoverCls,
|
|
95
95
|
style: style
|
|
@@ -214,7 +214,7 @@ class TreeSelect extends BaseComponent {
|
|
|
214
214
|
color: 'white',
|
|
215
215
|
visible: true,
|
|
216
216
|
onClose,
|
|
217
|
-
key:
|
|
217
|
+
key: "tag-".concat(key, "-").concat(index),
|
|
218
218
|
size: size === 'small' ? 'small' : 'large'
|
|
219
219
|
};
|
|
220
220
|
|
|
@@ -241,9 +241,9 @@ class TreeSelect extends BaseComponent {
|
|
|
241
241
|
inputTriggerFocus
|
|
242
242
|
} = this.state;
|
|
243
243
|
const renderText = this.foundation.getRenderTextInSingle();
|
|
244
|
-
const spanCls = cls(
|
|
245
|
-
[
|
|
246
|
-
[
|
|
244
|
+
const spanCls = cls("".concat(prefixcls, "-selection-TriggerSearchItem"), {
|
|
245
|
+
["".concat(prefixcls, "-selection-TriggerSearchItem-placeholder")]: (inputTriggerFocus || !renderText) && !disabled,
|
|
246
|
+
["".concat(prefixcls, "-selection-TriggerSearchItem-disabled")]: disabled
|
|
247
247
|
});
|
|
248
248
|
return /*#__PURE__*/React.createElement("span", {
|
|
249
249
|
className: spanCls
|
|
@@ -281,7 +281,7 @@ class TreeSelect extends BaseComponent {
|
|
|
281
281
|
if (!multiple || !this.hasValue()) {
|
|
282
282
|
const renderText = this.foundation.getRenderTextInSingle();
|
|
283
283
|
const spanCls = cls({
|
|
284
|
-
[
|
|
284
|
+
["".concat(prefixcls, "-selection-placeholder")]: !renderText
|
|
285
285
|
});
|
|
286
286
|
return /*#__PURE__*/React.createElement("span", {
|
|
287
287
|
className: spanCls
|
|
@@ -348,7 +348,7 @@ class TreeSelect extends BaseComponent {
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
return arrowIcon ? /*#__PURE__*/React.createElement("div", {
|
|
351
|
-
className: cls(
|
|
351
|
+
className: cls("".concat(prefixcls, "-arrow")),
|
|
352
352
|
"x-semi-prop": "arrowIcon"
|
|
353
353
|
}, arrowIcon) : null;
|
|
354
354
|
};
|
|
@@ -358,7 +358,7 @@ class TreeSelect extends BaseComponent {
|
|
|
358
358
|
const {
|
|
359
359
|
clearIcon
|
|
360
360
|
} = this.props;
|
|
361
|
-
const clearCls = cls(
|
|
361
|
+
const clearCls = cls("".concat(prefixcls, "-clearbtn"));
|
|
362
362
|
|
|
363
363
|
if (showClearBtn) {
|
|
364
364
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -412,20 +412,20 @@ class TreeSelect extends BaseComponent {
|
|
|
412
412
|
|
|
413
413
|
const isValueTriggerSearch = isTriggerPositionSearch && !_isEmpty(checkedKeys);
|
|
414
414
|
const classNames = useCustomTrigger ? cls(className) : cls(prefixcls, {
|
|
415
|
-
[
|
|
416
|
-
[
|
|
417
|
-
[
|
|
418
|
-
[
|
|
419
|
-
[
|
|
420
|
-
[
|
|
421
|
-
[
|
|
422
|
-
[
|
|
423
|
-
[
|
|
424
|
-
[
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
[
|
|
428
|
-
[
|
|
415
|
+
["".concat(prefixcls, "-focus")]: isOpen && !isInput,
|
|
416
|
+
["".concat(prefixcls, "-disabled")]: disabled,
|
|
417
|
+
["".concat(prefixcls, "-single")]: !multiple,
|
|
418
|
+
["".concat(prefixcls, "-multiple")]: multiple,
|
|
419
|
+
["".concat(prefixcls, "-multiple-tagInput-empty")]: multiple && isEmptyTriggerSearch,
|
|
420
|
+
["".concat(prefixcls, "-multiple-tagInput-notEmpty")]: multiple && isValueTriggerSearch,
|
|
421
|
+
["".concat(prefixcls, "-filterable")]: filterable,
|
|
422
|
+
["".concat(prefixcls, "-error")]: validateStatus === 'error',
|
|
423
|
+
["".concat(prefixcls, "-warning")]: validateStatus === 'warning',
|
|
424
|
+
["".concat(prefixcls, "-small")]: size === 'small',
|
|
425
|
+
["".concat(prefixcls, "-large")]: size === 'large',
|
|
426
|
+
["".concat(prefixcls, "-with-prefix")]: prefix || insetLabel,
|
|
427
|
+
["".concat(prefixcls, "-with-suffix")]: suffix,
|
|
428
|
+
["".concat(prefixcls, "-with-suffix")]: suffix
|
|
429
429
|
}, className);
|
|
430
430
|
const triggerRenderKeys = multiple ? normalizeKeyList([...checkedKeys], keyEntities, leafOnly, true) : selectedKeys;
|
|
431
431
|
const inner = useCustomTrigger ? /*#__PURE__*/React.createElement(Trigger, {
|
|
@@ -443,7 +443,7 @@ class TreeSelect extends BaseComponent {
|
|
|
443
443
|
}, prefix || insetLabel ? this.renderPrefix() : null), /*#__PURE__*/React.createElement(Fragment, {
|
|
444
444
|
key: 'selection'
|
|
445
445
|
}, /*#__PURE__*/React.createElement("div", {
|
|
446
|
-
className:
|
|
446
|
+
className: "".concat(prefixcls, "-selection")
|
|
447
447
|
}, this.renderSelectContent())), /*#__PURE__*/React.createElement(Fragment, {
|
|
448
448
|
key: 'suffix'
|
|
449
449
|
}, suffix ? this.renderSuffix() : null), /*#__PURE__*/React.createElement(Fragment, {
|
|
@@ -494,8 +494,8 @@ class TreeSelect extends BaseComponent {
|
|
|
494
494
|
const keyList = normalizeKeyList([key], keyEntities, leafOnly, true);
|
|
495
495
|
const nodes = keyList.map(i => keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key));
|
|
496
496
|
const value = getValueOrKey(nodes);
|
|
497
|
-
const tagCls = cls(
|
|
498
|
-
[
|
|
497
|
+
const tagCls = cls("".concat(prefixcls, "-selection-tag"), {
|
|
498
|
+
["".concat(prefixcls, "-selection-tag-disabled")]: disabled
|
|
499
499
|
});
|
|
500
500
|
const nodeHaveData = !_isEmpty(nodes) && !_isEmpty(nodes[0]);
|
|
501
501
|
const isDisableStrictlyNode = disableStrictly && nodeHaveData && disabledKeys.has(nodes[0].key);
|
|
@@ -509,7 +509,7 @@ class TreeSelect extends BaseComponent {
|
|
|
509
509
|
|
|
510
510
|
const tagProps = {
|
|
511
511
|
size: size === 'small' ? 'small' : 'large',
|
|
512
|
-
key:
|
|
512
|
+
key: "tag-".concat(value, "-").concat(idx),
|
|
513
513
|
color: 'white',
|
|
514
514
|
className: tagCls,
|
|
515
515
|
closable,
|
|
@@ -608,8 +608,8 @@ class TreeSelect extends BaseComponent {
|
|
|
608
608
|
} = this.props;
|
|
609
609
|
const isDropdownPositionSearch = searchPosition === strings.SEARCH_POSITION_DROPDOWN;
|
|
610
610
|
const inputcls = cls({
|
|
611
|
-
[
|
|
612
|
-
[
|
|
611
|
+
["".concat(prefixTree, "-input")]: isDropdownPositionSearch,
|
|
612
|
+
["".concat(prefixcls, "-inputTrigger")]: !isDropdownPositionSearch
|
|
613
613
|
});
|
|
614
614
|
const {
|
|
615
615
|
inputValue
|
|
@@ -631,8 +631,8 @@ class TreeSelect extends BaseComponent {
|
|
|
631
631
|
};
|
|
632
632
|
const realInputProps = isDropdownPositionSearch ? inputDropdownProps : inputTriggerProps;
|
|
633
633
|
const wrapperCls = cls({
|
|
634
|
-
[
|
|
635
|
-
[
|
|
634
|
+
["".concat(prefixTree, "-search-wrapper")]: isDropdownPositionSearch,
|
|
635
|
+
["".concat(prefixcls, "-triggerSingleSearch-wrapper")]: !isDropdownPositionSearch && !multiple
|
|
636
636
|
});
|
|
637
637
|
const useCusSearch = typeof searchRender === 'function' || typeof searchRender === 'boolean';
|
|
638
638
|
|
|
@@ -825,7 +825,7 @@ class TreeSelect extends BaseComponent {
|
|
|
825
825
|
// @ts-ignore avoid strict check of itemKey
|
|
826
826
|
itemKey: this.itemKey,
|
|
827
827
|
itemData: flattenNodes,
|
|
828
|
-
className:
|
|
828
|
+
className: "".concat(prefixTree, "-virtual-list"),
|
|
829
829
|
style: {
|
|
830
830
|
direction
|
|
831
831
|
}
|
|
@@ -862,9 +862,9 @@ class TreeSelect extends BaseComponent {
|
|
|
862
862
|
renderFullLabel,
|
|
863
863
|
checkRelation
|
|
864
864
|
} = this.props;
|
|
865
|
-
const wrapperCls = cls(
|
|
866
|
-
const listCls = cls(
|
|
867
|
-
[
|
|
865
|
+
const wrapperCls = cls("".concat(prefixTree, "-wrapper"));
|
|
866
|
+
const listCls = cls("".concat(prefixTree, "-option-list"), {
|
|
867
|
+
["".concat(prefixTree, "-option-list-block")]: true
|
|
868
868
|
});
|
|
869
869
|
const searchNoRes = Boolean(inputValue) && !filteredKeys.size;
|
|
870
870
|
const noData = _isEmpty(flattenNodes) || showFilteredOnly && searchNoRes;
|
|
@@ -64,7 +64,7 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
|
|
|
64
64
|
spacing: PropTypes.Requireable<"normal" | "extended">;
|
|
65
65
|
strong: PropTypes.Requireable<boolean>;
|
|
66
66
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
67
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
67
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "tertiary" | "danger" | "quaternary">;
|
|
68
68
|
style: PropTypes.Requireable<object>;
|
|
69
69
|
className: PropTypes.Requireable<string>;
|
|
70
70
|
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -233,7 +233,7 @@ export default class Base extends Component {
|
|
|
233
233
|
React.createElement("a", {
|
|
234
234
|
role: "button",
|
|
235
235
|
tabIndex: 0,
|
|
236
|
-
className:
|
|
236
|
+
className: "".concat(prefixCls, "-ellipsis-expand"),
|
|
237
237
|
key: "expand",
|
|
238
238
|
ref: this.expandRef,
|
|
239
239
|
"aria-label": text,
|
|
@@ -309,10 +309,10 @@ export default class Base extends Component {
|
|
|
309
309
|
} = this.state;
|
|
310
310
|
const useCSS = !expanded && this.canUseCSSEllipsis();
|
|
311
311
|
const ellipsisCls = cls({
|
|
312
|
-
[
|
|
313
|
-
[
|
|
314
|
-
[
|
|
315
|
-
[
|
|
312
|
+
["".concat(prefixCls, "-ellipsis")]: true,
|
|
313
|
+
["".concat(prefixCls, "-ellipsis-single-line")]: rows === 1,
|
|
314
|
+
["".concat(prefixCls, "-ellipsis-multiple-line")]: rows > 1,
|
|
315
|
+
["".concat(prefixCls, "-ellipsis-overflow-ellipsis")]: rows === 1 && useCSS
|
|
316
316
|
});
|
|
317
317
|
const ellipsisStyle = useCSS && rows > 1 ? {
|
|
318
318
|
WebkitLineClamp: rows
|
|
@@ -523,7 +523,7 @@ export default class Base extends Component {
|
|
|
523
523
|
|
|
524
524
|
const iconSize = size === 'small' ? 'small' : 'default';
|
|
525
525
|
return /*#__PURE__*/React.createElement("span", {
|
|
526
|
-
className:
|
|
526
|
+
className: "".concat(prefixCls, "-icon"),
|
|
527
527
|
"x-semi-prop": "icon"
|
|
528
528
|
}, isSemiIcon(icon) ? /*#__PURE__*/React.cloneElement(icon, {
|
|
529
529
|
size: iconSize
|
|
@@ -559,8 +559,8 @@ export default class Base extends Component {
|
|
|
559
559
|
} = this.getEllipsisStyle();
|
|
560
560
|
let textNode = ellipsis ? this.renderEllipsisText(ellipsisOpt) : children;
|
|
561
561
|
const linkCls = cls({
|
|
562
|
-
[
|
|
563
|
-
[
|
|
562
|
+
["".concat(prefixCls, "-link-text")]: link,
|
|
563
|
+
["".concat(prefixCls, "-link-underline")]: this.props.underline && link
|
|
564
564
|
});
|
|
565
565
|
textNode = wrapperDecorations(this.props, /*#__PURE__*/React.createElement(React.Fragment, null, iconNode, this.props.link ? /*#__PURE__*/React.createElement("span", {
|
|
566
566
|
className: linkCls
|
|
@@ -568,12 +568,12 @@ export default class Base extends Component {
|
|
|
568
568
|
const hTagReg = /^h[1-6]$/;
|
|
569
569
|
const wrapperCls = cls(className, ellipsisCls, {
|
|
570
570
|
// [`${prefixCls}-primary`]: !type || type === 'primary',
|
|
571
|
-
[
|
|
572
|
-
[
|
|
573
|
-
[
|
|
574
|
-
[
|
|
575
|
-
[
|
|
576
|
-
[
|
|
571
|
+
["".concat(prefixCls, "-").concat(type)]: type && !link,
|
|
572
|
+
["".concat(prefixCls, "-").concat(size)]: size,
|
|
573
|
+
["".concat(prefixCls, "-link")]: link,
|
|
574
|
+
["".concat(prefixCls, "-disabled")]: disabled,
|
|
575
|
+
["".concat(prefixCls, "-").concat(spacing)]: spacing,
|
|
576
|
+
["".concat(prefixCls, "-").concat(heading)]: _isString(heading) && hTagReg.test(heading)
|
|
577
577
|
});
|
|
578
578
|
return /*#__PURE__*/React.createElement(Typography, Object.assign({
|
|
579
579
|
className: wrapperCls,
|
|
@@ -83,8 +83,8 @@ export class Copyable extends React.PureComponent {
|
|
|
83
83
|
copied
|
|
84
84
|
} = this.state;
|
|
85
85
|
const finalCls = cls(className, {
|
|
86
|
-
[
|
|
87
|
-
[
|
|
86
|
+
["".concat(prefixCls, "-action-copy")]: !copied,
|
|
87
|
+
["".concat(prefixCls, "-action-copied")]: copied
|
|
88
88
|
});
|
|
89
89
|
return /*#__PURE__*/React.createElement(LocaleConsumer, {
|
|
90
90
|
componentName: "Typography"
|
|
@@ -97,7 +97,7 @@ export class Copyable extends React.PureComponent {
|
|
|
97
97
|
}, copied ? this.renderSuccessTip() : /*#__PURE__*/React.createElement(Tooltip, {
|
|
98
98
|
content: typeof copyTip !== 'undefined' ? copyTip : locale.copy
|
|
99
99
|
}, /*#__PURE__*/React.createElement("a", {
|
|
100
|
-
className:
|
|
100
|
+
className: "".concat(prefixCls, "-action-copy-icon")
|
|
101
101
|
}, /*#__PURE__*/React.createElement(IconCopy, {
|
|
102
102
|
role: "button",
|
|
103
103
|
tabIndex: 0,
|
|
@@ -38,7 +38,7 @@ export default class Numeral extends PureComponent<NumeralProps> {
|
|
|
38
38
|
underline: PropTypes.Requireable<boolean>;
|
|
39
39
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
40
40
|
strong: PropTypes.Requireable<boolean>;
|
|
41
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
41
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "tertiary" | "danger" | "quaternary">;
|
|
42
42
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
43
43
|
style: PropTypes.Requireable<object>;
|
|
44
44
|
className: PropTypes.Requireable<string>;
|
|
@@ -29,7 +29,7 @@ export default class Paragraph extends PureComponent<ParagraphProps> {
|
|
|
29
29
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
30
30
|
underline: PropTypes.Requireable<boolean>;
|
|
31
31
|
strong: PropTypes.Requireable<boolean>;
|
|
32
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
32
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "tertiary" | "danger" | "quaternary">;
|
|
33
33
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
34
34
|
spacing: PropTypes.Requireable<"normal" | "extended">;
|
|
35
35
|
style: PropTypes.Requireable<object>;
|
|
@@ -9,7 +9,7 @@ export default class Paragraph extends PureComponent {
|
|
|
9
9
|
const {
|
|
10
10
|
className
|
|
11
11
|
} = this.props;
|
|
12
|
-
const paragraphCls = cls(className,
|
|
12
|
+
const paragraphCls = cls(className, "".concat(prefixCls, "-paragraph"));
|
|
13
13
|
return /*#__PURE__*/React.createElement(Base, Object.assign({
|
|
14
14
|
component: 'p'
|
|
15
15
|
}, this.props, {
|
|
@@ -32,7 +32,7 @@ export default class Text extends PureComponent<TextProps> {
|
|
|
32
32
|
underline: PropTypes.Requireable<boolean>;
|
|
33
33
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
34
34
|
strong: PropTypes.Requireable<boolean>;
|
|
35
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
35
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "tertiary" | "danger" | "quaternary">;
|
|
36
36
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
37
37
|
style: PropTypes.Requireable<object>;
|
|
38
38
|
className: PropTypes.Requireable<string>;
|
|
@@ -36,8 +36,8 @@ export default class Title extends PureComponent<TitleProps> {
|
|
|
36
36
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
37
37
|
underline: PropTypes.Requireable<boolean>;
|
|
38
38
|
strong: PropTypes.Requireable<boolean>;
|
|
39
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
40
|
-
heading: PropTypes.Requireable<
|
|
39
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "tertiary" | "danger" | "quaternary">;
|
|
40
|
+
heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 6 | 5>;
|
|
41
41
|
style: PropTypes.Requireable<object>;
|
|
42
42
|
className: PropTypes.Requireable<string>;
|
|
43
43
|
component: PropTypes.Requireable<string>;
|
|
@@ -21,7 +21,7 @@ export default class Title extends PureComponent {
|
|
|
21
21
|
} = _a,
|
|
22
22
|
rest = __rest(_a, ["heading"]);
|
|
23
23
|
|
|
24
|
-
const component = strings.HEADING.indexOf(heading) !== -1 ?
|
|
24
|
+
const component = strings.HEADING.indexOf(heading) !== -1 ? "h".concat(heading) : 'h1'; // Passing headings to support custom components
|
|
25
25
|
|
|
26
26
|
return /*#__PURE__*/React.createElement(Base, Object.assign({
|
|
27
27
|
component: component,
|
|
@@ -23,7 +23,7 @@ function styleToString(style) {
|
|
|
23
23
|
// There are some different behavior between Firefox & Chrome.
|
|
24
24
|
// We have to handle this ourself.
|
|
25
25
|
const styleNames = Array.prototype.slice.apply(style);
|
|
26
|
-
return styleNames.map(name =>
|
|
26
|
+
return styleNames.map(name => "".concat(name, ": ").concat(style.getPropertyValue(name), ";")).join('');
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
const getRenderText = function (originEle, rows) {
|