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
package/lib/alert/alert.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Alert: true
|
|
8
|
-
};
|
|
9
|
-
exports["default"] = exports.Alert = void 0;
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _icon = _interopRequireDefault(require("antd/lib/icon"));
|
|
12
|
-
var _configProvider = require("antd/lib/config-provider");
|
|
13
|
-
var _alert = _interopRequireWildcard(require("antd/lib/alert"));
|
|
14
|
-
Object.keys(_alert).forEach(function (key) {
|
|
15
|
-
if (key === "default" || key === "__esModule") return;
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
17
|
-
if (key in exports && exports[key] === _alert[key]) return;
|
|
18
|
-
Object.defineProperty(exports, key, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _alert[key];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
26
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
27
|
-
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); }
|
|
28
|
-
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; }
|
|
29
|
-
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); }
|
|
30
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
31
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
34
|
-
var t = {};
|
|
35
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
36
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
37
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
38
|
-
}
|
|
39
|
-
return t;
|
|
40
|
-
};
|
|
41
|
-
/*
|
|
42
|
-
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
43
|
-
* @Date: 2024-03-21 19:43:36
|
|
44
|
-
* @LastEditors: 周泽飞 zefei.zhou@tongdun.net
|
|
45
|
-
* @LastEditTime: 2024-03-21 19:46:23
|
|
46
|
-
* @FilePath: /tntd/packages/tntd/src/alert/alert.tsx
|
|
47
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
var prefix = 'tnt-alert';
|
|
51
|
-
var Alert = exports.Alert = (0, _react.forwardRef)(function (_a, ref) {
|
|
52
|
-
var action = _a.action,
|
|
53
|
-
message = _a.message,
|
|
54
|
-
icon = _a.icon,
|
|
55
|
-
rest = __rest(_a, ["action", "message", "icon"]);
|
|
56
|
-
var fragment = _react["default"].createElement(_react["default"].Fragment, null, message, !!action && _react["default"].createElement("span", {
|
|
57
|
-
className: "action-btn"
|
|
58
|
-
}, action));
|
|
59
|
-
var iconTheme = 'filled';
|
|
60
|
-
var iconType = 'default';
|
|
61
|
-
switch (rest === null || rest === void 0 ? void 0 : rest.type) {
|
|
62
|
-
case 'success':
|
|
63
|
-
iconType = 'check-circle';
|
|
64
|
-
break;
|
|
65
|
-
case 'info':
|
|
66
|
-
iconType = 'info-circle';
|
|
67
|
-
break;
|
|
68
|
-
case 'error':
|
|
69
|
-
iconType = 'close-circle';
|
|
70
|
-
break;
|
|
71
|
-
case 'warning':
|
|
72
|
-
iconType = 'exclamation-circle';
|
|
73
|
-
break;
|
|
74
|
-
default:
|
|
75
|
-
iconType = 'default';
|
|
76
|
-
}
|
|
77
|
-
var iconNode = icon || (rest.type ? _react["default"].createElement(_icon["default"], {
|
|
78
|
-
className: "".concat(prefix, "-icon"),
|
|
79
|
-
type: iconType,
|
|
80
|
-
theme: iconTheme
|
|
81
|
-
}) : null);
|
|
82
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
83
|
-
var getPrefixCls = _ref.getPrefixCls;
|
|
84
|
-
return _react["default"].createElement(_alert["default"], Object.assign({
|
|
85
|
-
ref: ref
|
|
86
|
-
}, rest, {
|
|
87
|
-
message: fragment,
|
|
88
|
-
icon: iconNode,
|
|
89
|
-
className: (0, _classnames["default"])(rest === null || rest === void 0 ? void 0 : rest.className, 'tnt-alert', _defineProperty({}, "".concat(prefix, "-with-action"), action))
|
|
90
|
-
}));
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
var _default = exports["default"] = Alert;
|
package/lib/alert/alert.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/alert/alert.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,+CAAyC;AAGzC,wDAA+B;AAC/B,6DAAwD;AACxD,0DAAoD;AACpD,4DAAkC;AAClC,gDAA6B;AAS7B,MAAM,MAAM,GAAG,WAAW,CAAA;AAEb,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,CAAC,EAAkC,EAAE,GAAG,EAAE,EAAE;QAA3C,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,OAAW,EAAN,IAAI,cAAhC,6BAAkC,CAAF;IAC/B,MAAM,QAAQ,GAAG,CACf;QACG,OAAO;QACP,CAAC,CAAC,MAAM,IAAI,wCAAM,SAAS,EAAC,YAAY,IAAE,MAAM,CAAQ,CACxD,CACJ,CAAA;IAED,MAAM,SAAS,GAAc,QAAQ,CAAA;IACrC,IAAI,QAAQ,GAAG,SAAS,CAAA;IAExB,QAAQ,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE;QAClB,KAAK,SAAS;YACZ,QAAQ,GAAG,cAAc,CAAA;YACzB,MAAK;QACP,KAAK,MAAM;YACT,QAAQ,GAAG,aAAa,CAAA;YACxB,MAAK;QACP,KAAK,OAAO;YACV,QAAQ,GAAG,cAAc,CAAA;YACzB,MAAK;QACP,KAAK,SAAS;YACZ,QAAQ,GAAG,oBAAoB,CAAA;YAC/B,MAAK;QACP;YACE,QAAQ,GAAG,SAAS,CAAA;KACvB;IAED,MAAM,QAAQ,GACZ,IAAI;QACJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,8BAAC,cAAI,IAAC,SAAS,EAAE,GAAG,MAAM,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAE9F,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,8BAAC,eAAS,kBACR,GAAG,EAAE,GAAG,IACJ,IAAI,IACR,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,IAAA,oBAAS,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,EAAE,WAAW,EAAE;gBACjD,CAAC,GAAG,MAAM,cAAc,CAAC,EAAE,MAAM;aAClC,CAAC,IACF,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACgB,CAAA;AAEnB,kBAAe,aAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-03-21 19:43:36\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-03-21 19:46:23\n * @FilePath: /tntd/packages/tntd/src/alert/alert.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { AlertProps as AntdAlertProps } from 'antd/lib/alert'\nimport type { ThemeType } from 'antd/lib/icon'\nimport Icon from 'antd/lib/icon'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport { default as AntdAlert } from 'antd/lib/alert'\nimport classname from 'classnames'\nexport * from 'antd/lib/alert'\n\nexport interface AlertProps extends AntdAlertProps {\n action: React.ReactNode\n}\n\ninterface AlertComponent\n extends React.ForwardRefExoticComponent<AntdAlertProps & React.RefAttributes<AntdAlert>> {}\n\nconst prefix = 'tnt-alert'\n\nexport const Alert = forwardRef<AntdAlert, AlertProps>(\n ({ action, message, icon, ...rest }, ref) => {\n const fragment = (\n <>\n {message}\n {!!action && <span className=\"action-btn\">{action}</span>}\n </>\n )\n\n const iconTheme: ThemeType = 'filled'\n let iconType = 'default'\n\n switch (rest?.type) {\n case 'success':\n iconType = 'check-circle'\n break\n case 'info':\n iconType = 'info-circle'\n break\n case 'error':\n iconType = 'close-circle'\n break\n case 'warning':\n iconType = 'exclamation-circle'\n break\n default:\n iconType = 'default'\n }\n\n const iconNode =\n icon ||\n (rest.type ? <Icon className={`${prefix}-icon`} type={iconType} theme={iconTheme} /> : null)\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdAlert\n ref={ref}\n {...rest}\n message={fragment}\n icon={iconNode}\n className={classname(rest?.className, 'tnt-alert', {\n [`${prefix}-with-action`]: action,\n })}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as AlertComponent\n\nexport default Alert\n"]}
|
package/lib/alert/alert.less
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
@alert-prefix-cls: ~'@{ant-prefix}-alert';
|
|
2
|
-
@alert-description-color: @text-color-secondary;
|
|
3
|
-
@tnt-alert-prefix-cls: ~'tnt-alert';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.@{tnt-alert-prefix-cls} {
|
|
7
|
-
|
|
8
|
-
&.@{alert-prefix-cls}.@{alert-prefix-cls}-no-icon.@{alert-prefix-cls}-closable {
|
|
9
|
-
padding-right: 30px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.@{tnt-alert-prefix-cls}-with-action {
|
|
13
|
-
.@{alert-prefix-cls}-message {
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
> .action-btn {
|
|
17
|
-
flex: none;
|
|
18
|
-
margin-left: 36px;
|
|
19
|
-
margin-right: 12px;
|
|
20
|
-
font-size: @font-size-base;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.@{alert-prefix-cls} {
|
|
26
|
-
border-radius: @border-radius-lg;
|
|
27
|
-
padding: 8px 15px 8px 44px;
|
|
28
|
-
& .anticon {
|
|
29
|
-
left: 20px;
|
|
30
|
-
top: 11px; // 与文字对齐
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.@{alert-prefix-cls}-message {
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
color: @alert-description-color;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
& .@{alert-prefix-cls}-close-icon {
|
|
41
|
-
font-size: @font-size-lg;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.@{alert-prefix-cls}-with-description {
|
|
45
|
-
padding: 16px 20px 16px 48px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.@{alert-prefix-cls}.@{alert-prefix-cls}-no-icon {
|
|
49
|
-
padding: 8px 20px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.@{alert-prefix-cls}-with-description.@{alert-prefix-cls}-no-icon {
|
|
53
|
-
padding: 16px 20px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.@{alert-prefix-cls}-with-description i.@{alert-prefix-cls}-icon {
|
|
57
|
-
top: 18px;
|
|
58
|
-
font-size: @font-size-xl;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
.@{alert-prefix-cls}-success {
|
|
64
|
-
.action-btn {
|
|
65
|
-
background-color: @alert-success-bg-color;
|
|
66
|
-
color: @green-6;
|
|
67
|
-
a {
|
|
68
|
-
color: @green-6;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
.@{alert-prefix-cls}-close-icon {
|
|
72
|
-
.@{iconfont-css-prefix}-close {
|
|
73
|
-
color: @alert-success-icon-color;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.@{alert-prefix-cls}-info {
|
|
79
|
-
.action-btn {
|
|
80
|
-
background-color: @alert-info-bg-color;
|
|
81
|
-
color: @alert-info-icon-color;
|
|
82
|
-
a {
|
|
83
|
-
color: @alert-info-icon-color;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.@{alert-prefix-cls}-close-icon {
|
|
87
|
-
.@{iconfont-css-prefix}-close {
|
|
88
|
-
color: @alert-info-icon-color;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.@{alert-prefix-cls}-warning {
|
|
94
|
-
.action-btn {
|
|
95
|
-
background-color: @alert-warning-bg-color;
|
|
96
|
-
color: @gold-7;
|
|
97
|
-
a {
|
|
98
|
-
color: @gold-7;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
.@{alert-prefix-cls}-close-icon {
|
|
102
|
-
.@{iconfont-css-prefix}-close {
|
|
103
|
-
color: @alert-warning-icon-color;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.@{alert-prefix-cls}-error {
|
|
109
|
-
.action-btn {
|
|
110
|
-
background-color: @alert-error-bg-color;
|
|
111
|
-
color: @red-6;
|
|
112
|
-
a {
|
|
113
|
-
color: @red-6;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.@{alert-prefix-cls}-close-icon {
|
|
117
|
-
.@{iconfont-css-prefix}-close {
|
|
118
|
-
color: @alert-error-icon-color;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.@{alert-prefix-cls} {
|
|
124
|
-
>
|
|
125
|
-
.@{alert-prefix-cls}-icon {
|
|
126
|
-
font-size: @font-size-lg;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CascaderProps as AntdCascaderProps } from 'antd/lib/cascader';
|
|
2
|
-
import AntdCascader from 'antd/lib/cascader';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export * from 'antd/lib/cascader';
|
|
5
|
-
export declare type CascaderProps = AntdCascaderProps & {
|
|
6
|
-
readonly?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<AntdCascaderProps & React.RefAttributes<AntdCascader>, "key" | keyof AntdCascaderProps> & React.RefAttributes<unknown>>;
|
|
9
|
-
export default _default;
|
|
10
|
-
//# sourceMappingURL=cascader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["../../src/cascader/cascader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,YAAY,MAAM,kBAAkB,CAAA;AAG3C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,cAAc,kBAAkB,CAAA;AAEhC,oBAAY,aAAa,GAAG,iBAAiB,GAAG;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAuBD,wBAAuE"}
|
package/lib/cascader/cascader.js
DELETED
|
@@ -1,49 +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 _cascader = _interopRequireWildcard(require("antd/lib/cascader"));
|
|
10
|
-
Object.keys(_cascader).forEach(function (key) {
|
|
11
|
-
if (key === "default" || key === "__esModule") return;
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
13
|
-
if (key in exports && exports[key] === _cascader[key]) return;
|
|
14
|
-
Object.defineProperty(exports, key, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _cascader[key];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
var _configProvider = require("antd/lib/config-provider");
|
|
22
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
24
|
-
var _connect = require("../connect");
|
|
25
|
-
var _previewText = require("../preview-text");
|
|
26
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
27
|
-
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); }
|
|
28
|
-
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; }
|
|
29
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
30
|
-
var t = {};
|
|
31
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
34
|
-
}
|
|
35
|
-
return t;
|
|
36
|
-
};
|
|
37
|
-
var tntPrefixCls = 'tnt-cascader';
|
|
38
|
-
var Cascader = (0, _react.forwardRef)(function (_a, ref) {
|
|
39
|
-
var className = _a.className,
|
|
40
|
-
children = _a.children,
|
|
41
|
-
rest = __rest(_a, ["className", "children"]);
|
|
42
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
|
|
43
|
-
return _react["default"].createElement(_cascader["default"], Object.assign({}, rest, {
|
|
44
|
-
ref: ref,
|
|
45
|
-
className: (0, _classnames["default"])(className, tntPrefixCls)
|
|
46
|
-
}), children);
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(Cascader, _previewText.PreviewText.Cascader);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cascader.js","sourceRoot":"","sources":["../../src/cascader/cascader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gEAA2C;AAC3C,6DAAwD;AACxD,4DAAmC;AACnC,+CAAyC;AACzC,wCAAqD;AACrD,kDAA6C;AAE7C,mDAAgC;AAShC,MAAM,YAAY,GAAG,cAAc,CAAA;AAEnC,MAAM,QAAQ,GAAG,IAAA,kBAAU,EACzB,CAAC,EAAgC,EAAE,GAAG,EAAE,EAAE;QAAzC,EAAE,SAAS,EAAE,QAAQ,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAC7B,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,kBAAY,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,KAC7E,QAAQ,CACI,CAChB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACmB,CAAA;AAEtB,kBAAe,IAAA,kCAAwB,EAAC,QAAQ,EAAE,0BAAW,CAAC,QAAQ,CAAC,CAAA","sourcesContent":["import type { CascaderProps as AntdCascaderProps } from 'antd/lib/cascader'\nimport AntdCascader from 'antd/lib/cascader'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport classNames from 'classnames'\nimport React, { forwardRef } from 'react'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport * from 'antd/lib/cascader'\n\nexport type CascaderProps = AntdCascaderProps & {\n readonly?: boolean\n}\n\ninterface CascaderComponent\n extends React.ForwardRefExoticComponent<AntdCascaderProps & React.RefAttributes<AntdCascader>> {}\n\nconst tntPrefixCls = 'tnt-cascader'\n\nconst Cascader = forwardRef<AntdCascader, AntdCascaderProps>(\n ({ className, children, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdCascader {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n {children}\n </AntdCascader>\n )\n }}\n </ConfigConsumer>\n )\n }\n) as CascaderComponent\n\nexport default connectReadonlyComponent(Cascader, PreviewText.Cascader)\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@cascader-prefix-cls: ~'@{ant-prefix}-cascader';
|
|
2
|
-
|
|
3
|
-
.tnt-cascader {
|
|
4
|
-
.@{cascader-prefix-cls}-picker {
|
|
5
|
-
&-clear {
|
|
6
|
-
width: 16px;
|
|
7
|
-
height: 16px;
|
|
8
|
-
font-size: initial;
|
|
9
|
-
margin-top: -8px;
|
|
10
|
-
}
|
|
11
|
-
&-arrow {
|
|
12
|
-
width: 16px;
|
|
13
|
-
height: 16px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
package/lib/checkbox/check.png
DELETED
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CheckboxGroupProps as AntdCheckboxGroupProps, CheckboxProps as AntdCheckboxProps } from 'antd/lib/checkbox';
|
|
2
|
-
import AntdCheckbox from 'antd/lib/checkbox';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export * from 'antd/lib/checkbox';
|
|
5
|
-
export declare type CheckboxProps = AntdCheckboxProps & {
|
|
6
|
-
desc?: string | React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export declare type CheckboxGroupProps = AntdCheckboxGroupProps & {
|
|
9
|
-
readonly?: boolean;
|
|
10
|
-
};
|
|
11
|
-
interface CheckboxComponent extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<AntdCheckbox>> {
|
|
12
|
-
Group: React.FC<CheckboxGroupProps>;
|
|
13
|
-
}
|
|
14
|
-
declare const Checkbox: CheckboxComponent;
|
|
15
|
-
export default Checkbox;
|
|
16
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,sBAAsB,EAC5C,aAAa,IAAI,iBAAiB,EACnC,MAAM,kBAAkB,CAAA;AACzB,OAAO,YAAY,MAAM,kBAAkB,CAAA;AAI3C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,cAAc,kBAAkB,CAAA;AAEhC,oBAAY,aAAa,GAAG,iBAAiB,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAChC,CAAA;AACD,oBAAY,kBAAkB,GAAG,sBAAsB,GAAG;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,UAAU,iBACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IAC1F,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAA;CACpC;AAID,QAAA,MAAM,QAAQ,mBAmBQ,CAAA;AAsBtB,eAAe,QAAQ,CAAA"}
|
package/lib/checkbox/checkbox.js
DELETED
|
@@ -1,65 +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 _checkbox = _interopRequireWildcard(require("antd/lib/checkbox"));
|
|
10
|
-
Object.keys(_checkbox).forEach(function (key) {
|
|
11
|
-
if (key === "default" || key === "__esModule") return;
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
13
|
-
if (key in exports && exports[key] === _checkbox[key]) return;
|
|
14
|
-
Object.defineProperty(exports, key, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _checkbox[key];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
var _configProvider = require("antd/lib/config-provider");
|
|
22
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
24
|
-
var _connect = require("../connect");
|
|
25
|
-
var _previewText = require("../preview-text");
|
|
26
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
27
|
-
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); }
|
|
28
|
-
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; }
|
|
29
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
30
|
-
var t = {};
|
|
31
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
34
|
-
}
|
|
35
|
-
return t;
|
|
36
|
-
};
|
|
37
|
-
var tntPrefixCls = 'tnt-checkbox';
|
|
38
|
-
var Checkbox = (0, _react.forwardRef)(function (_a, ref) {
|
|
39
|
-
var className = _a.className,
|
|
40
|
-
children = _a.children,
|
|
41
|
-
desc = _a.desc,
|
|
42
|
-
rest = __rest(_a, ["className", "children", "desc"]);
|
|
43
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
|
|
44
|
-
return _react["default"].createElement(_checkbox["default"], Object.assign({}, rest, {
|
|
45
|
-
ref: ref,
|
|
46
|
-
className: (0, _classnames["default"])(className, tntPrefixCls)
|
|
47
|
-
}), children ? _react["default"].createElement("span", {
|
|
48
|
-
className: "".concat(tntPrefixCls, "-children")
|
|
49
|
-
}, _react["default"].createElement("span", null, children), !!desc && _react["default"].createElement("span", {
|
|
50
|
-
className: "".concat(tntPrefixCls, "-desc")
|
|
51
|
-
}, desc)) : undefined);
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
var CheckboxGroup = (0, _react.forwardRef)(function (_a, ref) {
|
|
55
|
-
var className = _a.className,
|
|
56
|
-
rest = __rest(_a, ["className"]);
|
|
57
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
|
|
58
|
-
return _react["default"].createElement(_checkbox["default"].Group, Object.assign({}, rest, {
|
|
59
|
-
ref: ref,
|
|
60
|
-
className: (0, _classnames["default"])(className, "".concat(tntPrefixCls, "-group"))
|
|
61
|
-
}));
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
Checkbox.Group = (0, _connect.connectReadonlyComponent)(CheckboxGroup, _previewText.PreviewText.Select);
|
|
65
|
-
var _default = exports["default"] = Checkbox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/checkbox/checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,gEAA2C;AAE3C,6DAAwD;AACxD,4DAAmC;AACnC,+CAAyC;AACzC,wCAAqD;AACrD,kDAA6C;AAE7C,mDAAgC;AAchC,MAAM,YAAY,GAAG,cAAc,CAAA;AAEnC,MAAM,QAAQ,GAAG,IAAA,kBAAU,EACzB,CAAC,EAAsC,EAAE,GAAG,EAAE,EAAE;QAA/C,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,OAAW,EAAN,IAAI,cAApC,iCAAsC,CAAF;IACnC,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,kBAAY,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,KAC7E,QAAQ,CAAC,CAAC,CAAC,CACV,wCAAM,SAAS,EAAE,GAAG,YAAY,WAAW;YACzC,4CAAO,QAAQ,CAAQ;YACtB,CAAC,CAAC,IAAI,IAAI,wCAAM,SAAS,EAAE,GAAG,YAAY,OAAO,IAAG,IAAI,CAAQ,CAC5D,CACR,CAAC,CAAC,CAAC,SAAS,CACA,CAChB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACmB,CAAA;AAEtB,MAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,CAAC,EAAsB,EAAE,GAAG,EAAE,EAAE;QAA/B,EAAE,SAAS,OAAW,EAAN,IAAI,cAApB,aAAsB,CAAF;IACnB,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,kBAAY,CAAC,KAAK,oBACb,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,YAAY,QAAQ,CAAC,IACzD,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,KAAK,GAAG,IAAA,kCAAwB,EAAC,aAAa,EAAE,0BAAW,CAAC,MAAM,CAAC,CAAA;AAE5E,kBAAe,QAAQ,CAAA","sourcesContent":["import type {\n CheckboxGroupProps as AntdCheckboxGroupProps,\n CheckboxProps as AntdCheckboxProps,\n} from 'antd/lib/checkbox'\nimport AntdCheckbox from 'antd/lib/checkbox'\nimport type AntdCheckboxGroup from 'antd/lib/checkbox/Group'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport classNames from 'classnames'\nimport React, { forwardRef } from 'react'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport * from 'antd/lib/checkbox'\n\nexport type CheckboxProps = AntdCheckboxProps & {\n desc?: string | React.ReactNode\n}\nexport type CheckboxGroupProps = AntdCheckboxGroupProps & {\n readonly?: boolean\n}\n\ninterface CheckboxComponent\n extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<AntdCheckbox>> {\n Group: React.FC<CheckboxGroupProps>\n}\n\nconst tntPrefixCls = 'tnt-checkbox'\n\nconst Checkbox = forwardRef<AntdCheckbox, CheckboxProps>(\n ({ className, children, desc, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdCheckbox {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n {children ? (\n <span className={`${tntPrefixCls}-children`}>\n <span>{children}</span>\n {!!desc && <span className={`${tntPrefixCls}-desc`}>{desc}</span>}\n </span>\n ) : undefined}\n </AntdCheckbox>\n )\n }}\n </ConfigConsumer>\n )\n }\n) as CheckboxComponent\n\nconst CheckboxGroup = forwardRef<AntdCheckboxGroup, CheckboxGroupProps>(\n ({ className, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdCheckbox.Group\n {...rest}\n ref={ref}\n className={classNames(className, `${tntPrefixCls}-group`)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nCheckbox.Group = connectReadonlyComponent(CheckboxGroup, PreviewText.Select)\n\nexport default Checkbox\n"]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
@checkbox-prefix-cls: ~'@{ant-prefix}-checkbox';
|
|
2
|
-
@checkbox-inner-prefix-cls: ~'@{checkbox-prefix-cls}-inner';
|
|
3
|
-
|
|
4
|
-
.tnt-checkbox,
|
|
5
|
-
.tnt-checkbox-group {
|
|
6
|
-
.@{checkbox-prefix-cls}-indeterminate {
|
|
7
|
-
.@{checkbox-inner-prefix-cls} {
|
|
8
|
-
background-color: @checkbox-color;
|
|
9
|
-
border-color: @checkbox-color;
|
|
10
|
-
}
|
|
11
|
-
.@{checkbox-inner-prefix-cls}::after {
|
|
12
|
-
@indeterminate-width: calc(@checkbox-size - 8px);
|
|
13
|
-
@indeterminate-height: 1.4px;
|
|
14
|
-
|
|
15
|
-
width: @indeterminate-width;
|
|
16
|
-
height: @indeterminate-height;
|
|
17
|
-
background-color: @component-background;
|
|
18
|
-
border-radius: 2px;
|
|
19
|
-
transition: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.@{checkbox-prefix-cls}-disabled {
|
|
23
|
-
.@{checkbox-inner-prefix-cls} {
|
|
24
|
-
background: @checkbox-check-disabled-color;
|
|
25
|
-
border-color: @checkbox-check-disabled-color !important;
|
|
26
|
-
|
|
27
|
-
&::after {
|
|
28
|
-
background-color: #fff;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.@{checkbox-prefix-cls}-checked {
|
|
35
|
-
&.@{checkbox-prefix-cls}-disabled {
|
|
36
|
-
.@{checkbox-inner-prefix-cls} {
|
|
37
|
-
background: @checkbox-check-disabled-color;
|
|
38
|
-
border-color: @checkbox-check-disabled-color !important;
|
|
39
|
-
&::after {
|
|
40
|
-
border-color: #fff;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.@{checkbox-inner-prefix-cls}::after {
|
|
46
|
-
width: 16px;
|
|
47
|
-
height: 16px;
|
|
48
|
-
border-width: 0;
|
|
49
|
-
background-image: url(./check.png);
|
|
50
|
-
background-size: contain;
|
|
51
|
-
transform: translate(-25%, -50%);
|
|
52
|
-
transition: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.tnt-checkbox {
|
|
58
|
-
& > span:nth-of-type(2) {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
}
|
|
61
|
-
&-children {
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
}
|
|
65
|
-
&-desc {
|
|
66
|
-
font-size: @font-size-sm;
|
|
67
|
-
color: @bg-color-spotilight-tint-50;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DatePickerProps as AntdDatePickerProps, MonthPickerProps as AntMonthPickerProps, RangePickerProps as AntRangePickerProps, WeekPickerProps as AntWeekPickerProps } from 'antd/lib/date-picker/interface';
|
|
3
|
-
export * from 'antd/lib/date-picker';
|
|
4
|
-
export * from 'antd/lib/date-picker/interface';
|
|
5
|
-
export declare const TntDatePicker: React.FC<AntdDatePickerProps & {
|
|
6
|
-
theme?: string;
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const TntMonthPicker: React.FC<AntMonthPickerProps & {
|
|
10
|
-
theme?: string;
|
|
11
|
-
readonly?: boolean;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const TntWeekPicker: React.FC<AntWeekPickerProps & {
|
|
14
|
-
theme?: string;
|
|
15
|
-
readonly?: boolean;
|
|
16
|
-
}>;
|
|
17
|
-
export declare const TntRangePicker: React.FC<AntRangePickerProps & {
|
|
18
|
-
theme?: string;
|
|
19
|
-
readonly?: boolean;
|
|
20
|
-
}>;
|
|
21
|
-
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EACV,eAAe,IAAI,mBAAmB,EACtC,gBAAgB,IAAI,mBAAmB,EACvC,gBAAgB,IAAI,mBAAmB,EACvC,eAAe,IAAI,kBAAkB,EACtC,MAAM,+BAA+B,CAAA;AAItC,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA;AAG7C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAoB7D,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CACnC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAmB7D,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAmB5D,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CACnC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAmB7D,CAAA"}
|
|
@@ -1,128 +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
|
-
TntDatePicker: true,
|
|
9
|
-
TntMonthPicker: true,
|
|
10
|
-
TntWeekPicker: true,
|
|
11
|
-
TntRangePicker: true
|
|
12
|
-
};
|
|
13
|
-
exports.TntWeekPicker = exports.TntRangePicker = exports.TntMonthPicker = exports.TntDatePicker = void 0;
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _icon = _interopRequireDefault(require("../icon"));
|
|
16
|
-
var _configProvider = require("antd/lib/config-provider");
|
|
17
|
-
var _datePicker = _interopRequireWildcard(require("antd/lib/date-picker"));
|
|
18
|
-
Object.keys(_datePicker).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
|
-
if (key in exports && exports[key] === _datePicker[key]) return;
|
|
22
|
-
Object.defineProperty(exports, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _datePicker[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
30
|
-
var _interface = require("antd/lib/date-picker/interface");
|
|
31
|
-
Object.keys(_interface).forEach(function (key) {
|
|
32
|
-
if (key === "default" || key === "__esModule") return;
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
34
|
-
if (key in exports && exports[key] === _interface[key]) return;
|
|
35
|
-
Object.defineProperty(exports, key, {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function get() {
|
|
38
|
-
return _interface[key];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
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); }
|
|
43
|
-
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; }
|
|
44
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
45
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
46
|
-
var t = {};
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
48
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
49
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
50
|
-
}
|
|
51
|
-
return t;
|
|
52
|
-
};
|
|
53
|
-
var MonthPicker = _datePicker["default"].MonthPicker,
|
|
54
|
-
WeekPicker = _datePicker["default"].WeekPicker,
|
|
55
|
-
RangePicker = _datePicker["default"].RangePicker;
|
|
56
|
-
var TntDatePicker = exports.TntDatePicker = function TntDatePicker(props) {
|
|
57
|
-
//theme样式类型 outline | fill 默认 outline
|
|
58
|
-
var _props$theme = props.theme,
|
|
59
|
-
theme = _props$theme === void 0 ? 'outline' : _props$theme,
|
|
60
|
-
className = props.className,
|
|
61
|
-
suffixIcon = props.suffixIcon,
|
|
62
|
-
restProps = __rest(props, ["theme", "className", "suffixIcon"]);
|
|
63
|
-
var defaultIcon = _react["default"].createElement(_icon["default"], {
|
|
64
|
-
type: "calendar-3"
|
|
65
|
-
});
|
|
66
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
67
|
-
var getPrefixCls = _ref.getPrefixCls;
|
|
68
|
-
var prefixCls = getPrefixCls('date-picker');
|
|
69
|
-
return _react["default"].createElement(_datePicker["default"], Object.assign({
|
|
70
|
-
suffixIcon: suffixIcon || defaultIcon,
|
|
71
|
-
className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
|
|
72
|
-
}, restProps));
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
var TntMonthPicker = exports.TntMonthPicker = function TntMonthPicker(props) {
|
|
76
|
-
var _props$theme2 = props.theme,
|
|
77
|
-
theme = _props$theme2 === void 0 ? 'outline' : _props$theme2,
|
|
78
|
-
className = props.className,
|
|
79
|
-
suffixIcon = props.suffixIcon,
|
|
80
|
-
restProps = __rest(props, ["theme", "className", "suffixIcon"]);
|
|
81
|
-
var defaultIcon = _react["default"].createElement(_icon["default"], {
|
|
82
|
-
type: "calendar-3"
|
|
83
|
-
});
|
|
84
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref2) {
|
|
85
|
-
var getPrefixCls = _ref2.getPrefixCls;
|
|
86
|
-
var prefixCls = getPrefixCls('date-picker');
|
|
87
|
-
return _react["default"].createElement(MonthPicker, Object.assign({
|
|
88
|
-
suffixIcon: suffixIcon || defaultIcon,
|
|
89
|
-
className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
|
|
90
|
-
}, restProps));
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
var TntWeekPicker = exports.TntWeekPicker = function TntWeekPicker(props) {
|
|
94
|
-
var _props$theme3 = props.theme,
|
|
95
|
-
theme = _props$theme3 === void 0 ? 'outline' : _props$theme3,
|
|
96
|
-
className = props.className,
|
|
97
|
-
suffixIcon = props.suffixIcon,
|
|
98
|
-
restProps = __rest(props, ["theme", "className", "suffixIcon"]);
|
|
99
|
-
var defaultIcon = _react["default"].createElement(_icon["default"], {
|
|
100
|
-
type: "calendar-3"
|
|
101
|
-
});
|
|
102
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref3) {
|
|
103
|
-
var getPrefixCls = _ref3.getPrefixCls;
|
|
104
|
-
var prefixCls = getPrefixCls('date-picker');
|
|
105
|
-
return _react["default"].createElement(WeekPicker, Object.assign({
|
|
106
|
-
suffixIcon: suffixIcon || defaultIcon,
|
|
107
|
-
className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
|
|
108
|
-
}, restProps));
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
var TntRangePicker = exports.TntRangePicker = function TntRangePicker(props) {
|
|
112
|
-
var _props$theme4 = props.theme,
|
|
113
|
-
theme = _props$theme4 === void 0 ? 'outline' : _props$theme4,
|
|
114
|
-
className = props.className,
|
|
115
|
-
suffixIcon = props.suffixIcon,
|
|
116
|
-
restProps = __rest(props, ["theme", "className", "suffixIcon"]);
|
|
117
|
-
var defaultIcon = _react["default"].createElement(_icon["default"], {
|
|
118
|
-
type: "calendar-3"
|
|
119
|
-
});
|
|
120
|
-
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref4) {
|
|
121
|
-
var getPrefixCls = _ref4.getPrefixCls;
|
|
122
|
-
var prefixCls = getPrefixCls('date-picker');
|
|
123
|
-
return _react["default"].createElement(RangePicker, Object.assign({
|
|
124
|
-
suffixIcon: suffixIcon || defaultIcon,
|
|
125
|
-
className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
|
|
126
|
-
}, restProps));
|
|
127
|
-
});
|
|
128
|
-
};
|