@croquiscom/pds 6.0.0 → 6.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 505381f: DateRangePicker 내 TimePicker option 추가
8
+
9
+ ## 6.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - e2307c7: 데이트피커 프리셋 클릭시 브라우저 창 닫힘 이슈 수정
14
+
3
15
  ## 6.0.0
4
16
 
5
17
  ### Major Changes
@@ -2,6 +2,7 @@
2
2
  import { DateRange } from 'react-day-picker';
3
3
  import { Duration } from 'date-fns';
4
4
  import { DatePickerBaseProps } from './DatePicker';
5
+ import { TimePickerProps } from '../time-picker';
5
6
  export type DatePresetItem = {
6
7
  id: number;
7
8
  label: string;
@@ -59,5 +60,20 @@ export interface DateRangePickerProps extends Omit<DatePickerBaseProps, 'disable
59
60
  */
60
61
  autoCloseable?: boolean;
61
62
  disabled?: boolean | [boolean, boolean];
63
+ /**
64
+ * 달력 하단 TimePicker를 노출합니다. onChange value에 시간 정보를 포함하여 전달합니다.
65
+ * numberOfMonths는 1로 고정됩니다.
66
+ * @default false
67
+ */
68
+ showTimePicker?: boolean;
69
+ /**
70
+ * [TimePickerProps](https://storybook.kakaostyle.in/master/pds/?path=/docs/component-timepicker--base)를 적용할 수 있습니다.
71
+ */
72
+ timePickerProps?: Omit<TimePickerProps, 'value' | 'fill' | 'onChange'>;
73
+ /**
74
+ * TimePicker 사용시 NowButton 사용 유무
75
+ * @default false
76
+ */
77
+ showNowButton?: boolean;
62
78
  }
63
- export declare const DateRangePicker: ({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, showTodayButton, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton, autoCloseable, opened: openProp, customDatePreset, displayMode, onOpen, onClose, onChange, }: DateRangePickerProps) => JSX.Element;
79
+ export declare const DateRangePicker: ({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, showTodayButton, showTimePicker, showNowButton, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton, autoCloseable, opened: openProp, customDatePreset, displayMode, timePickerProps, onOpen, onClose, onChange, }: DateRangePickerProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  import { DateRangePicker } from './DateRangePicker';
4
- declare const _default: ComponentMeta<({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, showTodayButton, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton, autoCloseable, opened: openProp, customDatePreset, displayMode, onOpen, onClose, onChange, }: import("./DateRangePicker").DateRangePickerProps) => JSX.Element>;
4
+ declare const _default: ComponentMeta<({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, showTodayButton, showTimePicker, showNowButton, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton, autoCloseable, opened: openProp, customDatePreset, displayMode, timePickerProps, onOpen, onClose, onChange, }: import("./DateRangePicker").DateRangePickerProps) => JSX.Element>;
5
5
  export default _default;
6
6
  export declare const Base: any;
7
7
  export declare const Disabled: ComponentStory<typeof DateRangePicker>;
@@ -18,3 +18,5 @@ export declare const WithRadioGroupDatePreset: any;
18
18
  export declare const WithAllDatePreset: any;
19
19
  export declare const BottomSheetPicker: any;
20
20
  export declare const UnusedAutoCloseable: any;
21
+ export declare const ShowTimePicker: any;
22
+ export declare const BottomSheetPickerWithTimePicker: any;
@@ -5,3 +5,9 @@
5
5
  */
6
6
  export declare function checkInputValidation(value: any, dateFormat?: string, strongCheck?: boolean): boolean;
7
7
  export declare function convertStringToDate(value: any): Date;
8
+ export declare const convertDateToDateWithTime: (date: Date, time?: Date | null, value?: {
9
+ hours?: number;
10
+ minutes?: number;
11
+ seconds?: number;
12
+ milliseconds?: number;
13
+ }) => Date;