tntd 3.0.27 → 3.0.28
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/alert/index.js +1 -1
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/index.less +0 -1
- package/es/array-input/index.js +12 -14
- package/es/array-input/index.js.map +1 -1
- package/es/button/button.js +3 -30
- package/es/button/button.js.map +1 -1
- package/es/button/button.less +2 -72
- package/es/cascader/index.js +6 -3
- package/es/cascader/index.js.map +1 -1
- package/es/checkbox/index.js +7 -3
- package/es/checkbox/index.js.map +1 -1
- package/es/date-picker/index.js +12 -6
- package/es/date-picker/index.js.map +1 -1
- package/es/date-picker/style/Calendar.less +1 -1
- package/es/descriptions/descriptions.less +0 -1
- package/es/descriptions/index.js +2 -2
- package/es/descriptions/index.js.map +1 -1
- package/es/drawer/drawer.js +5 -5
- package/es/drawer/drawer.js.map +1 -1
- package/es/drawer/index.less +1 -15
- package/es/drawer/style/drawer.less +3 -18
- package/es/drawer/style/index.js +1 -2
- package/es/drawer/style/index.js.map +1 -1
- package/es/form/style/index.less +0 -6
- package/es/handle/index.js +6 -9
- package/es/handle/index.js.map +1 -1
- package/es/handle/index.less +0 -16
- package/es/input/index.js +1 -1
- package/es/input/index.js.map +1 -1
- package/es/input/input.js +30 -21
- package/es/input/input.js.map +1 -1
- package/es/input/input.less +20 -123
- package/es/input-number/index.js +29 -4
- package/es/input-number/index.js.map +1 -1
- package/es/locale/en_US.js +5 -9
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +3 -7
- package/es/locale/zh_CN.js.map +1 -1
- package/es/message/message.less +1 -2
- package/es/modal/index.js +3 -2
- package/es/modal/index.js.map +1 -1
- package/es/modal/modal.js +16 -103
- package/es/modal/modal.js.map +1 -1
- package/es/modal/style/index.js +1 -2
- package/es/modal/style/index.js.map +1 -1
- package/es/modal/style/modal.less +3 -15
- package/es/notification/notification.less +2 -27
- package/es/notification/style/index.less +0 -1
- package/es/page-container/index.js +1 -1
- package/es/page-container/index.js.map +1 -1
- package/es/page-container/index.less +2 -3
- package/es/page-loading/index.js +1 -1
- package/es/page-loading/index.js.map +1 -1
- package/es/popconfirm/index.js +2 -2
- package/es/popconfirm/index.js.map +1 -1
- package/es/popconfirm/style/index.js +1 -2
- package/es/popconfirm/style/index.js.map +1 -1
- package/es/popover/index.js +2 -2
- package/es/popover/index.js.map +1 -1
- package/es/popover/style/index.js +0 -1
- package/es/popover/style/index.js.map +1 -1
- package/es/preview-text/index.js.map +1 -1
- package/es/progress/index.js +2 -2
- package/es/progress/index.js.map +1 -1
- package/es/query-list-scene/List.js +1 -3
- package/es/query-list-scene/List.js.map +1 -1
- package/es/query-list-scene/QueryForm.js +3 -1
- package/es/query-list-scene/QueryForm.js.map +1 -1
- package/es/query-list-scene/index.less +7 -7
- package/es/radio/index.js +5 -3
- package/es/radio/index.js.map +1 -1
- package/es/segmented/index.less +112 -126
- package/es/select/index.js +1 -1
- package/es/select/index.js.map +1 -1
- package/es/select/select.js +6 -5
- package/es/select/select.js.map +1 -1
- package/es/select/select.less +9 -83
- package/es/select/style/index.less +4 -4
- package/es/spin/index.js +2 -3
- package/es/spin/index.js.map +1 -1
- package/es/steps/index.js +2 -9
- package/es/steps/index.js.map +1 -1
- package/es/steps/stepStyle/index.less +8 -173
- package/es/steps/stepStyle/nav.less +259 -51
- package/es/steps/steps.js +27 -53
- package/es/steps/steps.js.map +1 -1
- package/es/steps/style/index.js +0 -8
- package/es/steps/style/index.js.map +1 -1
- package/es/style/themes/default.less +5 -6
- package/es/switch/style/index.js +1 -2
- package/es/switch/style/index.js.map +1 -1
- package/es/switch/switch.js +2 -40
- package/es/switch/switch.js.map +1 -1
- package/es/table/hooks/use-expand-fixed.js.map +1 -1
- package/es/table/resizableTable/index.less +18 -0
- package/es/table/style/index.less +21 -19
- package/es/table/style/size.less +12 -11
- package/es/table/table.js +39 -65
- package/es/table/table.js.map +1 -1
- package/es/table/table.less +6 -31
- package/es/table/table.stories.js +3 -3
- package/es/table/table.stories.js.map +1 -1
- package/es/table-container/index.js +2 -5
- package/es/table-container/index.js.map +1 -1
- package/es/table-container/index.less +1 -4
- package/es/tabs/index.js +0 -1
- package/es/tabs/index.js.map +1 -1
- package/es/tabs/style/index.js.map +1 -1
- package/es/tabs/style/index.less +0 -1
- package/es/tabs/tabs.js +3 -27
- package/es/tabs/tabs.js.map +1 -1
- package/es/tabs-container/index.js +1 -1
- package/es/tabs-container/index.js.map +1 -1
- package/es/tag/tag.less +3 -4
- package/es/time-picker/index.js +2 -2
- package/es/time-picker/index.js.map +1 -1
- package/es/title/index.less +45 -47
- package/es/tntd-action/index.js +6 -69
- package/es/tntd-action/index.js.map +1 -1
- package/es/tntd-cascader/AntdCascader/index.less +29 -35
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +1 -1
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
- package/es/tntd-select/index.js +4 -3
- package/es/tntd-select/index.js.map +1 -1
- package/es/tntd-virtual-tree/index.less +1 -2
- package/es/tntd-virtual-tree-select/index.less +14 -1
- package/es/tooltip/index.less +5 -4
- package/es/tooltip/style/index.js +1 -2
- package/es/tooltip/style/index.js.map +1 -1
- package/es/upload/index.js +191 -3
- package/es/upload/index.js.map +1 -1
- package/es/upload/style/index.less +1 -1
- package/es/utils/lang.js +2 -8
- package/es/utils/lang.js.map +1 -1
- package/lib/_util/context.js +1 -1
- package/lib/_util/defaultRenderEmpty.js +1 -1
- package/lib/_util/hooks/useFlexGapSupport.js +4 -4
- package/lib/_util/hooks/useForceUpdate.js +4 -4
- package/lib/_util/responsiveObserve.js +1 -1
- package/lib/_util/styleChecker.js +1 -1
- package/lib/actions/index.js +1 -1
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.d.ts.map +1 -1
- package/lib/alert/index.js +8 -7
- package/lib/alert/index.js.map +1 -1
- package/lib/alert/style/index.less +0 -1
- package/lib/array-input/index.d.ts.map +1 -1
- package/lib/array-input/index.js +23 -26
- package/lib/array-input/index.js.map +1 -1
- package/lib/button/button.d.ts +4 -9
- package/lib/button/button.d.ts.map +1 -1
- package/lib/button/button.js +4 -28
- package/lib/button/button.js.map +1 -1
- package/lib/button/button.less +2 -72
- package/lib/cascader/index.d.ts +7 -3
- package/lib/cascader/index.d.ts.map +1 -1
- package/lib/cascader/index.js +10 -5
- package/lib/cascader/index.js.map +1 -1
- package/lib/check-card/group.js +8 -8
- package/lib/check-card/index.js +6 -6
- package/lib/checkbox/checkbox-group.js +1 -1
- package/lib/checkbox/index.d.ts +3 -3
- package/lib/checkbox/index.d.ts.map +1 -1
- package/lib/checkbox/index.js +17 -2
- package/lib/checkbox/index.js.map +1 -1
- package/lib/color-picker/ColorPicker.js +6 -6
- package/lib/color-picker/index.js +1 -1
- package/lib/columns/index.js +1 -1
- package/lib/config-provider/config-provider.js +1 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.d.ts.map +1 -1
- package/lib/date-picker/index.js +37 -6
- package/lib/date-picker/index.js.map +1 -1
- package/lib/date-picker/style/Calendar.less +1 -1
- package/lib/descriptions/descriptions.js +5 -5
- package/lib/descriptions/descriptions.less +0 -1
- package/lib/descriptions/index.d.ts +1 -1
- package/lib/descriptions/index.d.ts.map +1 -1
- package/lib/descriptions/index.js +7 -7
- package/lib/descriptions/index.js.map +1 -1
- package/lib/development-login/LoginModal.js +6 -6
- package/lib/development-login/index.js +4 -4
- package/lib/drawer/drawer.d.ts +3 -3
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +7 -7
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/drawer/index.less +1 -15
- package/lib/drawer/style/drawer.less +3 -18
- package/lib/drawer/style/index.d.ts +0 -1
- package/lib/drawer/style/index.d.ts.map +1 -1
- package/lib/drawer/style/index.js +1 -2
- package/lib/drawer/style/index.js.map +1 -1
- package/lib/ellipsis/Svg/CopySVG.js +1 -1
- package/lib/ellipsis/Svg/TickSVG.js +1 -1
- package/lib/ellipsis/index.js +5 -5
- package/lib/empty/empty.js +2 -2
- package/lib/empty/empty.stories.js +2 -2
- package/lib/exception/exception.js +1 -1
- package/lib/form/form.js +2 -2
- package/lib/form/style/index.less +0 -6
- package/lib/grid-v4/col.js +2 -2
- package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
- package/lib/grid-v4/index.js +1 -1
- package/lib/grid-v4/row.js +6 -6
- package/lib/handle/index.d.ts.map +1 -1
- package/lib/handle/index.js +11 -16
- package/lib/handle/index.js.map +1 -1
- package/lib/handle/index.less +0 -16
- package/lib/handle-icon/index.js +11 -11
- package/lib/icon/IconFont.js +1 -1
- package/lib/icon/components/Icon.js +9 -9
- package/lib/icon/components/index.js +1 -1
- package/lib/icon/components/utils.js +3 -3
- package/lib/icon/index.js +7 -7
- package/lib/icon/twoTonePrimaryColor.js +1 -1
- package/lib/icon/utils.js +1 -1
- package/lib/img/Contain.js +1 -1
- package/lib/img/Cover.js +5 -5
- package/lib/img/index.js +5 -5
- package/lib/index.js +1 -1
- package/lib/input/index.d.ts +1 -1
- package/lib/input/index.d.ts.map +1 -1
- package/lib/input/index.js +7 -7
- package/lib/input/index.js.map +1 -1
- package/lib/input/input.d.ts +5 -5
- package/lib/input/input.d.ts.map +1 -1
- package/lib/input/input.js +22 -13
- package/lib/input/input.js.map +1 -1
- package/lib/input/input.less +20 -123
- package/lib/input-number/index.d.ts +10 -4
- package/lib/input-number/index.d.ts.map +1 -1
- package/lib/input-number/index.js +32 -5
- package/lib/input-number/index.js.map +1 -1
- package/lib/label/index.js +2 -2
- package/lib/loading-button/index.js +5 -5
- package/lib/locale/default.d.ts +3 -7
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/default.js +1 -1
- package/lib/locale/en_US.d.ts +3 -7
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +6 -10
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +3 -7
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +4 -8
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/message/message.less +1 -2
- package/lib/modal/index.d.ts +1 -0
- package/lib/modal/index.d.ts.map +1 -1
- package/lib/modal/index.js +3 -2
- package/lib/modal/index.js.map +1 -1
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +16 -91
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/style/index.d.ts +0 -1
- package/lib/modal/style/index.d.ts.map +1 -1
- package/lib/modal/style/index.js +1 -2
- package/lib/modal/style/index.js.map +1 -1
- package/lib/modal/style/modal.less +3 -15
- package/lib/notification/assets/index.js +1 -1
- package/lib/notification/assets/svg-error-tip.d.ts +1 -1
- package/lib/notification/assets/svg-success-tip.d.ts +1 -1
- package/lib/notification/index.js +1 -1
- package/lib/notification/notification.js +1 -1
- package/lib/notification/notification.less +2 -27
- package/lib/notification/style/index.less +0 -1
- package/lib/page/Box.js +1 -1
- package/lib/page/index.js +7 -7
- package/lib/page-container/index.js +2 -2
- package/lib/page-container/index.js.map +1 -1
- package/lib/page-container/index.less +2 -3
- package/lib/page-loading/index.js +2 -2
- package/lib/page-loading/index.js.map +1 -1
- package/lib/popconfirm/index.d.ts +2 -2
- package/lib/popconfirm/index.d.ts.map +1 -1
- package/lib/popconfirm/index.js +1 -1
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/style/index.d.ts +0 -1
- package/lib/popconfirm/style/index.d.ts.map +1 -1
- package/lib/popconfirm/style/index.js +1 -2
- package/lib/popconfirm/style/index.js.map +1 -1
- package/lib/popover/index.d.ts +2 -2
- package/lib/popover/index.d.ts.map +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/popover/index.js.map +1 -1
- package/lib/popover/style/index.d.ts +0 -1
- package/lib/popover/style/index.d.ts.map +1 -1
- package/lib/popover/style/index.js +1 -2
- package/lib/popover/style/index.js.map +1 -1
- package/lib/preview-text/index.d.ts +1 -1
- package/lib/preview-text/index.d.ts.map +1 -1
- package/lib/preview-text/index.js +7 -7
- package/lib/preview-text/index.js.map +1 -1
- package/lib/progress/index.d.ts +2 -2
- package/lib/progress/index.d.ts.map +1 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/index.js.map +1 -1
- package/lib/query-form/Field/Checkbox.js +1 -1
- package/lib/query-form/Field/Select.js +6 -6
- package/lib/query-form/Field/SelectInput.js +6 -6
- package/lib/query-form/Field/fieldsMap.js +1 -1
- package/lib/query-form/Field/index.js +10 -10
- package/lib/query-form/createActions.js +1 -1
- package/lib/query-form/index.js +10 -10
- package/lib/query-form/useForm.js +1 -1
- package/lib/query-list-scene/List.d.ts.map +1 -1
- package/lib/query-list-scene/List.js +14 -16
- package/lib/query-list-scene/List.js.map +1 -1
- package/lib/query-list-scene/QueryForm.js +12 -11
- package/lib/query-list-scene/QueryForm.js.map +1 -1
- package/lib/query-list-scene/QueryListScene.js +10 -10
- package/lib/query-list-scene/Title.js +1 -1
- package/lib/query-list-scene/Toolbar.js +2 -2
- package/lib/query-list-scene/createActions.js +1 -1
- package/lib/query-list-scene/index.js +1 -1
- package/lib/query-list-scene/index.less +7 -7
- package/lib/query-list-scene/useActions.js +1 -1
- package/lib/radio/index.d.ts +2 -3
- package/lib/radio/index.d.ts.map +1 -1
- package/lib/radio/index.js +5 -2
- package/lib/radio/index.js.map +1 -1
- package/lib/radio/radio-group.js +1 -1
- package/lib/render-empty/render-empty.js +1 -1
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.js +2 -2
- package/lib/segmented/index.less +112 -126
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.d.ts.map +1 -1
- package/lib/select/index.js +6 -6
- package/lib/select/index.js.map +1 -1
- package/lib/select/select.d.ts +1 -1
- package/lib/select/select.d.ts.map +1 -1
- package/lib/select/select.js +6 -5
- package/lib/select/select.js.map +1 -1
- package/lib/select/select.less +9 -83
- package/lib/select/style/index.less +4 -4
- package/lib/spin/index.d.ts +2 -3
- package/lib/spin/index.d.ts.map +1 -1
- package/lib/spin/index.js +6 -4
- package/lib/spin/index.js.map +1 -1
- package/lib/steps/index.d.ts +2 -1
- package/lib/steps/index.d.ts.map +1 -1
- package/lib/steps/index.js +2 -9
- package/lib/steps/index.js.map +1 -1
- package/lib/steps/stepStyle/index.less +8 -173
- package/lib/steps/stepStyle/nav.less +259 -51
- package/lib/steps/steps.d.ts +2 -10
- package/lib/steps/steps.d.ts.map +1 -1
- package/lib/steps/steps.js +24 -52
- package/lib/steps/steps.js.map +1 -1
- package/lib/steps/style/index.d.ts.map +1 -1
- package/lib/steps/style/index.js.map +1 -1
- package/lib/style/themes/default.less +5 -6
- package/lib/svg-components/illustration-403.d.ts +1 -1
- package/lib/svg-components/illustration-404.d.ts +1 -1
- package/lib/svg-components/illustration-500.d.ts +1 -1
- package/lib/svg-components/illustration-empty.d.ts +1 -1
- package/lib/svg-components/illustration-failure.d.ts +1 -1
- package/lib/svg-components/illustration-no-access.d.ts +1 -1
- package/lib/svg-components/illustration-no-chart.d.ts +1 -1
- package/lib/svg-components/illustration-no-result.d.ts +1 -1
- package/lib/svg-components/illustration-offline.d.ts +1 -1
- package/lib/svg-components/illustration-success.d.ts +1 -1
- package/lib/svg-components/index.js +1 -1
- package/lib/switch/style/index.d.ts +0 -1
- package/lib/switch/style/index.d.ts.map +1 -1
- package/lib/switch/style/index.js +1 -2
- package/lib/switch/style/index.js.map +1 -1
- package/lib/switch/switch.d.ts +0 -8
- package/lib/switch/switch.d.ts.map +1 -1
- package/lib/switch/switch.js +5 -40
- package/lib/switch/switch.js.map +1 -1
- package/lib/table/assets/image-loading-background.d.ts +1 -1
- package/lib/table/assets/image-loading.d.ts +1 -1
- package/lib/table/hooks/use-column-setting.js +4 -4
- package/lib/table/hooks/use-expand-fixed.js +6 -6
- package/lib/table/hooks/use-expand-fixed.js.map +1 -1
- package/lib/table/resizableTable/index.js +6 -6
- package/lib/table/resizableTable/index.less +18 -0
- package/lib/table/style/index.less +21 -19
- package/lib/table/style/size.less +12 -11
- package/lib/table/table-hoc.js +1 -1
- package/lib/table/table.d.ts +1 -2
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +41 -61
- package/lib/table/table.js.map +1 -1
- package/lib/table/table.less +6 -31
- package/lib/table/table.stories.js +5 -5
- package/lib/table/table.stories.js.map +1 -1
- package/lib/table/total-shower.js +1 -1
- package/lib/table/utils.js +1 -1
- package/lib/table-container/index.d.ts.map +1 -1
- package/lib/table-container/index.js +3 -7
- package/lib/table-container/index.js.map +1 -1
- package/lib/table-container/index.less +1 -4
- package/lib/tabs/index.d.ts +0 -1
- package/lib/tabs/index.d.ts.map +1 -1
- package/lib/tabs/index.js +5 -6
- package/lib/tabs/index.js.map +1 -1
- package/lib/tabs/style/index.js.map +1 -1
- package/lib/tabs/style/index.less +0 -1
- package/lib/tabs/tabs.d.ts +2 -3
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +3 -30
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tabs-container/index.js +2 -2
- package/lib/tabs-container/index.js.map +1 -1
- package/lib/tag/tag.js +2 -2
- package/lib/tag/tag.less +3 -4
- package/lib/time-picker/index.d.ts +6 -7
- package/lib/time-picker/index.d.ts.map +1 -1
- package/lib/time-picker/index.js +17 -4
- package/lib/time-picker/index.js.map +1 -1
- package/lib/title/index.js +1 -1
- package/lib/title/index.less +45 -47
- package/lib/tntd-action/index.d.ts +2 -4
- package/lib/tntd-action/index.d.ts.map +1 -1
- package/lib/tntd-action/index.js +5 -79
- package/lib/tntd-action/index.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
- package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
- package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
- package/lib/tntd-cascader/AntdCascader/index.js +7 -7
- package/lib/tntd-cascader/AntdCascader/index.less +29 -35
- package/lib/tntd-cascader/index.js +1 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -8
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
- package/lib/tntd-cascader/rc-cascader/index.js +1 -1
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
- package/lib/tntd-form/ErrorList.js +7 -7
- package/lib/tntd-form/Form.js +6 -6
- package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
- package/lib/tntd-form/FormItem/index.js +8 -8
- package/lib/tntd-form/FormItemInput.js +1 -1
- package/lib/tntd-form/FormItemLabel.js +2 -2
- package/lib/tntd-form/FormList.js +1 -1
- package/lib/tntd-form/context.js +1 -1
- package/lib/tntd-form/hooks/useDebounce.js +4 -4
- package/lib/tntd-form/hooks/useForm.js +5 -5
- package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
- package/lib/tntd-form/hooks/useFrameState.js +5 -5
- package/lib/tntd-form/index.js +1 -1
- package/lib/tntd-icon/index.js +1 -1
- package/lib/tntd-layout/AppList.js +6 -6
- package/lib/tntd-layout/Application.js +6 -6
- package/lib/tntd-layout/Avatar.js +2 -2
- package/lib/tntd-layout/CompatibleLanguage.js +6 -6
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
- package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
- package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
- package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
- package/lib/tntd-layout/Header.js +2 -2
- package/lib/tntd-layout/HeaderActions.js +2 -2
- package/lib/tntd-layout/HeaderNavs.js +6 -6
- package/lib/tntd-layout/HeaderTabs.js +7 -7
- package/lib/tntd-layout/Iconfont.js +1 -1
- package/lib/tntd-layout/Language.js +6 -6
- package/lib/tntd-layout/Layout.js +6 -6
- package/lib/tntd-layout/Logo.js +2 -2
- package/lib/tntd-layout/OrgAppList.js +6 -6
- package/lib/tntd-layout/SideMenu.js +6 -6
- package/lib/tntd-layout/Theme.js +6 -6
- package/lib/tntd-layout/createActions.js +1 -1
- package/lib/tntd-layout/images/index.js +1 -1
- package/lib/tntd-layout/index.js +1 -1
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
- package/lib/tntd-layout/paaslayout/Header.js +2 -2
- package/lib/tntd-layout/paaslayout/Logo.js +2 -2
- package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
- package/lib/tntd-layout/paaslayout/index.js +6 -6
- package/lib/tntd-layout/storage.js +1 -1
- package/lib/tntd-modal/index.js +6 -6
- package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
- package/lib/tntd-rc-select/_util/context.js +1 -1
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
- package/lib/tntd-rc-select/_util/getIcons.js +1 -1
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
- package/lib/tntd-rc-select/index.js +2 -2
- package/lib/tntd-reference/AHref/index.js +1 -1
- package/lib/tntd-reference/ReferenceBatchCheck/index.js +1 -1
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
- package/lib/tntd-reference/ReferenceCheck/index.js +1 -1
- package/lib/tntd-reference/ReferenceDrawer/index.js +5 -5
- package/lib/tntd-reference/ReferenceInfo/index.js +1 -1
- package/lib/tntd-reference/index.js +1 -1
- package/lib/tntd-second-page/index.js +1 -1
- package/lib/tntd-select/DropDownWrap.js +8 -8
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js +13 -13
- package/lib/tntd-select/index.js.map +1 -1
- package/lib/tntd-virtual-tree/index.js +8 -8
- package/lib/tntd-virtual-tree/index.less +1 -2
- package/lib/tntd-virtual-tree/utils.js +28 -28
- package/lib/tntd-virtual-tree-select/index.js +10 -10
- package/lib/tntd-virtual-tree-select/index.less +14 -1
- package/lib/tntd-virtual-tree-select/utils.js +9 -9
- package/lib/tooltip/index.less +5 -4
- package/lib/tooltip/style/index.d.ts +0 -1
- package/lib/tooltip/style/index.d.ts.map +1 -1
- package/lib/tooltip/style/index.js +1 -2
- package/lib/tooltip/style/index.js.map +1 -1
- package/lib/tooltip/tooltip.js +1 -1
- package/lib/upload/index.d.ts +1 -0
- package/lib/upload/index.d.ts.map +1 -1
- package/lib/upload/index.js +208 -4
- package/lib/upload/index.js.map +1 -1
- package/lib/upload/style/index.less +1 -1
- package/lib/upload/svg/UploadSVG.js +1 -1
- package/lib/utils/checkAuth.js +4 -4
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +9 -9
- package/lib/utils/lang.d.ts.map +1 -1
- package/lib/utils/lang.js +4 -10
- package/lib/utils/lang.js.map +1 -1
- package/lib/water-mark/index.js +5 -5
- package/package.json +1 -1
- package/es/alert/alert.js +0 -71
- package/es/alert/alert.js.map +0 -1
- package/es/alert/alert.less +0 -128
- package/es/cascader/cascader.js +0 -30
- package/es/cascader/cascader.js.map +0 -1
- package/es/cascader/cascader.less +0 -16
- package/es/checkbox/check.png +0 -0
- package/es/checkbox/checkbox.js +0 -48
- package/es/checkbox/checkbox.js.map +0 -1
- package/es/checkbox/checkbox.less +0 -69
- package/es/date-picker/DatePicker.js +0 -101
- package/es/date-picker/DatePicker.js.map +0 -1
- package/es/date-picker/index.less +0 -294
- package/es/input-number/inputNumber.js +0 -34
- package/es/input-number/inputNumber.js.map +0 -1
- package/es/input-number/inputNumber.less +0 -12
- package/es/modal/index.less +0 -36
- package/es/popconfirm/index.less +0 -32
- package/es/popconfirm/popconfirm.js +0 -43
- package/es/popconfirm/popconfirm.js.map +0 -1
- package/es/popover/index.less +0 -57
- package/es/popover/popover.js +0 -34
- package/es/popover/popover.js.map +0 -1
- package/es/progress/progress.js +0 -132
- package/es/progress/progress.js.map +0 -1
- package/es/progress/progress.less +0 -82
- package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form-backup/Field/Composition/index.less +0 -114
- package/es/query-form-backup/index.less +0 -90
- package/es/radio/radio.js +0 -57
- package/es/radio/radio.js.map +0 -1
- package/es/radio/radio.less +0 -43
- package/es/spin/spin.js +0 -36
- package/es/spin/spin.js.map +0 -1
- package/es/spin/spin.less +0 -9
- package/es/steps/assets/background_left.svg +0 -12
- package/es/steps/assets/background_right.svg +0 -12
- package/es/steps/assets/horizontal_line.svg +0 -3
- package/es/steps/assets/vertical_line.svg +0 -3
- package/es/steps/stepStyle/icon.less +0 -51
- package/es/steps/stepStyle/progress-dot.less +0 -10
- package/es/steps/stepStyle/variables.less +0 -8
- package/es/steps/stepStyle/vertical.less +0 -41
- package/es/switch/index.less +0 -45
- package/es/tabs/tabs.less +0 -125
- package/es/time-picker/TimePicker.js +0 -36
- package/es/time-picker/TimePicker.js.map +0 -1
- package/es/time-picker/index.less +0 -38
- package/es/tntd-action/Action.js +0 -117
- package/es/tntd-action/Action.js.map +0 -1
- package/es/tntd-action/index.less +0 -59
- package/es/tntd-select/index.less +0 -7
- package/lib/alert/alert.d.ts +0 -12
- package/lib/alert/alert.d.ts.map +0 -1
- package/lib/alert/alert.js +0 -93
- package/lib/alert/alert.js.map +0 -1
- package/lib/alert/alert.less +0 -128
- package/lib/cascader/cascader.d.ts +0 -10
- package/lib/cascader/cascader.d.ts.map +0 -1
- package/lib/cascader/cascader.js +0 -49
- package/lib/cascader/cascader.js.map +0 -1
- package/lib/cascader/cascader.less +0 -16
- package/lib/checkbox/check.png +0 -0
- package/lib/checkbox/checkbox.d.ts +0 -16
- package/lib/checkbox/checkbox.d.ts.map +0 -1
- package/lib/checkbox/checkbox.js +0 -65
- package/lib/checkbox/checkbox.js.map +0 -1
- package/lib/checkbox/checkbox.less +0 -69
- package/lib/date-picker/DatePicker.d.ts +0 -21
- package/lib/date-picker/DatePicker.d.ts.map +0 -1
- package/lib/date-picker/DatePicker.js +0 -128
- package/lib/date-picker/DatePicker.js.map +0 -1
- package/lib/date-picker/index.less +0 -294
- package/lib/input-number/inputNumber.d.ts +0 -10
- package/lib/input-number/inputNumber.d.ts.map +0 -1
- package/lib/input-number/inputNumber.js +0 -54
- package/lib/input-number/inputNumber.js.map +0 -1
- package/lib/input-number/inputNumber.less +0 -12
- package/lib/modal/index.less +0 -36
- package/lib/popconfirm/index.less +0 -32
- package/lib/popconfirm/popconfirm.d.ts +0 -8
- package/lib/popconfirm/popconfirm.d.ts.map +0 -1
- package/lib/popconfirm/popconfirm.js +0 -61
- package/lib/popconfirm/popconfirm.js.map +0 -1
- package/lib/popover/index.less +0 -57
- package/lib/popover/popover.d.ts +0 -14
- package/lib/popover/popover.d.ts.map +0 -1
- package/lib/popover/popover.js +0 -55
- package/lib/popover/popover.js.map +0 -1
- package/lib/progress/progress.d.ts +0 -12
- package/lib/progress/progress.d.ts.map +0 -1
- package/lib/progress/progress.js +0 -148
- package/lib/progress/progress.js.map +0 -1
- package/lib/progress/progress.less +0 -82
- package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form-backup/Field/Composition/index.less +0 -114
- package/lib/query-form-backup/index.less +0 -90
- package/lib/radio/radio.d.ts +0 -17
- package/lib/radio/radio.d.ts.map +0 -1
- package/lib/radio/radio.js +0 -75
- package/lib/radio/radio.js.map +0 -1
- package/lib/radio/radio.less +0 -43
- package/lib/spin/spin.d.ts +0 -9
- package/lib/spin/spin.d.ts.map +0 -1
- package/lib/spin/spin.js +0 -44
- package/lib/spin/spin.js.map +0 -1
- package/lib/spin/spin.less +0 -9
- package/lib/steps/assets/background_left.svg +0 -12
- package/lib/steps/assets/background_right.svg +0 -12
- package/lib/steps/assets/horizontal_line.svg +0 -3
- package/lib/steps/assets/vertical_line.svg +0 -3
- package/lib/steps/stepStyle/icon.less +0 -51
- package/lib/steps/stepStyle/progress-dot.less +0 -10
- package/lib/steps/stepStyle/variables.less +0 -8
- package/lib/steps/stepStyle/vertical.less +0 -41
- package/lib/switch/index.less +0 -45
- package/lib/tabs/tabs.less +0 -125
- package/lib/time-picker/TimePicker.d.ts +0 -9
- package/lib/time-picker/TimePicker.d.ts.map +0 -1
- package/lib/time-picker/TimePicker.js +0 -55
- package/lib/time-picker/TimePicker.js.map +0 -1
- package/lib/time-picker/index.less +0 -38
- package/lib/tntd-action/Action.d.ts +0 -6
- package/lib/tntd-action/Action.d.ts.map +0 -1
- package/lib/tntd-action/Action.js +0 -141
- package/lib/tntd-action/Action.js.map +0 -1
- package/lib/tntd-action/index.less +0 -59
- package/lib/tntd-select/index.less +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuC;AACvC,mDAA0B;AAO1B,6DAAwD;AACxD,sEAAgD;AAChD,4DAAmC;AACnC,sDAAmC;AACnC,gEAA6C;AAC7C,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,qBAAc,CAAA;AAExD,MAAM,aAAa,GAEtB,CAAC,KAAK,EAAE,EAAE;IACZ,sCAAsC;IACtC,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,8BAAC,cAAI,IAAC,IAAI,EAAC,YAAY,GAAG,CAAA;IAE9C,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,8BAAC,qBAAc,kBACb,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,aAAa,iBAqBzB;AAEM,MAAM,cAAc,GAEvB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,8BAAC,cAAI,IAAC,IAAI,EAAC,YAAY,GAAG,CAAA;IAE9C,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,8BAAC,WAAW,kBACV,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,cAAc,kBAoB1B;AAEM,MAAM,aAAa,GAEtB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,8BAAC,cAAI,IAAC,IAAI,EAAC,YAAY,GAAG,CAAA;IAE9C,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,8BAAC,UAAU,kBACT,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,aAAa,iBAoBzB;AAEM,MAAM,cAAc,GAEvB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,8BAAC,cAAI,IAAC,IAAI,EAAC,YAAY,GAAG,CAAA;IAE9C,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,8BAAC,WAAW,kBACV,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,cAAc,kBAoB1B","sourcesContent":["import React, { useState } from 'react'\nimport Icon from '../icon'\nimport type {\n DatePickerProps as AntdDatePickerProps,\n MonthPickerProps as AntMonthPickerProps,\n RangePickerProps as AntRangePickerProps,\n WeekPickerProps as AntWeekPickerProps,\n} from 'antd/lib/date-picker/interface'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntdDatePicker from 'antd/lib/date-picker'\nimport classNames from 'classnames'\nexport * from 'antd/lib/date-picker'\nexport * from 'antd/lib/date-picker/interface'\nconst { MonthPicker, WeekPicker, RangePicker } = AntdDatePicker\n\nexport const TntDatePicker: React.FC<\n AntdDatePickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n //theme样式类型 outline | fill 默认 outline\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <AntdDatePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntMonthPicker: React.FC<\n AntMonthPickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <MonthPicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntWeekPicker: React.FC<\n AntWeekPickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <WeekPicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntRangePicker: React.FC<\n AntRangePickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <RangePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n"]}
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
@import '../style/themes/index';
|
|
2
|
-
|
|
3
|
-
@datepicker-prefix-cls: ~'@{ant-prefix}-date-picker';
|
|
4
|
-
@calendar-prefix-cls: ~'@{ant-prefix}-calendar';
|
|
5
|
-
@calendar-timepicker-prefix-cls: ~'@{ant-prefix}-calendar-time-picker';
|
|
6
|
-
|
|
7
|
-
.@{calendar-prefix-cls}-picker-container{
|
|
8
|
-
.@{calendar-prefix-cls}{
|
|
9
|
-
// margin-top: 42px;
|
|
10
|
-
.@{calendar-prefix-cls}-input-wrap{
|
|
11
|
-
// display: none;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.@{calendar-prefix-cls}-range{
|
|
15
|
-
// margin-top: 42px;
|
|
16
|
-
.@{calendar-prefix-cls}-input-wrap,.@{calendar-prefix-cls}-range-middle{
|
|
17
|
-
// display: none;
|
|
18
|
-
}
|
|
19
|
-
.@{calendar-prefix-cls}-decade-panel,.@{calendar-prefix-cls}-year-panel,.@{calendar-prefix-cls}-month-panel{
|
|
20
|
-
// top: 0
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.@{calendar-prefix-cls}-month-calendar,.@{calendar-prefix-cls}-week-number{
|
|
24
|
-
// margin-top: 42px;
|
|
25
|
-
}
|
|
26
|
-
//.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
|
|
27
|
-
// background-color: @white;
|
|
28
|
-
//}
|
|
29
|
-
.@{calendar-prefix-cls}:not(.@{calendar-prefix-cls}-range){
|
|
30
|
-
.@{calendar-prefix-cls}-selected-date .@{calendar-prefix-cls}-date{
|
|
31
|
-
background-color: @blue-6;
|
|
32
|
-
color: @white;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
//Picker
|
|
38
|
-
.@{calendar-prefix-cls}-picker{
|
|
39
|
-
input,.@{calendar-prefix-cls}-picker-input{
|
|
40
|
-
border-color: @border-color-secondary;
|
|
41
|
-
color: @text-color;
|
|
42
|
-
&:focus{
|
|
43
|
-
border-color: @blue-5;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
&:has(input:not([value=''])),&:hover {
|
|
47
|
-
.@{calendar-prefix-cls}-picker-icon{
|
|
48
|
-
color: @text-color-secondary;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
&:has(input[disabled]){
|
|
52
|
-
.@{calendar-prefix-cls}-picker-icon{
|
|
53
|
-
color: @disabled-color;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.@{calendar-prefix-cls}-picker-icon{
|
|
57
|
-
width: auto;
|
|
58
|
-
height: @font-size-lg;
|
|
59
|
-
font-size: @font-size-lg;
|
|
60
|
-
}
|
|
61
|
-
.@{calendar-prefix-cls}-picker-clear{
|
|
62
|
-
color: tint(@bg-color-spotilight, 50%);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.@{datepicker-prefix-cls}{
|
|
66
|
-
&-fill{
|
|
67
|
-
.@{calendar-prefix-cls}-picker{
|
|
68
|
-
&-input {
|
|
69
|
-
&.@{ant-prefix}-input {
|
|
70
|
-
background-color: @fill-color-quaternary;
|
|
71
|
-
border-color: @fill-color-quaternary;
|
|
72
|
-
&-disabled {
|
|
73
|
-
border: none;
|
|
74
|
-
pointer-events: none;
|
|
75
|
-
background: @disabled-bg;
|
|
76
|
-
}
|
|
77
|
-
&:focus{
|
|
78
|
-
background-color: @white;
|
|
79
|
-
border-color: @blue-5;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
&:not([value='']):hover {
|
|
83
|
-
background-color: @white;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
//Calender
|
|
91
|
-
.@{calendar-prefix-cls}{
|
|
92
|
-
&-footer {
|
|
93
|
-
&-extra {
|
|
94
|
-
.@{ant-prefix}-tag{
|
|
95
|
-
color: @text-color;
|
|
96
|
-
border: none;
|
|
97
|
-
background-color: @white;
|
|
98
|
-
&:hover{
|
|
99
|
-
color: @blue-6;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
thead tr{
|
|
106
|
-
border-bottom: none;
|
|
107
|
-
}
|
|
108
|
-
table th{
|
|
109
|
-
background-color: @white;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
//RangePicker
|
|
114
|
-
.@{calendar-prefix-cls}-range{
|
|
115
|
-
.@{calendar-prefix-cls}-in-range-cell,
|
|
116
|
-
.@{calendar-prefix-cls}-selected-start-date,
|
|
117
|
-
.@{calendar-prefix-cls}-selected-end-date {
|
|
118
|
-
position: relative;
|
|
119
|
-
border-radius: 0;
|
|
120
|
-
> div {
|
|
121
|
-
position: relative;
|
|
122
|
-
z-index: 1;
|
|
123
|
-
}
|
|
124
|
-
&::before {
|
|
125
|
-
position: absolute;
|
|
126
|
-
top: 3px;
|
|
127
|
-
right: 0;
|
|
128
|
-
bottom: 3px;
|
|
129
|
-
left: 0;
|
|
130
|
-
display: block;
|
|
131
|
-
background: @item-active-bg;
|
|
132
|
-
border: 0;
|
|
133
|
-
border-radius: 0;
|
|
134
|
-
content: '';
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
.@{calendar-prefix-cls}-selected-start-date{
|
|
138
|
-
&::before{
|
|
139
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
140
|
-
}
|
|
141
|
-
&::after {
|
|
142
|
-
position: absolute;
|
|
143
|
-
bottom: -2px;
|
|
144
|
-
left: 16px;
|
|
145
|
-
display: block;
|
|
146
|
-
background: @blue-6;
|
|
147
|
-
border: 0;
|
|
148
|
-
border-radius: 50%;
|
|
149
|
-
width: 4px;
|
|
150
|
-
height: 4px;
|
|
151
|
-
content: '';
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
//ant-calendar-last-day-of-month
|
|
155
|
-
//ant-calendar-last-month-cell ant-calendar-last-day-of-month
|
|
156
|
-
.@{calendar-prefix-cls}-selected-end-date{
|
|
157
|
-
&::before{
|
|
158
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
.@{calendar-prefix-cls}-selected-start-date.@{calendar-prefix-cls}-selected-end-date{
|
|
162
|
-
&::before{
|
|
163
|
-
border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
tr .@{calendar-prefix-cls}-in-range-cell:first-child{
|
|
167
|
-
&::before{
|
|
168
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
tr .@{calendar-prefix-cls}-selected-end-date:first-child,
|
|
172
|
-
tr .@{calendar-prefix-cls}-selected-start-date:last-child{
|
|
173
|
-
&::before{
|
|
174
|
-
border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
tr .@{calendar-prefix-cls}-in-range-cell:last-child{
|
|
178
|
-
&::before{
|
|
179
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
.@{calendar-prefix-cls}-cell{
|
|
183
|
-
height: 38px;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
//MonthPanel
|
|
188
|
-
.@{calendar-prefix-cls}-month-panel-month {
|
|
189
|
-
border-radius: @border-radius-base;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
//WeekPicker
|
|
193
|
-
.@{calendar-prefix-cls}-week-number {
|
|
194
|
-
&-cell {
|
|
195
|
-
opacity: 1;
|
|
196
|
-
font-weight: normal;
|
|
197
|
-
color: @text-color-tertiary !important;
|
|
198
|
-
}
|
|
199
|
-
.@{calendar-prefix-cls}-body tr {
|
|
200
|
-
cursor: pointer;
|
|
201
|
-
transition: all 0.3s;
|
|
202
|
-
background: @white;
|
|
203
|
-
.@{calendar-prefix-cls}-date{
|
|
204
|
-
width: auto;
|
|
205
|
-
border-radius: 0;
|
|
206
|
-
font-weight: 500;
|
|
207
|
-
}
|
|
208
|
-
&:hover {
|
|
209
|
-
background: @white;
|
|
210
|
-
td:nth-child(2){
|
|
211
|
-
.@{calendar-prefix-cls}-date{
|
|
212
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
td:last-child{
|
|
216
|
-
.@{calendar-prefix-cls}-date{
|
|
217
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
.@{calendar-prefix-cls}-cell{
|
|
221
|
-
&::before{
|
|
222
|
-
top: 8px;
|
|
223
|
-
bottom: 8px;
|
|
224
|
-
}
|
|
225
|
-
.@{calendar-prefix-cls}-date{
|
|
226
|
-
background: @background-color-base;
|
|
227
|
-
&:hover{
|
|
228
|
-
background: @background-color-base;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
.@{calendar-prefix-cls}-selected-day{
|
|
232
|
-
background: @background-color-base;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
.@{calendar-prefix-cls}-week-number-cell{
|
|
236
|
-
background: @white;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
.@{calendar-prefix-cls}-selected-day .@{calendar-prefix-cls}-date,
|
|
240
|
-
.@{calendar-prefix-cls}-selected-day:hover .@{calendar-prefix-cls}-date {
|
|
241
|
-
color: @text-color;
|
|
242
|
-
background: transparent;
|
|
243
|
-
}
|
|
244
|
-
&.@{calendar-prefix-cls}-active-week {
|
|
245
|
-
background: transparent;
|
|
246
|
-
td:nth-child(2){
|
|
247
|
-
.@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
|
|
248
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
td:last-child{
|
|
252
|
-
.@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
|
|
253
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
.@{calendar-prefix-cls}-cell{
|
|
257
|
-
font-weight: bold;
|
|
258
|
-
//background: @primary-color;
|
|
259
|
-
.@{calendar-prefix-cls}-date{
|
|
260
|
-
color: @text-color-inverse;
|
|
261
|
-
background: @primary-color;
|
|
262
|
-
&:hover{
|
|
263
|
-
color: @text-color-inverse;
|
|
264
|
-
background: @primary-color;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
.@{calendar-prefix-cls}-selected-day{
|
|
268
|
-
background: @primary-color;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
|
|
273
|
-
//color: @text-color;
|
|
274
|
-
//font-weight: normal;
|
|
275
|
-
border-color: transparent;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
.@{calendar-prefix-cls}-cell{
|
|
279
|
-
height: 38px;
|
|
280
|
-
position: relative;
|
|
281
|
-
&::before {
|
|
282
|
-
position: absolute;
|
|
283
|
-
top: 3px;
|
|
284
|
-
right: 0;
|
|
285
|
-
bottom: 3px;
|
|
286
|
-
left: 0;
|
|
287
|
-
display: block;
|
|
288
|
-
border: 0;
|
|
289
|
-
border-radius: 0;
|
|
290
|
-
content: '';
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { default as AntdInputNumber } from 'antd/lib/input-number';
|
|
3
|
-
import type { InputNumberProps as AntdInputNumberProps } from 'antd/lib/input-number';
|
|
4
|
-
export * from 'antd/lib/input-number';
|
|
5
|
-
export declare type InputNumberProps = AntdInputNumberProps & {
|
|
6
|
-
readonly?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<AntdInputNumberProps & React.RefAttributes<AntdInputNumber>, "key" | keyof AntdInputNumberProps> & React.RefAttributes<unknown>>;
|
|
9
|
-
export default _default;
|
|
10
|
-
//# sourceMappingURL=inputNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputNumber.d.ts","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAKpF,cAAc,sBAAsB,CAAA;AAIpC,oBAAY,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAuBD,wBAA0E"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
var _exportNames = {};
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _configProvider = require("../config-provider");
|
|
11
|
-
var _inputNumber = _interopRequireWildcard(require("antd/lib/input-number"));
|
|
12
|
-
Object.keys(_inputNumber).forEach(function (key) {
|
|
13
|
-
if (key === "default" || key === "__esModule") return;
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
15
|
-
if (key in exports && exports[key] === _inputNumber[key]) return;
|
|
16
|
-
Object.defineProperty(exports, key, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _inputNumber[key];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
var _connect = require("../connect");
|
|
24
|
-
var _previewText = _interopRequireDefault(require("../preview-text"));
|
|
25
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
26
|
-
var _prevLocale = require("../prev-locale");
|
|
27
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
28
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
29
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
30
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
31
|
-
var t = {};
|
|
32
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
33
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
var defaultPlaceholder = (0, _prevLocale.getText)('enter', (0, _prevLocale.getLanguage)());
|
|
39
|
-
var tntPrefixCls = 'tnt-input-number';
|
|
40
|
-
var TntInputNumber = (0, _react.forwardRef)(function (_a, ref) {
|
|
41
|
-
var className = _a.className,
|
|
42
|
-
_a$placeholder = _a.placeholder,
|
|
43
|
-
placeholder = _a$placeholder === void 0 ? defaultPlaceholder : _a$placeholder,
|
|
44
|
-
props = __rest(_a, ["className", "placeholder"]);
|
|
45
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
|
|
46
|
-
return _react["default"].createElement(_inputNumber["default"], Object.assign({
|
|
47
|
-
placeholder: placeholder
|
|
48
|
-
}, props, {
|
|
49
|
-
ref: ref,
|
|
50
|
-
className: (0, _classnames["default"])(className, tntPrefixCls)
|
|
51
|
-
}));
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(TntInputNumber, _previewText["default"].Input);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputNumber.js","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,wDAAmD;AACnD,wEAAiE;AAEjE,wCAAqD;AACrD,mEAAyC;AACzC,4DAAmC;AACnC,gDAAqD;AACrD,uDAAoC;AAEpC,MAAM,kBAAkB,GAAG,IAAA,qBAAO,EAAC,OAAO,EAAE,IAAA,yBAAW,GAAE,CAAC,CAAA;AAM1D,MAAM,YAAY,GAAG,kBAAkB,CAAA;AAEvC,MAAM,cAAc,GAAG,IAAA,kBAAU,EAC/B,CAAC,EAAyD,EAAE,GAAG,EAAE,EAAE;QAAlE,EAAE,SAAS,EAAE,WAAW,GAAG,kBAAkB,OAAY,EAAP,KAAK,cAAvD,4BAAyD,CAAF;IACtD,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,sBAAe,kBACd,WAAW,EAAE,WAAW,IACpB,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,IAC9C,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,kBAAe,IAAA,kCAAwB,EAAC,cAAc,EAAE,sBAAW,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdInputNumber } from 'antd/lib/input-number'\nimport type { InputNumberProps as AntdInputNumberProps } from 'antd/lib/input-number'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\nimport classNames from 'classnames'\nimport { getLanguage, getText } from '../prev-locale'\nexport * from 'antd/lib/input-number'\n\nconst defaultPlaceholder = getText('enter', getLanguage())\n\nexport type InputNumberProps = AntdInputNumberProps & {\n readonly?: boolean\n}\n\nconst tntPrefixCls = 'tnt-input-number'\n\nconst TntInputNumber = forwardRef<AntdInputNumber, AntdInputNumberProps>(\n ({ className, placeholder = defaultPlaceholder, ...props }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdInputNumber\n placeholder={placeholder}\n {...props}\n ref={ref}\n className={classNames(className, tntPrefixCls)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nexport default connectReadonlyComponent(TntInputNumber, PreviewText.Input)\n"]}
|
package/lib/modal/index.less
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@modal-prefix-cls: ~'@{ant-prefix}-modal';
|
|
2
|
-
@confirm-prefix-cls: ~'@{ant-prefix}-modal-confirm';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.@{modal-prefix-cls}{
|
|
6
|
-
&-header{
|
|
7
|
-
font-size: @font-size-lg;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
}
|
|
10
|
-
&-close-x{
|
|
11
|
-
font-size: 20px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-title{
|
|
15
|
-
line-height: @line-height-lg;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.@{confirm-prefix-cls}{
|
|
20
|
-
&-body{
|
|
21
|
-
.anticon {
|
|
22
|
-
font-size: 22px !important;
|
|
23
|
-
margin-top: 1px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-body &-content{
|
|
28
|
-
margin-top: @margin-xs;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.@{confirm-prefix-cls}-btns {
|
|
32
|
-
button {
|
|
33
|
-
border-radius: @border-radius-base;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@popover-prefix-cls: ~'@{ant-prefix}-popover';
|
|
2
|
-
|
|
3
|
-
.@{popover-prefix-cls} {
|
|
4
|
-
&-inner-content {
|
|
5
|
-
padding: @padding-base;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-message {
|
|
9
|
-
padding: 0 0 @padding-xs;
|
|
10
|
-
|
|
11
|
-
&>.anticon {
|
|
12
|
-
font-size: @font-size-lg;
|
|
13
|
-
top: 7px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-message-title {
|
|
18
|
-
padding-top: @padding-xxs;
|
|
19
|
-
padding-bottom: @padding-xxs;
|
|
20
|
-
line-height: @line-height-base;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-buttons {
|
|
24
|
-
margin-bottom: 0;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.@{popover-prefix-cls}-arrow-hidden {
|
|
29
|
-
.@{popover-prefix-cls}-arrow {
|
|
30
|
-
display: none;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PopconfirmProps } from 'antd/lib/popconfirm';
|
|
3
|
-
export * from 'antd/lib/popconfirm';
|
|
4
|
-
declare const Popconfirm: React.FC<PopconfirmProps & {
|
|
5
|
-
hiddenArrow?: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
export default Popconfirm;
|
|
8
|
-
//# sourceMappingURL=popconfirm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popconfirm.d.ts","sourceRoot":"","sources":["../../src/popconfirm/popconfirm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAMzD,cAAc,oBAAoB,CAAA;AAElC,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAqCrE,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
var _exportNames = {};
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _configProvider = require("antd/lib/config-provider");
|
|
11
|
-
var _popconfirm = _interopRequireWildcard(require("antd/lib/popconfirm"));
|
|
12
|
-
Object.keys(_popconfirm).forEach(function (key) {
|
|
13
|
-
if (key === "default" || key === "__esModule") return;
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
15
|
-
if (key in exports && exports[key] === _popconfirm[key]) return;
|
|
16
|
-
Object.defineProperty(exports, key, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _popconfirm[key];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
26
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
27
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
30
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
};
|
|
35
|
-
var Popconfirm = function Popconfirm(_a) {
|
|
36
|
-
var cancelButtonProps = _a.cancelButtonProps,
|
|
37
|
-
okButtonProps = _a.okButtonProps,
|
|
38
|
-
hiddenArrow = _a.hiddenArrow,
|
|
39
|
-
props = __rest(_a, ["cancelButtonProps", "okButtonProps", "hiddenArrow"]);
|
|
40
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
41
|
-
var getPrefixCls = _ref.getPrefixCls;
|
|
42
|
-
var prefixCls = getPrefixCls('popover');
|
|
43
|
-
return _react["default"].createElement(_popconfirm["default"], Object.assign({
|
|
44
|
-
cancelButtonProps: Object.assign({
|
|
45
|
-
type: 'tertiary',
|
|
46
|
-
className: (0, _classnames["default"])('tnt-btn', {
|
|
47
|
-
'tnt-btn-tertiary': (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.type) === 'tertiary' || !(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.type),
|
|
48
|
-
'tnt-btn-mini': (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.size) === 'mini'
|
|
49
|
-
})
|
|
50
|
-
}, cancelButtonProps),
|
|
51
|
-
okButtonProps: Object.assign({
|
|
52
|
-
className: (0, _classnames["default"])('tnt-btn', {
|
|
53
|
-
'tnt-btn-tertiary': (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.type) === 'tertiary',
|
|
54
|
-
'tnt-btn-mini': (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.size) === 'mini'
|
|
55
|
-
})
|
|
56
|
-
}, okButtonProps),
|
|
57
|
-
overlayClassName: (0, _classnames["default"])(hiddenArrow ? prefixCls + '-arrow-hidden' : '')
|
|
58
|
-
}, props));
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
var _default = exports["default"] = Popconfirm;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popconfirm.js","sourceRoot":"","sources":["../../src/popconfirm/popconfirm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AAGzB,6DAAwD;AACxD,oEAA+C;AAC/C,4DAAmC;AAEnC,qDAAkC;AAElC,MAAM,UAAU,GAA0D,CAAC,EAK1E,EAAE,EAAE;QALsE,EACzE,iBAAiB,EACjB,aAAa,EACb,WAAW,OAEZ,EADI,KAAK,cAJiE,qDAK1E,CADS;IAER,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QACzC,OAAO,CACL,8BAAC,oBAAc,kBACb,iBAAiB,EACf,gBACE,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAChB,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,UAAU,IAAI,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAA;oBAChF,cAAc,EAAE,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,MAAM;iBAC/D,CAAC,IACC,iBAAiB,CACA,EAExB,aAAa,kBACX,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,UAAU;oBAClE,cAAc,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,MAAM;iBAC3D,CAAC,IACC,aAAa,GAElB,gBAAgB,EAAE,IAAA,oBAAU,EAAC,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IACxE,KAAK,EACT,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,UAAU,CAAA","sourcesContent":["import React from 'react'\nimport type { PopconfirmProps } from 'antd/lib/popconfirm'\nimport type { NativeButtonProps } from 'antd/lib/button/button'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntdPopconfirm from 'antd/lib/popconfirm'\nimport classNames from 'classnames'\n\nexport * from 'antd/lib/popconfirm'\n\nconst Popconfirm: React.FC<PopconfirmProps & { hiddenArrow?: boolean }> = ({\n cancelButtonProps,\n okButtonProps,\n hiddenArrow,\n ...props\n}) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('popover')\n return (\n <AntdPopconfirm\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n overlayClassName={classNames(hiddenArrow ? prefixCls + '-arrow-hidden' : '')}\n {...props}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Popconfirm\n"]}
|
package/lib/popover/index.less
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
@popover-prefix-cls: ~'@{ant-prefix}-popover';
|
|
2
|
-
|
|
3
|
-
// Base class
|
|
4
|
-
.tnt-popover.@{popover-prefix-cls} {
|
|
5
|
-
|
|
6
|
-
&-dark,
|
|
7
|
-
&-light {
|
|
8
|
-
.@{popover-prefix-cls}-title {
|
|
9
|
-
border-bottom: 0px !important;
|
|
10
|
-
padding: 10px 12px 4px !important;
|
|
11
|
-
border-bottom: 0px !important;
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.@{popover-prefix-cls}-inner {
|
|
16
|
-
&-content {
|
|
17
|
-
padding: 0px 12px 12px 12px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-dark {
|
|
23
|
-
.@{popover-prefix-cls}-title {
|
|
24
|
-
color: @popover-color-dark;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.@{popover-prefix-cls}-inner {
|
|
28
|
-
background-color: @popover-bg-dark;
|
|
29
|
-
|
|
30
|
-
&-content {
|
|
31
|
-
color: @popover-color-dark;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.@{popover-prefix-cls}-arrow {
|
|
36
|
-
border-color: @popover-arrow-color-dark !important;
|
|
37
|
-
|
|
38
|
-
&::before {
|
|
39
|
-
background-color: @popover-bg-dark;
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// Arrows
|
|
47
|
-
&-arrow {
|
|
48
|
-
border-radius: 1px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.@{popover-prefix-cls}-arrow-hidden {
|
|
54
|
-
.@{popover-prefix-cls}-arrow {
|
|
55
|
-
display: none;
|
|
56
|
-
}
|
|
57
|
-
}
|
package/lib/popover/popover.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PopoverProps } from 'antd/lib/popover';
|
|
3
|
-
export * from 'antd/lib/popover';
|
|
4
|
-
interface CurProps extends PopoverProps {
|
|
5
|
-
theme?: string;
|
|
6
|
-
titleDivider?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Popover: React.FC<CurProps & {
|
|
9
|
-
theme?: string;
|
|
10
|
-
titleDivider?: boolean;
|
|
11
|
-
hiddenArrow?: boolean;
|
|
12
|
-
}>;
|
|
13
|
-
export default Popover;
|
|
14
|
-
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,cAAc,iBAAiB,CAAA;AAI/B,UAAU,QAAS,SAAQ,YAAY;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CACrB,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CA8B7E,CAAA;AAED,eAAe,OAAO,CAAA"}
|