tntd 2.8.0-beta.3 → 3.0.0-beta
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/alert.js +70 -0
- package/es/alert/alert.js.map +1 -0
- package/es/alert/alert.less +128 -0
- package/es/alert/index.js +1 -1
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/index.less +1 -0
- package/es/button/button.js +30 -3
- package/es/button/button.js.map +1 -1
- package/es/button/button.less +72 -0
- package/es/button/index.js +1 -0
- package/es/button/index.js.map +1 -1
- package/es/checkbox/check.png +0 -0
- package/es/checkbox/checkbox.js +48 -0
- package/es/checkbox/checkbox.js.map +1 -0
- package/es/checkbox/checkbox.less +69 -0
- package/es/checkbox/index.js +3 -7
- package/es/checkbox/index.js.map +1 -1
- package/es/color-picker/index.less +4 -1
- package/es/date-picker/DatePicker.js +101 -0
- package/es/date-picker/DatePicker.js.map +1 -0
- package/es/date-picker/index.js +6 -12
- package/es/date-picker/index.js.map +1 -1
- package/es/date-picker/index.less +294 -0
- package/es/date-picker/style/RangePicker.less +3 -3
- package/es/descriptions/descriptions.js +64 -21
- package/es/descriptions/descriptions.js.map +1 -1
- package/es/descriptions/descriptions.less +57 -60
- package/es/descriptions/index.js +2 -2
- package/es/descriptions/index.js.map +1 -1
- package/es/drawer/drawer.js +98 -13
- package/es/drawer/drawer.js.map +1 -1
- package/es/drawer/index.js +1 -1
- package/es/drawer/index.js.map +1 -1
- package/es/drawer/index.less +154 -0
- package/es/drawer/style/drawer.less +18 -3
- package/es/drawer/style/index.js +2 -1
- package/es/drawer/style/index.js.map +1 -1
- package/es/form/form.js +3 -0
- package/es/form/form.js.map +1 -1
- package/es/form/form.less +36 -0
- package/es/icon/index.js +2 -0
- package/es/icon/index.js.map +1 -1
- package/es/icon/style/style.less +4 -0
- package/es/input/index.js +1 -1
- package/es/input/index.js.map +1 -1
- package/es/input/input.js +21 -30
- package/es/input/input.js.map +1 -1
- package/es/input/input.less +123 -20
- package/es/input-number/index.js +4 -5
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/inputNumber.js +29 -0
- package/es/input-number/inputNumber.js.map +1 -0
- package/es/input-number/inputNumber.less +12 -0
- package/es/locale/en_US.js +12 -1
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +12 -1
- package/es/locale/zh_CN.js.map +1 -1
- package/es/message/message.less +2 -1
- package/es/modal/index.js +2 -3
- package/es/modal/index.js.map +1 -1
- package/es/modal/index.less +36 -0
- package/es/modal/modal.js +104 -17
- package/es/modal/modal.js.map +1 -1
- package/es/modal/style/index.js +2 -1
- package/es/modal/style/index.js.map +1 -1
- package/es/notification/assets/index.js +2 -0
- package/es/notification/assets/index.js.map +1 -0
- package/es/notification/assets/svg-error-tip.js +145 -0
- package/es/notification/assets/svg-error-tip.js.map +1 -0
- package/es/notification/assets/svg-success-tip.js +162 -0
- package/es/notification/assets/svg-success-tip.js.map +1 -0
- package/es/notification/index.js +1 -1
- package/es/notification/index.js.map +1 -1
- package/es/notification/notification.js +80 -0
- package/es/notification/notification.js.map +1 -0
- package/es/notification/notification.less +59 -0
- package/es/notification/style/index.less +2 -0
- package/es/popconfirm/index.js +2 -2
- package/es/popconfirm/index.js.map +1 -1
- package/es/popconfirm/index.less +26 -0
- package/es/popconfirm/popconfirm.js +40 -0
- package/es/popconfirm/popconfirm.js.map +1 -0
- package/es/popconfirm/style/index.js +2 -1
- 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/index.less +51 -0
- package/es/popover/popover.js +33 -0
- package/es/popover/popover.js.map +1 -0
- package/es/popover/style/index.js +1 -0
- 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/progress/progress.js +132 -0
- package/es/progress/progress.js.map +1 -0
- package/es/progress/progress.less +82 -0
- package/es/query-form/Field/Composition/FieldPopover.js +284 -0
- package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
- package/es/query-form/Field/Composition/FieldPopover.less +35 -0
- package/es/query-form/Field/Composition/Select.js +108 -0
- package/es/query-form/Field/Composition/Select.js.map +1 -0
- package/es/query-form/Field/Composition/index.js +282 -0
- package/es/query-form/Field/Composition/index.js.map +1 -0
- package/es/query-form/Field/Composition/index.less +106 -0
- package/es/query-form/Field/Composition/utils.js +19 -0
- package/es/query-form/Field/Composition/utils.js.map +1 -0
- package/es/query-form/index.js +109 -125
- package/es/query-form/index.js.map +1 -1
- package/es/query-form/index.less +12 -9
- package/es/query-list-scene/index.less +4 -4
- package/es/radio/index.js +3 -5
- package/es/radio/index.js.map +1 -1
- package/es/radio/radio.js +57 -0
- package/es/radio/radio.js.map +1 -0
- package/es/radio/radio.less +43 -0
- package/es/segmented/index.less +126 -112
- package/es/select/index.js +1 -1
- package/es/select/index.js.map +1 -1
- package/es/select/select.js +5 -6
- package/es/select/select.js.map +1 -1
- package/es/select/select.less +83 -9
- package/es/steps/assets/background_left.svg +12 -0
- package/es/steps/assets/background_right.svg +12 -0
- package/es/steps/assets/horizontal_line.svg +3 -0
- package/es/steps/assets/vertical_line.svg +3 -0
- package/es/steps/index.js +9 -2
- package/es/steps/index.js.map +1 -1
- package/es/steps/stepStyle/icon.less +51 -0
- package/es/steps/stepStyle/index.less +173 -8
- package/es/steps/stepStyle/nav.less +51 -259
- package/es/steps/stepStyle/progress-dot.less +10 -0
- package/es/steps/stepStyle/variables.less +8 -0
- package/es/steps/stepStyle/vertical.less +41 -0
- package/es/steps/steps.js +53 -27
- package/es/steps/steps.js.map +1 -1
- package/es/steps/style/index.js +8 -0
- package/es/steps/style/index.js.map +1 -1
- package/es/style/themes/default.less +3 -2
- package/es/switch/index.less +46 -0
- package/es/switch/style/index.js +2 -1
- package/es/switch/style/index.js.map +1 -1
- package/es/switch/switch.js +40 -2
- package/es/switch/switch.js.map +1 -1
- package/es/table/style/index.less +51 -7
- package/es/table/style/size.less +5 -5
- package/es/table/table.js +37 -6
- package/es/table/table.js.map +1 -1
- package/es/table/table.less +33 -5
- package/es/tabs/index.js +1 -0
- package/es/tabs/index.js.map +1 -1
- package/es/tabs/style/index.js.map +1 -1
- package/es/tabs/style/index.less +1 -0
- package/es/tabs/tabs.js +22 -4
- package/es/tabs/tabs.js.map +1 -1
- package/es/tabs/tabs.less +114 -0
- package/es/tag/color.less +43 -0
- package/es/tag/index.js +11 -2
- package/es/tag/index.js.map +1 -1
- package/es/tag/tag.js +171 -0
- package/es/tag/tag.js.map +1 -0
- package/es/tag/tag.less +192 -0
- package/es/time-picker/TimePicker.js +36 -0
- package/es/time-picker/TimePicker.js.map +1 -0
- package/es/time-picker/index.js +2 -2
- package/es/time-picker/index.js.map +1 -1
- package/es/time-picker/index.less +38 -0
- package/es/tntd-action/Action.js +66 -0
- package/es/tntd-action/Action.js.map +1 -0
- package/es/tntd-action/index.js +64 -6
- package/es/tntd-action/index.js.map +1 -1
- package/es/tntd-action/index.less +36 -0
- package/es/tntd-cascader/AntdCascader/index.less +28 -27
- package/es/tooltip/index.js +2 -2
- package/es/tooltip/index.js.map +1 -1
- package/es/tooltip/index.less +24 -0
- package/es/tooltip/style/index.js +2 -1
- package/es/tooltip/style/index.js.map +1 -1
- package/es/tooltip/tooltip.js +32 -0
- package/es/tooltip/tooltip.js.map +1 -0
- package/es/utils/lang.js +8 -2
- package/es/utils/lang.js.map +1 -1
- package/lib/alert/alert.d.ts +12 -0
- package/lib/alert/alert.d.ts.map +1 -0
- package/lib/alert/alert.js +92 -0
- package/lib/alert/alert.js.map +1 -0
- package/lib/alert/alert.less +128 -0
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.d.ts.map +1 -1
- package/lib/alert/index.js +7 -8
- package/lib/alert/index.js.map +1 -1
- package/lib/alert/style/index.less +1 -0
- package/lib/button/button.d.ts +9 -4
- package/lib/button/button.d.ts.map +1 -1
- package/lib/button/button.js +27 -3
- package/lib/button/button.js.map +1 -1
- package/lib/button/button.less +72 -0
- package/lib/button/index.d.ts +1 -0
- package/lib/button/index.d.ts.map +1 -1
- package/lib/button/index.js +6 -5
- package/lib/button/index.js.map +1 -1
- package/lib/checkbox/check.png +0 -0
- package/lib/checkbox/checkbox.d.ts +16 -0
- package/lib/checkbox/checkbox.d.ts.map +1 -0
- package/lib/checkbox/checkbox.js +65 -0
- package/lib/checkbox/checkbox.js.map +1 -0
- package/lib/checkbox/checkbox.less +69 -0
- package/lib/checkbox/index.d.ts +3 -3
- package/lib/checkbox/index.d.ts.map +1 -1
- package/lib/checkbox/index.js +2 -17
- package/lib/checkbox/index.js.map +1 -1
- package/lib/color-picker/index.less +4 -1
- package/lib/date-picker/DatePicker.d.ts +21 -0
- package/lib/date-picker/DatePicker.d.ts.map +1 -0
- package/lib/date-picker/DatePicker.js +128 -0
- package/lib/date-picker/DatePicker.js.map +1 -0
- package/lib/date-picker/index.d.ts +2 -6
- package/lib/date-picker/index.d.ts.map +1 -1
- package/lib/date-picker/index.js +6 -37
- package/lib/date-picker/index.js.map +1 -1
- package/lib/date-picker/index.less +294 -0
- package/lib/date-picker/style/RangePicker.less +3 -3
- package/lib/descriptions/descriptions.d.ts +11 -6
- package/lib/descriptions/descriptions.d.ts.map +1 -1
- package/lib/descriptions/descriptions.js +68 -26
- package/lib/descriptions/descriptions.js.map +1 -1
- package/lib/descriptions/descriptions.less +57 -60
- 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/drawer/drawer.d.ts +22 -2
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +104 -13
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/drawer/index.d.ts +1 -1
- package/lib/drawer/index.d.ts.map +1 -1
- package/lib/drawer/index.js +5 -5
- package/lib/drawer/index.js.map +1 -1
- package/lib/drawer/index.less +154 -0
- package/lib/drawer/style/drawer.less +18 -3
- package/lib/drawer/style/index.d.ts +1 -0
- package/lib/drawer/style/index.d.ts.map +1 -1
- package/lib/drawer/style/index.js +2 -1
- package/lib/drawer/style/index.js.map +1 -1
- package/lib/form/form.d.ts +1 -0
- package/lib/form/form.d.ts.map +1 -1
- package/lib/form/form.js +4 -0
- package/lib/form/form.js.map +1 -1
- package/lib/form/form.less +36 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.d.ts.map +1 -1
- package/lib/icon/index.js +2 -1
- package/lib/icon/index.js.map +1 -1
- package/lib/icon/style/style.less +4 -0
- 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 +11 -20
- package/lib/input/input.js.map +1 -1
- package/lib/input/input.less +123 -20
- package/lib/input-number/index.d.ts +4 -8
- package/lib/input-number/index.d.ts.map +1 -1
- package/lib/input-number/index.js +3 -5
- package/lib/input-number/index.js.map +1 -1
- package/lib/input-number/inputNumber.d.ts +10 -0
- package/lib/input-number/inputNumber.d.ts.map +1 -0
- package/lib/input-number/inputNumber.js +48 -0
- package/lib/input-number/inputNumber.js.map +1 -0
- package/lib/input-number/inputNumber.less +12 -0
- package/lib/locale/default.d.ts +11 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +11 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +12 -1
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +11 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +12 -1
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/message/message.less +2 -1
- package/lib/modal/index.d.ts +0 -1
- package/lib/modal/index.d.ts.map +1 -1
- package/lib/modal/index.js +2 -3
- package/lib/modal/index.js.map +1 -1
- package/lib/modal/index.less +36 -0
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +91 -16
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/modal/style/index.d.ts.map +1 -1
- package/lib/modal/style/index.js +2 -1
- package/lib/modal/style/index.js.map +1 -1
- package/lib/notification/assets/index.d.ts +3 -0
- package/lib/notification/assets/index.d.ts.map +1 -0
- package/lib/notification/assets/index.js +20 -0
- package/lib/notification/assets/index.js.map +1 -0
- package/lib/notification/assets/svg-error-tip.d.ts +4 -0
- package/lib/notification/assets/svg-error-tip.d.ts.map +1 -0
- package/lib/notification/assets/svg-error-tip.js +154 -0
- package/lib/notification/assets/svg-error-tip.js.map +1 -0
- package/lib/notification/assets/svg-success-tip.d.ts +4 -0
- package/lib/notification/assets/svg-success-tip.d.ts.map +1 -0
- package/lib/notification/assets/svg-success-tip.js +171 -0
- package/lib/notification/assets/svg-success-tip.js.map +1 -0
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/index.d.ts.map +1 -1
- package/lib/notification/index.js +7 -8
- package/lib/notification/index.js.map +1 -1
- package/lib/notification/notification.d.ts +9 -0
- package/lib/notification/notification.d.ts.map +1 -0
- package/lib/notification/notification.js +105 -0
- package/lib/notification/notification.js.map +1 -0
- package/lib/notification/notification.less +59 -0
- package/lib/notification/style/index.less +2 -0
- 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/index.less +26 -0
- package/lib/popconfirm/popconfirm.d.ts +6 -0
- package/lib/popconfirm/popconfirm.d.ts.map +1 -0
- package/lib/popconfirm/popconfirm.js +58 -0
- package/lib/popconfirm/popconfirm.js.map +1 -0
- package/lib/popconfirm/style/index.d.ts +1 -0
- package/lib/popconfirm/style/index.d.ts.map +1 -1
- package/lib/popconfirm/style/index.js +2 -1
- 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/index.less +51 -0
- package/lib/popover/popover.d.ts +13 -0
- package/lib/popover/popover.d.ts.map +1 -0
- package/lib/popover/popover.js +53 -0
- package/lib/popover/popover.js.map +1 -0
- package/lib/popover/style/index.d.ts +1 -0
- package/lib/popover/style/index.d.ts.map +1 -1
- package/lib/popover/style/index.js +2 -1
- 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.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/progress/progress.d.ts +12 -0
- package/lib/progress/progress.d.ts.map +1 -0
- package/lib/progress/progress.js +148 -0
- package/lib/progress/progress.js.map +1 -0
- package/lib/progress/progress.less +82 -0
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +17 -0
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/FieldPopover.js +319 -0
- package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
- package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
- package/lib/query-form/Field/Composition/Select.d.ts +4 -0
- package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/Select.js +132 -0
- package/lib/query-form/Field/Composition/Select.js.map +1 -0
- package/lib/query-form/Field/Composition/index.d.ts +14 -0
- package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/index.js +337 -0
- package/lib/query-form/Field/Composition/index.js.map +1 -0
- package/lib/query-form/Field/Composition/index.less +106 -0
- package/lib/query-form/Field/Composition/utils.d.ts +6 -0
- package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/utils.js +27 -0
- package/lib/query-form/Field/Composition/utils.js.map +1 -0
- package/lib/query-form/index.d.ts +4 -7
- package/lib/query-form/index.d.ts.map +1 -1
- package/lib/query-form/index.js +137 -149
- package/lib/query-form/index.js.map +1 -1
- package/lib/query-form/index.less +12 -9
- package/lib/query-list-scene/index.less +4 -4
- package/lib/radio/index.d.ts +3 -2
- package/lib/radio/index.d.ts.map +1 -1
- package/lib/radio/index.js +2 -5
- package/lib/radio/index.js.map +1 -1
- package/lib/radio/radio.d.ts +17 -0
- package/lib/radio/radio.d.ts.map +1 -0
- package/lib/radio/radio.js +75 -0
- package/lib/radio/radio.js.map +1 -0
- package/lib/radio/radio.less +43 -0
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.less +126 -112
- 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 +3 -4
- package/lib/select/select.js.map +1 -1
- package/lib/select/select.less +83 -9
- package/lib/steps/assets/background_left.svg +12 -0
- package/lib/steps/assets/background_right.svg +12 -0
- package/lib/steps/assets/horizontal_line.svg +3 -0
- package/lib/steps/assets/vertical_line.svg +3 -0
- package/lib/steps/index.d.ts +1 -2
- package/lib/steps/index.d.ts.map +1 -1
- package/lib/steps/index.js +9 -2
- package/lib/steps/index.js.map +1 -1
- package/lib/steps/stepStyle/icon.less +51 -0
- package/lib/steps/stepStyle/index.less +173 -8
- package/lib/steps/stepStyle/nav.less +51 -259
- package/lib/steps/stepStyle/progress-dot.less +10 -0
- package/lib/steps/stepStyle/variables.less +8 -0
- package/lib/steps/stepStyle/vertical.less +41 -0
- package/lib/steps/steps.d.ts +10 -2
- package/lib/steps/steps.d.ts.map +1 -1
- package/lib/steps/steps.js +50 -22
- 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 +3 -2
- 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/switch/index.less +46 -0
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/switch/style/index.d.ts.map +1 -1
- package/lib/switch/style/index.js +2 -1
- package/lib/switch/style/index.js.map +1 -1
- package/lib/switch/switch.d.ts +8 -0
- package/lib/switch/switch.d.ts.map +1 -1
- package/lib/switch/switch.js +40 -5
- 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/style/index.less +51 -7
- package/lib/table/style/size.less +5 -5
- package/lib/table/table.d.ts +2 -1
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +35 -4
- package/lib/table/table.js.map +1 -1
- package/lib/table/table.less +33 -5
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/index.d.ts.map +1 -1
- package/lib/tabs/index.js +6 -5
- package/lib/tabs/index.js.map +1 -1
- package/lib/tabs/style/index.js.map +1 -1
- package/lib/tabs/style/index.less +1 -0
- package/lib/tabs/tabs.d.ts +3 -2
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +24 -3
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tabs/tabs.less +114 -0
- package/lib/tag/color.less +43 -0
- package/lib/tag/index.d.ts +3 -2
- package/lib/tag/index.d.ts.map +1 -1
- package/lib/tag/index.js +15 -9
- package/lib/tag/index.js.map +1 -1
- package/lib/tag/tag.d.ts +41 -0
- package/lib/tag/tag.d.ts.map +1 -0
- package/lib/tag/tag.js +183 -0
- package/lib/tag/tag.js.map +1 -0
- package/lib/tag/tag.less +192 -0
- package/lib/time-picker/TimePicker.d.ts +9 -0
- package/lib/time-picker/TimePicker.d.ts.map +1 -0
- package/lib/time-picker/TimePicker.js +55 -0
- package/lib/time-picker/TimePicker.js.map +1 -0
- package/lib/time-picker/index.d.ts +7 -6
- package/lib/time-picker/index.d.ts.map +1 -1
- package/lib/time-picker/index.js +4 -17
- package/lib/time-picker/index.js.map +1 -1
- package/lib/time-picker/index.less +38 -0
- package/lib/tntd-action/Action.d.ts +6 -0
- package/lib/tntd-action/Action.d.ts.map +1 -0
- package/lib/tntd-action/Action.js +86 -0
- package/lib/tntd-action/Action.js.map +1 -0
- package/lib/tntd-action/index.d.ts +4 -2
- package/lib/tntd-action/index.d.ts.map +1 -1
- package/lib/tntd-action/index.js +76 -5
- package/lib/tntd-action/index.js.map +1 -1
- package/lib/tntd-action/index.less +36 -0
- package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
- package/lib/tntd-cascader/AntdCascader/index.less +28 -27
- package/lib/tntd-rc-select/_util/PurePanel.d.ts +1 -1
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.d.ts.map +1 -1
- package/lib/tooltip/index.js +2 -2
- package/lib/tooltip/index.js.map +1 -1
- package/lib/tooltip/index.less +24 -0
- package/lib/tooltip/style/index.d.ts +1 -0
- package/lib/tooltip/style/index.d.ts.map +1 -1
- package/lib/tooltip/style/index.js +2 -1
- package/lib/tooltip/style/index.js.map +1 -1
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.d.ts.map +1 -0
- package/lib/tooltip/tooltip.js +51 -0
- package/lib/tooltip/tooltip.js.map +1 -0
- package/lib/utils/lang.d.ts.map +1 -1
- package/lib/utils/lang.js +8 -2
- package/lib/utils/lang.js.map +1 -1
- package/package.json +3 -2
- package/themes/common/index.less +29 -27
- package/themes/default/colors.less +1 -1
- package/themes/default/lessVars2.x.less +2 -1
- package/themes/default/lessVars3.x.less +1 -0
- package/themes/default/variables.less +60 -36
- package/es/checkbox/checkbox-group.js +0 -5
- package/es/checkbox/checkbox-group.js.map +0 -1
- package/es/drawer/drawer.less +0 -20
- package/es/modal/modal.less +0 -18
- package/es/radio/radio-group.js +0 -5
- package/es/radio/radio-group.js.map +0 -1
- package/es/steps/stepStyle/small.less +0 -5
- package/lib/checkbox/checkbox-group.d.ts +0 -8
- package/lib/checkbox/checkbox-group.d.ts.map +0 -1
- package/lib/checkbox/checkbox-group.js +0 -12
- package/lib/checkbox/checkbox-group.js.map +0 -1
- package/lib/drawer/drawer.less +0 -20
- package/lib/modal/modal.less +0 -18
- package/lib/radio/radio-group.d.ts +0 -8
- package/lib/radio/radio-group.d.ts.map +0 -1
- package/lib/radio/radio-group.js +0 -12
- package/lib/radio/radio-group.js.map +0 -1
- package/lib/steps/stepStyle/small.less +0 -5
|
@@ -306,8 +306,7 @@
|
|
|
306
306
|
animation-fill-mode: forwards;
|
|
307
307
|
border-radius: inherit;
|
|
308
308
|
bottom: 0;
|
|
309
|
-
box-shadow: 0 0 0 0
|
|
310
|
-
box-shadow: 0 0 0 0 #126bfb;
|
|
309
|
+
box-shadow: 0 0 0 0 @blue-6;
|
|
311
310
|
content: "";
|
|
312
311
|
display: block;
|
|
313
312
|
left: 0;
|
|
@@ -320,9 +319,9 @@
|
|
|
320
319
|
|
|
321
320
|
@keyframes waveEffect {
|
|
322
321
|
to {
|
|
323
|
-
box-shadow: 0 0 0
|
|
324
|
-
box-shadow: 0 0 0 6px
|
|
325
|
-
box-shadow: 0 0 0 6px
|
|
322
|
+
box-shadow: 0 0 0 @blue-6;
|
|
323
|
+
box-shadow: 0 0 0 6px @blue-6;
|
|
324
|
+
box-shadow: 0 0 0 6px @blue-6
|
|
326
325
|
}
|
|
327
326
|
}
|
|
328
327
|
|
|
@@ -1012,13 +1011,13 @@
|
|
|
1012
1011
|
.tntd-cascader-checkbox-input:focus+.tntd-cascader-checkbox-inner,
|
|
1013
1012
|
.tntd-cascader-checkbox-wrapper:hover .tntd-cascader-checkbox-inner,
|
|
1014
1013
|
.tntd-cascader-checkbox:hover .tntd-cascader-checkbox-inner {
|
|
1015
|
-
border-color:
|
|
1014
|
+
border-color: @blue-6
|
|
1016
1015
|
}
|
|
1017
1016
|
|
|
1018
1017
|
.tntd-cascader-checkbox-checked:after {
|
|
1019
1018
|
animation: antCheckboxEffect .36s ease-in-out;
|
|
1020
1019
|
animation-fill-mode: backwards;
|
|
1021
|
-
border: 1px solid
|
|
1020
|
+
border: 1px solid @blue-6;
|
|
1022
1021
|
border-radius: 2px;
|
|
1023
1022
|
content: "";
|
|
1024
1023
|
height: 100%;
|
|
@@ -1035,7 +1034,7 @@
|
|
|
1035
1034
|
}
|
|
1036
1035
|
|
|
1037
1036
|
.tntd-cascader-checkbox-inner {
|
|
1038
|
-
background-color:
|
|
1037
|
+
background-color: @white;
|
|
1039
1038
|
border: 1px solid @checkbox-border;
|
|
1040
1039
|
border-collapse: initial;
|
|
1041
1040
|
border-radius: 2px;
|
|
@@ -1050,7 +1049,7 @@
|
|
|
1050
1049
|
}
|
|
1051
1050
|
|
|
1052
1051
|
.tntd-cascader-checkbox-inner:after {
|
|
1053
|
-
border: 1px solid
|
|
1052
|
+
border: 1px solid @white;
|
|
1054
1053
|
border-left: 0;
|
|
1055
1054
|
border-top: 0;
|
|
1056
1055
|
content: " ";
|
|
@@ -1079,7 +1078,7 @@
|
|
|
1079
1078
|
}
|
|
1080
1079
|
|
|
1081
1080
|
.tntd-cascader-checkbox-checked .tntd-cascader-checkbox-inner:after {
|
|
1082
|
-
border: 1px solid
|
|
1081
|
+
border: 1px solid @white;
|
|
1083
1082
|
border-left: 0;
|
|
1084
1083
|
border-top: 0;
|
|
1085
1084
|
content: " ";
|
|
@@ -1091,8 +1090,8 @@
|
|
|
1091
1090
|
}
|
|
1092
1091
|
|
|
1093
1092
|
.tntd-cascader-checkbox-checked .tntd-cascader-checkbox-inner {
|
|
1094
|
-
background-color:
|
|
1095
|
-
border-color:
|
|
1093
|
+
background-color: @blue-6;
|
|
1094
|
+
border-color: @blue-6
|
|
1096
1095
|
}
|
|
1097
1096
|
|
|
1098
1097
|
.tntd-cascader-checkbox-disabled {
|
|
@@ -1197,12 +1196,12 @@
|
|
|
1197
1196
|
}
|
|
1198
1197
|
|
|
1199
1198
|
.tntd-cascader-checkbox-indeterminate .tntd-cascader-checkbox-inner {
|
|
1200
|
-
background-color:
|
|
1199
|
+
background-color: @white;
|
|
1201
1200
|
border-color: @checkbox-border;
|
|
1202
1201
|
}
|
|
1203
1202
|
|
|
1204
1203
|
.tntd-cascader-checkbox-indeterminate .tntd-cascader-checkbox-inner:after {
|
|
1205
|
-
background-color:
|
|
1204
|
+
background-color: @blue-6;
|
|
1206
1205
|
border: 0;
|
|
1207
1206
|
content: " ";
|
|
1208
1207
|
height: 8px;
|
|
@@ -1430,7 +1429,7 @@
|
|
|
1430
1429
|
}
|
|
1431
1430
|
|
|
1432
1431
|
.tntd-empty-img-default-g {
|
|
1433
|
-
fill:
|
|
1432
|
+
fill: @white
|
|
1434
1433
|
}
|
|
1435
1434
|
|
|
1436
1435
|
.tntd-empty-img-simple-ellipse {
|
|
@@ -1658,7 +1657,8 @@
|
|
|
1658
1657
|
-webkit-user-select: none;
|
|
1659
1658
|
-moz-user-select: none;
|
|
1660
1659
|
-ms-user-select: none;
|
|
1661
|
-
user-select: none
|
|
1660
|
+
user-select: none;
|
|
1661
|
+
border-radius: @border-radius-lg;
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
1664
|
.tntd-select-disabled.tntd-select-multiple .tntd-select-selection-item {
|
|
@@ -1821,7 +1821,7 @@
|
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
1823
|
.tntd-select-status-error.tntd-select:not(.tntd-select-disabled):not(.tntd-select-customize-input):not(.tntd-pagination-size-changer) .tntd-select-selector {
|
|
1824
|
-
background-color:
|
|
1824
|
+
background-color: @white;
|
|
1825
1825
|
border-color: @error-color !important
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
@@ -1834,7 +1834,7 @@
|
|
|
1834
1834
|
}
|
|
1835
1835
|
|
|
1836
1836
|
.tntd-select-status-warning.tntd-select:not(.tntd-select-disabled):not(.tntd-select-customize-input):not(.tntd-pagination-size-changer) .tntd-select-selector {
|
|
1837
|
-
background-color:
|
|
1837
|
+
background-color: @white;
|
|
1838
1838
|
border-color: @warning-color !important
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
@@ -1876,9 +1876,9 @@
|
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
1878
|
.tntd-select:not(.tntd-select-customize-input) .tntd-select-selector {
|
|
1879
|
-
background-color:
|
|
1879
|
+
background-color: @white;
|
|
1880
1880
|
border: 1px solid @grey-d;
|
|
1881
|
-
border-radius:
|
|
1881
|
+
border-radius: @border-radius-base;
|
|
1882
1882
|
position: relative;
|
|
1883
1883
|
transition: all .3s cubic-bezier(.645, .045, .355, 1)
|
|
1884
1884
|
}
|
|
@@ -1896,7 +1896,7 @@
|
|
|
1896
1896
|
}
|
|
1897
1897
|
|
|
1898
1898
|
.tntd-select-focused:not(.tntd-select-disabled).tntd-select:not(.tntd-select-customize-input) .tntd-select-selector {
|
|
1899
|
-
border-color:
|
|
1899
|
+
border-color: @blue-6;
|
|
1900
1900
|
border-right-width: 1px;
|
|
1901
1901
|
outline: 0
|
|
1902
1902
|
}
|
|
@@ -1932,7 +1932,7 @@
|
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
.tntd-select:not(.tntd-select-disabled):hover .tntd-select-selector {
|
|
1935
|
-
border-color:
|
|
1935
|
+
border-color: @blue-6;
|
|
1936
1936
|
border-right-width: 1px;
|
|
1937
1937
|
cursor: pointer;
|
|
1938
1938
|
}
|
|
@@ -2033,7 +2033,7 @@
|
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
2035
|
.tntd-select-clear {
|
|
2036
|
-
background:
|
|
2036
|
+
background: @white;
|
|
2037
2037
|
color: rgba(0, 0, 0, .25);
|
|
2038
2038
|
cursor: pointer;
|
|
2039
2039
|
display: inline-block;
|
|
@@ -2068,7 +2068,7 @@
|
|
|
2068
2068
|
|
|
2069
2069
|
.tntd-select-dropdown {
|
|
2070
2070
|
font-feature-settings: "tnum", "tnum", ;
|
|
2071
|
-
background-color:
|
|
2071
|
+
background-color: @white;
|
|
2072
2072
|
border-radius: 2px;
|
|
2073
2073
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05);
|
|
2074
2074
|
box-sizing: border-box;
|
|
@@ -2085,7 +2085,8 @@
|
|
|
2085
2085
|
padding: 4px 0;
|
|
2086
2086
|
position: absolute;
|
|
2087
2087
|
top: -9999px;
|
|
2088
|
-
z-index: 1050
|
|
2088
|
+
z-index: 1050;
|
|
2089
|
+
border-radius: @border-radius-lg;
|
|
2089
2090
|
}
|
|
2090
2091
|
|
|
2091
2092
|
.tntd-select-dropdown.tntd-slide-up-appear.tntd-slide-up-appear-active.tntd-select-dropdown-placement-bottomLeft,
|
|
@@ -2168,7 +2169,7 @@
|
|
|
2168
2169
|
}
|
|
2169
2170
|
|
|
2170
2171
|
.tntd-select-item-option-selected:not(.tntd-select-item-option-disabled) .tntd-select-item-option-state {
|
|
2171
|
-
color:
|
|
2172
|
+
color: @blue-6
|
|
2172
2173
|
}
|
|
2173
2174
|
|
|
2174
2175
|
.tntd-select-item-option-disabled {
|
|
@@ -2322,7 +2323,7 @@
|
|
|
2322
2323
|
.tntd-cascader-no-data-content{
|
|
2323
2324
|
font-family: PingFangSC-Regular;
|
|
2324
2325
|
font-size: 14px;
|
|
2325
|
-
color:
|
|
2326
|
+
color: @border-color-secondary;
|
|
2326
2327
|
margin-top: 6
|
|
2327
2328
|
}
|
|
2328
2329
|
|
|
@@ -3,7 +3,7 @@ export interface BaseProps {
|
|
|
3
3
|
prefixCls?: string;
|
|
4
4
|
style?: React.CSSProperties;
|
|
5
5
|
}
|
|
6
|
-
export default function genPurePanel<ComponentProps extends BaseProps>(Component: any, defaultPrefixCls?: string, getDropdownCls?: null | ((prefixCls: string) => string), postProps?: (props: ComponentProps) => ComponentProps): (props: Omit<ComponentProps, "
|
|
6
|
+
export default function genPurePanel<ComponentProps extends BaseProps>(Component: any, defaultPrefixCls?: string, getDropdownCls?: null | ((prefixCls: string) => string), postProps?: (props: ComponentProps) => ComponentProps): (props: Omit<ComponentProps, "visible" | "open"> & {
|
|
7
7
|
open?: boolean | undefined;
|
|
8
8
|
}) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=PurePanel.d.ts.map
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,cAAc,WAAW,CAAA;AAEzB,eAAe,OAAO,CAAA"}
|
package/lib/tooltip/index.js
CHANGED
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
var _exportNames = {};
|
|
8
8
|
exports["default"] = void 0;
|
|
9
|
-
|
|
9
|
+
require("./style");
|
|
10
|
+
var _tooltip = _interopRequireWildcard(require("./tooltip"));
|
|
10
11
|
Object.keys(_tooltip).forEach(function (key) {
|
|
11
12
|
if (key === "default" || key === "__esModule") return;
|
|
12
13
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -18,7 +19,6 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
});
|
|
21
|
-
require("./style");
|
|
22
22
|
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); }
|
|
23
23
|
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; }
|
|
24
24
|
var _default = exports["default"] = _tooltip["default"];
|
package/lib/tooltip/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,mBAAgB;AAChB,wDAA+B;AAE/B,4CAAyB;AAEzB,kBAAe,iBAAO,CAAA","sourcesContent":["import './style'\nimport Tooltip from './tooltip'\n\nexport * from './tooltip'\n\nexport default Tooltip\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@tooltip-prefix-cls: ~'@{ant-prefix}-tooltip';
|
|
2
|
+
|
|
3
|
+
// Base class
|
|
4
|
+
.tnt-tooltip.@{tooltip-prefix-cls} {
|
|
5
|
+
|
|
6
|
+
&-light {
|
|
7
|
+
.@{tooltip-prefix-cls}-inner {
|
|
8
|
+
background-color: @tooltip-bg-light;
|
|
9
|
+
color: @tooltip-color-light;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.@{tooltip-prefix-cls}-arrow {
|
|
13
|
+
&::before {
|
|
14
|
+
background-color: @tooltip-bg-light;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Arrows
|
|
20
|
+
&-arrow {
|
|
21
|
+
border-radius: 1px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tooltip/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tooltip/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA;AACrB,OAAO,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB;AACrB,yBAAsB","sourcesContent":["import '../../style/index.less'\nimport './index.less'\nimport '../index.less'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,cAAc,iBAAiB,CAAA;AAK/B,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAsBxD,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 _tooltip = _interopRequireWildcard(require("antd/lib/tooltip"));
|
|
12
|
+
Object.keys(_tooltip).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] === _tooltip[key]) return;
|
|
16
|
+
Object.defineProperty(exports, key, {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function get() {
|
|
19
|
+
return _tooltip[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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 themeMap = function themeMap(prefixCls, themeColor) {
|
|
36
|
+
return "".concat(prefixCls, "-").concat(themeColor);
|
|
37
|
+
};
|
|
38
|
+
var Tooltip = function Tooltip(props) {
|
|
39
|
+
var overlayClassName = props.overlayClassName,
|
|
40
|
+
_props$theme = props.theme,
|
|
41
|
+
theme = _props$theme === void 0 ? '' : _props$theme,
|
|
42
|
+
restProps = __rest(props, ["overlayClassName", "theme"]);
|
|
43
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
44
|
+
var getPrefixCls = _ref.getPrefixCls;
|
|
45
|
+
var prefixCls = getPrefixCls('tooltip');
|
|
46
|
+
return _react["default"].createElement(_tooltip["default"], Object.assign({
|
|
47
|
+
overlayClassName: (0, _classnames["default"])(prefixCls, 'tnt-tooltip', themeMap(prefixCls, theme), overlayClassName)
|
|
48
|
+
}, restProps));
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
var _default = exports["default"] = Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,6DAAwD;AACxD,8DAAyC;AACzC,4DAAmC;AAEnC,kDAA+B;AAC/B,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,UAAkB,EAAE,EAAE;IACzD,OAAO,GAAG,SAAS,IAAI,UAAU,EAAE,CAAA;AACrC,CAAC,CAAA;AAED,MAAM,OAAO,GAAgD,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,gBAAgB,EAAE,KAAK,GAAG,EAAE,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAtD,6BAA8C,CAAQ,CAAA;IAE5D,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QAEzC,OAAO,CACL,8BAAC,iBAAW,kBACV,gBAAgB,EAAE,IAAA,oBAAU,EAC1B,SAAS,EACT,aAAa,EACb,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,EAC1B,gBAAgB,CACjB,IACG,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,OAAO,CAAA","sourcesContent":["import React from 'react'\nimport type { TooltipProps } from 'antd/lib/tooltip'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntdTooltip from 'antd/lib/tooltip'\nimport classNames from 'classnames'\n\nexport * from 'antd/lib/tooltip'\nconst themeMap = (prefixCls: string, themeColor: string) => {\n return `${prefixCls}-${themeColor}`\n}\n\nconst Tooltip: React.FC<TooltipProps & { theme?: string }> = (props) => {\n const { overlayClassName, theme = '', ...restProps } = props\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('tooltip')\n\n return (\n <AntdTooltip\n overlayClassName={classNames(\n prefixCls,\n 'tnt-tooltip',\n themeMap(prefixCls, theme),\n overlayClassName\n )}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Tooltip\n"]}
|
package/lib/utils/lang.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../src/utils/lang.js"],"names":[],"mappings":"AAGA,oCAoDC;AAED,gCAA0C;AAEnC,oEAqBN;AAGM,uEAiBN;AAEM,
|
|
1
|
+
{"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../src/utils/lang.js"],"names":[],"mappings":"AAGA,oCAoDC;AAED,gCAA0C;AAEnC,oEAqBN;AAGM,uEAiBN;AAEM,uEAyCN"}
|
package/lib/utils/lang.js
CHANGED
|
@@ -52,7 +52,7 @@ var titleCaseUpper = exports.titleCaseUpper = function titleCaseUpper(str) {
|
|
|
52
52
|
};
|
|
53
53
|
var doUpperTitle = exports.doUpperTitle = function doUpperTitle(label) {
|
|
54
54
|
var upperCaseIgnore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
55
|
-
var _a, _b, _c, _d, _e, _f;
|
|
55
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
56
56
|
if ((0, _prevLocale.getLanguage)() === 'cn') {
|
|
57
57
|
return label;
|
|
58
58
|
}
|
|
@@ -67,7 +67,7 @@ var doUpperTitle = exports.doUpperTitle = function doUpperTitle(label) {
|
|
|
67
67
|
return Object.assign(Object.assign({}, label), {
|
|
68
68
|
props: Object.assign(Object.assign({}, label.props), {
|
|
69
69
|
children: (_d = (_c = label === null || label === void 0 ? void 0 : label.props) === null || _c === void 0 ? void 0 : _c.children) === null || _d === void 0 ? void 0 : _d.map(function (subLabel) {
|
|
70
|
-
return
|
|
70
|
+
return doUpperTitle(subLabel, upperCaseIgnore);
|
|
71
71
|
})
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -77,6 +77,12 @@ var doUpperTitle = exports.doUpperTitle = function doUpperTitle(label) {
|
|
|
77
77
|
children: titleCaseUpper((_f = label === null || label === void 0 ? void 0 : label.props) === null || _f === void 0 ? void 0 : _f.children, upperCaseIgnore)
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
|
+
} else if (!((_g = label === null || label === void 0 ? void 0 : label.props) === null || _g === void 0 ? void 0 : _g.children) && ((_h = label === null || label === void 0 ? void 0 : label.props) === null || _h === void 0 ? void 0 : _h.title) && typeof ((_j = label === null || label === void 0 ? void 0 : label.props) === null || _j === void 0 ? void 0 : _j.title) === 'string') {
|
|
81
|
+
label = Object.assign(Object.assign({}, label), {
|
|
82
|
+
props: Object.assign(Object.assign({}, label.props), {
|
|
83
|
+
title: titleCaseUpper((_k = label === null || label === void 0 ? void 0 : label.props) === null || _k === void 0 ? void 0 : _k.title, upperCaseIgnore)
|
|
84
|
+
})
|
|
85
|
+
});
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
}
|
package/lib/utils/lang.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang.js","sourceRoot":"","sources":["../../src/utils/lang.js"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,gDAA4C;AAE/B,QAAA,YAAY,GAAG;IAC1B,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;IACP,SAAS;IACT,OAAO;IACP,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,SAAS;IACT,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,KAAK;IACL,MAAM;IACN,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,MAAM;IACN,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,MAAM;IACN,KAAK;IACL,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QAAQ,0CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;4BACjD,OAAO,IAAA,oBAAY,EAAC,QAAQ,EAAE,eAAe,CAAC,CAAA;wBAChD,CAAC,CAAC,OAEL;aACF;iBAAM,IAAI,OAAO,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,QAAQ,CAAA,KAAK,QAAQ,EAAE;gBACrD,KAAK,mCACA,KAAK,KACR,KAAK,kCACA,KAAK,CAAC,KAAK,KACd,QAAQ,EAAE,IAAA,sBAAc,EAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,QAAQ,EAAE,eAAe,CAAC,MAEpE,CAAA;aACF;iBAAM,IAAI,CAAC,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,QAAQ,CAAA,KAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,KAAK,CAAA,IAAK,OAAO,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,KAAK,CAAA,KAAK,QAAQ,EAAE;gBACrG,KAAK,mCACA,KAAK,KACR,KAAK,kCACA,KAAK,CAAC,KAAK,KACd,KAAK,EAAC,IAAA,sBAAc,EAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,KAAK,EAAC,eAAe,CAAC,MAE5D,CAAA;aACF;SACF;KACF;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAC;AAzCW,QAAA,YAAY,gBAyCvB","sourcesContent":["import React from 'react'\nimport { getLanguage } from '../prev-locale'\n\nexport const prepositions = [\n 'about',\n 'above',\n 'across',\n 'after',\n 'against',\n 'along',\n 'among',\n 'around',\n 'as',\n 'at',\n 'before',\n 'behind',\n 'below',\n 'beneath',\n 'beside',\n 'between',\n 'beyond',\n 'by',\n 'down',\n 'during',\n 'except',\n 'for',\n 'from',\n 'in',\n 'inside',\n 'into',\n 'like',\n 'near',\n 'of',\n 'off',\n 'on',\n 'onto',\n 'out',\n 'outside',\n 'over',\n 'past',\n 'round',\n 'since',\n 'through',\n 'throughout',\n 'to',\n 'toward',\n 'under',\n 'underneath',\n 'until',\n 'up',\n 'upon',\n 'with',\n 'within',\n 'without',\n 'or'\n]\n\nexport const articles = ['the', 'a', 'an']\n\nexport const titleHandle = (str, upperCaseIgnore=[]) => {\n // 例如tab/table种有部分特殊的词例如 lv,table这种数据库表的特殊字段 不转大写\n if(upperCaseIgnore?.length && str && upperCaseIgnore?.includes(str)){\n return str;\n }\n // 以下逻辑特指一些介词不转大写\n const words = str.split(' ')\n const capitalizedWords = words.map((word, i) => {\n const lowerCaseWord = word.toLowerCase()\n let ignoreList = prepositions.concat(articles)\n if (upperCaseIgnore?.length) {\n ignoreList = ignoreList.concat(upperCaseIgnore)\n ignoreList = Array.from(new Set(ignoreList))\n }\n if (ignoreList.includes(lowerCaseWord) && i !== 0 ) {\n return lowerCaseWord\n } else {\n return word.charAt(0).toUpperCase() + word.slice(1)\n }\n })\n return capitalizedWords.join(' ')\n}\n\n// 表头转换为首字母大写\nexport const titleCaseUpper = (str, upperCaseIgnore=[]) => {\n if (!str) {\n return str\n }\n if (typeof str === 'string') {\n // 有斜杠根据斜杠划分\n if (str?.includes('/')) {\n const parWords = str.split('/')\n return parWords\n .map((str1) => {\n return titleHandle(str1, upperCaseIgnore )\n })\n .join('/')\n }\n return titleHandle(str, upperCaseIgnore)\n }\n return str\n}\n\nexport const doUpperTitle = (label, upperCaseIgnore=[]) => {\n if (getLanguage() === 'cn') {\n return label\n }\n if (!label) {\n return label\n }\n if (typeof label === 'string') {\n return titleCaseUpper(label, upperCaseIgnore);\n } else {\n if (React.isValidElement(label)) {\n if (label?.props?.children && Array.isArray(label?.props?.children)) {\n return {\n ...label,\n props: {\n ...label.props,\n children: label?.props?.children?.map((subLabel) => {\n return doUpperTitle(subLabel, upperCaseIgnore)\n }),\n },\n }\n } else if (typeof label?.props?.children === 'string') {\n label = {\n ...label,\n props: {\n ...label.props,\n children: titleCaseUpper(label?.props?.children, upperCaseIgnore),\n },\n }\n } else if (!label?.props?.children && label?.props?.title && typeof label?.props?.title === 'string') {\n label = {\n ...label,\n props: {\n ...label.props,\n title:titleCaseUpper(label?.props?.title,upperCaseIgnore),\n },\n }\n }\n }\n }\n return label\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tntd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "heft start --storybook",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"rc-tree": "~5.7.0",
|
|
29
29
|
"rc-overflow": "^1.0.0",
|
|
30
30
|
"rc-trigger": "^5.0.4",
|
|
31
|
+
"rc-notification": "~3.3.1",
|
|
31
32
|
"rc-virtual-list": "^3.4.13",
|
|
32
33
|
"rc-align": "^4.0.0",
|
|
33
34
|
"react-color": "^2.17.2",
|
|
@@ -105,4 +106,4 @@
|
|
|
105
106
|
"main": "lib/index.js",
|
|
106
107
|
"module": "es/index.js",
|
|
107
108
|
"typings": "lib/index.d.ts"
|
|
108
|
-
}
|
|
109
|
+
}
|
package/themes/common/index.less
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import './
|
|
1
|
+
@import '../default/colors.less';
|
|
2
|
+
@import './css3.x.css';
|
|
3
3
|
|
|
4
|
-
@hei40:40px;
|
|
4
|
+
@hei40: 40px;
|
|
5
5
|
body {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
& {
|
|
7
|
+
text-rendering: optimizeLegibility !important;
|
|
8
|
+
-webkit-font-smoothing: antialiased !important;
|
|
9
|
+
font-family: 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
|
|
10
|
+
'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif,
|
|
11
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
12
|
+
}
|
|
13
|
+
input {
|
|
14
|
+
text-rendering: initial !important;
|
|
15
|
+
}
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
// input
|
|
18
|
+
// .ant-input {
|
|
19
|
+
// padding: 0 9px;
|
|
20
|
+
// }
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
// 主内容区域覆盖样式
|
|
23
|
+
.page-global-header {
|
|
24
|
+
height: @hei40;
|
|
25
|
+
line-height: @hei40;
|
|
26
|
+
}
|
|
27
|
+
.page-global-body {
|
|
28
|
+
height: calc(100vh - 108px);
|
|
29
|
+
padding: 16px 20px;
|
|
30
|
+
}
|
|
31
|
+
.page-global-body-main {
|
|
32
|
+
padding-bottom: 16px;
|
|
33
|
+
}
|
|
32
34
|
}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
@line-height-base: 1.5;
|
|
6
6
|
@line-height-sm: 1.6666666;
|
|
7
7
|
@line-height-lg: 1.5;
|
|
8
|
+
@line-height-xl: 28 / 20;
|
|
8
9
|
@heading-1-line-height: 40 / 32;
|
|
9
10
|
@heading-2-line-height: 32 / 24;
|
|
10
11
|
@heading-3-line-height: 26 / 18;
|
|
11
12
|
@heading-4-line-height: 24 / 16;
|
|
12
|
-
@border-radius-base:
|
|
13
|
+
@border-radius-base: 8px;
|
|
13
14
|
@border-radius-sm: 2px;
|
|
14
15
|
@border-radius-xs: 4px;
|
|
15
16
|
@border-radius-lg: 20px;
|