|
11 | 11 | * Tips: Should add faq about `datetime` mode with `defaultValue` |
12 | 12 | */ |
13 | 13 |
|
14 | | -import * as React from 'react'; |
15 | 14 | import classNames from 'classnames'; |
16 | 15 | import type { AlignType } from 'rc-trigger/lib/interface'; |
17 | | -import warning from 'rc-util/lib/warning'; |
18 | 16 | import useMergedState from 'rc-util/lib/hooks/useMergedState'; |
| 17 | +import warning from 'rc-util/lib/warning'; |
| 18 | +import * as React from 'react'; |
| 19 | +import useHoverValue from './hooks/useHoverValue'; |
| 20 | +import usePickerInput from './hooks/usePickerInput'; |
| 21 | +import usePresets from './hooks/usePresets'; |
| 22 | +import useTextValueMapping from './hooks/useTextValueMapping'; |
| 23 | +import useValueTexts from './hooks/useValueTexts'; |
| 24 | +import type { CustomFormat, PickerMode, PresetDate } from './interface'; |
| 25 | +import type { ContextOperationRefProps } from './PanelContext'; |
| 26 | +import PanelContext from './PanelContext'; |
19 | 27 | import type { |
20 | 28 | PickerPanelBaseProps, |
21 | 29 | PickerPanelDateProps, |
22 | 30 | PickerPanelTimeProps, |
23 | 31 | } from './PickerPanel'; |
24 | 32 | import PickerPanel from './PickerPanel'; |
25 | 33 | import PickerTrigger from './PickerTrigger'; |
| 34 | +import PresetPanel from './PresetPanel'; |
26 | 35 | import { formatValue, isEqual, parseValue } from './utils/dateUtil'; |
27 | 36 | import getDataOrAriaProps, { toArray } from './utils/miscUtil'; |
28 | | -import type { ContextOperationRefProps } from './PanelContext'; |
29 | | -import PanelContext from './PanelContext'; |
30 | | -import type { CustomFormat, PickerMode, PresetDate } from './interface'; |
31 | | -import { getDefaultFormat, getInputSize, elementsContains } from './utils/uiUtil'; |
32 | | -import usePickerInput from './hooks/usePickerInput'; |
33 | | -import useTextValueMapping from './hooks/useTextValueMapping'; |
34 | | -import useValueTexts from './hooks/useValueTexts'; |
35 | | -import useHoverValue from './hooks/useHoverValue'; |
| 37 | +import { elementsContains, getDefaultFormat, getInputSize } from './utils/uiUtil'; |
36 | 38 | import { legacyPropsWarning } from './utils/warnUtil'; |
37 | | -import usePresets from './hooks/usePresets'; |
38 | | -import PresetPanel from './PresetPanel'; |
39 | 39 |
|
40 | 40 | export type PickerRefConfig = { |
41 | 41 | focus: () => void; |
@@ -271,7 +271,6 @@ function InnerPicker<DateType>(props: PickerProps<DateType>) { |
271 | 271 | return; |
272 | 272 | } |
273 | 273 |
|
274 | | - console.trace('New Open:', newOpen) |
275 | 274 | triggerInnerOpen(newOpen); |
276 | 275 | }; |
277 | 276 |
|
|
0 commit comments