tntd 2.7.30 → 2.7.31
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/es/ellipsis/index.js +2 -0
- package/es/ellipsis/index.js.map +1 -1
- package/lib/ellipsis/index.d.ts.map +1 -1
- package/lib/ellipsis/index.js +2 -0
- package/lib/ellipsis/index.js.map +1 -1
- package/package.json +1 -1
- package/themes/common/index.less +3 -3
- package/es/affix/style/index.less +0 -6
- package/es/alert/style/index.less +0 -188
- package/es/anchor/style/index.less +0 -82
- package/es/auto-complete/style/index.less +0 -92
- package/es/avatar/style/index.less +0 -59
- package/es/back-top/style/index.less +0 -42
- package/es/back-top/style/responsive.less +0 -11
- package/es/badge/style/index.less +0 -190
- package/es/breadcrumb/style/index.less +0 -51
- package/es/button/style/index.less +0 -224
- package/es/button/style/mixin.less +0 -357
- package/es/calendar/style/index.less +0 -278
- package/es/card/style/index.less +0 -263
- package/es/card/style/size.less +0 -25
- package/es/carousel/style/index.less +0 -238
- package/es/cascader/style/index.less +0 -227
- package/es/checkbox/style/index.less +0 -4
- package/es/checkbox/style/mixin.less +0 -220
- package/es/collapse/style/index.less +0 -134
- package/es/comment/style/index.less +0 -93
- package/es/config-provider/style/index.less +0 -2
- package/es/date-picker/style/Calendar.less +0 -402
- package/es/date-picker/style/DecadePanel.less +0 -81
- package/es/date-picker/style/MonthPanel.less +0 -86
- package/es/date-picker/style/MonthPicker.less +0 -11
- package/es/date-picker/style/Picker.less +0 -113
- package/es/date-picker/style/RangePicker.less +0 -248
- package/es/date-picker/style/TimePicker.less +0 -151
- package/es/date-picker/style/WeekPicker.less +0 -21
- package/es/date-picker/style/YearPanel.less +0 -85
- package/es/date-picker/style/index.less +0 -17
- package/es/descriptions/style/index.less +0 -144
- package/es/divider/style/index.less +0 -109
- package/es/drawer/style/drawer.less +0 -230
- package/es/drawer/style/index.less +0 -3
- package/es/dropdown/style/index.less +0 -282
- package/es/empty/style/index.less +0 -52
- package/es/form/style/index.less +0 -653
- package/es/form/style/mixin.less +0 -126
- package/es/grid-v4/style/index.less +0 -124
- package/es/grid-v4/style/mixin.less +0 -57
- package/es/grid-v4/style/rtl.less +0 -69
- package/es/handle/handle.js +0 -138
- package/es/handle/handle.js.map +0 -1
- package/es/icon/style/index.less +0 -4
- package/es/input/style/index.less +0 -57
- package/es/input/style/mixin.less +0 -449
- package/es/input/style/search-input.less +0 -34
- package/es/input-number/style/index.less +0 -179
- package/es/layout/style/index.less +0 -124
- package/es/layout/style/light.less +0 -15
- package/es/list/style/bordered.less +0 -41
- package/es/list/style/index.less +0 -234
- package/es/list/style/responsive.less +0 -40
- package/es/locale-provider/style/index.less +0 -2
- package/es/mention/index.js +0 -4
- package/es/mention/index.js.map +0 -1
- package/es/mentions/style/index.less +0 -164
- package/es/menu/style/dark.less +0 -139
- package/es/menu/style/index.less +0 -515
- package/es/message/style/index.less +0 -75
- package/es/modal/style/confirm.less +0 -78
- package/es/modal/style/index.less +0 -4
- package/es/modal/style/modal.less +0 -165
- package/es/notification/style/index.less +0 -199
- package/es/page-header/style/index.less +0 -119
- package/es/pagination/style/index.less +0 -400
- package/es/popover/style/index.less +0 -205
- package/es/progress/style/index.less +0 -182
- package/es/radio/style/index.less +0 -327
- package/es/rate/style/index.less +0 -85
- package/es/result/style/index.less +0 -71
- package/es/select/style/index.less +0 -604
- package/es/skeleton/style/index.less +0 -130
- package/es/slider/style/index.less +0 -197
- package/es/spin/style/index.less +0 -214
- package/es/statistic/style/index.less +0 -40
- package/es/steps/style/compatibility.less +0 -50
- package/es/steps/style/custom-icon.less +0 -31
- package/es/steps/style/label-placement.less +0 -38
- package/es/steps/style/progress-dot.less +0 -80
- package/es/steps/style/vertical.less +0 -74
- package/es/style/color/bezierEasing.less +0 -110
- package/es/style/color/colorPalette.less +0 -75
- package/es/style/color/colors.less +0 -149
- package/es/style/color/tinyColor.less +0 -1184
- package/es/style/core/base.less +0 -510
- package/es/style/core/iconfont.less +0 -19
- package/es/style/core/index.less +0 -4
- package/es/style/core/motion/fade.less +0 -31
- package/es/style/core/motion/move.less +0 -120
- package/es/style/core/motion/other.less +0 -40
- package/es/style/core/motion/slide.less +0 -120
- package/es/style/core/motion/swing.less +0 -34
- package/es/style/core/motion/zoom.less +0 -162
- package/es/style/core/motion.less +0 -20
- package/es/style/index.less +0 -2
- package/es/style/mixins/clearfix.less +0 -13
- package/es/style/mixins/compatibility.less +0 -22
- package/es/style/mixins/iconfont.less +0 -43
- package/es/style/mixins/index.less +0 -10
- package/es/style/mixins/motion.less +0 -35
- package/es/style/mixins/operation-unit.less +0 -18
- package/es/style/mixins/reset.less +0 -13
- package/es/style/mixins/size.less +0 -10
- package/es/style/mixins/typography.less +0 -49
- package/es/style/themes/default.less +0 -699
- package/es/style/themes/index.less +0 -1
- package/es/style/v2-compatible-reset.less +0 -51
- package/es/switch/style/index.less +0 -178
- package/es/table/style/index.less +0 -800
- package/es/table/style/size.less +0 -179
- package/es/tabs/style/card-style.less +0 -186
- package/es/tabs/style/index.less +0 -436
- package/es/tag/style/index.less +0 -106
- package/es/time-picker/style/index.less +0 -246
- package/es/timeline/style/index.less +0 -167
- package/es/tntd-form/TntdForm/components/Item.js +0 -55
- package/es/tntd-form/TntdForm/components/Item.js.map +0 -1
- package/es/tntd-form/TntdForm/components/ItemComp.js +0 -186
- package/es/tntd-form/TntdForm/components/ItemComp.js.map +0 -1
- package/es/tntd-form/TntdForm/components/List.js +0 -102
- package/es/tntd-form/TntdForm/components/List.js.map +0 -1
- package/es/tntd-form/TntdForm/index.js +0 -55
- package/es/tntd-form/TntdForm/index.js.map +0 -1
- package/es/tntd-form/TntdForm/interface.js +0 -1
- package/es/tntd-form/TntdForm/interface.js.map +0 -1
- package/es/tntd-form/TntdForm/store.js +0 -2
- package/es/tntd-form/TntdForm/store.js.map +0 -1
- package/es/tntd-form/TntdForm/utils.js +0 -219
- package/es/tntd-form/TntdForm/utils.js.map +0 -1
- package/es/tntd-form/_util/motion.js +0 -47
- package/es/tntd-form/_util/motion.js.map +0 -1
- package/es/tntd-form/_util/reactNode.js +0 -16
- package/es/tntd-form/_util/reactNode.js.map +0 -1
- package/es/tntd-form/_util/scrollTo.js +0 -35
- package/es/tntd-form/_util/scrollTo.js.map +0 -1
- package/es/tntd-form/_util/type.js +0 -3
- package/es/tntd-form/_util/type.js.map +0 -1
- package/es/tntd-form/_util/warning.js +0 -5
- package/es/tntd-form/_util/warning.js.map +0 -1
- package/es/tntd-form/_util/wave.js +0 -168
- package/es/tntd-form/_util/wave.js.map +0 -1
- package/es/tntd-form/tntd-form.stories.js +0 -836
- package/es/tntd-form/tntd-form.stories.js.map +0 -1
- package/es/tntd-select/_util/DisabledContext.js +0 -12
- package/es/tntd-select/_util/DisabledContext.js.map +0 -1
- package/es/tntd-select/_util/FormItemInputContext.js +0 -2
- package/es/tntd-select/_util/FormItemInputContext.js.map +0 -1
- package/es/tntd-select/_util/PurePanel.js +0 -66
- package/es/tntd-select/_util/PurePanel.js.map +0 -1
- package/es/tntd-select/_util/SizeContext.js +0 -2
- package/es/tntd-select/_util/SizeContext.js.map +0 -1
- package/es/tntd-select/_util/context.js +0 -12
- package/es/tntd-select/_util/context.js.map +0 -1
- package/es/tntd-select/_util/defaultRenderEmpty.js +0 -31
- package/es/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
- package/es/tntd-select/_util/getIcons.js +0 -74
- package/es/tntd-select/_util/getIcons.js.map +0 -1
- package/es/tntd-select/_util/interface.js +0 -4
- package/es/tntd-select/_util/interface.js.map +0 -1
- package/es/tntd-select/_util/motion.js +0 -47
- package/es/tntd-select/_util/motion.js.map +0 -1
- package/es/tntd-select/_util/type.js +0 -3
- package/es/tntd-select/_util/type.js.map +0 -1
- package/es/tntd-select/_util/useCompactItemContext.js +0 -26
- package/es/tntd-select/_util/useCompactItemContext.js.map +0 -1
- package/es/tntd-select/_util/warning.js +0 -14
- package/es/tntd-select/_util/warning.js.map +0 -1
- package/es/tntd-select/rc-select/BaseSelect.js +0 -524
- package/es/tntd-select/rc-select/BaseSelect.js.map +0 -1
- package/es/tntd-select/rc-select/OptGroup.js +0 -4
- package/es/tntd-select/rc-select/OptGroup.js.map +0 -1
- package/es/tntd-select/rc-select/Option.js +0 -4
- package/es/tntd-select/rc-select/Option.js.map +0 -1
- package/es/tntd-select/rc-select/OptionList.js +0 -346
- package/es/tntd-select/rc-select/OptionList.js.map +0 -1
- package/es/tntd-select/rc-select/Select.js +0 -440
- package/es/tntd-select/rc-select/Select.js.map +0 -1
- package/es/tntd-select/rc-select/SelectContext.js +0 -3
- package/es/tntd-select/rc-select/SelectContext.js.map +0 -1
- package/es/tntd-select/rc-select/SelectTrigger.js +0 -130
- package/es/tntd-select/rc-select/SelectTrigger.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/Input.js +0 -103
- package/es/tntd-select/rc-select/Selector/Input.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js +0 -171
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/SingleSelector.js +0 -98
- package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/index.js +0 -158
- package/es/tntd-select/rc-select/Selector/index.js.map +0 -1
- package/es/tntd-select/rc-select/TransBtn.js +0 -36
- package/es/tntd-select/rc-select/TransBtn.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useAllowClear.js +0 -24
- package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useBaseProps.js +0 -9
- package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useCache.js +0 -38
- package/es/tntd-select/rc-select/hooks/useCache.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useDelayReset.js +0 -23
- package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js +0 -55
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useId.js +0 -26
- package/es/tntd-select/rc-select/hooks/useId.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -16
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useLock.js +0 -25
- package/es/tntd-select/rc-select/hooks/useLock.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useOptions.js +0 -43
- package/es/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useRefFunc.js +0 -13
- package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -28
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
- package/es/tntd-select/rc-select/index.js +0 -7
- package/es/tntd-select/rc-select/index.js.map +0 -1
- package/es/tntd-select/rc-select/interface.js +0 -1
- package/es/tntd-select/rc-select/interface.js.map +0 -1
- package/es/tntd-select/rc-select/utils/commonUtil.js +0 -30
- package/es/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/keyUtil.js +0 -9
- package/es/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/legacyUtil.js +0 -55
- package/es/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/platformUtil.js +0 -4
- package/es/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/valueUtil.js +0 -112
- package/es/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js +0 -112
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
- package/es/tooltip/style/index.less +0 -187
- package/es/transfer/style/customize.less +0 -62
- package/es/transfer/style/index.less +0 -191
- package/es/tree/style/directory.less +0 -95
- package/es/tree/style/index.less +0 -280
- package/es/tree/style/mixin.less +0 -29
- package/es/tree-select/style/index.less +0 -191
- package/es/typography/style/index.less +0 -204
- package/es/upload/style/index.less +0 -542
- package/lib/affix/style/index.less +0 -6
- package/lib/alert/style/index.less +0 -188
- package/lib/anchor/style/index.less +0 -82
- package/lib/auto-complete/style/index.less +0 -92
- package/lib/avatar/style/index.less +0 -59
- package/lib/back-top/style/index.less +0 -42
- package/lib/back-top/style/responsive.less +0 -11
- package/lib/badge/style/index.less +0 -190
- package/lib/breadcrumb/style/index.less +0 -51
- package/lib/button/style/index.less +0 -224
- package/lib/button/style/mixin.less +0 -357
- package/lib/calendar/style/index.less +0 -278
- package/lib/card/style/index.less +0 -263
- package/lib/card/style/size.less +0 -25
- package/lib/carousel/style/index.less +0 -238
- package/lib/cascader/style/index.less +0 -227
- package/lib/checkbox/style/index.less +0 -4
- package/lib/checkbox/style/mixin.less +0 -220
- package/lib/collapse/style/index.less +0 -134
- package/lib/comment/style/index.less +0 -93
- package/lib/config-provider/style/index.less +0 -2
- package/lib/date-picker/style/Calendar.less +0 -402
- package/lib/date-picker/style/DecadePanel.less +0 -81
- package/lib/date-picker/style/MonthPanel.less +0 -86
- package/lib/date-picker/style/MonthPicker.less +0 -11
- package/lib/date-picker/style/Picker.less +0 -113
- package/lib/date-picker/style/RangePicker.less +0 -248
- package/lib/date-picker/style/TimePicker.less +0 -151
- package/lib/date-picker/style/WeekPicker.less +0 -21
- package/lib/date-picker/style/YearPanel.less +0 -85
- package/lib/date-picker/style/index.less +0 -17
- package/lib/descriptions/style/index.less +0 -144
- package/lib/divider/style/index.less +0 -109
- package/lib/drawer/style/drawer.less +0 -230
- package/lib/drawer/style/index.less +0 -3
- package/lib/dropdown/style/index.less +0 -282
- package/lib/empty/style/index.less +0 -52
- package/lib/form/style/index.less +0 -653
- package/lib/form/style/mixin.less +0 -126
- package/lib/grid-v4/style/index.less +0 -124
- package/lib/grid-v4/style/mixin.less +0 -57
- package/lib/grid-v4/style/rtl.less +0 -69
- package/lib/handle/handle.d.ts +0 -3
- package/lib/handle/handle.d.ts.map +0 -1
- package/lib/handle/handle.js +0 -181
- package/lib/handle/handle.js.map +0 -1
- package/lib/icon/style/index.less +0 -4
- package/lib/input/style/index.less +0 -57
- package/lib/input/style/mixin.less +0 -449
- package/lib/input/style/search-input.less +0 -34
- package/lib/input-number/style/index.less +0 -179
- package/lib/layout/style/index.less +0 -124
- package/lib/layout/style/light.less +0 -15
- package/lib/list/style/bordered.less +0 -41
- package/lib/list/style/index.less +0 -234
- package/lib/list/style/responsive.less +0 -40
- package/lib/locale-provider/style/index.less +0 -2
- package/lib/mention/index.js +0 -25
- package/lib/mentions/style/index.less +0 -164
- package/lib/menu/style/dark.less +0 -139
- package/lib/menu/style/index.less +0 -515
- package/lib/message/style/index.less +0 -75
- package/lib/modal/style/confirm.less +0 -78
- package/lib/modal/style/index.less +0 -4
- package/lib/modal/style/modal.less +0 -165
- package/lib/notification/style/index.less +0 -199
- package/lib/page-header/style/index.less +0 -119
- package/lib/pagination/style/index.less +0 -400
- package/lib/popover/style/index.less +0 -205
- package/lib/progress/style/index.less +0 -182
- package/lib/radio/style/index.less +0 -327
- package/lib/rate/style/index.less +0 -85
- package/lib/result/style/index.less +0 -71
- package/lib/select/style/index.less +0 -604
- package/lib/skeleton/style/index.less +0 -130
- package/lib/slider/style/index.less +0 -197
- package/lib/spin/style/index.less +0 -214
- package/lib/statistic/style/index.less +0 -40
- package/lib/steps/style/compatibility.less +0 -50
- package/lib/steps/style/custom-icon.less +0 -31
- package/lib/steps/style/label-placement.less +0 -38
- package/lib/steps/style/progress-dot.less +0 -80
- package/lib/steps/style/vertical.less +0 -74
- package/lib/style/color/bezierEasing.less +0 -110
- package/lib/style/color/colorPalette.less +0 -75
- package/lib/style/color/colors.less +0 -149
- package/lib/style/color/tinyColor.less +0 -1184
- package/lib/style/core/base.less +0 -510
- package/lib/style/core/iconfont.less +0 -19
- package/lib/style/core/index.less +0 -4
- package/lib/style/core/motion/fade.less +0 -31
- package/lib/style/core/motion/move.less +0 -120
- package/lib/style/core/motion/other.less +0 -40
- package/lib/style/core/motion/slide.less +0 -120
- package/lib/style/core/motion/swing.less +0 -34
- package/lib/style/core/motion/zoom.less +0 -162
- package/lib/style/core/motion.less +0 -20
- package/lib/style/index.less +0 -2
- package/lib/style/mixins/clearfix.less +0 -13
- package/lib/style/mixins/compatibility.less +0 -22
- package/lib/style/mixins/iconfont.less +0 -43
- package/lib/style/mixins/index.less +0 -10
- package/lib/style/mixins/motion.less +0 -35
- package/lib/style/mixins/operation-unit.less +0 -18
- package/lib/style/mixins/reset.less +0 -13
- package/lib/style/mixins/size.less +0 -10
- package/lib/style/mixins/typography.less +0 -49
- package/lib/style/themes/default.less +0 -699
- package/lib/style/themes/index.less +0 -1
- package/lib/style/v2-compatible-reset.less +0 -51
- package/lib/switch/style/index.less +0 -178
- package/lib/table/style/index.less +0 -800
- package/lib/table/style/size.less +0 -179
- package/lib/tabs/style/card-style.less +0 -186
- package/lib/tabs/style/index.less +0 -436
- package/lib/tag/style/index.less +0 -106
- package/lib/time-picker/style/index.less +0 -246
- package/lib/timeline/style/index.less +0 -167
- package/lib/tntd-form/TntdForm/components/Item.js +0 -65
- package/lib/tntd-form/TntdForm/components/ItemComp.js +0 -215
- package/lib/tntd-form/TntdForm/components/List.js +0 -123
- package/lib/tntd-form/TntdForm/index.js +0 -72
- package/lib/tntd-form/TntdForm/interface.js +0 -5
- package/lib/tntd-form/TntdForm/store.js +0 -10
- package/lib/tntd-form/TntdForm/utils.js +0 -239
- package/lib/tntd-form/_util/motion.d.ts +0 -9
- package/lib/tntd-form/_util/motion.d.ts.map +0 -1
- package/lib/tntd-form/_util/motion.js +0 -59
- package/lib/tntd-form/_util/motion.js.map +0 -1
- package/lib/tntd-form/_util/reactNode.d.ts +0 -9
- package/lib/tntd-form/_util/reactNode.d.ts.map +0 -1
- package/lib/tntd-form/_util/reactNode.js +0 -27
- package/lib/tntd-form/_util/reactNode.js.map +0 -1
- package/lib/tntd-form/_util/scrollTo.d.ts +0 -1
- package/lib/tntd-form/_util/scrollTo.d.ts.map +0 -1
- package/lib/tntd-form/_util/scrollTo.js +0 -35
- package/lib/tntd-form/_util/scrollTo.js.map +0 -1
- package/lib/tntd-form/_util/type.d.ts +0 -4
- package/lib/tntd-form/_util/type.d.ts.map +0 -1
- package/lib/tntd-form/_util/type.js +0 -21
- package/lib/tntd-form/_util/type.js.map +0 -1
- package/lib/tntd-form/_util/warning.d.ts +0 -5
- package/lib/tntd-form/_util/warning.d.ts.map +0 -1
- package/lib/tntd-form/_util/warning.js +0 -20
- package/lib/tntd-form/_util/warning.js.map +0 -1
- package/lib/tntd-form/_util/wave.d.ts +0 -1
- package/lib/tntd-form/_util/wave.d.ts.map +0 -1
- package/lib/tntd-form/_util/wave.js +0 -168
- package/lib/tntd-form/_util/wave.js.map +0 -1
- package/lib/tntd-form/tntd-form.stories.d.ts +0 -33
- package/lib/tntd-form/tntd-form.stories.d.ts.map +0 -1
- package/lib/tntd-form/tntd-form.stories.js +0 -943
- package/lib/tntd-form/tntd-form.stories.js.map +0 -1
- package/lib/tntd-select/_util/DisabledContext.d.ts +0 -10
- package/lib/tntd-select/_util/DisabledContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/DisabledContext.js +0 -22
- package/lib/tntd-select/_util/DisabledContext.js.map +0 -1
- package/lib/tntd-select/_util/FormItemInputContext.d.ts +0 -4
- package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/FormItemInputContext.js +0 -12
- package/lib/tntd-select/_util/FormItemInputContext.js.map +0 -1
- package/lib/tntd-select/_util/PurePanel.d.ts +0 -9
- package/lib/tntd-select/_util/PurePanel.d.ts.map +0 -1
- package/lib/tntd-select/_util/PurePanel.js +0 -90
- package/lib/tntd-select/_util/PurePanel.js.map +0 -1
- package/lib/tntd-select/_util/SizeContext.d.ts +0 -4
- package/lib/tntd-select/_util/SizeContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/SizeContext.js +0 -12
- package/lib/tntd-select/_util/SizeContext.js.map +0 -1
- package/lib/tntd-select/_util/context.d.ts +0 -42
- package/lib/tntd-select/_util/context.d.ts.map +0 -1
- package/lib/tntd-select/_util/context.js +0 -22
- package/lib/tntd-select/_util/context.js.map +0 -1
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts +0 -5
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +0 -1
- package/lib/tntd-select/_util/defaultRenderEmpty.js +0 -44
- package/lib/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
- package/lib/tntd-select/_util/getIcons.d.ts +0 -25
- package/lib/tntd-select/_util/getIcons.d.ts.map +0 -1
- package/lib/tntd-select/_util/getIcons.js +0 -84
- package/lib/tntd-select/_util/getIcons.js.map +0 -1
- package/lib/tntd-select/_util/interface.d.ts +0 -25
- package/lib/tntd-select/_util/interface.d.ts.map +0 -1
- package/lib/tntd-select/_util/interface.js +0 -16
- package/lib/tntd-select/_util/interface.js.map +0 -1
- package/lib/tntd-select/_util/motion.d.ts +0 -9
- package/lib/tntd-select/_util/motion.d.ts.map +0 -1
- package/lib/tntd-select/_util/motion.js +0 -59
- package/lib/tntd-select/_util/motion.js.map +0 -1
- package/lib/tntd-select/_util/type.d.ts +0 -10
- package/lib/tntd-select/_util/type.d.ts.map +0 -1
- package/lib/tntd-select/_util/type.js +0 -21
- package/lib/tntd-select/_util/type.js.map +0 -1
- package/lib/tntd-select/_util/useCompactItemContext.d.ts +0 -9
- package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/useCompactItemContext.js +0 -35
- package/lib/tntd-select/_util/useCompactItemContext.js.map +0 -1
- package/lib/tntd-select/_util/warning.d.ts +0 -4
- package/lib/tntd-select/_util/warning.d.ts.map +0 -1
- package/lib/tntd-select/_util/warning.js +0 -24
- package/lib/tntd-select/_util/warning.js.map +0 -1
- package/lib/tntd-select/rc-select/BaseSelect.d.ts +0 -114
- package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/BaseSelect.js +0 -566
- package/lib/tntd-select/rc-select/BaseSelect.js.map +0 -1
- package/lib/tntd-select/rc-select/OptGroup.d.ts +0 -13
- package/lib/tntd-select/rc-select/OptGroup.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/OptGroup.js +0 -13
- package/lib/tntd-select/rc-select/OptGroup.js.map +0 -1
- package/lib/tntd-select/rc-select/Option.d.ts +0 -15
- package/lib/tntd-select/rc-select/Option.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Option.js +0 -13
- package/lib/tntd-select/rc-select/Option.js.map +0 -1
- package/lib/tntd-select/rc-select/OptionList.d.ts +0 -11
- package/lib/tntd-select/rc-select/OptionList.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/OptionList.js +0 -372
- package/lib/tntd-select/rc-select/OptionList.js.map +0 -1
- package/lib/tntd-select/rc-select/Select.d.ts +0 -115
- package/lib/tntd-select/rc-select/Select.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Select.js +0 -509
- package/lib/tntd-select/rc-select/Select.js.map +0 -1
- package/lib/tntd-select/rc-select/SelectContext.d.ts +0 -23
- package/lib/tntd-select/rc-select/SelectContext.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/SelectContext.js +0 -13
- package/lib/tntd-select/rc-select/SelectContext.js.map +0 -1
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts +0 -31
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/SelectTrigger.js +0 -149
- package/lib/tntd-select/rc-select/SelectTrigger.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/Input.d.ts +0 -27
- package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/Input.js +0 -110
- package/lib/tntd-select/rc-select/Selector/Input.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +0 -17
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +0 -193
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +0 -9
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js +0 -116
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/index.d.ts +0 -83
- package/lib/tntd-select/rc-select/Selector/index.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/index.js +0 -159
- package/lib/tntd-select/rc-select/Selector/index.js.map +0 -1
- package/lib/tntd-select/rc-select/TransBtn.d.ts +0 -13
- package/lib/tntd-select/rc-select/TransBtn.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/TransBtn.js +0 -48
- package/lib/tntd-select/rc-select/TransBtn.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +0 -9
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js +0 -35
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +0 -14
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js +0 -21
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts +0 -8
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useCache.js +0 -49
- package/lib/tntd-select/rc-select/hooks/useCache.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js +0 -44
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +0 -4
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +0 -72
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useId.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useId.js +0 -48
- package/lib/tntd-select/rc-select/hooks/useId.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -26
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts +0 -8
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLock.js +0 -39
- package/lib/tntd-select/rc-select/hooks/useLock.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +0 -12
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useOptions.js +0 -53
- package/lib/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js +0 -22
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -2
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -43
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
- package/lib/tntd-select/rc-select/index.d.ts +0 -11
- package/lib/tntd-select/rc-select/index.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/index.js +0 -38
- package/lib/tntd-select/rc-select/index.js.map +0 -1
- package/lib/tntd-select/rc-select/interface.d.ts +0 -23
- package/lib/tntd-select/rc-select/interface.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/interface.js +0 -5
- package/lib/tntd-select/rc-select/interface.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +0 -10
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/commonUtil.js +0 -43
- package/lib/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +0 -3
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/keyUtil.js +0 -16
- package/lib/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +0 -4
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/legacyUtil.js +0 -60
- package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +0 -2
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/platformUtil.js +0 -10
- package/lib/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +0 -24
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/valueUtil.js +0 -132
- package/lib/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +0 -5
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +0 -127
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
- package/lib/tooltip/style/index.less +0 -187
- package/lib/transfer/style/customize.less +0 -62
- package/lib/transfer/style/index.less +0 -191
- package/lib/tree/style/directory.less +0 -95
- package/lib/tree/style/index.less +0 -280
- package/lib/tree/style/mixin.less +0 -29
- package/lib/tree-select/style/index.less +0 -191
- package/lib/typography/style/index.less +0 -204
- package/lib/upload/style/index.less +0 -542
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
@import '../../style/themes/index';
|
|
2
|
-
@import '../../style/mixins/index';
|
|
3
|
-
@import './mixin';
|
|
4
|
-
|
|
5
|
-
@btn-prefix-cls: ~'@{ant-prefix}-btn';
|
|
6
|
-
|
|
7
|
-
// for compatible
|
|
8
|
-
@btn-ghost-color: @text-color;
|
|
9
|
-
@btn-ghost-bg: transparent;
|
|
10
|
-
@btn-ghost-border: @border-color-base;
|
|
11
|
-
|
|
12
|
-
// Button styles
|
|
13
|
-
// -----------------------------
|
|
14
|
-
.@{btn-prefix-cls} {
|
|
15
|
-
// Fixing https://github.com/ant-design/ant-design/issues/12978
|
|
16
|
-
// Fixing https://github.com/ant-design/ant-design/issues/20058
|
|
17
|
-
// Fixing https://github.com/ant-design/ant-design/issues/19972
|
|
18
|
-
// Fixing https://github.com/ant-design/ant-design/issues/12978
|
|
19
|
-
// Fixing https://github.com/ant-design/ant-design/issues/18107
|
|
20
|
-
// Fixing https://github.com/ant-design/ant-design/issues/13214
|
|
21
|
-
// It is a render problem of chrome, which is only happened in the codesandbox demo
|
|
22
|
-
// 0.001px solution works and I don't why
|
|
23
|
-
line-height: calc(@line-height-base - 0.001);
|
|
24
|
-
.btn;
|
|
25
|
-
.btn-default;
|
|
26
|
-
|
|
27
|
-
// Make sure that the target of Button's click event always be `button`
|
|
28
|
-
// Ref: https://github.com/ant-design/ant-design/issues/7034
|
|
29
|
-
> i,
|
|
30
|
-
> span {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
transition: margin-left 0.3s @ease-in-out;
|
|
33
|
-
pointer-events: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-primary {
|
|
37
|
-
.btn-primary;
|
|
38
|
-
|
|
39
|
-
.@{btn-prefix-cls}-group &:not(:first-child):not(:last-child) {
|
|
40
|
-
border-right-color: @btn-group-border;
|
|
41
|
-
border-left-color: @btn-group-border;
|
|
42
|
-
|
|
43
|
-
&:disabled {
|
|
44
|
-
border-color: @btn-default-border;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.@{btn-prefix-cls}-group &:first-child {
|
|
49
|
-
&:not(:last-child) {
|
|
50
|
-
border-right-color: @btn-group-border;
|
|
51
|
-
&[disabled] {
|
|
52
|
-
border-right-color: @btn-default-border;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.@{btn-prefix-cls}-group &:last-child:not(:first-child),
|
|
58
|
-
.@{btn-prefix-cls}-group & + & {
|
|
59
|
-
border-left-color: @btn-group-border;
|
|
60
|
-
&[disabled] {
|
|
61
|
-
border-left-color: @btn-default-border;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&-ghost {
|
|
67
|
-
.btn-ghost;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-dashed {
|
|
71
|
-
.btn-dashed;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&-danger {
|
|
75
|
-
.btn-danger;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&-link {
|
|
79
|
-
.btn-link;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&-icon-only {
|
|
83
|
-
.btn-square(@btn-prefix-cls);
|
|
84
|
-
|
|
85
|
-
> i {
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&-round {
|
|
91
|
-
.btn-round(@btn-prefix-cls);
|
|
92
|
-
&.@{btn-prefix-cls}-icon-only {
|
|
93
|
-
width: auto;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&-circle,
|
|
98
|
-
&-circle-outline {
|
|
99
|
-
.btn-circle(@btn-prefix-cls);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&::before {
|
|
103
|
-
position: absolute;
|
|
104
|
-
top: -1px;
|
|
105
|
-
right: -1px;
|
|
106
|
-
bottom: -1px;
|
|
107
|
-
left: -1px;
|
|
108
|
-
z-index: 1;
|
|
109
|
-
display: none;
|
|
110
|
-
background: @component-background;
|
|
111
|
-
border-radius: inherit;
|
|
112
|
-
opacity: 0.35;
|
|
113
|
-
transition: opacity 0.2s;
|
|
114
|
-
content: '';
|
|
115
|
-
pointer-events: none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.@{iconfont-css-prefix} {
|
|
119
|
-
transition: margin-left 0.3s @ease-in-out;
|
|
120
|
-
|
|
121
|
-
// Follow icon blur under windows. Change the render.
|
|
122
|
-
// https://github.com/ant-design/ant-design/issues/13924
|
|
123
|
-
&.@{iconfont-css-prefix}-plus,
|
|
124
|
-
&.@{iconfont-css-prefix}-minus {
|
|
125
|
-
> svg {
|
|
126
|
-
shape-rendering: optimizeSpeed;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&&-loading {
|
|
132
|
-
position: relative;
|
|
133
|
-
&:not([disabled]) {
|
|
134
|
-
pointer-events: none;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&&-loading::before {
|
|
139
|
-
display: block;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) {
|
|
143
|
-
padding-left: 29px;
|
|
144
|
-
.@{iconfont-css-prefix}:not(:last-child) {
|
|
145
|
-
margin-left: -14px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&-sm&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) {
|
|
150
|
-
padding-left: 24px;
|
|
151
|
-
.@{iconfont-css-prefix} {
|
|
152
|
-
margin-left: -17px;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&-group {
|
|
157
|
-
.btn-group(@btn-prefix-cls);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// http://stackoverflow.com/a/21281554/3040605
|
|
161
|
-
&:focus > span,
|
|
162
|
-
&:active > span {
|
|
163
|
-
position: relative;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// To ensure that a space will be placed between character and `Icon`.
|
|
167
|
-
> .@{iconfont-css-prefix} + span,
|
|
168
|
-
> span + .@{iconfont-css-prefix} {
|
|
169
|
-
margin-left: 8px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&-background-ghost {
|
|
173
|
-
color: @component-background;
|
|
174
|
-
background: transparent !important;
|
|
175
|
-
border-color: @component-background;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&-background-ghost&-primary {
|
|
179
|
-
.button-variant-ghost(@btn-primary-bg);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&-background-ghost&-danger {
|
|
183
|
-
.button-variant-ghost(@btn-danger-border);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&-background-ghost&-link {
|
|
187
|
-
.button-variant-ghost(@link-color; transparent);
|
|
188
|
-
|
|
189
|
-
color: @component-background;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&-two-chinese-chars::first-letter {
|
|
193
|
-
letter-spacing: 0.34em;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&-two-chinese-chars > *:not(.@{iconfont-css-prefix}) {
|
|
197
|
-
margin-right: -0.34em;
|
|
198
|
-
letter-spacing: 0.34em;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&-block {
|
|
202
|
-
width: 100%;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// https://github.com/ant-design/ant-design/issues/12681
|
|
206
|
-
&:empty {
|
|
207
|
-
vertical-align: top;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
a.@{btn-prefix-cls} {
|
|
212
|
-
// Fixing https://github.com/ant-design/ant-design/issues/12978
|
|
213
|
-
// It is a render problem of chrome, which is only happened in the codesandbox demo
|
|
214
|
-
// 0.1px for padding-top solution works and I don't why
|
|
215
|
-
padding-top: 0.1px;
|
|
216
|
-
line-height: calc(@btn-height-base - 2px);
|
|
217
|
-
|
|
218
|
-
&-lg {
|
|
219
|
-
line-height: calc(@btn-height-lg - 2px);
|
|
220
|
-
}
|
|
221
|
-
&-sm {
|
|
222
|
-
line-height: calc(@btn-height-sm - 2px);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
// mixins for button
|
|
2
|
-
// ------------------------
|
|
3
|
-
.button-size(@height; @padding; @font-size; @border-radius) {
|
|
4
|
-
height: @height;
|
|
5
|
-
padding: @padding;
|
|
6
|
-
font-size: @font-size;
|
|
7
|
-
border-radius: @border-radius;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.button-disabled(@color: @btn-disable-color; @background: @btn-disable-bg; @border: @btn-disable-border) {
|
|
11
|
-
&-disabled,
|
|
12
|
-
&.disabled,
|
|
13
|
-
&[disabled] {
|
|
14
|
-
&,
|
|
15
|
-
&:hover,
|
|
16
|
-
&:focus,
|
|
17
|
-
&:active,
|
|
18
|
-
&.active {
|
|
19
|
-
.button-color(@color; @background; @border);
|
|
20
|
-
|
|
21
|
-
text-shadow: none;
|
|
22
|
-
box-shadow: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.button-variant-primary(@color; @background) {
|
|
28
|
-
.button-color(@color; @background; @background);
|
|
29
|
-
|
|
30
|
-
text-shadow: @btn-text-shadow;
|
|
31
|
-
box-shadow: @btn-primary-shadow;
|
|
32
|
-
|
|
33
|
-
&:hover,
|
|
34
|
-
&:focus {
|
|
35
|
-
.button-color(
|
|
36
|
-
@color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) `
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:active,
|
|
41
|
-
&.active {
|
|
42
|
-
.button-color(
|
|
43
|
-
@color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) `
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.button-disabled();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.button-variant-other(@color; @background; @border) {
|
|
51
|
-
.button-color(@color; @background; @border);
|
|
52
|
-
|
|
53
|
-
&:hover,
|
|
54
|
-
&:focus {
|
|
55
|
-
.button-color(
|
|
56
|
-
~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5)
|
|
57
|
-
`
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
&:active,
|
|
61
|
-
&.active {
|
|
62
|
-
.button-color(
|
|
63
|
-
~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7)
|
|
64
|
-
`
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
.button-disabled();
|
|
68
|
-
}
|
|
69
|
-
.button-variant-ghost(@color; @border: @color) {
|
|
70
|
-
.button-color(@color; transparent; @border);
|
|
71
|
-
text-shadow: none;
|
|
72
|
-
&:hover,
|
|
73
|
-
&:focus {
|
|
74
|
-
& when (@border = transparent) {
|
|
75
|
-
.button-color(~`colorPalette('@{color}', 5) `; transparent; transparent);
|
|
76
|
-
}
|
|
77
|
-
& when not(@border = transparent) {
|
|
78
|
-
.button-color(~`colorPalette('@{color}', 5) `; transparent; ~`colorPalette('@{color}', 5) `);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
&:active,
|
|
82
|
-
&.active {
|
|
83
|
-
& when (@border = transparent) {
|
|
84
|
-
.button-color(~`colorPalette('@{color}', 7) `; transparent; transparent);
|
|
85
|
-
}
|
|
86
|
-
& when not(@border = transparent) {
|
|
87
|
-
.button-color(~`colorPalette('@{color}', 7) `; transparent; ~`colorPalette('@{color}', 7) `);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
.button-disabled();
|
|
91
|
-
}
|
|
92
|
-
.button-color(@color; @background; @border) {
|
|
93
|
-
color: @color;
|
|
94
|
-
background-color: @background;
|
|
95
|
-
border-color: @border;
|
|
96
|
-
// a inside Button which only work in Chrome
|
|
97
|
-
// http://stackoverflow.com/a/17253457
|
|
98
|
-
> a:only-child {
|
|
99
|
-
color: currentColor;
|
|
100
|
-
&::after {
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: 0;
|
|
103
|
-
right: 0;
|
|
104
|
-
bottom: 0;
|
|
105
|
-
left: 0;
|
|
106
|
-
background: transparent;
|
|
107
|
-
content: '';
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
.button-group-base(@btnClassName) {
|
|
112
|
-
position: relative;
|
|
113
|
-
display: inline-block;
|
|
114
|
-
> .@{btnClassName},
|
|
115
|
-
> span > .@{btnClassName} {
|
|
116
|
-
position: relative;
|
|
117
|
-
&:hover,
|
|
118
|
-
&:focus,
|
|
119
|
-
&:active,
|
|
120
|
-
&.active {
|
|
121
|
-
z-index: 2;
|
|
122
|
-
}
|
|
123
|
-
&:disabled {
|
|
124
|
-
z-index: 0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
> .@{btnClassName}-icon-only {
|
|
128
|
-
font-size: @font-size-base;
|
|
129
|
-
}
|
|
130
|
-
// size
|
|
131
|
-
&-lg > .@{btnClassName},
|
|
132
|
-
&-lg > span > .@{btnClassName} {
|
|
133
|
-
.button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; 0);
|
|
134
|
-
line-height: calc(@btn-height-lg - 2px);
|
|
135
|
-
}
|
|
136
|
-
&-lg > .@{btnClassName}.@{btnClassName}-icon-only {
|
|
137
|
-
.square(@btn-height-lg);
|
|
138
|
-
padding-right: 0;
|
|
139
|
-
padding-left: 0;
|
|
140
|
-
}
|
|
141
|
-
&-sm > .@{btnClassName},
|
|
142
|
-
&-sm > span > .@{btnClassName} {
|
|
143
|
-
.button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; 0);
|
|
144
|
-
line-height: calc(@btn-height-sm - 2px);
|
|
145
|
-
> .@{iconfont-css-prefix} {
|
|
146
|
-
font-size: @font-size-base;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
&-sm > .@{btnClassName}.@{btnClassName}-icon-only {
|
|
150
|
-
.square(@btn-height-sm);
|
|
151
|
-
padding-right: 0;
|
|
152
|
-
padding-left: 0;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
// Base styles of buttons
|
|
156
|
-
// --------------------------------------------------
|
|
157
|
-
.btn() {
|
|
158
|
-
position: relative;
|
|
159
|
-
display: inline-block;
|
|
160
|
-
font-weight: @btn-font-weight;
|
|
161
|
-
white-space: nowrap;
|
|
162
|
-
text-align: center;
|
|
163
|
-
background-image: none;
|
|
164
|
-
border: @btn-border-width @btn-border-style transparent;
|
|
165
|
-
box-shadow: @btn-shadow;
|
|
166
|
-
cursor: pointer;
|
|
167
|
-
transition: all 0.3s @ease-in-out;
|
|
168
|
-
user-select: none;
|
|
169
|
-
touch-action: manipulation;
|
|
170
|
-
.button-size(@btn-height-base; @btn-padding-base; @font-size-base; @btn-border-radius-base);
|
|
171
|
-
> .@{iconfont-css-prefix} {
|
|
172
|
-
line-height: 1;
|
|
173
|
-
}
|
|
174
|
-
&,
|
|
175
|
-
&:active,
|
|
176
|
-
&:focus {
|
|
177
|
-
outline: 0;
|
|
178
|
-
}
|
|
179
|
-
&:not([disabled]):hover {
|
|
180
|
-
text-decoration: none;
|
|
181
|
-
}
|
|
182
|
-
&:not([disabled]):active {
|
|
183
|
-
outline: 0;
|
|
184
|
-
box-shadow: none;
|
|
185
|
-
}
|
|
186
|
-
&.disabled,
|
|
187
|
-
&[disabled] {
|
|
188
|
-
cursor: not-allowed;
|
|
189
|
-
> * {
|
|
190
|
-
pointer-events: none;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
&-lg {
|
|
194
|
-
.button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; @btn-border-radius-base);
|
|
195
|
-
}
|
|
196
|
-
&-sm {
|
|
197
|
-
.button-size(@btn-height-sm; @btn-padding-sm; @btn-font-size-sm; @btn-border-radius-sm);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
// primary button style
|
|
201
|
-
.btn-primary() {
|
|
202
|
-
.button-variant-primary(@btn-primary-color; @btn-primary-bg);
|
|
203
|
-
}
|
|
204
|
-
// default button style
|
|
205
|
-
.btn-default() {
|
|
206
|
-
.button-variant-other(@btn-default-color; @btn-default-bg; @btn-default-border);
|
|
207
|
-
&:hover,
|
|
208
|
-
&:focus,
|
|
209
|
-
&:active,
|
|
210
|
-
&.active {
|
|
211
|
-
text-decoration: none;
|
|
212
|
-
background: @btn-default-bg;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
// ghost button style
|
|
216
|
-
.btn-ghost() {
|
|
217
|
-
.button-variant-other(@btn-ghost-color, @btn-ghost-bg, @btn-ghost-border);
|
|
218
|
-
}
|
|
219
|
-
// dashed button style
|
|
220
|
-
.btn-dashed() {
|
|
221
|
-
.button-variant-other(@btn-default-color, @btn-default-bg, @btn-default-border);
|
|
222
|
-
border-style: dashed;
|
|
223
|
-
}
|
|
224
|
-
// danger button style
|
|
225
|
-
.btn-danger() {
|
|
226
|
-
.button-variant-primary(@btn-danger-color, @btn-danger-bg);
|
|
227
|
-
}
|
|
228
|
-
// link button style
|
|
229
|
-
.btn-link() {
|
|
230
|
-
.button-variant-other(@link-color, transparent, transparent);
|
|
231
|
-
box-shadow: none;
|
|
232
|
-
&:hover,
|
|
233
|
-
&:focus,
|
|
234
|
-
&:active {
|
|
235
|
-
border-color: transparent;
|
|
236
|
-
}
|
|
237
|
-
.button-disabled(@disabled-color; transparent; transparent);
|
|
238
|
-
}
|
|
239
|
-
// round button
|
|
240
|
-
.btn-round(@btnClassName: btn) {
|
|
241
|
-
.button-size(@btn-circle-size; 0 @btn-circle-size / 2; @font-size-base; @btn-circle-size);
|
|
242
|
-
&.@{btnClassName}-lg {
|
|
243
|
-
.button-size(
|
|
244
|
-
@btn-circle-size-lg; 0 @btn-circle-size-lg / 2; @btn-font-size-lg; @btn-circle-size-lg
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
&.@{btnClassName}-sm {
|
|
248
|
-
.button-size(
|
|
249
|
-
@btn-circle-size-sm; 0 @btn-circle-size-sm / 2; @font-size-base; @btn-circle-size-sm
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
// square button: the content only contains icon
|
|
254
|
-
.btn-square(@btnClassName: btn) {
|
|
255
|
-
.square(@btn-square-size);
|
|
256
|
-
.button-size(@btn-square-size; 0; @font-size-base + 2px; @btn-border-radius-base);
|
|
257
|
-
&.@{btnClassName}-lg {
|
|
258
|
-
.square(@btn-square-size-lg);
|
|
259
|
-
.button-size(@btn-square-size-lg; 0; @btn-font-size-lg + 2px; @btn-border-radius-base);
|
|
260
|
-
}
|
|
261
|
-
&.@{btnClassName}-sm {
|
|
262
|
-
.square(@btn-square-size-sm);
|
|
263
|
-
.button-size(@btn-square-size-sm; 0; @font-size-base; @btn-border-radius-base);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
// circle button: the content only contains icon
|
|
267
|
-
.btn-circle(@btnClassName: btn) {
|
|
268
|
-
min-width: @btn-height-base;
|
|
269
|
-
padding-right: 0;
|
|
270
|
-
padding-left: 0;
|
|
271
|
-
text-align: center;
|
|
272
|
-
border-radius: 50%;
|
|
273
|
-
&.@{btnClassName}-lg {
|
|
274
|
-
min-width: @btn-height-lg;
|
|
275
|
-
border-radius: 50%;
|
|
276
|
-
}
|
|
277
|
-
&.@{btnClassName}-sm {
|
|
278
|
-
min-width: @btn-height-sm;
|
|
279
|
-
border-radius: 50%;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
// Horizontal button groups style
|
|
283
|
-
// --------------------------------------------------
|
|
284
|
-
.btn-group(@btnClassName: btn) {
|
|
285
|
-
.button-group-base(@btnClassName);
|
|
286
|
-
.@{btnClassName} + .@{btnClassName},
|
|
287
|
-
.@{btnClassName} + &,
|
|
288
|
-
span + .@{btnClassName},
|
|
289
|
-
.@{btnClassName} + span,
|
|
290
|
-
> span + span,
|
|
291
|
-
& + .@{btnClassName},
|
|
292
|
-
& + & {
|
|
293
|
-
margin-left: -1px;
|
|
294
|
-
}
|
|
295
|
-
.@{btnClassName}-primary + .@{btnClassName}:not(.@{btnClassName}-primary):not([disabled]) {
|
|
296
|
-
border-left-color: transparent;
|
|
297
|
-
}
|
|
298
|
-
.@{btnClassName} {
|
|
299
|
-
border-radius: 0;
|
|
300
|
-
}
|
|
301
|
-
> .@{btnClassName}:first-child,
|
|
302
|
-
> span:first-child > .@{btnClassName} {
|
|
303
|
-
margin-left: 0;
|
|
304
|
-
}
|
|
305
|
-
> .@{btnClassName}:only-child {
|
|
306
|
-
border-radius: @btn-border-radius-base;
|
|
307
|
-
}
|
|
308
|
-
> span:only-child > .@{btnClassName} {
|
|
309
|
-
border-radius: @btn-border-radius-base;
|
|
310
|
-
}
|
|
311
|
-
> .@{btnClassName}:first-child:not(:last-child),
|
|
312
|
-
> span:first-child:not(:last-child) > .@{btnClassName} {
|
|
313
|
-
border-top-left-radius: @btn-border-radius-base;
|
|
314
|
-
border-bottom-left-radius: @btn-border-radius-base;
|
|
315
|
-
}
|
|
316
|
-
> .@{btnClassName}:last-child:not(:first-child),
|
|
317
|
-
> span:last-child:not(:first-child) > .@{btnClassName} {
|
|
318
|
-
border-top-right-radius: @btn-border-radius-base;
|
|
319
|
-
border-bottom-right-radius: @btn-border-radius-base;
|
|
320
|
-
}
|
|
321
|
-
&-sm {
|
|
322
|
-
> .@{btnClassName}:only-child {
|
|
323
|
-
border-radius: @btn-border-radius-sm;
|
|
324
|
-
}
|
|
325
|
-
> span:only-child > .@{btnClassName} {
|
|
326
|
-
border-radius: @btn-border-radius-sm;
|
|
327
|
-
}
|
|
328
|
-
> .@{btnClassName}:first-child:not(:last-child),
|
|
329
|
-
> span:first-child:not(:last-child) > .@{btnClassName} {
|
|
330
|
-
border-top-left-radius: @btn-border-radius-sm;
|
|
331
|
-
border-bottom-left-radius: @btn-border-radius-sm;
|
|
332
|
-
}
|
|
333
|
-
> .@{btnClassName}:last-child:not(:first-child),
|
|
334
|
-
> span:last-child:not(:first-child) > .@{btnClassName} {
|
|
335
|
-
border-top-right-radius: @btn-border-radius-sm;
|
|
336
|
-
border-bottom-right-radius: @btn-border-radius-sm;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
& > & {
|
|
340
|
-
float: left;
|
|
341
|
-
}
|
|
342
|
-
& > &:not(:first-child):not(:last-child) > .@{btnClassName} {
|
|
343
|
-
border-radius: 0;
|
|
344
|
-
}
|
|
345
|
-
& > &:first-child:not(:last-child) {
|
|
346
|
-
> .@{btnClassName}:last-child {
|
|
347
|
-
padding-right: 8px;
|
|
348
|
-
border-top-right-radius: 0;
|
|
349
|
-
border-bottom-right-radius: 0;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
& > &:last-child:not(:first-child) > .@{btnClassName}:first-child {
|
|
353
|
-
padding-left: 8px;
|
|
354
|
-
border-top-left-radius: 0;
|
|
355
|
-
border-bottom-left-radius: 0;
|
|
356
|
-
}
|
|
357
|
-
}
|