@douyinfe/semi-foundation 2.1.0-alpha.0 → 2.1.0-beta.2
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/foundation.ts +1 -1
- package/autoComplete/autoComplete.scss +1 -1
- package/autoComplete/foundation.ts +1 -1
- package/babel.config.js +33 -0
- package/base/foundation.ts +1 -1
- package/cascader/foundation.ts +1 -1
- package/cascader/util.ts +1 -1
- package/datePicker/_utils/getFullDateOffset.ts +1 -1
- package/datePicker/foundation.ts +2 -2
- package/datePicker/monthsGridFoundation.ts +1 -1
- package/form/foundation.ts +1 -1
- package/form/interface.ts +1 -1
- package/form/utils.ts +3 -3
- package/gulpfile.js +9 -27
- package/icons/icons.scss +39 -0
- package/icons/variables.scss +7 -0
- package/input/foundation.ts +1 -1
- package/input/textareaFoundation.ts +1 -1
- package/input/util/getSizingData.ts +1 -1
- package/inputNumber/foundation.ts +1 -1
- package/lib/es/anchor/foundation.js +5 -8
- package/lib/es/autoComplete/autoComplete.css +79 -5
- package/lib/es/autoComplete/autoComplete.scss +1 -1
- package/lib/es/autoComplete/foundation.js +5 -8
- package/lib/es/base/foundation.js +12 -12
- package/lib/es/cascader/foundation.js +17 -25
- package/lib/es/cascader/util.js +3 -5
- package/lib/es/datePicker/_utils/getFullDateOffset.js +2 -2
- package/lib/es/datePicker/foundation.js +10 -15
- package/lib/es/datePicker/monthsGridFoundation.js +6 -8
- package/lib/es/form/foundation.js +6 -9
- package/lib/es/form/interface.d.ts +1 -1
- package/lib/es/form/utils.d.ts +2 -2
- package/lib/es/form/utils.js +2 -2
- package/lib/es/icons/icons.css +40 -0
- package/lib/es/icons/icons.scss +39 -0
- package/lib/es/icons/variables.scss +7 -0
- package/lib/es/input/foundation.js +10 -15
- package/lib/es/input/textareaFoundation.js +14 -17
- package/lib/es/input/util/getSizingData.js +3 -3
- package/lib/es/inputNumber/foundation.js +11 -13
- package/lib/es/navigation/foundation.js +2 -2
- package/lib/es/notification/notificationFoundation.js +2 -2
- package/lib/es/overflowList/foundation.js +3 -6
- package/lib/es/scrollList/itemFoundation.js +7 -17
- package/lib/es/select/foundation.js +5 -7
- package/lib/es/select/option.css +1 -1
- package/lib/es/select/option.scss +1 -1
- package/lib/es/select/select.css +74 -0
- package/lib/es/select/select.scss +2 -1
- package/lib/es/sideSheet/sideSheetFoundation.js +7 -8
- package/lib/es/table/bodyFoundation.js +8 -14
- package/lib/es/table/foundation.js +67 -87
- package/lib/es/table/utils.d.ts +1 -0
- package/lib/es/table/utils.js +57 -63
- package/lib/es/tabs/foundation.d.ts +1 -0
- package/lib/es/tabs/foundation.js +14 -4
- package/lib/es/tagInput/foundation.js +7 -10
- package/lib/es/tagInput/utils/getSplitedArray.js +4 -6
- package/lib/es/timePicker/foundation.js +4 -6
- package/lib/es/timePicker/utils/index.js +5 -5
- package/lib/es/toast/toastFoundation.js +2 -2
- package/lib/es/tooltip/foundation.js +16 -15
- package/lib/es/transfer/foundation.js +2 -2
- package/lib/es/transfer/transferUtlls.js +4 -4
- package/lib/es/tree/foundation.js +14 -14
- package/lib/es/tree/treeUtil.js +18 -21
- package/lib/es/treeSelect/foundation.js +9 -16
- package/lib/es/utils/classnames.js +5 -9
- package/lib/es/utils/getHighlight.js +3 -2
- package/lib/es/utils/getMotionObjFromProps.js +5 -6
- package/lib/es/utils/object.js +21 -31
- package/lib/es/utils/set.js +2 -2
- package/navigation/foundation.ts +1 -1
- package/notification/notificationFoundation.ts +1 -1
- package/overflowList/foundation.ts +1 -1
- package/package.json +4 -6
- package/scrollList/itemFoundation.ts +1 -1
- package/select/foundation.ts +1 -1
- package/select/option.scss +1 -1
- package/select/select.scss +2 -1
- package/sideSheet/sideSheetFoundation.ts +1 -1
- package/table/bodyFoundation.ts +1 -1
- package/table/foundation.ts +1 -1
- package/table/utils.ts +16 -2
- package/tabs/foundation.ts +10 -3
- package/tagInput/foundation.ts +1 -1
- package/tagInput/utils/getSplitedArray.ts +1 -1
- package/timePicker/foundation.ts +1 -1
- package/timePicker/utils/index.ts +1 -1
- package/toast/toastFoundation.ts +1 -1
- package/tooltip/foundation.ts +1 -1
- package/transfer/foundation.ts +1 -1
- package/transfer/transferUtlls.ts +1 -1
- package/tree/foundation.ts +1 -1
- package/tree/treeUtil.ts +1 -1
- package/treeSelect/foundation.ts +1 -1
- package/utils/classnames.ts +1 -1
- package/utils/getHighlight.ts +1 -1
- package/utils/getMotionObjFromProps.ts +1 -1
- package/utils/object.ts +1 -1
- package/utils/set.ts +1 -1
- package/getBabelConfig.js +0 -36
- package/lib/cjs/_portal/portal.css +0 -15
- package/lib/cjs/_portal/portal.scss +0 -17
- package/lib/cjs/anchor/anchor.css +0 -118
- package/lib/cjs/anchor/anchor.scss +0 -120
- package/lib/cjs/anchor/constants.d.ts +0 -11
- package/lib/cjs/anchor/constants.js +0 -24
- package/lib/cjs/anchor/foundation.d.ts +0 -41
- package/lib/cjs/anchor/foundation.js +0 -270
- package/lib/cjs/anchor/linkFoundation.d.ts +0 -14
- package/lib/cjs/anchor/linkFoundation.js +0 -50
- package/lib/cjs/anchor/rtl.scss +0 -18
- package/lib/cjs/anchor/variables.scss +0 -27
- package/lib/cjs/autoComplete/autoComplete.css +0 -29
- package/lib/cjs/autoComplete/autoComplete.scss +0 -37
- package/lib/cjs/autoComplete/constants.d.ts +0 -10
- package/lib/cjs/autoComplete/constants.js +0 -25
- package/lib/cjs/autoComplete/foundation.d.ts +0 -62
- package/lib/cjs/autoComplete/foundation.js +0 -465
- package/lib/cjs/autoComplete/rtl.scss +0 -8
- package/lib/cjs/autoComplete/variables.scss +0 -3
- package/lib/cjs/avatar/avatar.css +0 -426
- package/lib/cjs/avatar/avatar.scss +0 -205
- package/lib/cjs/avatar/constants.d.ts +0 -10
- package/lib/cjs/avatar/constants.js +0 -24
- package/lib/cjs/avatar/foundation.d.ts +0 -14
- package/lib/cjs/avatar/foundation.js +0 -49
- package/lib/cjs/avatar/mixin.css +0 -3
- package/lib/cjs/avatar/mixin.scss +0 -4
- package/lib/cjs/avatar/rtl.scss +0 -69
- package/lib/cjs/avatar/variables.scss +0 -45
- package/lib/cjs/backtop/backtop.css +0 -20
- package/lib/cjs/backtop/backtop.scss +0 -17
- package/lib/cjs/backtop/constants.d.ts +0 -5
- package/lib/cjs/backtop/constants.js +0 -18
- package/lib/cjs/backtop/foundation.d.ts +0 -21
- package/lib/cjs/backtop/foundation.js +0 -114
- package/lib/cjs/backtop/rtl.scss +0 -10
- package/lib/cjs/backtop/variables.scss +0 -3
- package/lib/cjs/badge/badge.css +0 -146
- package/lib/cjs/badge/badge.scss +0 -168
- package/lib/cjs/badge/constants.d.ts +0 -10
- package/lib/cjs/badge/constants.js +0 -24
- package/lib/cjs/badge/rtl.scss +0 -8
- package/lib/cjs/badge/variables.scss +0 -43
- package/lib/cjs/banner/banner.css +0 -92
- package/lib/cjs/banner/banner.scss +0 -109
- package/lib/cjs/banner/constants.d.ts +0 -7
- package/lib/cjs/banner/constants.js +0 -20
- package/lib/cjs/banner/foundation.d.ts +0 -9
- package/lib/cjs/banner/foundation.js +0 -30
- package/lib/cjs/banner/rtl.scss +0 -20
- package/lib/cjs/banner/variables.scss +0 -27
- package/lib/cjs/base/base.css +0 -24
- package/lib/cjs/base/base.scss +0 -33
- package/lib/cjs/base/constants.d.ts +0 -3
- package/lib/cjs/base/constants.js +0 -22
- package/lib/cjs/base/env.d.ts +0 -1
- package/lib/cjs/base/env.js +0 -11
- package/lib/cjs/base/foundation.d.ts +0 -59
- package/lib/cjs/base/foundation.js +0 -144
- package/lib/cjs/base/index.d.ts +0 -5
- package/lib/cjs/base/index.js +0 -18
- package/lib/cjs/breadcrumb/breadcrumb.css +0 -109
- package/lib/cjs/breadcrumb/breadcrumb.scss +0 -120
- package/lib/cjs/breadcrumb/constants.d.ts +0 -7
- package/lib/cjs/breadcrumb/constants.js +0 -20
- package/lib/cjs/breadcrumb/foundation.d.ts +0 -24
- package/lib/cjs/breadcrumb/foundation.js +0 -52
- package/lib/cjs/breadcrumb/itemFoundation.d.ts +0 -22
- package/lib/cjs/breadcrumb/itemFoundation.js +0 -31
- package/lib/cjs/breadcrumb/rtl.scss +0 -33
- package/lib/cjs/breadcrumb/variables.scss +0 -19
- package/lib/cjs/button/button.css +0 -309
- package/lib/cjs/button/button.scss +0 -219
- package/lib/cjs/button/constants.d.ts +0 -6
- package/lib/cjs/button/constants.js +0 -28
- package/lib/cjs/button/iconButton.css +0 -160
- package/lib/cjs/button/iconButton.scss +0 -70
- package/lib/cjs/button/rtl.scss +0 -128
- package/lib/cjs/button/splitButtonGroup.scss +0 -32
- package/lib/cjs/button/variables.scss +0 -128
- package/lib/cjs/calendar/calendar.css +0 -592
- package/lib/cjs/calendar/calendar.scss +0 -520
- package/lib/cjs/calendar/constants.d.ts +0 -7
- package/lib/cjs/calendar/constants.js +0 -20
- package/lib/cjs/calendar/eventUtil.d.ts +0 -93
- package/lib/cjs/calendar/eventUtil.js +0 -431
- package/lib/cjs/calendar/foundation.d.ts +0 -98
- package/lib/cjs/calendar/foundation.js +0 -483
- package/lib/cjs/calendar/rtl.scss +0 -134
- package/lib/cjs/calendar/variables.scss +0 -105
- package/lib/cjs/card/card.css +0 -148
- package/lib/cjs/card/card.scss +0 -146
- package/lib/cjs/card/constants.d.ts +0 -8
- package/lib/cjs/card/constants.js +0 -21
- package/lib/cjs/card/rtl.scss +0 -43
- package/lib/cjs/card/variables.scss +0 -30
- package/lib/cjs/cascader/cascader.css +0 -438
- package/lib/cjs/cascader/cascader.scss +0 -436
- package/lib/cjs/cascader/constants.d.ts +0 -14
- package/lib/cjs/cascader/constants.js +0 -28
- package/lib/cjs/cascader/foundation.d.ts +0 -221
- package/lib/cjs/cascader/foundation.js +0 -1061
- package/lib/cjs/cascader/rtl.scss +0 -114
- package/lib/cjs/cascader/util.d.ts +0 -4
- package/lib/cjs/cascader/util.js +0 -114
- package/lib/cjs/cascader/variables.scss +0 -117
- package/lib/cjs/checkbox/checkbox.css +0 -311
- package/lib/cjs/checkbox/checkbox.scss +0 -363
- package/lib/cjs/checkbox/checkboxFoundation.d.ts +0 -49
- package/lib/cjs/checkbox/checkboxFoundation.js +0 -105
- package/lib/cjs/checkbox/checkboxGroupFoundation.d.ts +0 -17
- package/lib/cjs/checkbox/checkboxGroupFoundation.js +0 -103
- package/lib/cjs/checkbox/constants.d.ts +0 -27
- package/lib/cjs/checkbox/constants.js +0 -42
- package/lib/cjs/checkbox/mixin.css +0 -3
- package/lib/cjs/checkbox/mixin.scss +0 -0
- package/lib/cjs/checkbox/rtl.scss +0 -54
- package/lib/cjs/checkbox/variables.scss +0 -62
- package/lib/cjs/collapse/collapse.css +0 -78
- package/lib/cjs/collapse/collapse.scss +0 -77
- package/lib/cjs/collapse/constants.d.ts +0 -7
- package/lib/cjs/collapse/constants.js +0 -20
- package/lib/cjs/collapse/foundation.d.ts +0 -28
- package/lib/cjs/collapse/foundation.js +0 -77
- package/lib/cjs/collapse/rtl.scss +0 -26
- package/lib/cjs/collapse/variables.scss +0 -22
- package/lib/cjs/collapsible/constants.d.ts +0 -4
- package/lib/cjs/collapsible/constants.js +0 -16
- package/lib/cjs/datePicker/_utils/formatter.d.ts +0 -14
- package/lib/cjs/datePicker/_utils/formatter.js +0 -72
- package/lib/cjs/datePicker/_utils/getDayOfWeek.d.ts +0 -11
- package/lib/cjs/datePicker/_utils/getDayOfWeek.js +0 -31
- package/lib/cjs/datePicker/_utils/getDefaultFormatToken.d.ts +0 -9
- package/lib/cjs/datePicker/_utils/getDefaultFormatToken.js +0 -29
- package/lib/cjs/datePicker/_utils/getFullDateOffset.d.ts +0 -7
- package/lib/cjs/datePicker/_utils/getFullDateOffset.js +0 -35
- package/lib/cjs/datePicker/_utils/getMonthTable.d.ts +0 -12
- package/lib/cjs/datePicker/_utils/getMonthTable.js +0 -97
- package/lib/cjs/datePicker/_utils/getMonthsInYear.d.ts +0 -2
- package/lib/cjs/datePicker/_utils/getMonthsInYear.js +0 -26
- package/lib/cjs/datePicker/_utils/getYears.d.ts +0 -2
- package/lib/cjs/datePicker/_utils/getYears.js +0 -24
- package/lib/cjs/datePicker/_utils/index.d.ts +0 -13
- package/lib/cjs/datePicker/_utils/index.js +0 -117
- package/lib/cjs/datePicker/_utils/isAfter.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isAfter.js +0 -21
- package/lib/cjs/datePicker/_utils/isBefore.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isBefore.js +0 -21
- package/lib/cjs/datePicker/_utils/isBetween.d.ts +0 -11
- package/lib/cjs/datePicker/_utils/isBetween.js +0 -36
- package/lib/cjs/datePicker/_utils/isDate.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isDate.js +0 -13
- package/lib/cjs/datePicker/_utils/isSameDay.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isSameDay.js +0 -21
- package/lib/cjs/datePicker/_utils/isTimestamp.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isTimestamp.js +0 -19
- package/lib/cjs/datePicker/_utils/isUnixTimestamp.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isUnixTimestamp.js +0 -19
- package/lib/cjs/datePicker/_utils/isValidDate.d.ts +0 -1
- package/lib/cjs/datePicker/_utils/isValidDate.js +0 -13
- package/lib/cjs/datePicker/_utils/isWithinInterval.d.ts +0 -4
- package/lib/cjs/datePicker/_utils/isWithinInterval.js +0 -29
- package/lib/cjs/datePicker/_utils/parser.d.ts +0 -4
- package/lib/cjs/datePicker/_utils/parser.js +0 -46
- package/lib/cjs/datePicker/constants.d.ts +0 -50
- package/lib/cjs/datePicker/constants.js +0 -75
- package/lib/cjs/datePicker/datePicker.css +0 -810
- package/lib/cjs/datePicker/datePicker.scss +0 -1034
- package/lib/cjs/datePicker/foundation.d.ts +0 -409
- package/lib/cjs/datePicker/foundation.js +0 -1167
- package/lib/cjs/datePicker/inputFoundation.d.ts +0 -59
- package/lib/cjs/datePicker/inputFoundation.js +0 -125
- package/lib/cjs/datePicker/monthFoundation.d.ts +0 -73
- package/lib/cjs/datePicker/monthFoundation.js +0 -96
- package/lib/cjs/datePicker/monthsGridFoundation.d.ts +0 -218
- package/lib/cjs/datePicker/monthsGridFoundation.js +0 -954
- package/lib/cjs/datePicker/rtl.scss +0 -171
- package/lib/cjs/datePicker/variables.scss +0 -169
- package/lib/cjs/datePicker/yearAndMonthFoundation.d.ts +0 -56
- package/lib/cjs/datePicker/yearAndMonthFoundation.js +0 -52
- package/lib/cjs/descriptions/constants.d.ts +0 -9
- package/lib/cjs/descriptions/constants.js +0 -23
- package/lib/cjs/descriptions/descriptions.css +0 -191
- package/lib/cjs/descriptions/descriptions.scss +0 -150
- package/lib/cjs/descriptions/rtl.scss +0 -91
- package/lib/cjs/descriptions/variables.scss +0 -15
- package/lib/cjs/dropdown/constants.d.ts +0 -16
- package/lib/cjs/dropdown/constants.js +0 -32
- package/lib/cjs/dropdown/dropdown.css +0 -123
- package/lib/cjs/dropdown/dropdown.scss +0 -106
- package/lib/cjs/dropdown/foundation.d.ts +0 -8
- package/lib/cjs/dropdown/foundation.js +0 -24
- package/lib/cjs/dropdown/rtl.scss +0 -27
- package/lib/cjs/dropdown/variables.scss +0 -38
- package/lib/cjs/empty/constants.d.ts +0 -7
- package/lib/cjs/empty/constants.js +0 -20
- package/lib/cjs/empty/empty.css +0 -50
- package/lib/cjs/empty/empty.scss +0 -54
- package/lib/cjs/empty/rtl.scss +0 -15
- package/lib/cjs/empty/variables.scss +0 -8
- package/lib/cjs/form/constants.d.ts +0 -11
- package/lib/cjs/form/constants.js +0 -25
- package/lib/cjs/form/form.css +0 -250
- package/lib/cjs/form/form.scss +0 -273
- package/lib/cjs/form/foundation.d.ts +0 -86
- package/lib/cjs/form/foundation.js +0 -845
- package/lib/cjs/form/interface.d.ts +0 -121
- package/lib/cjs/form/interface.js +0 -7
- package/lib/cjs/form/rtl.scss +0 -89
- package/lib/cjs/form/utils.d.ts +0 -52
- package/lib/cjs/form/utils.js +0 -242
- package/lib/cjs/form/variables.scss +0 -44
- package/lib/cjs/grid/constants.d.ts +0 -4
- package/lib/cjs/grid/constants.js +0 -16
- package/lib/cjs/grid/grid.css +0 -6295
- package/lib/cjs/grid/grid.scss +0 -121
- package/lib/cjs/grid/mixin.css +0 -3
- package/lib/cjs/grid/mixin.scss +0 -115
- package/lib/cjs/grid/rtl.scss +0 -9
- package/lib/cjs/grid/variables.scss +0 -35
- package/lib/cjs/icons/constants.d.ts +0 -9
- package/lib/cjs/icons/constants.js +0 -24
- package/lib/cjs/input/constants.d.ts +0 -12
- package/lib/cjs/input/constants.js +0 -26
- package/lib/cjs/input/foundation.d.ts +0 -79
- package/lib/cjs/input/foundation.js +0 -379
- package/lib/cjs/input/input.css +0 -567
- package/lib/cjs/input/input.scss +0 -628
- package/lib/cjs/input/rtl.scss +0 -100
- package/lib/cjs/input/textarea.css +0 -222
- package/lib/cjs/input/textarea.scss +0 -188
- package/lib/cjs/input/textareaFoundation.d.ts +0 -63
- package/lib/cjs/input/textareaFoundation.js +0 -299
- package/lib/cjs/input/util/calculateNodeHeight.d.ts +0 -1
- package/lib/cjs/input/util/calculateNodeHeight.js +0 -101
- package/lib/cjs/input/util/getSizingData.d.ts +0 -6
- package/lib/cjs/input/util/getSizingData.js +0 -47
- package/lib/cjs/input/variables.scss +0 -109
- package/lib/cjs/inputNumber/constants.d.ts +0 -17
- package/lib/cjs/inputNumber/constants.js +0 -27
- package/lib/cjs/inputNumber/foundation.d.ts +0 -107
- package/lib/cjs/inputNumber/foundation.js +0 -692
- package/lib/cjs/inputNumber/inputNumber.css +0 -99
- package/lib/cjs/inputNumber/inputNumber.scss +0 -108
- package/lib/cjs/inputNumber/rtl.scss +0 -30
- package/lib/cjs/inputNumber/variables.scss +0 -23
- package/lib/cjs/keyframes/rotate.css +0 -11
- package/lib/cjs/keyframes/rotate.scss +0 -8
- package/lib/cjs/layout/constants.d.ts +0 -7
- package/lib/cjs/layout/constants.js +0 -20
- package/lib/cjs/layout/layout.css +0 -40
- package/lib/cjs/layout/layout.scss +0 -49
- package/lib/cjs/layout/rtl.scss +0 -8
- package/lib/cjs/list/constants.d.ts +0 -9
- package/lib/cjs/list/constants.js +0 -22
- package/lib/cjs/list/list.css +0 -121
- package/lib/cjs/list/list.scss +0 -125
- package/lib/cjs/list/rtl.scss +0 -39
- package/lib/cjs/list/variables.scss +0 -17
- package/lib/cjs/modal/constants.d.ts +0 -10
- package/lib/cjs/modal/constants.js +0 -23
- package/lib/cjs/modal/modal.css +0 -233
- package/lib/cjs/modal/modal.scss +0 -267
- package/lib/cjs/modal/modalContentFoundation.d.ts +0 -33
- package/lib/cjs/modal/modalContentFoundation.js +0 -76
- package/lib/cjs/modal/modalFoundation.d.ts +0 -68
- package/lib/cjs/modal/modalFoundation.js +0 -52
- package/lib/cjs/modal/rtl.scss +0 -48
- package/lib/cjs/modal/variables.scss +0 -69
- package/lib/cjs/navigation/NavItem.d.ts +0 -10
- package/lib/cjs/navigation/NavItem.js +0 -74
- package/lib/cjs/navigation/constants.d.ts +0 -21
- package/lib/cjs/navigation/constants.js +0 -38
- package/lib/cjs/navigation/foundation.d.ts +0 -86
- package/lib/cjs/navigation/foundation.js +0 -313
- package/lib/cjs/navigation/itemFoundation.d.ts +0 -45
- package/lib/cjs/navigation/itemFoundation.js +0 -84
- package/lib/cjs/navigation/mixin.css +0 -3
- package/lib/cjs/navigation/mixin.scss +0 -98
- package/lib/cjs/navigation/navigation.css +0 -758
- package/lib/cjs/navigation/navigation.scss +0 -683
- package/lib/cjs/navigation/rtl.scss +0 -132
- package/lib/cjs/navigation/subNavFoundation.d.ts +0 -39
- package/lib/cjs/navigation/subNavFoundation.js +0 -147
- package/lib/cjs/navigation/variables.scss +0 -132
- package/lib/cjs/notification/constants.d.ts +0 -14
- package/lib/cjs/notification/constants.js +0 -29
- package/lib/cjs/notification/notification.css +0 -154
- package/lib/cjs/notification/notification.scss +0 -168
- package/lib/cjs/notification/notificationFoundation.d.ts +0 -48
- package/lib/cjs/notification/notificationFoundation.js +0 -74
- package/lib/cjs/notification/notificationListFoundation.d.ts +0 -28
- package/lib/cjs/notification/notificationListFoundation.js +0 -61
- package/lib/cjs/notification/rtl.scss +0 -23
- package/lib/cjs/notification/variables.scss +0 -43
- package/lib/cjs/overflowList/constants.d.ts +0 -23
- package/lib/cjs/overflowList/constants.js +0 -44
- package/lib/cjs/overflowList/foundation.d.ts +0 -14
- package/lib/cjs/overflowList/foundation.js +0 -143
- package/lib/cjs/overflowList/overflowList.css +0 -23
- package/lib/cjs/overflowList/overflowList.scss +0 -20
- package/lib/cjs/overflowList/rtl.scss +0 -8
- package/lib/cjs/pagination/constants.d.ts +0 -12
- package/lib/cjs/pagination/constants.js +0 -26
- package/lib/cjs/pagination/foundation.d.ts +0 -52
- package/lib/cjs/pagination/foundation.js +0 -385
- package/lib/cjs/pagination/pagination.css +0 -155
- package/lib/cjs/pagination/pagination.scss +0 -158
- package/lib/cjs/pagination/rtl.scss +0 -18
- package/lib/cjs/pagination/variables.scss +0 -51
- package/lib/cjs/popconfirm/constants.d.ts +0 -13
- package/lib/cjs/popconfirm/constants.js +0 -27
- package/lib/cjs/popconfirm/popconfirm.css +0 -117
- package/lib/cjs/popconfirm/popconfirm.scss +0 -105
- package/lib/cjs/popconfirm/popconfirmFoundation.d.ts +0 -14
- package/lib/cjs/popconfirm/popconfirmFoundation.js +0 -43
- package/lib/cjs/popconfirm/rtl.scss +0 -60
- package/lib/cjs/popconfirm/variables.scss +0 -36
- package/lib/cjs/popover/constants.d.ts +0 -25
- package/lib/cjs/popover/constants.js +0 -45
- package/lib/cjs/popover/popover.css +0 -160
- package/lib/cjs/popover/popover.scss +0 -54
- package/lib/cjs/popover/rtl.scss +0 -7
- package/lib/cjs/popover/variables.scss +0 -28
- package/lib/cjs/progress/constants.d.ts +0 -14
- package/lib/cjs/progress/constants.js +0 -28
- package/lib/cjs/progress/progress.css +0 -106
- package/lib/cjs/progress/progress.scss +0 -105
- package/lib/cjs/progress/rtl.scss +0 -29
- package/lib/cjs/progress/variables.scss +0 -25
- package/lib/cjs/radio/constants.d.ts +0 -29
- package/lib/cjs/radio/constants.js +0 -44
- package/lib/cjs/radio/mixin.css +0 -3
- package/lib/cjs/radio/mixin.scss +0 -0
- package/lib/cjs/radio/radio.css +0 -346
- package/lib/cjs/radio/radio.scss +0 -379
- package/lib/cjs/radio/radioFoundation.d.ts +0 -7
- package/lib/cjs/radio/radioFoundation.js +0 -22
- package/lib/cjs/radio/radioGroupFoundation.d.ts +0 -16
- package/lib/cjs/radio/radioGroupFoundation.js +0 -91
- package/lib/cjs/radio/radioInnerFoundation.d.ts +0 -22
- package/lib/cjs/radio/radioInnerFoundation.js +0 -74
- package/lib/cjs/radio/rtl.scss +0 -78
- package/lib/cjs/radio/variables.scss +0 -91
- package/lib/cjs/rating/constants.d.ts +0 -7
- package/lib/cjs/rating/constants.js +0 -20
- package/lib/cjs/rating/foundation.d.ts +0 -28
- package/lib/cjs/rating/foundation.js +0 -202
- package/lib/cjs/rating/rating.css +0 -81
- package/lib/cjs/rating/rating.scss +0 -87
- package/lib/cjs/rating/rtl.scss +0 -21
- package/lib/cjs/rating/variables.scss +0 -14
- package/lib/cjs/scrollList/constants.d.ts +0 -12
- package/lib/cjs/scrollList/constants.js +0 -26
- package/lib/cjs/scrollList/foundation.d.ts +0 -3
- package/lib/cjs/scrollList/foundation.js +0 -17
- package/lib/cjs/scrollList/itemFoundation.d.ts +0 -74
- package/lib/cjs/scrollList/itemFoundation.js +0 -320
- package/lib/cjs/scrollList/rtl.scss +0 -47
- package/lib/cjs/scrollList/scrollList.css +0 -181
- package/lib/cjs/scrollList/scrollList.scss +0 -182
- package/lib/cjs/scrollList/scrollTo.d.ts +0 -3
- package/lib/cjs/scrollList/scrollTo.js +0 -35
- package/lib/cjs/scrollList/variables.scss +0 -48
- package/lib/cjs/select/constants.d.ts +0 -16
- package/lib/cjs/select/constants.js +0 -33
- package/lib/cjs/select/foundation.d.ts +0 -106
- package/lib/cjs/select/foundation.js +0 -1213
- package/lib/cjs/select/mixin.css +0 -3
- package/lib/cjs/select/mixin.scss +0 -6
- package/lib/cjs/select/option.css +0 -76
- package/lib/cjs/select/option.scss +0 -95
- package/lib/cjs/select/optionFoundation.d.ts +0 -21
- package/lib/cjs/select/optionFoundation.js +0 -42
- package/lib/cjs/select/rtl.scss +0 -93
- package/lib/cjs/select/select.css +0 -391
- package/lib/cjs/select/select.scss +0 -421
- package/lib/cjs/select/variables.scss +0 -100
- package/lib/cjs/sideSheet/constants.d.ts +0 -15
- package/lib/cjs/sideSheet/constants.js +0 -28
- package/lib/cjs/sideSheet/rtl.scss +0 -17
- package/lib/cjs/sideSheet/sideSheet.css +0 -143
- package/lib/cjs/sideSheet/sideSheet.scss +0 -171
- package/lib/cjs/sideSheet/sideSheetFoundation.d.ts +0 -55
- package/lib/cjs/sideSheet/sideSheetFoundation.js +0 -126
- package/lib/cjs/sideSheet/variables.scss +0 -16
- package/lib/cjs/skeleton/constants.d.ts +0 -5
- package/lib/cjs/skeleton/constants.js +0 -18
- package/lib/cjs/skeleton/rtl.scss +0 -8
- package/lib/cjs/skeleton/skeleton.css +0 -87
- package/lib/cjs/skeleton/skeleton.scss +0 -115
- package/lib/cjs/skeleton/variables.scss +0 -20
- package/lib/cjs/slider/constants.d.ts +0 -15
- package/lib/cjs/slider/constants.js +0 -28
- package/lib/cjs/slider/foundation.d.ts +0 -203
- package/lib/cjs/slider/foundation.js +0 -734
- package/lib/cjs/slider/slider.css +0 -192
- package/lib/cjs/slider/slider.scss +0 -234
- package/lib/cjs/slider/variables.scss +0 -60
- package/lib/cjs/space/constants.d.ts +0 -10
- package/lib/cjs/space/constants.js +0 -23
- package/lib/cjs/space/rtl.scss +0 -8
- package/lib/cjs/space/space.css +0 -50
- package/lib/cjs/space/space.scss +0 -58
- package/lib/cjs/space/variables.scss +0 -3
- package/lib/cjs/spin/constants.d.ts +0 -8
- package/lib/cjs/spin/constants.js +0 -23
- package/lib/cjs/spin/foundation.d.ts +0 -12
- package/lib/cjs/spin/foundation.js +0 -62
- package/lib/cjs/spin/mixin.css +0 -3
- package/lib/cjs/spin/mixin.scss +0 -5
- package/lib/cjs/spin/rtl.scss +0 -12
- package/lib/cjs/spin/spin.css +0 -104
- package/lib/cjs/spin/spin.scss +0 -104
- package/lib/cjs/spin/variables.scss +0 -18
- package/lib/cjs/steps/bacisSteps.scss +0 -344
- package/lib/cjs/steps/constants.d.ts +0 -5
- package/lib/cjs/steps/constants.js +0 -17
- package/lib/cjs/steps/fillSteps.scss +0 -193
- package/lib/cjs/steps/mixin.css +0 -3
- package/lib/cjs/steps/mixin.scss +0 -0
- package/lib/cjs/steps/navSteps.scss +0 -63
- package/lib/cjs/steps/rtl.scss +0 -46
- package/lib/cjs/steps/steps.css +0 -444
- package/lib/cjs/steps/steps.scss +0 -9
- package/lib/cjs/steps/variables.scss +0 -104
- package/lib/cjs/switch/constants.d.ts +0 -18
- package/lib/cjs/switch/constants.js +0 -31
- package/lib/cjs/switch/foundation.d.ts +0 -14
- package/lib/cjs/switch/foundation.js +0 -58
- package/lib/cjs/switch/rtl.scss +0 -103
- package/lib/cjs/switch/switch.css +0 -288
- package/lib/cjs/switch/switch.scss +0 -282
- package/lib/cjs/switch/variables.scss +0 -70
- package/lib/cjs/table/bodyFoundation.d.ts +0 -38
- package/lib/cjs/table/bodyFoundation.js +0 -164
- package/lib/cjs/table/cellFoundation.d.ts +0 -7
- package/lib/cjs/table/cellFoundation.js +0 -22
- package/lib/cjs/table/constants.d.ts +0 -77
- package/lib/cjs/table/constants.js +0 -110
- package/lib/cjs/table/foundation.d.ts +0 -351
- package/lib/cjs/table/foundation.js +0 -1167
- package/lib/cjs/table/mixin.css +0 -3
- package/lib/cjs/table/mixin.scss +0 -10
- package/lib/cjs/table/operationPanel.scss +0 -46
- package/lib/cjs/table/rtl.scss +0 -158
- package/lib/cjs/table/table.css +0 -559
- package/lib/cjs/table/table.scss +0 -552
- package/lib/cjs/table/tableRowFoundation.d.ts +0 -14
- package/lib/cjs/table/tableRowFoundation.js +0 -44
- package/lib/cjs/table/tableSelectionCellFoundation.d.ts +0 -13
- package/lib/cjs/table/tableSelectionCellFoundation.js +0 -24
- package/lib/cjs/table/utils.d.ts +0 -94
- package/lib/cjs/table/utils.js +0 -596
- package/lib/cjs/table/variables.scss +0 -84
- package/lib/cjs/tabs/constants.d.ts +0 -28
- package/lib/cjs/tabs/constants.js +0 -42
- package/lib/cjs/tabs/foundation.d.ts +0 -19
- package/lib/cjs/tabs/foundation.js +0 -89
- package/lib/cjs/tabs/rtl.scss +0 -123
- package/lib/cjs/tabs/tabs.css +0 -366
- package/lib/cjs/tabs/tabs.scss +0 -391
- package/lib/cjs/tabs/variables.scss +0 -115
- package/lib/cjs/tag/constants.d.ts +0 -10
- package/lib/cjs/tag/constants.js +0 -24
- package/lib/cjs/tag/mixin.css +0 -3
- package/lib/cjs/tag/mixin.scss +0 -21
- package/lib/cjs/tag/rtl.scss +0 -61
- package/lib/cjs/tag/tag.css +0 -444
- package/lib/cjs/tag/tag.scss +0 -181
- package/lib/cjs/tag/variables.scss +0 -48
- package/lib/cjs/tagInput/constants.d.ts +0 -8
- package/lib/cjs/tagInput/constants.js +0 -21
- package/lib/cjs/tagInput/foundation.d.ts +0 -52
- package/lib/cjs/tagInput/foundation.js +0 -265
- package/lib/cjs/tagInput/rtl.scss +0 -23
- package/lib/cjs/tagInput/tagInput.css +0 -171
- package/lib/cjs/tagInput/tagInput.scss +0 -192
- package/lib/cjs/tagInput/utils/getSplitedArray.d.ts +0 -7
- package/lib/cjs/tagInput/utils/getSplitedArray.js +0 -47
- package/lib/cjs/tagInput/variables.scss +0 -39
- package/lib/cjs/timePicker/ComboxFoundation.d.ts +0 -31
- package/lib/cjs/timePicker/ComboxFoundation.js +0 -193
- package/lib/cjs/timePicker/constants.d.ts +0 -23
- package/lib/cjs/timePicker/constants.js +0 -43
- package/lib/cjs/timePicker/foundation.d.ts +0 -53
- package/lib/cjs/timePicker/foundation.js +0 -465
- package/lib/cjs/timePicker/inputFoundation.d.ts +0 -18
- package/lib/cjs/timePicker/inputFoundation.js +0 -81
- package/lib/cjs/timePicker/rtl.scss +0 -30
- package/lib/cjs/timePicker/timePicker.css +0 -72
- package/lib/cjs/timePicker/timePicker.scss +0 -86
- package/lib/cjs/timePicker/utils/index.d.ts +0 -41
- package/lib/cjs/timePicker/utils/index.js +0 -191
- package/lib/cjs/timePicker/utils/localeDate.d.ts +0 -2
- package/lib/cjs/timePicker/utils/localeDate.js +0 -47
- package/lib/cjs/timePicker/variables.scss +0 -22
- package/lib/cjs/timeline/constants.d.ts +0 -10
- package/lib/cjs/timeline/constants.js +0 -23
- package/lib/cjs/timeline/rtl.scss +0 -92
- package/lib/cjs/timeline/timeline.css +0 -196
- package/lib/cjs/timeline/timeline.scss +0 -174
- package/lib/cjs/timeline/variables.scss +0 -45
- package/lib/cjs/toast/constants.d.ts +0 -14
- package/lib/cjs/toast/constants.js +0 -30
- package/lib/cjs/toast/rtl.scss +0 -16
- package/lib/cjs/toast/toast.css +0 -76
- package/lib/cjs/toast/toast.scss +0 -92
- package/lib/cjs/toast/toastFoundation.d.ts +0 -48
- package/lib/cjs/toast/toastFoundation.js +0 -72
- package/lib/cjs/toast/toastListFoundation.d.ts +0 -17
- package/lib/cjs/toast/toastListFoundation.js +0 -62
- package/lib/cjs/toast/variables.scss +0 -34
- package/lib/cjs/tooltip/arrow.scss +0 -141
- package/lib/cjs/tooltip/constants.d.ts +0 -22
- package/lib/cjs/tooltip/constants.js +0 -37
- package/lib/cjs/tooltip/foundation.d.ts +0 -99
- package/lib/cjs/tooltip/foundation.js +0 -816
- package/lib/cjs/tooltip/rtl.scss +0 -12
- package/lib/cjs/tooltip/tooltip.css +0 -203
- package/lib/cjs/tooltip/tooltip.scss +0 -91
- package/lib/cjs/tooltip/variables.scss +0 -31
- package/lib/cjs/transfer/constants.d.ts +0 -10
- package/lib/cjs/transfer/constants.js +0 -24
- package/lib/cjs/transfer/foundation.d.ts +0 -51
- package/lib/cjs/transfer/foundation.js +0 -314
- package/lib/cjs/transfer/rtl.scss +0 -31
- package/lib/cjs/transfer/transfer.css +0 -202
- package/lib/cjs/transfer/transfer.scss +0 -200
- package/lib/cjs/transfer/transferUtlls.d.ts +0 -4
- package/lib/cjs/transfer/transferUtlls.js +0 -128
- package/lib/cjs/transfer/variables.scss +0 -55
- package/lib/cjs/tree/constants.d.ts +0 -9
- package/lib/cjs/tree/constants.js +0 -23
- package/lib/cjs/tree/foundation.d.ts +0 -281
- package/lib/cjs/tree/foundation.js +0 -711
- package/lib/cjs/tree/rtl.scss +0 -59
- package/lib/cjs/tree/tree.css +0 -478
- package/lib/cjs/tree/tree.scss +0 -372
- package/lib/cjs/tree/treeUtil.d.ts +0 -79
- package/lib/cjs/tree/treeUtil.js +0 -800
- package/lib/cjs/tree/variables.scss +0 -54
- package/lib/cjs/treeSelect/constants.d.ts +0 -13
- package/lib/cjs/treeSelect/constants.js +0 -27
- package/lib/cjs/treeSelect/foundation.d.ts +0 -164
- package/lib/cjs/treeSelect/foundation.js +0 -792
- package/lib/cjs/treeSelect/rtl.scss +0 -62
- package/lib/cjs/treeSelect/treeSelect.css +0 -308
- package/lib/cjs/treeSelect/treeSelect.scss +0 -332
- package/lib/cjs/treeSelect/variables.scss +0 -90
- package/lib/cjs/typography/constants.d.ts +0 -10
- package/lib/cjs/typography/constants.js +0 -23
- package/lib/cjs/typography/rtl.scss +0 -34
- package/lib/cjs/typography/typography.css +0 -220
- package/lib/cjs/typography/typography.scss +0 -218
- package/lib/cjs/typography/variables.scss +0 -45
- package/lib/cjs/upload/constants.d.ts +0 -28
- package/lib/cjs/upload/constants.js +0 -49
- package/lib/cjs/upload/foundation.d.ts +0 -166
- package/lib/cjs/upload/foundation.js +0 -1067
- package/lib/cjs/upload/rtl.scss +0 -87
- package/lib/cjs/upload/upload.css +0 -493
- package/lib/cjs/upload/upload.scss +0 -522
- package/lib/cjs/upload/utils.d.ts +0 -6
- package/lib/cjs/upload/utils.js +0 -165
- package/lib/cjs/upload/variables.scss +0 -81
- package/lib/cjs/utils/Event.d.ts +0 -7
- package/lib/cjs/utils/Event.js +0 -91
- package/lib/cjs/utils/Logger.d.ts +0 -15
- package/lib/cjs/utils/Logger.js +0 -77
- package/lib/cjs/utils/Store.d.ts +0 -9
- package/lib/cjs/utils/Store.js +0 -60
- package/lib/cjs/utils/array.d.ts +0 -22
- package/lib/cjs/utils/array.js +0 -64
- package/lib/cjs/utils/classnames.d.ts +0 -4
- package/lib/cjs/utils/classnames.js +0 -54
- package/lib/cjs/utils/date-fns-extra.d.ts +0 -55
- package/lib/cjs/utils/date-fns-extra.js +0 -148
- package/lib/cjs/utils/dom.d.ts +0 -27
- package/lib/cjs/utils/dom.js +0 -92
- package/lib/cjs/utils/function.d.ts +0 -4
- package/lib/cjs/utils/function.js +0 -15
- package/lib/cjs/utils/getDataAttr.d.ts +0 -1
- package/lib/cjs/utils/getDataAttr.js +0 -27
- package/lib/cjs/utils/getHighlight.d.ts +0 -45
- package/lib/cjs/utils/getHighlight.js +0 -211
- package/lib/cjs/utils/getMotionObjFromProps.d.ts +0 -26
- package/lib/cjs/utils/getMotionObjFromProps.js +0 -77
- package/lib/cjs/utils/index.d.ts +0 -2
- package/lib/cjs/utils/index.js +0 -41
- package/lib/cjs/utils/isBothNaN.d.ts +0 -8
- package/lib/cjs/utils/isBothNaN.js +0 -25
- package/lib/cjs/utils/isElement.d.ts +0 -1
- package/lib/cjs/utils/isElement.js +0 -21
- package/lib/cjs/utils/isNullOrUndefined.d.ts +0 -6
- package/lib/cjs/utils/isNullOrUndefined.js +0 -18
- package/lib/cjs/utils/isNumber.d.ts +0 -1
- package/lib/cjs/utils/isNumber.js +0 -13
- package/lib/cjs/utils/isObject.d.ts +0 -1
- package/lib/cjs/utils/isObject.js +0 -13
- package/lib/cjs/utils/isPromise.d.ts +0 -1
- package/lib/cjs/utils/isPromise.js +0 -17
- package/lib/cjs/utils/isString.d.ts +0 -1
- package/lib/cjs/utils/isString.js +0 -13
- package/lib/cjs/utils/keyCode.d.ts +0 -427
- package/lib/cjs/utils/keyCode.js +0 -542
- package/lib/cjs/utils/log.d.ts +0 -2
- package/lib/cjs/utils/log.js +0 -22
- package/lib/cjs/utils/number.d.ts +0 -10
- package/lib/cjs/utils/number.js +0 -29
- package/lib/cjs/utils/object.d.ts +0 -17
- package/lib/cjs/utils/object.js +0 -174
- package/lib/cjs/utils/set.d.ts +0 -7
- package/lib/cjs/utils/set.js +0 -44
- package/lib/cjs/utils/shallowEqualObjects.d.ts +0 -5
- package/lib/cjs/utils/shallowEqualObjects.js +0 -41
- package/lib/cjs/utils/touchPolyfill.d.ts +0 -2
- package/lib/cjs/utils/touchPolyfill.js +0 -50
- package/lib/cjs/utils/type.d.ts +0 -31
- package/lib/cjs/utils/type.js +0 -7
- package/lib/cjs/utils/uuid.d.ts +0 -3
- package/lib/cjs/utils/uuid.js +0 -29
- package/lib/cjs/utils/warning.d.ts +0 -1
- package/lib/cjs/utils/warning.js +0 -15
package/anchor/foundation.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
2
|
-
import { isArray, get } from 'lodash';
|
|
2
|
+
import { isArray, get } from 'lodash-es';
|
|
3
3
|
import scrollIntoView, { CustomBehaviorOptions } from 'scroll-into-view-if-needed';
|
|
4
4
|
import { cssClasses } from './constants';
|
|
5
5
|
import React from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable prefer-const, max-len */
|
|
2
2
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
3
|
-
import { isString, isNumber, isUndefined, isObject } from 'lodash';
|
|
3
|
+
import { isString, isNumber, isUndefined, isObject } from 'lodash-es';
|
|
4
4
|
import warning from '../utils/warning';
|
|
5
5
|
import KeyCode from '../utils/keyCode';
|
|
6
6
|
|
package/babel.config.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: [
|
|
3
|
+
[
|
|
4
|
+
'@babel/preset-env',
|
|
5
|
+
{
|
|
6
|
+
modules: false,
|
|
7
|
+
targets: {
|
|
8
|
+
browsers: [
|
|
9
|
+
"> 0.5%",
|
|
10
|
+
"last 2 versions",
|
|
11
|
+
"Firefox ESR",
|
|
12
|
+
"not dead",
|
|
13
|
+
"not IE 11"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
],
|
|
19
|
+
plugins: [
|
|
20
|
+
[
|
|
21
|
+
'@babel/plugin-transform-runtime',
|
|
22
|
+
{
|
|
23
|
+
corejs: 3
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
'@babel/plugin-proposal-decorators',
|
|
28
|
+
{
|
|
29
|
+
legacy: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
]
|
|
33
|
+
};
|
package/base/foundation.ts
CHANGED
package/cascader/foundation.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isEqual, get, difference, isUndefined, assign, cloneDeep, isEmpty, isNumber, includes } from 'lodash';
|
|
1
|
+
import { isEqual, get, difference, isUndefined, assign, cloneDeep, isEmpty, isNumber, includes } from 'lodash-es';
|
|
2
2
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
3
3
|
import {
|
|
4
4
|
filter,
|
package/cascader/util.ts
CHANGED
package/datePicker/foundation.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-nested-ternary */
|
|
2
2
|
/* eslint-disable max-len, max-depth, */
|
|
3
3
|
import { format, isValid, isSameSecond, isEqual as isDateEqual, isDate } from 'date-fns';
|
|
4
|
-
import { get, isObject, isString, isEqual } from 'lodash';
|
|
4
|
+
import { get, isObject, isString, isEqual } from 'lodash-es';
|
|
5
5
|
|
|
6
6
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
7
7
|
import { isValidDate, isTimestamp } from './_utils/index';
|
|
@@ -282,7 +282,7 @@ export default class DatePickerFoundation extends BaseFoundation<DatePickerAdapt
|
|
|
282
282
|
if (isValidDate(value)) {
|
|
283
283
|
dateObj = value as Date;
|
|
284
284
|
} else if (isString(value)) {
|
|
285
|
-
dateObj = compatiableParse(value, this.getProp('format'), undefined, dateFnsLocale);
|
|
285
|
+
dateObj = compatiableParse(value as string, this.getProp('format'), undefined, dateFnsLocale);
|
|
286
286
|
} else if (isTimestamp(value)) {
|
|
287
287
|
dateObj = new Date(value);
|
|
288
288
|
} else {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { isBefore, isValidDate, getDefaultFormatToken, getFullDateOffset } from './_utils/index';
|
|
17
17
|
import { formatFullDate, WeekStartNumber } from './_utils/getMonthTable';
|
|
18
18
|
import { compatiableParse } from './_utils/parser';
|
|
19
|
-
import { includes, isSet, isEqual } from 'lodash';
|
|
19
|
+
import { includes, isSet, isEqual } from 'lodash-es';
|
|
20
20
|
import { zonedTimeToUtc } from '../utils/date-fns-extra';
|
|
21
21
|
import { getDefaultFormatTokenByType } from './_utils/getDefaultFormatToken';
|
|
22
22
|
import isNullOrUndefined from '../utils/isNullOrUndefined';
|
package/form/foundation.ts
CHANGED
|
@@ -3,7 +3,7 @@ import BaseFoundation from '../base/foundation';
|
|
|
3
3
|
import * as ObjectUtil from '../utils/object';
|
|
4
4
|
import isPromise from '../utils/isPromise';
|
|
5
5
|
import { isValid } from './utils';
|
|
6
|
-
import { isUndefined, isFunction, toPath } from 'lodash';
|
|
6
|
+
import { isUndefined, isFunction, toPath } from 'lodash-es';
|
|
7
7
|
import scrollIntoView, { Options as scrollIntoViewOptions } from 'scroll-into-view-if-needed';
|
|
8
8
|
|
|
9
9
|
import { BaseFormAdapter, FormState, CallOpts, FieldState, FieldStaff, ComponentProps, setValuesConfig, ArrayFieldStaff } from './interface';
|
package/form/interface.ts
CHANGED
package/form/utils.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable prefer-const */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
4
|
import AsyncValidator from 'async-validator';
|
|
5
|
-
import { cloneDeep, toPath } from 'lodash';
|
|
6
|
-
import { FieldValidateTriggerType, BasicTriggerType, ComponentProps,
|
|
5
|
+
import { cloneDeep, toPath } from 'lodash-es';
|
|
6
|
+
import { FieldValidateTriggerType, BasicTriggerType, ComponentProps, WithFieldOption } from './interface';
|
|
7
7
|
|
|
8
8
|
export function getDisplayName(WrappedComponent: React.ComponentType | any) {
|
|
9
9
|
const originName = WrappedComponent.displayName || WrappedComponent.name;
|
|
@@ -61,7 +61,7 @@ function transformTrigger(trigger: FieldValidateTriggerType): Array<BasicTrigger
|
|
|
61
61
|
return result;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function mergeOptions(opts:
|
|
64
|
+
export function mergeOptions(opts: WithFieldOption, props: ComponentProps) {
|
|
65
65
|
// Opts: different types of component identification value, value change callback function may be inconsistent, used to adapt 1, input, select 2, radio, checkbox 3, switch
|
|
66
66
|
// valueKey: input, select class component control value props are value, and checkbox, switch is checked
|
|
67
67
|
// eg:checkbox、radio { valueKey: 'checked', onKeyChangeFnName: 'onChange', valuePath: 'target.value' }
|
package/gulpfile.js
CHANGED
|
@@ -6,31 +6,23 @@ const merge2 = require('merge2');
|
|
|
6
6
|
const gulpTS = require('gulp-typescript');
|
|
7
7
|
const gulpBabel = require('gulp-babel');
|
|
8
8
|
const sass = require('gulp-sass')(require('sass'));
|
|
9
|
+
const replace = require('gulp-replace');
|
|
9
10
|
const del = require('del');
|
|
10
11
|
const tsConfig = require('./tsconfig.json');
|
|
11
|
-
const
|
|
12
|
+
const babelConfig = require('./babel.config');
|
|
12
13
|
|
|
13
14
|
gulp.task('cleanLib', function cleanLib() {
|
|
14
15
|
return del(['lib/**/*']);
|
|
15
16
|
});
|
|
16
17
|
|
|
17
|
-
function
|
|
18
|
-
const targetDir = isESM ? 'lib/es' : 'lib/cjs';
|
|
18
|
+
gulp.task('compileTS', function compileTSX() {
|
|
19
19
|
const tsStream = gulp.src(['**/*.ts', '!node_modules/**/*.*'])
|
|
20
20
|
.pipe(gulpTS(tsConfig.compilerOptions));
|
|
21
21
|
const jsStream = tsStream.js
|
|
22
|
-
.pipe(gulpBabel(
|
|
23
|
-
.pipe(gulp.dest(
|
|
24
|
-
const dtsStream = tsStream.dts.pipe(gulp.dest(
|
|
22
|
+
.pipe(gulpBabel(babelConfig))
|
|
23
|
+
.pipe(gulp.dest('lib/es'));
|
|
24
|
+
const dtsStream = tsStream.dts.pipe(gulp.dest('lib/es'));
|
|
25
25
|
return merge2([jsStream, dtsStream]);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
gulp.task('compileTSForESM', function compileTSForESM() {
|
|
29
|
-
return compileTS(true);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
gulp.task('compileTSForCJS', function compileTSForCJS() {
|
|
33
|
-
return compileTS(false);
|
|
34
26
|
});
|
|
35
27
|
|
|
36
28
|
const excludeScss = [
|
|
@@ -53,25 +45,15 @@ gulp.task('compileScss', function compileScss() {
|
|
|
53
45
|
}
|
|
54
46
|
))
|
|
55
47
|
.pipe(sass().on('error', sass.logError))
|
|
56
|
-
.pipe(gulp.dest('lib/es'))
|
|
57
|
-
.pipe(gulp.dest('lib/cjs'));
|
|
48
|
+
.pipe(gulp.dest('lib/es'));
|
|
58
49
|
});
|
|
59
50
|
|
|
60
51
|
gulp.task('moveScss', function moveScss() {
|
|
61
52
|
return gulp.src(['**/*.scss', '!node_modules/**/*.*'])
|
|
62
|
-
.pipe(gulp.dest('lib/es'))
|
|
63
|
-
.pipe(gulp.dest('lib/cjs'));
|
|
53
|
+
.pipe(gulp.dest('lib/es'));
|
|
64
54
|
});
|
|
65
55
|
|
|
66
|
-
gulp.task('compileLib',
|
|
67
|
-
gulp.series(
|
|
68
|
-
[
|
|
69
|
-
'cleanLib', 'compileScss',
|
|
70
|
-
'moveScss',
|
|
71
|
-
gulp.parallel('compileTSForESM', 'compileTSForCJS'),
|
|
72
|
-
]
|
|
73
|
-
)
|
|
74
|
-
);
|
|
56
|
+
gulp.task('compileLib', gulp.series(['cleanLib', 'compileScss', 'moveScss', 'compileTS']));
|
|
75
57
|
|
|
76
58
|
gulp.task('findDupCSSVariables', function findDupCSSVariables() {
|
|
77
59
|
return gulp.src(['**/variable?.scss', '!node_modules/**/*.*'])
|
package/icons/icons.scss
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import "../keyframes/rotate.scss";
|
|
3
|
+
|
|
4
|
+
$module: #{$prefix}-icon;
|
|
5
|
+
|
|
6
|
+
.#{$module} {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
color: inherit;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
line-height: 0;
|
|
11
|
+
text-align: center;
|
|
12
|
+
text-transform: none;
|
|
13
|
+
text-rendering: optimizeLegibility;
|
|
14
|
+
fill: currentColor;
|
|
15
|
+
|
|
16
|
+
&-extra-small {
|
|
17
|
+
font-size: $width-icon_extra_small;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-small {
|
|
21
|
+
font-size: $width-icon_small;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-default {
|
|
25
|
+
font-size: $width-icon_medium;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-large {
|
|
29
|
+
font-size: $width-icon_large;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-extra-large {
|
|
33
|
+
font-size: $width-icon_extra_large;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$module}-spin {
|
|
38
|
+
animation: $motion-icon_spin-animationDuration linear infinite #{$prefix}-animation-rotate;
|
|
39
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
$width-icon_extra_small: $width-icon-extra-small; // 图标尺寸 - 超小
|
|
3
|
+
$width-icon_small: $width-icon-small; // 图标尺寸 - 小
|
|
4
|
+
$width-icon_medium: $width-icon-medium; // 图标尺寸 - 中
|
|
5
|
+
$width-icon_large: $width-icon-large; // 图标尺寸 - 大
|
|
6
|
+
$width-icon_extra_large: $width-icon-extra-large; // 图标尺寸 - 超大
|
|
7
|
+
$motion-icon_spin-animationDuration: .6s;
|
package/input/foundation.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter, noopFunction } from '../base/foundation';
|
|
2
2
|
import { strings } from './constants';
|
|
3
|
-
import { noop, set, isNumber, isString, isFunction } from 'lodash';
|
|
3
|
+
import { noop, set, isNumber, isString, isFunction } from 'lodash-es';
|
|
4
4
|
|
|
5
5
|
const ENTER_KEY_CODE = 'Enter';
|
|
6
6
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
5
5
|
import keyCode from '../utils/keyCode';
|
|
6
6
|
import { numbers } from './constants';
|
|
7
|
-
import { toNumber, toString } from 'lodash';
|
|
7
|
+
import { toNumber, toString } from 'lodash-es';
|
|
8
8
|
import { minus as numberMinus } from '../utils/number';
|
|
9
9
|
|
|
10
10
|
export interface InputNumberAdapter extends DefaultAdapter {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import _get from "lodash/get";
|
|
2
|
-
import _isArray from "lodash/isArray";
|
|
3
1
|
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
|
|
4
2
|
import _Set from "@babel/runtime-corejs3/core-js-stable/set";
|
|
5
3
|
import BaseFoundation from '../base/foundation';
|
|
4
|
+
import { isArray, get } from 'lodash-es';
|
|
6
5
|
import scrollIntoView from 'scroll-into-view-if-needed';
|
|
7
6
|
import { cssClasses } from './constants';
|
|
8
7
|
const prefixCls = cssClasses.PREFIX;
|
|
@@ -70,7 +69,7 @@ export default class AnchorFoundation extends BaseFoundation {
|
|
|
70
69
|
|
|
71
70
|
const childMap = {};
|
|
72
71
|
|
|
73
|
-
if (
|
|
72
|
+
if (isArray(children)) {
|
|
74
73
|
for (const link of children) {
|
|
75
74
|
this._getLinkToMap(link, [], childMap);
|
|
76
75
|
}
|
|
@@ -206,11 +205,9 @@ export default class AnchorFoundation extends BaseFoundation {
|
|
|
206
205
|
*/
|
|
207
206
|
behavior: actions => {
|
|
208
207
|
// We just need to scroll the innermost target container
|
|
209
|
-
const innermostAction =
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
const top = _get(innermostAction, 'top');
|
|
208
|
+
const innermostAction = get(actions, '0');
|
|
209
|
+
const el = get(innermostAction, 'el');
|
|
210
|
+
const top = get(innermostAction, 'top');
|
|
214
211
|
|
|
215
212
|
if (el) {
|
|
216
213
|
const offsetTop = top - targetOffset;
|
|
@@ -1,25 +1,99 @@
|
|
|
1
1
|
/* shadow */
|
|
2
2
|
/* sizing */
|
|
3
3
|
/* spacing */
|
|
4
|
-
.semi-
|
|
4
|
+
.semi-select-option {
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
line-height: 20px;
|
|
7
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
8
|
+
word-break: break-all;
|
|
9
|
+
padding-left: 12px;
|
|
10
|
+
padding-right: 12px;
|
|
11
|
+
padding-top: 8px;
|
|
12
|
+
padding-bottom: 8px;
|
|
13
|
+
color: var(--semi-color-text-0);
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
align-items: center;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
.semi-select-option-icon {
|
|
22
|
+
width: 12px;
|
|
23
|
+
color: transparent;
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
margin-right: 8px;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-content: center;
|
|
29
|
+
}
|
|
30
|
+
.semi-select-option-text {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
white-space: pre;
|
|
34
|
+
}
|
|
35
|
+
.semi-select-option-keyword {
|
|
36
|
+
color: var(--semi-color-primary);
|
|
37
|
+
background-color: inherit;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
.semi-select-option:active {
|
|
41
|
+
background-color: var(--semi-color-fill-1);
|
|
42
|
+
}
|
|
43
|
+
.semi-select-option-empty {
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
color: var(--semi-color-disabled-text);
|
|
46
|
+
justify-content: center;
|
|
47
|
+
}
|
|
48
|
+
.semi-select-option-empty:hover {
|
|
49
|
+
background-color: inherit;
|
|
50
|
+
}
|
|
51
|
+
.semi-select-option-empty:active {
|
|
52
|
+
background-color: inherit;
|
|
53
|
+
}
|
|
54
|
+
.semi-select-option-disabled {
|
|
55
|
+
color: var(--semi-color-disabled-text);
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
}
|
|
58
|
+
.semi-select-option-disabled:hover {
|
|
59
|
+
background-color: var(--semi-color-fill-0);
|
|
60
|
+
}
|
|
61
|
+
.semi-select-option-selected {
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
}
|
|
64
|
+
.semi-select-option-selected .semi-select-option-icon {
|
|
65
|
+
visibility: visible;
|
|
66
|
+
color: var(--semi-color-text-2);
|
|
67
|
+
}
|
|
68
|
+
.semi-select-option-focused {
|
|
69
|
+
background-color: var(--semi-color-fill-0);
|
|
70
|
+
}
|
|
71
|
+
.semi-select-option:first-of-type {
|
|
72
|
+
margin-top: 4px;
|
|
73
|
+
}
|
|
74
|
+
.semi-select-option:last-of-type {
|
|
75
|
+
margin-bottom: 4px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.semi-select {
|
|
5
79
|
cursor: text;
|
|
6
80
|
display: inline-flex;
|
|
7
81
|
vertical-align: middle;
|
|
8
82
|
box-sizing: border-box;
|
|
9
83
|
}
|
|
10
|
-
.semi-
|
|
84
|
+
.semi-select-option-list {
|
|
11
85
|
overflow-x: hidden;
|
|
12
86
|
overflow-y: auto;
|
|
13
87
|
}
|
|
14
|
-
.semi-
|
|
88
|
+
.semi-select-option-list-chosen .semi-select-option-icon {
|
|
15
89
|
display: flex;
|
|
16
90
|
}
|
|
17
|
-
.semi-
|
|
91
|
+
.semi-select-loading-wrapper {
|
|
18
92
|
padding-top: 8px;
|
|
19
93
|
padding-bottom: 8px;
|
|
20
94
|
cursor: not-allowed;
|
|
21
95
|
}
|
|
22
|
-
.semi-
|
|
96
|
+
.semi-select-loading-wrapper .semi-spin {
|
|
23
97
|
width: 100%;
|
|
24
98
|
}
|
|
25
99
|
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import _isObject from "lodash/isObject";
|
|
2
|
-
import _isUndefined from "lodash/isUndefined";
|
|
3
|
-
import _isNumber from "lodash/isNumber";
|
|
4
|
-
import _isString from "lodash/isString";
|
|
5
1
|
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
|
|
6
2
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
7
3
|
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
@@ -12,6 +8,7 @@ import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
|
|
|
12
8
|
|
|
13
9
|
/* eslint-disable prefer-const, max-len */
|
|
14
10
|
import BaseFoundation from '../base/foundation';
|
|
11
|
+
import { isString, isNumber, isUndefined, isObject } from 'lodash-es';
|
|
15
12
|
import warning from '../utils/warning';
|
|
16
13
|
import KeyCode from '../utils/keyCode';
|
|
17
14
|
|
|
@@ -71,9 +68,9 @@ class AutoCompleteFoundation extends BaseFoundation {
|
|
|
71
68
|
if (dropdownMatchSelectWidth) {
|
|
72
69
|
var _context;
|
|
73
70
|
|
|
74
|
-
if (style &&
|
|
71
|
+
if (style && isNumber(style.width)) {
|
|
75
72
|
width = style.width;
|
|
76
|
-
} else if (style &&
|
|
73
|
+
} else if (style && isString(style.width) && !_includesInstanceProperty(_context = style.width).call(_context, '%')) {
|
|
77
74
|
width = style.width;
|
|
78
75
|
} else {
|
|
79
76
|
width = this._adapter.getTriggerWidth();
|
|
@@ -128,14 +125,14 @@ class AutoCompleteFoundation extends BaseFoundation {
|
|
|
128
125
|
const key = String(new Date().getTime()) + i;
|
|
129
126
|
let option = {};
|
|
130
127
|
|
|
131
|
-
if (
|
|
128
|
+
if (isString(item) || isNumber(item)) {
|
|
132
129
|
option = {
|
|
133
130
|
value: item,
|
|
134
131
|
key,
|
|
135
132
|
label: item,
|
|
136
133
|
show: true
|
|
137
134
|
};
|
|
138
|
-
} else if (
|
|
135
|
+
} else if (isObject(item) && !isUndefined(item.value)) {
|
|
139
136
|
option = _Object$assign({
|
|
140
137
|
show: true
|
|
141
138
|
}, item);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _noop from "lodash/noop";
|
|
2
1
|
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -7,6 +6,7 @@ import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign"
|
|
|
7
6
|
*
|
|
8
7
|
*/
|
|
9
8
|
import log from '../utils/log';
|
|
9
|
+
import { noop } from 'lodash-es';
|
|
10
10
|
|
|
11
11
|
class BaseFoundation {
|
|
12
12
|
constructor(adapter) {
|
|
@@ -39,17 +39,17 @@ class BaseFoundation {
|
|
|
39
39
|
|
|
40
40
|
static get defaultAdapter() {
|
|
41
41
|
return {
|
|
42
|
-
getProp:
|
|
43
|
-
getProps:
|
|
44
|
-
getState:
|
|
45
|
-
getStates:
|
|
46
|
-
setState:
|
|
47
|
-
getContext:
|
|
48
|
-
getContexts:
|
|
49
|
-
getCache:
|
|
50
|
-
setCache:
|
|
51
|
-
getCaches:
|
|
52
|
-
stopPropagation:
|
|
42
|
+
getProp: noop,
|
|
43
|
+
getProps: noop,
|
|
44
|
+
getState: noop,
|
|
45
|
+
getStates: noop,
|
|
46
|
+
setState: noop,
|
|
47
|
+
getContext: noop,
|
|
48
|
+
getContexts: noop,
|
|
49
|
+
getCache: noop,
|
|
50
|
+
setCache: noop,
|
|
51
|
+
getCaches: noop,
|
|
52
|
+
stopPropagation: noop
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
|