@douyinfe/semi-foundation 2.38.3-alpha.4 → 2.38.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/anchor/anchor.scss +6 -0
- package/anchor/foundation.ts +7 -6
- package/anchor/linkFoundation.ts +0 -1
- package/anchor/variables.scss +4 -0
- package/audioPlayer/audioPlayer.scss +217 -0
- package/audioPlayer/constants.ts +7 -0
- package/audioPlayer/foundation.ts +103 -0
- package/audioPlayer/variables.scss +55 -0
- package/autoComplete/constants.ts +2 -3
- package/autoComplete/foundation.ts +13 -13
- package/autoComplete/option.scss +1 -1
- package/autoComplete/optionFoundation.ts +0 -2
- package/avatar/animation.scss +19 -0
- package/avatar/avatar.scss +323 -0
- package/avatar/constants.ts +21 -4
- package/avatar/foundation.ts +21 -4
- package/avatar/variables.scss +69 -10
- package/backtop/foundation.ts +3 -0
- package/badge/badge.scss +1 -1
- package/badge/constants.ts +1 -1
- package/banner/banner.scss +0 -1
- package/base/foundation.ts +0 -1
- package/breadcrumb/breadcrumb.scss +7 -4
- package/breadcrumb/foundation.ts +0 -1
- package/button/animation.scss +3 -0
- package/button/button.scss +176 -26
- package/button/constants.ts +1 -1
- package/button/iconButton.scss +25 -2
- package/button/splitButtonGroup.scss +10 -9
- package/button/variables.scss +50 -6
- package/calendar/eventUtil.ts +5 -3
- package/calendar/foundation.ts +23 -4
- package/carousel/foundation.ts +11 -9
- package/cascader/cascader.scss +43 -13
- package/cascader/constants.ts +7 -1
- package/cascader/foundation.ts +134 -51
- package/cascader/rtl.scss +5 -13
- package/cascader/util.ts +64 -10
- package/cascader/variables.scss +20 -7
- package/chat/chat.scss +611 -0
- package/chat/chatBoxActionFoundation.ts +64 -0
- package/chat/constants.ts +68 -0
- package/chat/foundation.ts +345 -0
- package/chat/inputboxFoundation.ts +98 -0
- package/chat/rtl.scss +22 -0
- package/chat/variables.scss +129 -0
- package/checkbox/checkbox.scss +5 -6
- package/checkbox/checkboxFoundation.ts +1 -2
- package/checkbox/checkboxGroupFoundation.ts +0 -1
- package/checkbox/variables.scss +3 -1
- package/codeHighlight/codeHighlight.scss +203 -0
- package/codeHighlight/constants.ts +15 -0
- package/codeHighlight/index.ts +45 -0
- package/codeHighlight/variables.scss +0 -0
- package/colorPicker/AlphaSliderFoundation.ts +62 -0
- package/colorPicker/ColorChooseAreaFoundation.ts +86 -0
- package/colorPicker/ColorSliderFoundation.ts +61 -0
- package/colorPicker/DataPartFoundation.ts +113 -0
- package/colorPicker/colorPicker.scss +113 -0
- package/colorPicker/constants.ts +11 -0
- package/colorPicker/foundation.ts +206 -0
- package/colorPicker/interface.ts +51 -0
- package/colorPicker/utils/convert.ts +228 -0
- package/colorPicker/utils/round.ts +3 -0
- package/colorPicker/utils/split.ts +40 -0
- package/colorPicker/variables.scss +28 -0
- package/cropper/constants.ts +26 -0
- package/cropper/cropper.scss +116 -0
- package/cropper/foundation.ts +904 -0
- package/cropper/utils.ts +12 -0
- package/cropper/variables.scss +6 -0
- package/datePicker/_utils/getYearAndMonth.ts +12 -0
- package/datePicker/_utils/index.ts +3 -1
- package/datePicker/datePicker.scss +26 -2
- package/datePicker/foundation.ts +33 -46
- package/datePicker/inputFoundation.ts +10 -10
- package/datePicker/monthFoundation.ts +0 -1
- package/datePicker/monthsGridFoundation.ts +3 -6
- package/datePicker/variables.scss +1 -0
- package/datePicker/yearAndMonthFoundation.ts +33 -15
- package/descriptions/constants.ts +2 -1
- package/descriptions/descriptions.scss +14 -0
- package/descriptions/foundation.ts +41 -0
- package/dragMove/foundation.ts +206 -0
- package/dropdown/constants.ts +1 -1
- package/dropdown/dropdown.scss +5 -2
- package/dropdown/menuFoundation.ts +3 -3
- package/dropdown/variables.scss +1 -0
- package/form/constants.ts +2 -1
- package/form/form.scss +22 -7
- package/form/foundation.ts +60 -15
- package/form/interface.ts +43 -7
- package/form/utils.ts +39 -16
- package/grid/grid.scss +1 -1
- package/highlight/foundation.ts +211 -0
- package/hotKeys/constants.ts +101 -0
- package/hotKeys/foundation.ts +80 -0
- package/hotKeys/hotKeys.scss +30 -0
- package/hotKeys/variables.scss +10 -0
- package/image/constants.ts +5 -1
- package/image/image.scss +21 -6
- package/image/previewFooterFoundation.ts +1 -4
- package/image/previewFoundation.ts +1 -1
- package/image/previewImageFoundation.ts +250 -170
- package/image/previewInnerFoundation.ts +99 -42
- package/image/utils.ts +18 -20
- package/image/variables.scss +1 -1
- package/input/foundation.ts +46 -38
- package/input/input.scss +26 -16
- package/input/rtl.scss +0 -4
- package/input/textareaFoundation.ts +94 -56
- package/input/util/truncateValue.ts +25 -0
- package/input/variables.scss +7 -2
- package/inputNumber/foundation.ts +176 -15
- package/inputNumber/inputNumber.scss +2 -0
- package/inputNumber/variables.scss +2 -1
- package/jsonViewer/constants.ts +7 -0
- package/jsonViewer/foundation.ts +97 -0
- package/jsonViewer/jsonViewer.scss +207 -0
- package/jsonViewer/script/build.js +51 -0
- package/jsonViewer/variables.scss +15 -0
- package/lib/cjs/anchor/anchor.css +5 -0
- package/lib/cjs/anchor/anchor.scss +6 -0
- package/lib/cjs/anchor/constants.js +3 -5
- package/lib/cjs/anchor/foundation.js +9 -6
- package/lib/cjs/anchor/linkFoundation.js +1 -2
- package/lib/cjs/anchor/variables.scss +4 -0
- package/lib/cjs/audioPlayer/audioPlayer.css +188 -0
- package/lib/cjs/audioPlayer/audioPlayer.scss +217 -0
- package/lib/cjs/audioPlayer/constants.d.ts +4 -0
- package/lib/cjs/audioPlayer/constants.js +10 -0
- package/lib/cjs/audioPlayer/foundation.d.ts +40 -0
- package/lib/cjs/audioPlayer/foundation.js +78 -0
- package/lib/cjs/audioPlayer/variables.scss +55 -0
- package/lib/cjs/autoComplete/autoComplete.css +15 -15
- package/lib/cjs/autoComplete/constants.js +5 -7
- package/lib/cjs/autoComplete/foundation.d.ts +1 -0
- package/lib/cjs/autoComplete/foundation.js +14 -17
- package/lib/cjs/autoComplete/option.scss +1 -1
- package/lib/cjs/autoComplete/optionFoundation.js +1 -3
- package/lib/cjs/avatar/animation.scss +19 -0
- package/lib/cjs/avatar/avatar.css +270 -0
- package/lib/cjs/avatar/avatar.scss +323 -0
- package/lib/cjs/avatar/constants.js +3 -6
- package/lib/cjs/avatar/foundation.d.ts +3 -0
- package/lib/cjs/avatar/foundation.js +22 -3
- package/lib/cjs/avatar/variables.scss +69 -10
- package/lib/cjs/backtop/constants.js +2 -4
- package/lib/cjs/backtop/foundation.js +4 -1
- package/lib/cjs/badge/badge.css +1 -1
- package/lib/cjs/badge/badge.scss +1 -1
- package/lib/cjs/badge/constants.js +4 -7
- package/lib/cjs/banner/banner.css +0 -1
- package/lib/cjs/banner/banner.scss +0 -1
- package/lib/cjs/banner/constants.js +3 -5
- package/lib/cjs/banner/foundation.js +1 -1
- package/lib/cjs/base/constants.js +2 -3
- package/lib/cjs/base/env.js +1 -2
- package/lib/cjs/base/foundation.js +3 -4
- package/lib/cjs/base/index.js +3 -4
- package/lib/cjs/breadcrumb/breadcrumb.css +6 -4
- package/lib/cjs/breadcrumb/breadcrumb.scss +7 -4
- package/lib/cjs/breadcrumb/constants.js +3 -5
- package/lib/cjs/breadcrumb/foundation.js +1 -3
- package/lib/cjs/breadcrumb/itemFoundation.js +1 -1
- package/lib/cjs/button/animation.scss +3 -0
- package/lib/cjs/button/button.css +108 -16
- package/lib/cjs/button/button.scss +176 -26
- package/lib/cjs/button/constants.d.ts +1 -1
- package/lib/cjs/button/constants.js +4 -7
- package/lib/cjs/button/iconButton.css +22 -1
- package/lib/cjs/button/iconButton.scss +25 -2
- package/lib/cjs/button/splitButtonGroup.scss +10 -9
- package/lib/cjs/button/variables.scss +50 -6
- package/lib/cjs/calendar/constants.js +3 -5
- package/lib/cjs/calendar/eventUtil.js +5 -3
- package/lib/cjs/calendar/foundation.js +22 -5
- package/lib/cjs/card/constants.js +3 -5
- package/lib/cjs/carousel/constants.js +4 -7
- package/lib/cjs/carousel/foundation.d.ts +1 -0
- package/lib/cjs/carousel/foundation.js +6 -7
- package/lib/cjs/cascader/cascader.css +38 -22
- package/lib/cjs/cascader/cascader.scss +43 -13
- package/lib/cjs/cascader/constants.d.ts +5 -0
- package/lib/cjs/cascader/constants.js +10 -8
- package/lib/cjs/cascader/foundation.d.ts +21 -2
- package/lib/cjs/cascader/foundation.js +136 -68
- package/lib/cjs/cascader/rtl.scss +5 -13
- package/lib/cjs/cascader/util.d.ts +9 -1
- package/lib/cjs/cascader/util.js +63 -9
- package/lib/cjs/cascader/variables.scss +20 -7
- package/lib/cjs/chat/chat.css +496 -0
- package/lib/cjs/chat/chat.scss +611 -0
- package/lib/cjs/chat/chatBoxActionFoundation.d.ts +24 -0
- package/lib/cjs/chat/chatBoxActionFoundation.js +49 -0
- package/lib/cjs/chat/constants.d.ts +41 -0
- package/lib/cjs/chat/constants.js +56 -0
- package/lib/cjs/chat/foundation.d.ts +89 -0
- package/lib/cjs/chat/foundation.js +307 -0
- package/lib/cjs/chat/inputboxFoundation.d.ts +20 -0
- package/lib/cjs/chat/inputboxFoundation.js +119 -0
- package/lib/cjs/chat/rtl.scss +22 -0
- package/lib/cjs/chat/variables.scss +129 -0
- package/lib/cjs/checkbox/checkbox.css +3 -3
- package/lib/cjs/checkbox/checkbox.scss +5 -6
- package/lib/cjs/checkbox/checkboxFoundation.js +2 -4
- package/lib/cjs/checkbox/checkboxGroupFoundation.js +3 -5
- package/lib/cjs/checkbox/constants.js +4 -8
- package/lib/cjs/checkbox/variables.scss +3 -1
- package/lib/cjs/codeHighlight/codeHighlight.css +160 -0
- package/lib/cjs/codeHighlight/codeHighlight.scss +203 -0
- package/lib/cjs/codeHighlight/constants.d.ts +6 -0
- package/lib/cjs/codeHighlight/constants.js +12 -0
- package/lib/cjs/codeHighlight/index.d.ts +16 -0
- package/lib/cjs/codeHighlight/index.js +30 -0
- package/lib/cjs/codeHighlight/variables.scss +0 -0
- package/lib/cjs/collapse/constants.js +3 -5
- package/lib/cjs/collapse/foundation.js +1 -2
- package/lib/cjs/collapsible/constants.js +2 -3
- package/lib/cjs/collapsible/foundation.js +2 -3
- package/lib/cjs/colorPicker/AlphaSliderFoundation.d.ts +27 -0
- package/lib/cjs/colorPicker/AlphaSliderFoundation.js +40 -0
- package/lib/cjs/colorPicker/ColorChooseAreaFoundation.d.ts +42 -0
- package/lib/cjs/colorPicker/ColorChooseAreaFoundation.js +62 -0
- package/lib/cjs/colorPicker/ColorSliderFoundation.d.ts +26 -0
- package/lib/cjs/colorPicker/ColorSliderFoundation.js +40 -0
- package/lib/cjs/colorPicker/DataPartFoundation.d.ts +28 -0
- package/lib/cjs/colorPicker/DataPartFoundation.js +115 -0
- package/lib/cjs/colorPicker/colorPicker.css +84 -0
- package/lib/cjs/colorPicker/colorPicker.scss +113 -0
- package/lib/cjs/colorPicker/constants.d.ts +4 -0
- package/lib/cjs/colorPicker/constants.js +11 -0
- package/lib/cjs/colorPicker/foundation.d.ts +66 -0
- package/lib/cjs/colorPicker/foundation.js +150 -0
- package/lib/cjs/colorPicker/interface.d.ts +40 -0
- package/lib/cjs/colorPicker/interface.js +5 -0
- package/lib/cjs/colorPicker/utils/convert.d.ts +28 -0
- package/lib/cjs/colorPicker/utils/convert.js +306 -0
- package/lib/cjs/colorPicker/utils/round.d.ts +1 -0
- package/lib/cjs/colorPicker/utils/round.js +12 -0
- package/lib/cjs/colorPicker/utils/split.d.ts +18 -0
- package/lib/cjs/colorPicker/utils/split.js +40 -0
- package/lib/cjs/colorPicker/variables.scss +28 -0
- package/lib/cjs/cropper/constants.d.ts +17 -0
- package/lib/cjs/cropper/constants.js +24 -0
- package/lib/cjs/cropper/cropper.css +97 -0
- package/lib/cjs/cropper/cropper.scss +116 -0
- package/lib/cjs/cropper/foundation.d.ts +116 -0
- package/lib/cjs/cropper/foundation.js +870 -0
- package/lib/cjs/cropper/utils.d.ts +2 -0
- package/lib/cjs/cropper/utils.js +19 -0
- package/lib/cjs/cropper/variables.scss +6 -0
- package/lib/cjs/datePicker/_utils/getDayOfWeek.js +1 -2
- package/lib/cjs/datePicker/_utils/getDefaultFormatToken.js +1 -2
- package/lib/cjs/datePicker/_utils/getDefaultPickerDate.js +1 -1
- package/lib/cjs/datePicker/_utils/getFullDateOffset.js +2 -3
- package/lib/cjs/datePicker/_utils/getMonthTable.js +1 -2
- package/lib/cjs/datePicker/_utils/getMonthsInYear.js +1 -2
- package/lib/cjs/datePicker/_utils/getYearAndMonth.d.ts +16 -0
- package/lib/cjs/datePicker/_utils/getYearAndMonth.js +22 -0
- package/lib/cjs/datePicker/_utils/getYears.js +1 -2
- package/lib/cjs/datePicker/_utils/index.d.ts +2 -1
- package/lib/cjs/datePicker/_utils/index.js +8 -1
- package/lib/cjs/datePicker/_utils/isAfter.js +1 -1
- package/lib/cjs/datePicker/_utils/isBefore.js +1 -1
- package/lib/cjs/datePicker/_utils/isBetween.js +1 -1
- package/lib/cjs/datePicker/_utils/isSameDay.js +1 -1
- package/lib/cjs/datePicker/_utils/isTimestamp.js +1 -1
- package/lib/cjs/datePicker/_utils/isUnixTimestamp.js +1 -1
- package/lib/cjs/datePicker/_utils/isWithinInterval.js +1 -1
- package/lib/cjs/datePicker/constants.js +4 -7
- package/lib/cjs/datePicker/datePicker.css +20 -0
- package/lib/cjs/datePicker/datePicker.scss +26 -2
- package/lib/cjs/datePicker/foundation.d.ts +5 -9
- package/lib/cjs/datePicker/foundation.js +32 -50
- package/lib/cjs/datePicker/inputFoundation.js +20 -15
- package/lib/cjs/datePicker/monthFoundation.js +1 -2
- package/lib/cjs/datePicker/monthsGridFoundation.js +3 -7
- package/lib/cjs/datePicker/variables.scss +1 -0
- package/lib/cjs/datePicker/yearAndMonthFoundation.js +44 -15
- package/lib/cjs/descriptions/constants.d.ts +1 -0
- package/lib/cjs/descriptions/constants.js +5 -7
- package/lib/cjs/descriptions/descriptions.css +9 -0
- package/lib/cjs/descriptions/descriptions.scss +14 -0
- package/lib/cjs/descriptions/foundation.d.ts +8 -0
- package/lib/cjs/descriptions/foundation.js +50 -0
- package/lib/cjs/divider/constants.js +3 -5
- package/lib/cjs/dragMove/foundation.d.ts +47 -0
- package/lib/cjs/dragMove/foundation.js +172 -0
- package/lib/cjs/dropdown/constants.js +5 -8
- package/lib/cjs/dropdown/dropdown.css +2 -0
- package/lib/cjs/dropdown/dropdown.scss +5 -2
- package/lib/cjs/dropdown/foundation.js +1 -1
- package/lib/cjs/dropdown/menuFoundation.js +1 -2
- package/lib/cjs/dropdown/variables.scss +1 -0
- package/lib/cjs/empty/constants.js +3 -5
- package/lib/cjs/form/constants.d.ts +1 -0
- package/lib/cjs/form/constants.js +5 -7
- package/lib/cjs/form/form.css +12 -1
- package/lib/cjs/form/form.scss +22 -7
- package/lib/cjs/form/foundation.d.ts +12 -4
- package/lib/cjs/form/foundation.js +53 -17
- package/lib/cjs/form/interface.d.ts +20 -6
- package/lib/cjs/form/utils.d.ts +10 -1
- package/lib/cjs/form/utils.js +39 -17
- package/lib/cjs/grid/constants.js +2 -3
- package/lib/cjs/grid/grid.css +2 -2
- package/lib/cjs/grid/grid.scss +1 -1
- package/lib/cjs/highlight/constants.js +2 -3
- package/lib/cjs/highlight/foundation.d.ts +84 -0
- package/lib/cjs/highlight/foundation.js +184 -0
- package/lib/cjs/hotKeys/constants.d.ts +117 -0
- package/lib/cjs/hotKeys/constants.js +244 -0
- package/lib/cjs/hotKeys/foundation.d.ts +13 -0
- package/lib/cjs/hotKeys/foundation.js +77 -0
- package/lib/cjs/hotKeys/hotKeys.css +32 -0
- package/lib/cjs/hotKeys/hotKeys.scss +30 -0
- package/lib/cjs/hotKeys/variables.scss +10 -0
- package/lib/cjs/icons/constants.js +3 -6
- package/lib/cjs/image/constants.d.ts +4 -1
- package/lib/cjs/image/constants.js +5 -3
- package/lib/cjs/image/image.css +15 -3
- package/lib/cjs/image/image.scss +21 -6
- package/lib/cjs/image/imageFoundation.js +1 -1
- package/lib/cjs/image/previewFooterFoundation.d.ts +0 -1
- package/lib/cjs/image/previewFooterFoundation.js +1 -2
- package/lib/cjs/image/previewFoundation.js +1 -1
- package/lib/cjs/image/previewImageFoundation.d.ts +52 -34
- package/lib/cjs/image/previewImageFoundation.js +230 -209
- package/lib/cjs/image/previewInnerFoundation.d.ts +20 -14
- package/lib/cjs/image/previewInnerFoundation.js +102 -34
- package/lib/cjs/image/utils.d.ts +1 -1
- package/lib/cjs/image/utils.js +46 -21
- package/lib/cjs/image/variables.scss +1 -1
- package/lib/cjs/input/constants.js +3 -6
- package/lib/cjs/input/foundation.d.ts +6 -3
- package/lib/cjs/input/foundation.js +66 -58
- package/lib/cjs/input/input.css +22 -18
- package/lib/cjs/input/input.scss +26 -16
- package/lib/cjs/input/rtl.scss +0 -4
- package/lib/cjs/input/textarea.css +0 -5
- package/lib/cjs/input/textareaFoundation.d.ts +6 -3
- package/lib/cjs/input/textareaFoundation.js +105 -58
- package/lib/cjs/input/util/getSizingData.js +2 -3
- package/lib/cjs/input/util/truncateValue.d.ts +5 -0
- package/lib/cjs/input/util/truncateValue.js +31 -0
- package/lib/cjs/input/variables.scss +7 -2
- package/lib/cjs/inputNumber/constants.js +3 -6
- package/lib/cjs/inputNumber/foundation.d.ts +15 -1
- package/lib/cjs/inputNumber/foundation.js +171 -19
- package/lib/cjs/inputNumber/inputNumber.css +2 -0
- package/lib/cjs/inputNumber/inputNumber.scss +2 -0
- package/lib/cjs/inputNumber/variables.scss +2 -1
- package/lib/cjs/jsonViewer/constants.d.ts +4 -0
- package/lib/cjs/jsonViewer/constants.js +10 -0
- package/lib/cjs/jsonViewer/foundation.d.ts +26 -0
- package/lib/cjs/jsonViewer/foundation.js +91 -0
- package/lib/cjs/jsonViewer/jsonViewer.css +176 -0
- package/lib/cjs/jsonViewer/jsonViewer.scss +207 -0
- package/lib/cjs/jsonViewer/variables.scss +15 -0
- package/lib/cjs/layout/constants.js +3 -5
- package/lib/cjs/list/constants.js +3 -5
- package/lib/cjs/lottie/constants.d.ts +6 -0
- package/lib/cjs/lottie/constants.js +12 -0
- package/lib/cjs/lottie/foundation.d.ts +25 -0
- package/lib/cjs/lottie/foundation.js +36 -0
- package/lib/cjs/markdownRender/constants.d.ts +5 -0
- package/lib/cjs/markdownRender/constants.js +11 -0
- package/lib/cjs/markdownRender/foundation.d.ts +24 -0
- package/lib/cjs/markdownRender/foundation.js +73 -0
- package/lib/cjs/markdownRender/markdownRender.css +46 -0
- package/lib/cjs/markdownRender/markdownRender.scss +63 -0
- package/lib/cjs/markdownRender/variables.scss +24 -0
- package/lib/cjs/modal/constants.js +3 -5
- package/lib/cjs/modal/modal.css +8 -1
- package/lib/cjs/modal/modal.scss +10 -1
- package/lib/cjs/modal/modalContentFoundation.js +1 -1
- package/lib/cjs/modal/modalFoundation.d.ts +3 -0
- package/lib/cjs/modal/modalFoundation.js +4 -1
- package/lib/cjs/modal/variables.scss +4 -2
- package/lib/cjs/navigation/NavItem.js +1 -4
- package/lib/cjs/navigation/constants.js +4 -7
- package/lib/cjs/navigation/foundation.d.ts +10 -10
- package/lib/cjs/navigation/foundation.js +18 -13
- package/lib/cjs/navigation/itemFoundation.d.ts +5 -5
- package/lib/cjs/navigation/itemFoundation.js +1 -2
- package/lib/cjs/navigation/navigation.css +47 -5
- package/lib/cjs/navigation/navigation.scss +34 -1
- package/lib/cjs/navigation/subNavFoundation.js +4 -4
- package/lib/cjs/navigation/variables.scss +2 -2
- package/lib/cjs/notification/constants.js +4 -7
- package/lib/cjs/notification/notificationFoundation.d.ts +3 -3
- package/lib/cjs/notification/notificationFoundation.js +1 -2
- package/lib/cjs/notification/notificationListFoundation.d.ts +4 -1
- package/lib/cjs/notification/notificationListFoundation.js +10 -5
- package/lib/cjs/overflowList/constants.js +4 -7
- package/lib/cjs/overflowList/foundation.js +7 -10
- package/lib/cjs/pagination/constants.js +4 -7
- package/lib/cjs/pagination/foundation.d.ts +2 -0
- package/lib/cjs/pagination/foundation.js +18 -8
- package/lib/cjs/pincode/constants.d.ts +6 -0
- package/lib/cjs/pincode/constants.js +12 -0
- package/lib/cjs/pincode/foundation.d.ts +33 -0
- package/lib/cjs/pincode/foundation.js +123 -0
- package/lib/cjs/pincode/pincode.css +31 -0
- package/lib/cjs/pincode/pincode.scss +41 -0
- package/lib/cjs/pincode/variables.scss +7 -0
- package/lib/cjs/popconfirm/constants.js +4 -7
- package/lib/cjs/popconfirm/popconfirm.css +3 -1
- package/lib/cjs/popconfirm/popconfirm.scss +4 -2
- package/lib/cjs/popconfirm/popconfirmFoundation.js +1 -3
- package/lib/cjs/popover/constants.d.ts +1 -1
- package/lib/cjs/popover/constants.js +5 -8
- package/lib/cjs/popover/popover.css +7 -0
- package/lib/cjs/popover/popover.scss +10 -0
- package/lib/cjs/popover/variables.scss +2 -0
- package/lib/cjs/progress/constants.js +2 -4
- package/lib/cjs/progress/progress.css +4 -0
- package/lib/cjs/progress/progress.scss +6 -0
- package/lib/cjs/radio/constants.js +4 -8
- package/lib/cjs/radio/radio.css +6 -0
- package/lib/cjs/radio/radio.scss +12 -6
- package/lib/cjs/radio/radioFoundation.js +1 -1
- package/lib/cjs/radio/radioGroupFoundation.js +1 -2
- package/lib/cjs/radio/radioInnerFoundation.js +2 -3
- package/lib/cjs/radio/variables.scss +3 -1
- package/lib/cjs/rating/constants.js +3 -5
- package/lib/cjs/rating/foundation.js +1 -3
- package/lib/cjs/resizable/constants.d.ts +5 -0
- package/lib/cjs/resizable/constants.js +11 -0
- package/lib/cjs/resizable/foundation.d.ts +6 -0
- package/lib/cjs/resizable/foundation.js +37 -0
- package/lib/cjs/resizable/group/index.d.ts +56 -0
- package/lib/cjs/resizable/group/index.js +347 -0
- package/lib/cjs/resizable/resizable.css +120 -0
- package/lib/cjs/resizable/resizable.scss +138 -0
- package/lib/cjs/resizable/single/index.d.ts +74 -0
- package/lib/cjs/resizable/single/index.js +587 -0
- package/lib/cjs/resizable/types.d.ts +42 -0
- package/lib/cjs/resizable/types.js +12 -0
- package/lib/cjs/resizable/utils.d.ts +20 -0
- package/lib/cjs/resizable/utils.js +142 -0
- package/lib/cjs/resizable/variables.scss +9 -0
- package/lib/cjs/scrollList/constants.js +4 -7
- package/lib/cjs/scrollList/foundation.js +1 -1
- package/lib/cjs/scrollList/itemFoundation.js +1 -1
- package/lib/cjs/scrollList/scrollList.css +2 -0
- package/lib/cjs/scrollList/scrollList.scss +2 -1
- package/lib/cjs/scrollList/scrollTo.js +1 -2
- package/lib/cjs/scrollList/variables.scss +1 -0
- package/lib/cjs/select/constants.d.ts +2 -0
- package/lib/cjs/select/constants.js +7 -8
- package/lib/cjs/select/foundation.d.ts +7 -2
- package/lib/cjs/select/foundation.js +108 -39
- package/lib/cjs/select/option.scss +1 -1
- package/lib/cjs/select/optionFoundation.js +1 -3
- package/lib/cjs/select/rtl.scss +0 -4
- package/lib/cjs/select/select.css +44 -6
- package/lib/cjs/select/select.scss +69 -15
- package/lib/cjs/select/variables.scss +26 -10
- package/lib/cjs/sideSheet/constants.js +3 -5
- package/lib/cjs/sideSheet/sideSheetFoundation.d.ts +1 -0
- package/lib/cjs/sideSheet/sideSheetFoundation.js +1 -1
- package/lib/cjs/skeleton/constants.js +2 -4
- package/lib/cjs/skeleton/skeleton.css +2 -2
- package/lib/cjs/skeleton/variables.scss +2 -2
- package/lib/cjs/slider/constants.d.ts +1 -0
- package/lib/cjs/slider/constants.js +5 -6
- package/lib/cjs/slider/foundation.d.ts +12 -0
- package/lib/cjs/slider/foundation.js +26 -14
- package/lib/cjs/slider/slider.css +9 -0
- package/lib/cjs/slider/slider.scss +10 -0
- package/lib/cjs/slider/variables.scss +2 -0
- package/lib/cjs/space/constants.js +3 -5
- package/lib/cjs/spin/constants.js +3 -6
- package/lib/cjs/spin/foundation.js +2 -3
- package/lib/cjs/spin/spin.css +1 -0
- package/lib/cjs/spin/spin.scss +1 -0
- package/lib/cjs/steps/bacisSteps.scss +12 -5
- package/lib/cjs/steps/constants.js +2 -3
- package/lib/cjs/steps/fillSteps.scss +4 -4
- package/lib/cjs/steps/steps.css +16 -11
- package/lib/cjs/switch/constants.js +3 -5
- package/lib/cjs/switch/foundation.js +1 -2
- package/lib/cjs/switch/switch.css +9 -0
- package/lib/cjs/switch/switch.scss +19 -7
- package/lib/cjs/table/animation.scss +2 -0
- package/lib/cjs/table/bodyFoundation.js +1 -2
- package/lib/cjs/table/cellFoundation.js +1 -1
- package/lib/cjs/table/constants.d.ts +1 -0
- package/lib/cjs/table/constants.js +5 -9
- package/lib/cjs/table/foundation.d.ts +14 -7
- package/lib/cjs/table/foundation.js +37 -21
- package/lib/cjs/table/rtl.scss +14 -2
- package/lib/cjs/table/table.css +28 -25
- package/lib/cjs/table/table.scss +60 -28
- package/lib/cjs/table/tableRowFoundation.js +1 -2
- package/lib/cjs/table/tableSelectionCellFoundation.js +1 -1
- package/lib/cjs/table/utils.d.ts +3 -53
- package/lib/cjs/table/utils.js +24 -6
- package/lib/cjs/table/variables.scss +3 -1
- package/lib/cjs/tabs/constants.d.ts +1 -0
- package/lib/cjs/tabs/constants.js +6 -8
- package/lib/cjs/tabs/foundation.js +2 -3
- package/lib/cjs/tabs/tabs.css +65 -6
- package/lib/cjs/tabs/tabs.scss +84 -7
- package/lib/cjs/tabs/variables.scss +23 -0
- package/lib/cjs/tag/constants.js +3 -7
- package/lib/cjs/tag/tag.css +18 -11
- package/lib/cjs/tag/tag.scss +26 -17
- package/lib/cjs/tag/variables.scss +3 -0
- package/lib/cjs/tagInput/constants.js +3 -5
- package/lib/cjs/tagInput/foundation.js +30 -24
- package/lib/cjs/tagInput/tagInput.css +35 -0
- package/lib/cjs/tagInput/tagInput.scss +39 -2
- package/lib/cjs/tagInput/utils/getSplitedArray.js +2 -3
- package/lib/cjs/tagInput/variables.scss +6 -1
- package/lib/cjs/timePicker/ComboxFoundation.js +4 -4
- package/lib/cjs/timePicker/constants.js +3 -6
- package/lib/cjs/timePicker/foundation.js +14 -12
- package/lib/cjs/timePicker/inputFoundation.js +2 -5
- package/lib/cjs/timePicker/utils/index.js +5 -4
- package/lib/cjs/timeline/constants.js +3 -5
- package/lib/cjs/toast/animation.scss +3 -0
- package/lib/cjs/toast/constants.js +4 -7
- package/lib/cjs/toast/toast.css +19 -2
- package/lib/cjs/toast/toast.scss +26 -2
- package/lib/cjs/toast/toastFoundation.d.ts +2 -1
- package/lib/cjs/toast/toastFoundation.js +1 -2
- package/lib/cjs/toast/toastListFoundation.d.ts +5 -0
- package/lib/cjs/toast/toastListFoundation.js +7 -2
- package/lib/cjs/toast/variables.scss +2 -0
- package/lib/cjs/tooltip/constants.d.ts +1 -1
- package/lib/cjs/tooltip/constants.js +5 -8
- package/lib/cjs/tooltip/foundation.d.ts +5 -1
- package/lib/cjs/tooltip/foundation.js +101 -53
- package/lib/cjs/transfer/constants.js +3 -6
- package/lib/cjs/transfer/foundation.js +1 -2
- package/lib/cjs/transfer/transfer.css +5 -0
- package/lib/cjs/transfer/transfer.scss +8 -0
- package/lib/cjs/transfer/transferUtils.js +1 -1
- package/lib/cjs/tree/constants.d.ts +1 -0
- package/lib/cjs/tree/constants.js +5 -7
- package/lib/cjs/tree/foundation.d.ts +13 -3
- package/lib/cjs/tree/foundation.js +71 -37
- package/lib/cjs/tree/rtl.scss +19 -11
- package/lib/cjs/tree/tree.css +147 -65
- package/lib/cjs/tree/tree.scss +117 -19
- package/lib/cjs/tree/treeUtil.d.ts +17 -9
- package/lib/cjs/tree/treeUtil.js +50 -36
- package/lib/cjs/tree/variables.scss +3 -2
- package/lib/cjs/treeSelect/constants.js +3 -6
- package/lib/cjs/treeSelect/foundation.d.ts +12 -8
- package/lib/cjs/treeSelect/foundation.js +129 -71
- package/lib/cjs/treeSelect/rtl.scss +0 -6
- package/lib/cjs/treeSelect/treeSelect.css +20 -7
- package/lib/cjs/treeSelect/treeSelect.scss +23 -4
- package/lib/cjs/treeSelect/variables.scss +3 -3
- package/lib/cjs/typography/constants.d.ts +1 -1
- package/lib/cjs/typography/constants.js +4 -6
- package/lib/cjs/typography/typography.css +5 -0
- package/lib/cjs/typography/typography.scss +5 -0
- package/lib/cjs/typography/variables.scss +4 -0
- package/lib/cjs/upload/constants.js +4 -7
- package/lib/cjs/upload/fileCardFoundation.d.ts +9 -0
- package/lib/cjs/upload/fileCardFoundation.js +17 -0
- package/lib/cjs/upload/foundation.d.ts +11 -0
- package/lib/cjs/upload/foundation.js +110 -19
- package/lib/cjs/upload/upload.css +13 -1
- package/lib/cjs/upload/upload.scss +20 -3
- package/lib/cjs/upload/utils.js +2 -4
- package/lib/cjs/userGuide/animation.scss +2 -0
- package/lib/cjs/userGuide/constants.d.ts +15 -0
- package/lib/cjs/userGuide/constants.js +21 -0
- package/lib/cjs/userGuide/foundation.d.ts +24 -0
- package/lib/cjs/userGuide/foundation.js +82 -0
- package/lib/cjs/userGuide/userGuide.css +112 -0
- package/lib/cjs/userGuide/userGuide.scss +147 -0
- package/lib/cjs/userGuide/variables.scss +48 -0
- package/lib/cjs/utils/Event.js +4 -3
- package/lib/cjs/utils/FocusHandle.js +2 -4
- package/lib/cjs/utils/Logger.js +1 -2
- package/lib/cjs/utils/Store.js +1 -2
- package/lib/cjs/utils/a11y.js +1 -1
- package/lib/cjs/utils/array.d.ts +2 -2
- package/lib/cjs/utils/array.js +2 -2
- package/lib/cjs/utils/classnames.js +1 -1
- package/lib/cjs/utils/date-fns-extra.js +1 -5
- package/lib/cjs/utils/dom.js +1 -1
- package/lib/cjs/utils/function.js +0 -1
- package/lib/cjs/utils/getMotionObjFromProps.js +3 -3
- package/lib/cjs/utils/isBothNaN.js +1 -2
- package/lib/cjs/utils/isEnterPress.js +2 -3
- package/lib/cjs/utils/isEscPress.js +2 -3
- package/lib/cjs/utils/isPromise.js +1 -1
- package/lib/cjs/utils/keyCode.js +4 -8
- package/lib/cjs/utils/log.js +2 -3
- package/lib/cjs/utils/number.js +1 -1
- package/lib/cjs/utils/object.js +1 -5
- package/lib/cjs/utils/set.js +1 -1
- package/lib/cjs/utils/touchPolyfill.js +2 -3
- package/lib/cjs/videoPlayer/animation.scss +7 -0
- package/lib/cjs/videoPlayer/constants.d.ts +30 -0
- package/lib/cjs/videoPlayer/constants.js +48 -0
- package/lib/cjs/videoPlayer/foundation.d.ts +75 -0
- package/lib/cjs/videoPlayer/foundation.js +291 -0
- package/lib/cjs/videoPlayer/progressFoundation.d.ts +38 -0
- package/lib/cjs/videoPlayer/progressFoundation.js +131 -0
- package/lib/cjs/videoPlayer/variables.scss +75 -0
- package/lib/cjs/videoPlayer/videoPlayer.css +279 -0
- package/lib/cjs/videoPlayer/videoPlayer.scss +323 -0
- package/lib/es/anchor/anchor.css +5 -0
- package/lib/es/anchor/anchor.scss +6 -0
- package/lib/es/anchor/foundation.js +8 -5
- package/lib/es/anchor/linkFoundation.js +0 -1
- package/lib/es/anchor/variables.scss +4 -0
- package/lib/es/audioPlayer/audioPlayer.css +188 -0
- package/lib/es/audioPlayer/audioPlayer.scss +217 -0
- package/lib/es/audioPlayer/constants.d.ts +4 -0
- package/lib/es/audioPlayer/constants.js +5 -0
- package/lib/es/audioPlayer/foundation.d.ts +40 -0
- package/lib/es/audioPlayer/foundation.js +71 -0
- package/lib/es/audioPlayer/variables.scss +55 -0
- package/lib/es/autoComplete/autoComplete.css +15 -15
- package/lib/es/autoComplete/constants.js +2 -2
- package/lib/es/autoComplete/foundation.d.ts +1 -0
- package/lib/es/autoComplete/foundation.js +12 -13
- package/lib/es/autoComplete/option.scss +1 -1
- package/lib/es/autoComplete/optionFoundation.js +0 -2
- package/lib/es/avatar/animation.scss +19 -0
- package/lib/es/avatar/avatar.css +270 -0
- package/lib/es/avatar/avatar.scss +323 -0
- package/lib/es/avatar/constants.js +0 -1
- package/lib/es/avatar/foundation.d.ts +3 -0
- package/lib/es/avatar/foundation.js +21 -2
- package/lib/es/avatar/variables.scss +69 -10
- package/lib/es/backtop/foundation.js +3 -0
- package/lib/es/badge/badge.css +1 -1
- package/lib/es/badge/badge.scss +1 -1
- package/lib/es/badge/constants.js +1 -1
- package/lib/es/banner/banner.css +0 -1
- package/lib/es/banner/banner.scss +0 -1
- package/lib/es/base/foundation.js +1 -1
- package/lib/es/breadcrumb/breadcrumb.css +6 -4
- package/lib/es/breadcrumb/breadcrumb.scss +7 -4
- package/lib/es/breadcrumb/foundation.js +0 -1
- package/lib/es/button/animation.scss +3 -0
- package/lib/es/button/button.css +108 -16
- package/lib/es/button/button.scss +176 -26
- package/lib/es/button/constants.d.ts +1 -1
- package/lib/es/button/constants.js +1 -1
- package/lib/es/button/iconButton.css +22 -1
- package/lib/es/button/iconButton.scss +25 -2
- package/lib/es/button/splitButtonGroup.scss +10 -9
- package/lib/es/button/variables.scss +50 -6
- package/lib/es/calendar/eventUtil.js +5 -3
- package/lib/es/calendar/foundation.js +21 -4
- package/lib/es/carousel/foundation.d.ts +1 -0
- package/lib/es/carousel/foundation.js +4 -4
- package/lib/es/cascader/cascader.css +38 -22
- package/lib/es/cascader/cascader.scss +43 -13
- package/lib/es/cascader/constants.d.ts +5 -0
- package/lib/es/cascader/constants.js +7 -2
- package/lib/es/cascader/foundation.d.ts +21 -2
- package/lib/es/cascader/foundation.js +137 -69
- package/lib/es/cascader/rtl.scss +5 -13
- package/lib/es/cascader/util.d.ts +9 -1
- package/lib/es/cascader/util.js +58 -8
- package/lib/es/cascader/variables.scss +20 -7
- package/lib/es/chat/chat.css +496 -0
- package/lib/es/chat/chat.scss +611 -0
- package/lib/es/chat/chatBoxActionFoundation.d.ts +24 -0
- package/lib/es/chat/chatBoxActionFoundation.js +41 -0
- package/lib/es/chat/constants.d.ts +41 -0
- package/lib/es/chat/constants.js +51 -0
- package/lib/es/chat/foundation.d.ts +89 -0
- package/lib/es/chat/foundation.js +299 -0
- package/lib/es/chat/inputboxFoundation.d.ts +20 -0
- package/lib/es/chat/inputboxFoundation.js +111 -0
- package/lib/es/chat/rtl.scss +22 -0
- package/lib/es/chat/variables.scss +129 -0
- package/lib/es/checkbox/checkbox.css +3 -3
- package/lib/es/checkbox/checkbox.scss +5 -6
- package/lib/es/checkbox/checkboxFoundation.js +0 -1
- package/lib/es/checkbox/checkboxGroupFoundation.js +1 -2
- package/lib/es/checkbox/variables.scss +3 -1
- package/lib/es/codeHighlight/codeHighlight.css +160 -0
- package/lib/es/codeHighlight/codeHighlight.scss +203 -0
- package/lib/es/codeHighlight/constants.d.ts +6 -0
- package/lib/es/codeHighlight/constants.js +7 -0
- package/lib/es/codeHighlight/index.d.ts +16 -0
- package/lib/es/codeHighlight/index.js +23 -0
- package/lib/es/codeHighlight/variables.scss +0 -0
- package/lib/es/collapse/foundation.js +0 -1
- package/lib/es/colorPicker/AlphaSliderFoundation.d.ts +27 -0
- package/lib/es/colorPicker/AlphaSliderFoundation.js +33 -0
- package/lib/es/colorPicker/ColorChooseAreaFoundation.d.ts +42 -0
- package/lib/es/colorPicker/ColorChooseAreaFoundation.js +55 -0
- package/lib/es/colorPicker/ColorSliderFoundation.d.ts +26 -0
- package/lib/es/colorPicker/ColorSliderFoundation.js +33 -0
- package/lib/es/colorPicker/DataPartFoundation.d.ts +28 -0
- package/lib/es/colorPicker/DataPartFoundation.js +108 -0
- package/lib/es/colorPicker/colorPicker.css +84 -0
- package/lib/es/colorPicker/colorPicker.scss +113 -0
- package/lib/es/colorPicker/constants.d.ts +4 -0
- package/lib/es/colorPicker/constants.js +6 -0
- package/lib/es/colorPicker/foundation.d.ts +66 -0
- package/lib/es/colorPicker/foundation.js +143 -0
- package/lib/es/colorPicker/interface.d.ts +40 -0
- package/lib/es/colorPicker/interface.js +1 -0
- package/lib/es/colorPicker/utils/convert.d.ts +28 -0
- package/lib/es/colorPicker/utils/convert.js +277 -0
- package/lib/es/colorPicker/utils/round.d.ts +1 -0
- package/lib/es/colorPicker/utils/round.js +5 -0
- package/lib/es/colorPicker/utils/split.d.ts +18 -0
- package/lib/es/colorPicker/utils/split.js +34 -0
- package/lib/es/colorPicker/variables.scss +28 -0
- package/lib/es/cropper/constants.d.ts +17 -0
- package/lib/es/cropper/constants.js +19 -0
- package/lib/es/cropper/cropper.css +97 -0
- package/lib/es/cropper/cropper.scss +116 -0
- package/lib/es/cropper/foundation.d.ts +116 -0
- package/lib/es/cropper/foundation.js +862 -0
- package/lib/es/cropper/utils.d.ts +2 -0
- package/lib/es/cropper/utils.js +12 -0
- package/lib/es/cropper/variables.scss +6 -0
- package/lib/es/datePicker/_utils/getYearAndMonth.d.ts +16 -0
- package/lib/es/datePicker/_utils/getYearAndMonth.js +16 -0
- package/lib/es/datePicker/_utils/index.d.ts +2 -1
- package/lib/es/datePicker/_utils/index.js +2 -1
- package/lib/es/datePicker/datePicker.css +20 -0
- package/lib/es/datePicker/datePicker.scss +26 -2
- package/lib/es/datePicker/foundation.d.ts +5 -9
- package/lib/es/datePicker/foundation.js +31 -48
- package/lib/es/datePicker/inputFoundation.js +19 -13
- package/lib/es/datePicker/monthFoundation.js +0 -1
- package/lib/es/datePicker/monthsGridFoundation.js +2 -5
- package/lib/es/datePicker/variables.scss +1 -0
- package/lib/es/datePicker/yearAndMonthFoundation.js +43 -14
- package/lib/es/descriptions/constants.d.ts +1 -0
- package/lib/es/descriptions/constants.js +2 -1
- package/lib/es/descriptions/descriptions.css +9 -0
- package/lib/es/descriptions/descriptions.scss +14 -0
- package/lib/es/descriptions/foundation.d.ts +8 -0
- package/lib/es/descriptions/foundation.js +42 -0
- package/lib/es/dragMove/foundation.d.ts +47 -0
- package/lib/es/dragMove/foundation.js +163 -0
- package/lib/es/dropdown/constants.js +1 -1
- package/lib/es/dropdown/dropdown.css +2 -0
- package/lib/es/dropdown/dropdown.scss +5 -2
- package/lib/es/dropdown/menuFoundation.js +0 -1
- package/lib/es/dropdown/variables.scss +1 -0
- package/lib/es/form/constants.d.ts +1 -0
- package/lib/es/form/constants.js +2 -1
- package/lib/es/form/form.css +12 -1
- package/lib/es/form/form.scss +22 -7
- package/lib/es/form/foundation.d.ts +12 -4
- package/lib/es/form/foundation.js +50 -13
- package/lib/es/form/interface.d.ts +20 -6
- package/lib/es/form/utils.d.ts +10 -1
- package/lib/es/form/utils.js +36 -16
- package/lib/es/grid/grid.css +2 -2
- package/lib/es/grid/grid.scss +1 -1
- package/lib/es/highlight/foundation.d.ts +84 -0
- package/lib/es/highlight/foundation.js +174 -0
- package/lib/es/hotKeys/constants.d.ts +117 -0
- package/lib/es/hotKeys/constants.js +238 -0
- package/lib/es/hotKeys/foundation.d.ts +13 -0
- package/lib/es/hotKeys/foundation.js +69 -0
- package/lib/es/hotKeys/hotKeys.css +32 -0
- package/lib/es/hotKeys/hotKeys.scss +30 -0
- package/lib/es/hotKeys/variables.scss +10 -0
- package/lib/es/image/constants.d.ts +4 -1
- package/lib/es/image/constants.js +4 -1
- package/lib/es/image/image.css +15 -3
- package/lib/es/image/image.scss +21 -6
- package/lib/es/image/previewFooterFoundation.d.ts +0 -1
- package/lib/es/image/previewFooterFoundation.js +0 -1
- package/lib/es/image/previewImageFoundation.d.ts +52 -34
- package/lib/es/image/previewImageFoundation.js +229 -208
- package/lib/es/image/previewInnerFoundation.d.ts +20 -14
- package/lib/es/image/previewInnerFoundation.js +101 -33
- package/lib/es/image/utils.d.ts +1 -1
- package/lib/es/image/utils.js +46 -21
- package/lib/es/image/variables.scss +1 -1
- package/lib/es/input/foundation.d.ts +6 -3
- package/lib/es/input/foundation.js +64 -55
- package/lib/es/input/input.css +22 -18
- package/lib/es/input/input.scss +26 -16
- package/lib/es/input/rtl.scss +0 -4
- package/lib/es/input/textarea.css +0 -5
- package/lib/es/input/textareaFoundation.d.ts +6 -3
- package/lib/es/input/textareaFoundation.js +104 -57
- package/lib/es/input/util/truncateValue.d.ts +5 -0
- package/lib/es/input/util/truncateValue.js +24 -0
- package/lib/es/input/variables.scss +7 -2
- package/lib/es/inputNumber/foundation.d.ts +15 -1
- package/lib/es/inputNumber/foundation.js +169 -15
- package/lib/es/inputNumber/inputNumber.css +2 -0
- package/lib/es/inputNumber/inputNumber.scss +2 -0
- package/lib/es/inputNumber/variables.scss +2 -1
- package/lib/es/jsonViewer/constants.d.ts +4 -0
- package/lib/es/jsonViewer/constants.js +5 -0
- package/lib/es/jsonViewer/foundation.d.ts +26 -0
- package/lib/es/jsonViewer/foundation.js +84 -0
- package/lib/es/jsonViewer/jsonViewer.css +176 -0
- package/lib/es/jsonViewer/jsonViewer.scss +207 -0
- package/lib/es/jsonViewer/variables.scss +15 -0
- package/lib/es/lottie/constants.d.ts +6 -0
- package/lib/es/lottie/constants.js +7 -0
- package/lib/es/lottie/foundation.d.ts +25 -0
- package/lib/es/lottie/foundation.js +29 -0
- package/lib/es/markdownRender/constants.d.ts +5 -0
- package/lib/es/markdownRender/constants.js +6 -0
- package/lib/es/markdownRender/foundation.d.ts +24 -0
- package/lib/es/markdownRender/foundation.js +66 -0
- package/lib/es/markdownRender/markdownRender.css +46 -0
- package/lib/es/markdownRender/markdownRender.scss +63 -0
- package/lib/es/markdownRender/variables.scss +24 -0
- package/lib/es/modal/modal.css +8 -1
- package/lib/es/modal/modal.scss +10 -1
- package/lib/es/modal/modalFoundation.d.ts +3 -0
- package/lib/es/modal/modalFoundation.js +3 -0
- package/lib/es/modal/variables.scss +4 -2
- package/lib/es/navigation/NavItem.js +0 -2
- package/lib/es/navigation/constants.js +0 -1
- package/lib/es/navigation/foundation.d.ts +10 -10
- package/lib/es/navigation/foundation.js +17 -11
- package/lib/es/navigation/itemFoundation.d.ts +5 -5
- package/lib/es/navigation/itemFoundation.js +0 -1
- package/lib/es/navigation/navigation.css +47 -5
- package/lib/es/navigation/navigation.scss +34 -1
- package/lib/es/navigation/subNavFoundation.js +3 -3
- package/lib/es/navigation/variables.scss +2 -2
- package/lib/es/notification/constants.js +0 -1
- package/lib/es/notification/notificationFoundation.d.ts +3 -3
- package/lib/es/notification/notificationFoundation.js +0 -1
- package/lib/es/notification/notificationListFoundation.d.ts +4 -1
- package/lib/es/notification/notificationListFoundation.js +9 -3
- package/lib/es/overflowList/foundation.js +5 -7
- package/lib/es/pagination/foundation.d.ts +2 -0
- package/lib/es/pagination/foundation.js +16 -4
- package/lib/es/pincode/constants.d.ts +6 -0
- package/lib/es/pincode/constants.js +7 -0
- package/lib/es/pincode/foundation.d.ts +33 -0
- package/lib/es/pincode/foundation.js +116 -0
- package/lib/es/pincode/pincode.css +31 -0
- package/lib/es/pincode/pincode.scss +41 -0
- package/lib/es/pincode/variables.scss +7 -0
- package/lib/es/popconfirm/popconfirm.css +3 -1
- package/lib/es/popconfirm/popconfirm.scss +4 -2
- package/lib/es/popconfirm/popconfirmFoundation.js +0 -1
- package/lib/es/popover/constants.d.ts +1 -1
- package/lib/es/popover/constants.js +1 -1
- package/lib/es/popover/popover.css +7 -0
- package/lib/es/popover/popover.scss +10 -0
- package/lib/es/popover/variables.scss +2 -0
- package/lib/es/progress/progress.css +4 -0
- package/lib/es/progress/progress.scss +6 -0
- package/lib/es/radio/radio.css +6 -0
- package/lib/es/radio/radio.scss +12 -6
- package/lib/es/radio/radioGroupFoundation.js +0 -1
- package/lib/es/radio/radioInnerFoundation.js +1 -2
- package/lib/es/radio/variables.scss +3 -1
- package/lib/es/rating/foundation.js +0 -1
- package/lib/es/resizable/constants.d.ts +5 -0
- package/lib/es/resizable/constants.js +6 -0
- package/lib/es/resizable/foundation.d.ts +6 -0
- package/lib/es/resizable/foundation.js +3 -0
- package/lib/es/resizable/group/index.d.ts +56 -0
- package/lib/es/resizable/group/index.js +338 -0
- package/lib/es/resizable/resizable.css +120 -0
- package/lib/es/resizable/resizable.scss +138 -0
- package/lib/es/resizable/single/index.d.ts +74 -0
- package/lib/es/resizable/single/index.js +578 -0
- package/lib/es/resizable/types.d.ts +42 -0
- package/lib/es/resizable/types.js +6 -0
- package/lib/es/resizable/utils.d.ts +20 -0
- package/lib/es/resizable/utils.js +124 -0
- package/lib/es/resizable/variables.scss +9 -0
- package/lib/es/scrollList/scrollList.css +2 -0
- package/lib/es/scrollList/scrollList.scss +2 -1
- package/lib/es/scrollList/variables.scss +1 -0
- package/lib/es/select/constants.d.ts +2 -0
- package/lib/es/select/constants.js +3 -1
- package/lib/es/select/foundation.d.ts +7 -2
- package/lib/es/select/foundation.js +105 -36
- package/lib/es/select/option.scss +1 -1
- package/lib/es/select/optionFoundation.js +0 -2
- package/lib/es/select/rtl.scss +0 -4
- package/lib/es/select/select.css +44 -6
- package/lib/es/select/select.scss +69 -15
- package/lib/es/select/variables.scss +26 -10
- package/lib/es/sideSheet/sideSheetFoundation.d.ts +1 -0
- package/lib/es/skeleton/skeleton.css +2 -2
- package/lib/es/skeleton/variables.scss +2 -2
- package/lib/es/slider/constants.d.ts +1 -0
- package/lib/es/slider/constants.js +2 -1
- package/lib/es/slider/foundation.d.ts +12 -0
- package/lib/es/slider/foundation.js +25 -12
- package/lib/es/slider/slider.css +9 -0
- package/lib/es/slider/slider.scss +10 -0
- package/lib/es/slider/variables.scss +2 -0
- package/lib/es/spin/spin.css +1 -0
- package/lib/es/spin/spin.scss +1 -0
- package/lib/es/steps/bacisSteps.scss +12 -5
- package/lib/es/steps/fillSteps.scss +4 -4
- package/lib/es/steps/steps.css +16 -11
- package/lib/es/switch/foundation.js +0 -1
- package/lib/es/switch/switch.css +9 -0
- package/lib/es/switch/switch.scss +19 -7
- package/lib/es/table/animation.scss +2 -0
- package/lib/es/table/bodyFoundation.js +0 -1
- package/lib/es/table/constants.d.ts +1 -0
- package/lib/es/table/constants.js +1 -1
- package/lib/es/table/foundation.d.ts +14 -7
- package/lib/es/table/foundation.js +35 -17
- package/lib/es/table/rtl.scss +14 -2
- package/lib/es/table/table.css +28 -25
- package/lib/es/table/table.scss +60 -28
- package/lib/es/table/tableRowFoundation.js +0 -1
- package/lib/es/table/utils.d.ts +3 -53
- package/lib/es/table/utils.js +22 -4
- package/lib/es/table/variables.scss +3 -1
- package/lib/es/tabs/constants.d.ts +1 -0
- package/lib/es/tabs/constants.js +2 -1
- package/lib/es/tabs/foundation.js +0 -1
- package/lib/es/tabs/tabs.css +65 -6
- package/lib/es/tabs/tabs.scss +84 -7
- package/lib/es/tabs/variables.scss +23 -0
- package/lib/es/tag/constants.js +0 -1
- package/lib/es/tag/tag.css +18 -11
- package/lib/es/tag/tag.scss +26 -17
- package/lib/es/tag/variables.scss +3 -0
- package/lib/es/tagInput/foundation.js +28 -21
- package/lib/es/tagInput/tagInput.css +35 -0
- package/lib/es/tagInput/tagInput.scss +39 -2
- package/lib/es/tagInput/variables.scss +6 -1
- package/lib/es/timePicker/ComboxFoundation.js +2 -1
- package/lib/es/timePicker/foundation.js +12 -8
- package/lib/es/timePicker/inputFoundation.js +0 -2
- package/lib/es/timePicker/utils/index.js +4 -2
- package/lib/es/toast/animation.scss +3 -0
- package/lib/es/toast/constants.js +0 -1
- package/lib/es/toast/toast.css +19 -2
- package/lib/es/toast/toast.scss +26 -2
- package/lib/es/toast/toastFoundation.d.ts +2 -1
- package/lib/es/toast/toastFoundation.js +0 -1
- package/lib/es/toast/toastListFoundation.d.ts +5 -0
- package/lib/es/toast/toastListFoundation.js +6 -1
- package/lib/es/toast/variables.scss +2 -0
- package/lib/es/tooltip/constants.d.ts +1 -1
- package/lib/es/tooltip/constants.js +1 -1
- package/lib/es/tooltip/foundation.d.ts +5 -1
- package/lib/es/tooltip/foundation.js +100 -51
- package/lib/es/transfer/foundation.js +0 -1
- package/lib/es/transfer/transfer.css +5 -0
- package/lib/es/transfer/transfer.scss +8 -0
- package/lib/es/tree/constants.d.ts +1 -0
- package/lib/es/tree/constants.js +2 -1
- package/lib/es/tree/foundation.d.ts +13 -3
- package/lib/es/tree/foundation.js +70 -36
- package/lib/es/tree/rtl.scss +19 -11
- package/lib/es/tree/tree.css +147 -65
- package/lib/es/tree/tree.scss +117 -19
- package/lib/es/tree/treeUtil.d.ts +17 -9
- package/lib/es/tree/treeUtil.js +49 -35
- package/lib/es/tree/variables.scss +3 -2
- package/lib/es/treeSelect/foundation.d.ts +12 -8
- package/lib/es/treeSelect/foundation.js +129 -71
- package/lib/es/treeSelect/rtl.scss +0 -6
- package/lib/es/treeSelect/treeSelect.css +20 -7
- package/lib/es/treeSelect/treeSelect.scss +23 -4
- package/lib/es/treeSelect/variables.scss +3 -3
- package/lib/es/typography/constants.d.ts +1 -1
- package/lib/es/typography/constants.js +1 -1
- package/lib/es/typography/typography.css +5 -0
- package/lib/es/typography/typography.scss +5 -0
- package/lib/es/typography/variables.scss +4 -0
- package/lib/es/upload/fileCardFoundation.d.ts +9 -0
- package/lib/es/upload/fileCardFoundation.js +10 -0
- package/lib/es/upload/foundation.d.ts +11 -0
- package/lib/es/upload/foundation.js +108 -16
- package/lib/es/upload/upload.css +13 -1
- package/lib/es/upload/upload.scss +20 -3
- package/lib/es/userGuide/animation.scss +2 -0
- package/lib/es/userGuide/constants.d.ts +15 -0
- package/lib/es/userGuide/constants.js +16 -0
- package/lib/es/userGuide/foundation.d.ts +24 -0
- package/lib/es/userGuide/foundation.js +74 -0
- package/lib/es/userGuide/userGuide.css +112 -0
- package/lib/es/userGuide/userGuide.scss +147 -0
- package/lib/es/userGuide/variables.scss +48 -0
- package/lib/es/utils/Event.js +3 -2
- package/lib/es/utils/FocusHandle.js +0 -1
- package/lib/es/utils/array.d.ts +2 -2
- package/lib/es/utils/array.js +2 -2
- package/lib/es/utils/date-fns-extra.js +0 -2
- package/lib/es/utils/function.js +0 -1
- package/lib/es/utils/getMotionObjFromProps.js +2 -2
- package/lib/es/utils/number.js +1 -1
- package/lib/es/utils/object.js +0 -3
- package/lib/es/videoPlayer/animation.scss +7 -0
- package/lib/es/videoPlayer/constants.d.ts +30 -0
- package/lib/es/videoPlayer/constants.js +43 -0
- package/lib/es/videoPlayer/foundation.d.ts +75 -0
- package/lib/es/videoPlayer/foundation.js +283 -0
- package/lib/es/videoPlayer/progressFoundation.d.ts +38 -0
- package/lib/es/videoPlayer/progressFoundation.js +123 -0
- package/lib/es/videoPlayer/variables.scss +75 -0
- package/lib/es/videoPlayer/videoPlayer.css +279 -0
- package/lib/es/videoPlayer/videoPlayer.scss +323 -0
- package/lottie/constants.ts +17 -0
- package/lottie/foundation.ts +60 -0
- package/markdownRender/constants.ts +11 -0
- package/markdownRender/foundation.ts +81 -0
- package/markdownRender/markdownRender.scss +63 -0
- package/markdownRender/variables.scss +24 -0
- package/modal/modal.scss +10 -1
- package/modal/modalContentFoundation.ts +3 -3
- package/modal/modalFoundation.ts +10 -5
- package/modal/variables.scss +4 -2
- package/navigation/NavItem.ts +0 -2
- package/navigation/foundation.ts +26 -20
- package/navigation/itemFoundation.ts +7 -7
- package/navigation/navigation.scss +34 -1
- package/navigation/subNavFoundation.ts +3 -2
- package/navigation/variables.scss +2 -2
- package/notification/notificationFoundation.ts +3 -3
- package/notification/notificationListFoundation.ts +14 -4
- package/overflowList/foundation.ts +6 -7
- package/package.json +12 -4
- package/pagination/foundation.ts +13 -3
- package/pincode/constants.ts +13 -0
- package/pincode/foundation.ts +127 -0
- package/pincode/pincode.scss +41 -0
- package/pincode/variables.scss +7 -0
- package/popconfirm/popconfirm.scss +4 -2
- package/popconfirm/popconfirmFoundation.ts +0 -1
- package/popover/constants.ts +1 -1
- package/popover/popover.scss +10 -0
- package/popover/variables.scss +2 -0
- package/progress/progress.scss +6 -0
- package/radio/radio.scss +12 -6
- package/radio/radioGroupFoundation.ts +0 -1
- package/radio/radioInnerFoundation.ts +0 -1
- package/radio/variables.scss +3 -1
- package/rating/foundation.ts +0 -1
- package/resizable/constants.ts +13 -0
- package/resizable/foundation.ts +29 -0
- package/resizable/group/index.ts +368 -0
- package/resizable/resizable.scss +138 -0
- package/resizable/single/index.ts +646 -0
- package/resizable/types.ts +65 -0
- package/resizable/utils.ts +146 -0
- package/resizable/variables.scss +9 -0
- package/scrollList/scrollList.scss +2 -1
- package/scrollList/variables.scss +1 -0
- package/select/constants.ts +2 -0
- package/select/foundation.ts +83 -36
- package/select/option.scss +1 -1
- package/select/optionFoundation.ts +0 -2
- package/select/rtl.scss +0 -4
- package/select/select.scss +69 -15
- package/select/variables.scss +26 -10
- package/sideSheet/sideSheetFoundation.ts +3 -2
- package/skeleton/variables.scss +2 -2
- package/slider/constants.ts +1 -0
- package/slider/foundation.ts +37 -15
- package/slider/slider.scss +10 -0
- package/slider/variables.scss +2 -0
- package/spin/spin.scss +1 -0
- package/steps/bacisSteps.scss +12 -5
- package/steps/fillSteps.scss +4 -4
- package/switch/foundation.ts +0 -1
- package/switch/switch.scss +19 -7
- package/table/animation.scss +2 -0
- package/table/bodyFoundation.ts +0 -1
- package/table/constants.ts +1 -1
- package/table/foundation.ts +44 -21
- package/table/rtl.scss +14 -2
- package/table/table.scss +60 -28
- package/table/tableRowFoundation.ts +0 -1
- package/table/utils.ts +26 -4
- package/table/variables.scss +3 -1
- package/tabs/constants.ts +2 -1
- package/tabs/foundation.ts +2 -2
- package/tabs/tabs.scss +84 -7
- package/tabs/variables.scss +23 -0
- package/tag/constants.ts +19 -2
- package/tag/tag.scss +26 -17
- package/tag/variables.scss +3 -0
- package/tagInput/foundation.ts +26 -19
- package/tagInput/tagInput.scss +39 -2
- package/tagInput/variables.scss +6 -1
- package/timePicker/ComboxFoundation.ts +2 -1
- package/timePicker/foundation.ts +11 -9
- package/timePicker/inputFoundation.ts +0 -2
- package/timePicker/utils/index.ts +5 -2
- package/toast/animation.scss +3 -0
- package/toast/toast.scss +26 -2
- package/toast/toastFoundation.ts +4 -6
- package/toast/toastListFoundation.ts +13 -3
- package/toast/variables.scss +2 -0
- package/tooltip/constants.ts +1 -1
- package/tooltip/foundation.ts +117 -55
- package/transfer/foundation.ts +0 -1
- package/transfer/transfer.scss +8 -0
- package/tree/constants.ts +1 -0
- package/tree/foundation.ts +72 -32
- package/tree/rtl.scss +19 -11
- package/tree/tree.scss +117 -19
- package/tree/treeUtil.ts +56 -33
- package/tree/variables.scss +3 -2
- package/treeSelect/constants.ts +1 -1
- package/treeSelect/foundation.ts +116 -68
- package/treeSelect/rtl.scss +0 -6
- package/treeSelect/treeSelect.scss +23 -4
- package/treeSelect/variables.scss +3 -3
- package/tsconfig.json +1 -2
- package/typography/constants.ts +1 -1
- package/typography/typography.scss +5 -0
- package/typography/variables.scss +4 -0
- package/upload/fileCardFoundation.ts +17 -0
- package/upload/foundation.ts +100 -7
- package/upload/upload.scss +20 -3
- package/userGuide/animation.scss +2 -0
- package/userGuide/constants.ts +35 -0
- package/userGuide/foundation.ts +87 -0
- package/userGuide/userGuide.scss +147 -0
- package/userGuide/variables.scss +48 -0
- package/utils/Event.ts +3 -2
- package/utils/a11y.ts +6 -6
- package/utils/array.ts +4 -4
- package/utils/date-fns-extra.ts +0 -2
- package/utils/function.ts +0 -1
- package/utils/getMotionObjFromProps.ts +3 -2
- package/utils/number.ts +1 -1
- package/utils/object.ts +0 -3
- package/videoPlayer/animation.scss +7 -0
- package/videoPlayer/constants.ts +39 -0
- package/videoPlayer/foundation.ts +332 -0
- package/videoPlayer/progressFoundation.ts +136 -0
- package/videoPlayer/variables.scss +75 -0
- package/videoPlayer/videoPlayer.scss +323 -0
- package/lib/cjs/utils/getHighlight.d.ts +0 -45
- package/lib/cjs/utils/getHighlight.js +0 -175
- package/lib/es/utils/getHighlight.d.ts +0 -45
- package/lib/es/utils/getHighlight.js +0 -166
- package/utils/getHighlight.ts +0 -178
package/anchor/anchor.scss
CHANGED
|
@@ -75,12 +75,18 @@ $module: #{$prefix}-anchor;
|
|
|
75
75
|
border-radius: $width-anchor-outline_border_radius;
|
|
76
76
|
transition: color $transition_duration-anchor_title-text $transition_function-anchor_title-text $transition_delay-anchor_title-text;//锚点选项文字的动效
|
|
77
77
|
transform: scale($transform_scale-anchor_title-text);
|
|
78
|
+
background: $color-anchor_title-bg-default;
|
|
78
79
|
&:hover {
|
|
79
80
|
color: $color-anchor_title-text-hover;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
&-active {
|
|
83
84
|
color: $color-anchor_title-text-active;
|
|
85
|
+
background: $color-anchor_title-bg-active;
|
|
86
|
+
&:hover{
|
|
87
|
+
color: $color-anchor_title_active-text-hover;
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
&:focus-visible {
|
package/anchor/foundation.ts
CHANGED
|
@@ -30,10 +30,8 @@ export default class AnchorFoundation<P = Record<string, any>, S = Record<string
|
|
|
30
30
|
super({ ...AnchorFoundation.defaultAdapter, ...adapter });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
34
33
|
init = () => {};
|
|
35
34
|
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
37
35
|
destroy = () => {};
|
|
38
36
|
|
|
39
37
|
addLink = (link: string) => {
|
|
@@ -171,7 +169,7 @@ export default class AnchorFoundation<P = Record<string, any>, S = Record<string
|
|
|
171
169
|
* 2. There is a scroll axis (clientHeight < scrollHeight | | clientWidth < scrollWidth)
|
|
172
170
|
* 3.overflowX or overflowY has a value and is not visible or clip
|
|
173
171
|
* For details, please see https://github.com/stipsan/compute-scroll-into-view
|
|
174
|
-
*
|
|
172
|
+
*
|
|
175
173
|
* behavior定义滚动行为
|
|
176
174
|
* - 可选 'auto' | 'smooth' | Function
|
|
177
175
|
* - Function 自定义滚动行为
|
|
@@ -184,9 +182,12 @@ export default class AnchorFoundation<P = Record<string, any>, S = Record<string
|
|
|
184
182
|
*/
|
|
185
183
|
behavior: actions => {
|
|
186
184
|
// We just need to scroll the innermost target container
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
const verticalScrollAction = actions.find(action => {
|
|
186
|
+
const { el } = action;
|
|
187
|
+
return el.scrollHeight > el.clientHeight;
|
|
188
|
+
});
|
|
189
|
+
const el = get(verticalScrollAction, 'el');
|
|
190
|
+
const top = get(verticalScrollAction, 'top');
|
|
190
191
|
if (el) {
|
|
191
192
|
const offsetTop = top - targetOffset;
|
|
192
193
|
if (el.scroll && canSmoothScroll) {
|
package/anchor/linkFoundation.ts
CHANGED
package/anchor/variables.scss
CHANGED
|
@@ -6,9 +6,13 @@ $color-anchor_slide_muted-bg-active: var(--semi-color-white); // 选中颜色 -
|
|
|
6
6
|
|
|
7
7
|
$color-anchor_title-text-default: var(--semi-color-text-2); // 文字颜色 - 未选中
|
|
8
8
|
$color-anchor_title-text-hover: var(--semi-color-tertiary-hover); // 文字颜色 - 未选中悬浮态
|
|
9
|
+
$color-anchor_title_active-text-hover: $color-anchor_title-text-hover; // 文字颜色 - 选中悬浮态
|
|
9
10
|
$color-anchor_title-text-active: var(--semi-color-text-0); // 文字颜色 - 选中
|
|
10
11
|
$color-anchor_title-text-disabled: var(--semi-color-disabled-text); // 文字颜色 - 禁用
|
|
11
12
|
|
|
13
|
+
$color-anchor_title-bg-default: transparent; // 背景色
|
|
14
|
+
$color-anchor_title-bg-active: transparent; // 背景色 - 选中
|
|
15
|
+
|
|
12
16
|
$color-anchor_title-outline-focus: var(--semi-color-primary-light-active); // 轮廓 - 聚焦
|
|
13
17
|
|
|
14
18
|
// Spacing
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
|
|
3
|
+
$module: #{$prefix}-audio-player;
|
|
4
|
+
|
|
5
|
+
.#{$module} {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: $gap-audio-player-large;
|
|
10
|
+
max-width: $width-audio-player-max;
|
|
11
|
+
height: $height-audio-player;
|
|
12
|
+
background: $color-audio-player-background;
|
|
13
|
+
&-control {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: $gap-audio-player-medium;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-control-button-icon {
|
|
20
|
+
color: $color-audio-player-control-icon;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-control-button-play {
|
|
24
|
+
background: $color-audio-player-control-icon !important;
|
|
25
|
+
color: $color-audio-player-control-icon-play !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-control-button-play-disabled {
|
|
29
|
+
background: $color-audio-player-disabled-bg !important;
|
|
30
|
+
color: $color-audio-player-disabled-text !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-slider-container {
|
|
34
|
+
width: $width-audio-player-slider;
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-info-container {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: $gap-audio-player-medium;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-info {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
gap: $gap-audio-player-small;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-info-title {
|
|
51
|
+
font-size: $font-size-audio-player-text;
|
|
52
|
+
color: $color-audio-player-font-color;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
&-info-time {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: $height-audio-player-time;
|
|
60
|
+
font-size: $font-size-audio-player-text;
|
|
61
|
+
color: $color-audio-player-font-color;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
gap: $gap-audio-player-small;
|
|
66
|
+
user-select: none;
|
|
67
|
+
}
|
|
68
|
+
&-control-speed {
|
|
69
|
+
width: $width-audio-player-speed;
|
|
70
|
+
height: $height-audio-player-speed;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
gap: $gap-audio-player-small;
|
|
75
|
+
background: $color-audio-player-font-color-speed;
|
|
76
|
+
border-radius: $border-radius-audio-player-speed;
|
|
77
|
+
font-size: $font-size-audio-player-small;
|
|
78
|
+
line-height: $line-height-audio-player-small;
|
|
79
|
+
color: var(--semi-color-default);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
user-select: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&-control-speed-menu {
|
|
85
|
+
background: $color-audio-player-font-color-speed;
|
|
86
|
+
width: $width-audio-player-speed-menu;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-control-speed-menu-item {
|
|
90
|
+
color: $color-audio-player-text-default;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-control-speed-menu-item:hover {
|
|
94
|
+
background: var(--semi-color-tertiary-active) !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-control-volume {
|
|
98
|
+
width: $width-audio-player-volume;
|
|
99
|
+
height: $height-audio-player-volume;
|
|
100
|
+
background: $color-audio-player-font-color-speed;
|
|
101
|
+
border-radius: $border-radius-audio-player-volume;
|
|
102
|
+
padding: 4px 0;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: $gap-audio-player-small * 2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-control-volume-title {
|
|
111
|
+
font-size: $font-size-audio-player-small;
|
|
112
|
+
line-height: $line-height-audio-player-small;
|
|
113
|
+
color: $color-audio-player-text-default;
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
user-select: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-error {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: $gap-audio-player-small;
|
|
122
|
+
margin-left: 4px;
|
|
123
|
+
color: var(--semi-color-danger);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&-light {
|
|
127
|
+
background: $color-audio-player-background-light;
|
|
128
|
+
border: 1px solid var(--semi-color-border);
|
|
129
|
+
|
|
130
|
+
.#{$module}-control-button-icon {
|
|
131
|
+
color: $color-audio-player-control-icon-light;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.#{$module}-control-button-play {
|
|
135
|
+
background: $color-audio-player-control-icon-light !important;
|
|
136
|
+
color: $color-audio-player-control-icon-play-light !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.#{$module}-control-button-play-disabled {
|
|
140
|
+
background: $color-audio-player-light-disabled-bg !important;
|
|
141
|
+
color: $color-audio-player-light-disabled-text !important;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.#{$module}-info-title,
|
|
145
|
+
.#{$module}-info-time {
|
|
146
|
+
color: $color-audio-player-font-color-light;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.#{$module}-control-speed-menu-item,
|
|
150
|
+
.#{$module}-control-volume-title {
|
|
151
|
+
color: $color-audio-player-light-text;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{$module}-control-speed-menu-item:hover {
|
|
155
|
+
background: $color-audio-player-light-hover-bg !important;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.#{$module}-slider {
|
|
161
|
+
background: $color-audio-player-slider-bg;
|
|
162
|
+
border-radius: $border-radius-audio-player-slider;
|
|
163
|
+
position: relative;
|
|
164
|
+
|
|
165
|
+
&-light {
|
|
166
|
+
background: $color-audio-player-slider-bg-light;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&-wrapper {
|
|
170
|
+
position: relative;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
&-vertical {
|
|
176
|
+
width: 100%;
|
|
177
|
+
}
|
|
178
|
+
&-horizontal {
|
|
179
|
+
height: 100%;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&-vertical {
|
|
184
|
+
width: $width-audio-player-slider-bar;
|
|
185
|
+
height: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&-horizontal {
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: $width-audio-player-slider-bar;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&-progress {
|
|
194
|
+
position: absolute;
|
|
195
|
+
background: $color-audio-player-slider-progress;
|
|
196
|
+
border-radius: $border-radius-audio-player-slider;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&-progress-vertical {
|
|
200
|
+
bottom: 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&-progress-horizontal {
|
|
204
|
+
left: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&-dot {
|
|
208
|
+
position: absolute;
|
|
209
|
+
width: $size-audio-player-slider-dot;
|
|
210
|
+
height: $size-audio-player-slider-dot;
|
|
211
|
+
background: $color-audio-player-slider-dot-bg;
|
|
212
|
+
border: 1px solid var(--semi-color-primary);
|
|
213
|
+
box-shadow: 0px 0px 4px 0px var(--semi-color-shadow);
|
|
214
|
+
border-radius: 50%;
|
|
215
|
+
transition: opacity 0.2s;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
4
|
+
|
|
5
|
+
export interface AudioPlayerAdapter<P = Record<string, any>, S = Record<string, any>> extends DefaultAdapter<P, S> {
|
|
6
|
+
init: () => void;
|
|
7
|
+
resetAudioState: () => void;
|
|
8
|
+
handleStatusClick: () => void;
|
|
9
|
+
handleTimeUpdate: () => void;
|
|
10
|
+
handleTrackChange: (direction: 'next' | 'prev') => void;
|
|
11
|
+
getAudioRef: () => HTMLAudioElement;
|
|
12
|
+
handleTimeChange: (value: number) => void;
|
|
13
|
+
handleSpeedChange: (value: { label: string; value: number }) => void;
|
|
14
|
+
handleSeek: (direction: number) => void;
|
|
15
|
+
handleRefresh: () => void;
|
|
16
|
+
handleVolumeChange: (value: number) => void;
|
|
17
|
+
destroy: () => void
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class AudioPlayerFoundation extends BaseFoundation<AudioPlayerAdapter> {
|
|
21
|
+
constructor(adapter: AudioPlayerAdapter) {
|
|
22
|
+
super({ ...AudioPlayerFoundation, ...adapter });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
initAudioState() {
|
|
26
|
+
const audioElement = this.getAudioRef();
|
|
27
|
+
const props = this.getProps();
|
|
28
|
+
|
|
29
|
+
this.setState({
|
|
30
|
+
totalTime: audioElement?.duration || 0,
|
|
31
|
+
isPlaying: props.autoPlay,
|
|
32
|
+
volume: audioElement?.volume * 100 || 100,
|
|
33
|
+
currentRate: { label: '1.0x', value: audioElement?.playbackRate || 1 },
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
endHandler() {
|
|
38
|
+
const props = this.getProps();
|
|
39
|
+
if (Array.isArray(props.audioUrl)) {
|
|
40
|
+
this.handleTrackChange('next');
|
|
41
|
+
} else {
|
|
42
|
+
this.setState({
|
|
43
|
+
isPlaying: false,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
errorHandler() {
|
|
49
|
+
this.setState({
|
|
50
|
+
error: true,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
init() {
|
|
55
|
+
this._adapter.init();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
destroy() {
|
|
59
|
+
this._adapter.destroy();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
resetAudioState() {
|
|
63
|
+
this._adapter.resetAudioState();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
handleStatusClick() {
|
|
67
|
+
this._adapter.handleStatusClick();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
handleTimeUpdate() {
|
|
71
|
+
this._adapter.handleTimeUpdate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
handleTrackChange(direction: 'next' | 'prev') {
|
|
75
|
+
this._adapter.handleTrackChange(direction);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
getAudioRef() {
|
|
79
|
+
return this._adapter.getAudioRef();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
handleTimeChange(value: number) {
|
|
83
|
+
this._adapter.handleTimeChange(value);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
handleSpeedChange(value: { label: string; value: number }) {
|
|
87
|
+
this._adapter.handleSpeedChange(value);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
handleSeek(direction: number) {
|
|
91
|
+
this._adapter.handleSeek(direction);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
handleRefresh() {
|
|
95
|
+
this._adapter.handleRefresh();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
handleVolumeChange(value: number) {
|
|
99
|
+
this._adapter.handleVolumeChange(value);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export default AudioPlayerFoundation;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
$color-audio-player-background: rgba(var(--semi-grey-9), .8);
|
|
2
|
+
$color-audio-player-control-icon: var(--semi-color-bg-0);
|
|
3
|
+
$color-audio-player-control-icon-play: var(--semi-color-text-0);
|
|
4
|
+
$color-audio-player-font-color: var(--semi-color-bg-0);
|
|
5
|
+
$color-audio-player-font-color-speed: rgba(var(--semi-grey-8), 1);
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
$color-audio-player-background-light: var(--semi-color-bg-0);
|
|
9
|
+
$color-audio-player-control-icon-light: rgba(var(--semi-grey-9), 1);
|
|
10
|
+
$color-audio-player-control-icon-play-light: var(--semi-color-bg-0);
|
|
11
|
+
$color-audio-player-font-color-light: rgba(var(--semi-grey-9), 1);
|
|
12
|
+
|
|
13
|
+
$font-size-audio-player-text: 14px;
|
|
14
|
+
|
|
15
|
+
$gap-audio-player-small: 4px;
|
|
16
|
+
$gap-audio-player-medium: 16px;
|
|
17
|
+
$gap-audio-player-large: 24px;
|
|
18
|
+
|
|
19
|
+
// Size variables
|
|
20
|
+
$width-audio-player-max: 1440px;
|
|
21
|
+
$height-audio-player: 78px;
|
|
22
|
+
$width-audio-player-slider: 323px;
|
|
23
|
+
$width-audio-player-speed: 40px;
|
|
24
|
+
$height-audio-player-speed: 24px;
|
|
25
|
+
$width-audio-player-speed-menu: 65px;
|
|
26
|
+
$width-audio-player-volume: 43px;
|
|
27
|
+
$height-audio-player-volume: 164px;
|
|
28
|
+
$height-audio-player-time: 22px;
|
|
29
|
+
|
|
30
|
+
// Border radius
|
|
31
|
+
$border-radius-audio-player-speed: 3px;
|
|
32
|
+
$border-radius-audio-player-volume: 4px;
|
|
33
|
+
$border-radius-audio-player-slider: 9999px;
|
|
34
|
+
|
|
35
|
+
// Font sizes
|
|
36
|
+
$font-size-audio-player-small: 12px;
|
|
37
|
+
$line-height-audio-player-small: 16px;
|
|
38
|
+
|
|
39
|
+
// Slider dimensions
|
|
40
|
+
$width-audio-player-slider-bar: 4px;
|
|
41
|
+
$size-audio-player-slider-dot: 16px;
|
|
42
|
+
|
|
43
|
+
// Colors
|
|
44
|
+
$color-audio-player-disabled-bg: rgba(var(--semi-grey-0), .35);
|
|
45
|
+
$color-audio-player-slider-bg: rgba(var(--semi-grey-5), 1);
|
|
46
|
+
$color-audio-player-slider-bg-light: rgba(var(--semi-grey-2), 1);
|
|
47
|
+
$color-audio-player-slider-progress: rgba(var(--semi-blue-4), 1);
|
|
48
|
+
$color-audio-player-slider-dot-bg: rgba(var(--semi-white), 1);
|
|
49
|
+
|
|
50
|
+
$color-audio-player-disabled-text: var(--semi-color-grey-7);
|
|
51
|
+
$color-audio-player-text-default: var(--semi-color-default);
|
|
52
|
+
$color-audio-player-light-disabled-bg: var(--semi-color-disabled-text);
|
|
53
|
+
$color-audio-player-light-disabled-text: rgba(var(--semi-white), 1);
|
|
54
|
+
$color-audio-player-light-text: rgba(var(--semi-grey-9), 1);
|
|
55
|
+
$color-audio-player-light-hover-bg: rgba(var(--semi-grey-1), 1);
|
|
@@ -3,9 +3,8 @@ import { BASE_CLASS_PREFIX, VALIDATE_STATUS } from '../base/constants';
|
|
|
3
3
|
|
|
4
4
|
const cssClasses = {
|
|
5
5
|
PREFIX: `${BASE_CLASS_PREFIX}-autocomplete`,
|
|
6
|
-
PREFIX_OPTION: `${BASE_CLASS_PREFIX}-
|
|
7
|
-
PREFIX_GROUP: `${BASE_CLASS_PREFIX}-
|
|
8
|
-
|
|
6
|
+
PREFIX_OPTION: `${BASE_CLASS_PREFIX}-autocomplete-option`,
|
|
7
|
+
PREFIX_GROUP: `${BASE_CLASS_PREFIX}-autocomplete-group`,
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
const strings = {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable prefer-const, max-len */
|
|
2
1
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
3
2
|
import { isString, isNumber, isUndefined, isObject } from 'lodash';
|
|
4
3
|
import warning from '../utils/warning';
|
|
@@ -30,6 +29,7 @@ export interface AutoCompleteAdapter<P = Record<string, any>, S = Record<string,
|
|
|
30
29
|
updateInputValue: (inputValue: string | number) => void;
|
|
31
30
|
toggleListVisible: (isShow: boolean) => void;
|
|
32
31
|
updateOptionList: (optionList: Array<StateOptionItem>) => void;
|
|
32
|
+
updateScrollTop: (index: number) => void;
|
|
33
33
|
updateSelection: (selection: Map<any, any>) => void;
|
|
34
34
|
notifySearch: (inputValue: string) => void;
|
|
35
35
|
notifyChange: (value: string | number) => void;
|
|
@@ -236,7 +236,7 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
|
|
|
236
236
|
|
|
237
237
|
const options = this._generateList(data);
|
|
238
238
|
// Get the option whose value match from options
|
|
239
|
-
let selectedOption: StateOptionItem | Array<StateOptionItem> = options.filter(option => renderSelectedItem(option) === selectedValue);
|
|
239
|
+
let selectedOption: StateOptionItem | Array<StateOptionItem> = options.length ? options.filter(option => renderSelectedItem(option) === selectedValue) : [];
|
|
240
240
|
const canMatchInData = selectedOption.length;
|
|
241
241
|
|
|
242
242
|
const selectedOptionIndex = options.findIndex(option => renderSelectedItem(option) === selectedValue);
|
|
@@ -263,11 +263,13 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
|
|
|
263
263
|
|
|
264
264
|
let { data, defaultActiveFirstOption } = this.getProps();
|
|
265
265
|
|
|
266
|
-
let
|
|
267
|
-
|
|
268
|
-
const options = this._generateList(data);
|
|
266
|
+
let selectedOptionIndex = -1;
|
|
269
267
|
|
|
270
|
-
|
|
268
|
+
if (searchValue) {
|
|
269
|
+
let renderSelectedItem = this._getRenderSelectedItem();
|
|
270
|
+
const options = this._generateList(data);
|
|
271
|
+
selectedOptionIndex = options.findIndex(option => renderSelectedItem(option) === searchValue);
|
|
272
|
+
}
|
|
271
273
|
|
|
272
274
|
if (selectedOptionIndex === -1 && defaultActiveFirstOption) {
|
|
273
275
|
if (focusIndex !== 0) {
|
|
@@ -289,7 +291,9 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
|
|
|
289
291
|
let { renderSelectedItem } = this.getProps();
|
|
290
292
|
|
|
291
293
|
if (typeof renderSelectedItem === 'undefined') {
|
|
292
|
-
renderSelectedItem = (option: any) =>
|
|
294
|
+
renderSelectedItem = (option: any) => {
|
|
295
|
+
return option?.value;
|
|
296
|
+
};
|
|
293
297
|
} else if (renderSelectedItem && typeof renderSelectedItem === 'function') {
|
|
294
298
|
// do nothing
|
|
295
299
|
}
|
|
@@ -384,6 +388,7 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
|
|
|
384
388
|
index = nearestActiveOption;
|
|
385
389
|
}
|
|
386
390
|
this._adapter.updateFocusIndex(index);
|
|
391
|
+
this._adapter.updateScrollTop(index);
|
|
387
392
|
}
|
|
388
393
|
|
|
389
394
|
_handleArrowKeyDown(offset: number): void {
|
|
@@ -425,12 +430,7 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
|
|
|
425
430
|
// only need persist on react adapter
|
|
426
431
|
// https://reactjs.org/docs/legacy-event-pooling.html
|
|
427
432
|
this._persistEvent(e);
|
|
428
|
-
|
|
429
|
-
// internal-issues:1231
|
|
430
|
-
setTimeout(() => {
|
|
431
|
-
this._adapter.notifyBlur(e);
|
|
432
|
-
// this.closeDropdown();
|
|
433
|
-
}, 100);
|
|
433
|
+
this._adapter.notifyBlur(e);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
|
package/autoComplete/option.scss
CHANGED
|
@@ -22,10 +22,8 @@ export default class OptionFoundation extends BaseFoundation<OptionDefaultAdapte
|
|
|
22
22
|
super({ ...adapter });
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
26
25
|
init() {}
|
|
27
26
|
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
29
27
|
destroy() {}
|
|
30
28
|
|
|
31
29
|
onOptionClick(option: BasicOptionProps) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$animation_duration-additionalBorder: 800ms; // 边框动画持续时间
|
|
2
|
+
$animation_duration-content: 1000ms; // 内容动画持续时间
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
$animation_opacity-additionalBorder-start: 1; // 边框动画起始透明度
|
|
6
|
+
$animation_opacity-additionalBorder-end: 0; // 边框动画结束透明度
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
$animation_width-additionalBorder-end:0; // 边框动画结束宽度
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
$animation_scale-additionalBorder-start: 1; // 边框动画起始缩放比例
|
|
13
|
+
$animation_scale-additionalBorder-end: 1.15; // 边框动画结束缩放比例
|
|
14
|
+
|
|
15
|
+
$animation_scale-content-start: 1; // 边框动画起始缩放比例
|
|
16
|
+
$animation_scale-content-middle: 0.9; // 边框动画中间态缩放比例
|
|
17
|
+
$animation_scale-content-end: 1; // 边框动画结束缩放比例
|
|
18
|
+
|
|
19
|
+
|