@croquiscom/pds 3.10.0-alpha.6 → 3.11.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 +2 -59
- package/dist/components/date-picker/Caption.d.ts +2 -3
- package/dist/components/date-picker/DatePicker.d.ts +0 -1
- package/dist/components/date-picker/DateRangeInput.d.ts +3 -14
- package/dist/components/date-picker/DateRangePicker.d.ts +1 -8
- package/dist/components/date-picker/DateRangePicker.stories.d.ts +1 -2
- package/dist/components/date-picker/hooks/constants.d.ts +2 -3
- package/dist/components/date-picker/hooks/useDatePickerAttributes.d.ts +4 -9
- package/dist/components/date-picker/styles.d.ts +15 -8
- package/dist/components/radio/BoxRadioGroup.stories.d.ts +1 -0
- package/dist/components/radio/Radio.d.ts +5 -1
- package/dist/components/radio/RadioGroup.d.ts +8 -2
- package/dist/components/radio/RadioGroup.stories.d.ts +1 -0
- package/dist/components/radio/styles.d.ts +3 -2
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts +0 -1
- package/dist/locales/ja.d.ts +0 -1
- package/dist/locales/ko.d.ts +0 -1
- package/locales/en.esm.js +0 -1
- package/locales/en.esm.js.map +1 -1
- package/locales/en.js +0 -1
- package/locales/en.js.map +1 -1
- package/locales/ja.esm.js +0 -1
- package/locales/ja.esm.js.map +1 -1
- package/locales/ja.js +0 -1
- package/locales/ja.js.map +1 -1
- package/locales/ko.esm.js +0 -1
- package/locales/ko.esm.js.map +1 -1
- package/locales/ko.js +0 -1
- package/locales/ko.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/date-picker/YearMonthCalendar.d.ts +0 -20
- package/dist/components/date-picker/YearMonthCaption.d.ts +0 -14
- package/dist/components/date-picker/utils.d.ts +0 -6
- package/locales/en.d.ts +0 -67
- package/locales/en.esm.d.ts +0 -67
- package/locales/ja.d.ts +0 -67
- package/locales/ja.esm.d.ts +0 -67
- package/locales/ko.d.ts +0 -67
- package/locales/ko.esm.d.ts +0 -67
package/CHANGELOG.md
CHANGED
|
@@ -1,67 +1,10 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
-
## 3.
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- YearMonthCalendar panel disabled 조건변경
|
|
8
|
-
|
|
9
|
-
## 3.10.0-alpha.3
|
|
3
|
+
## 3.11.0
|
|
10
4
|
|
|
11
5
|
### Minor Changes
|
|
12
6
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
### Patch Changes
|
|
16
|
-
|
|
17
|
-
- f7537e5: DateRangePicker minDate/maxDate + maxRange 혼합 케이스 추가
|
|
18
|
-
|
|
19
|
-
## 3.10.0-alpha.2
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- db5bbd2: DateRangePicker MaxRange 사용시 날짜 모두 입력 후 시작일 클릭시 클릭 범위 초기화
|
|
24
|
-
DatePicker,DateRangePicker 에러케이스여도 날짜 형식이 맞으면 달력 이동
|
|
25
|
-
|
|
26
|
-
## 3.10.0-alpha.1
|
|
27
|
-
|
|
28
|
-
### Patch Changes
|
|
29
|
-
|
|
30
|
-
- 09019b3: 날짜 입력후 selectedDatePreset 값 변경
|
|
31
|
-
|
|
32
|
-
## 3.10.0-alpha.0
|
|
33
|
-
|
|
34
|
-
### Minor Changes
|
|
35
|
-
|
|
36
|
-
- 36b35ec: DatePicker/DateRangePicker prevYear, nextYear 버튼 추가(default) 및 디자인 변경사항
|
|
37
|
-
|
|
38
|
-
## BreakPoint
|
|
39
|
-
|
|
40
|
-
- DatePicker 내부 TodayButton kind 변경
|
|
41
|
-
- DatePicker 내부 TimePicker 사이즈 변경
|
|
42
|
-
- DatePicker showTimePicker 사용시 [오늘]버튼 [지금]버튼으로 변경
|
|
43
|
-
- DateRangePicker Description 제거
|
|
44
|
-
- DateRangePicker [오늘] 버튼 추가
|
|
45
|
-
|
|
46
|
-
- 3806f94: DateRangePicker autoCloseable 추가 및 디자인 변경 사항 적용
|
|
47
|
-
|
|
48
|
-
## BreakPoint
|
|
49
|
-
|
|
50
|
-
- autoCloseable (default=[true])
|
|
51
|
-
- default true 속성으로 날짜 범위 선택 완료시 캘린더 창 자동 닫기 기능
|
|
52
|
-
- displayMode 'popover'인 경우 하단의 footer 영역의 취소/확인 버튼은 노출되지 않습니다.
|
|
53
|
-
- displayMode 'bottomSheet'인 경우 적용이 불가합니다. footer 영역의 취소/확인 버튼이 default로 노출됩니다.
|
|
54
|
-
- DateRangePicker showDataPreset true인 경우, TodayButton 미노출
|
|
55
|
-
- DatePicker/DateRangePicker 내부 캘린더 DayButton UI 변경
|
|
56
|
-
|
|
57
|
-
- 4f33c17: DatePicker/DateRangePicker 날짜를 직접 입력할 수 있다.
|
|
58
|
-
- 2e1d69f: DateRangePicker 시작일/종료일 포커싱 선택
|
|
59
|
-
- 851dd98: DatePicker, DateRangePicker 연/월을 각각 빠르게 선택할 수 있다.
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- 3f5b2e1: - DateRangePicker 날짜가 모두 입력된 상태에서 열었을 때 시작일 또는 종료일을 현재 선택된 날짜와 관계없이 모두 선택 가능
|
|
64
|
-
- DateRangePicker 범위 선택 hover ui 변경
|
|
7
|
+
- 201709d: feat: Box RadioGroup Full Width 옵션 추가
|
|
65
8
|
|
|
66
9
|
## 3.10.0
|
|
67
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
3
|
import { CaptionProps } from 'react-day-picker';
|
|
4
|
-
import {
|
|
4
|
+
import { DisplayMode } from './DatePicker';
|
|
5
5
|
export declare const captionColor: (disabled: boolean) => string;
|
|
6
6
|
export interface DatePickerCaptionProps extends CaptionProps {
|
|
7
7
|
/**
|
|
@@ -12,6 +12,5 @@ export interface DatePickerCaptionProps extends CaptionProps {
|
|
|
12
12
|
currentMonth?: Date;
|
|
13
13
|
locale: Locale;
|
|
14
14
|
displayMode: DisplayMode;
|
|
15
|
-
onClickCaptionLabel?: (type: CaptionLabelType) => void;
|
|
16
15
|
}
|
|
17
|
-
export declare const Caption: ({ multipleMonths, currentMonth: controlledMonth, displayMode, className, locale,
|
|
16
|
+
export declare const Caption: ({ multipleMonths, currentMonth: controlledMonth, displayMode, className, locale, ...props }: DatePickerCaptionProps) => JSX.Element;
|
|
@@ -5,7 +5,6 @@ import { TimePickerProps } from '../time-picker';
|
|
|
5
5
|
import { InputSize } from '../input/types';
|
|
6
6
|
export type DisplayTimeFormat = 'hourMinute' | 'hourMinuteSecond';
|
|
7
7
|
export type DisplayMode = 'popover' | 'bottomSheet';
|
|
8
|
-
export type CaptionLabelType = 'month' | 'year';
|
|
9
8
|
export declare const DATE_FORMAT = "yyyy.MM.dd";
|
|
10
9
|
export declare const DATE_HOUR_MINUTE_FORMAT = "yyyy.MM.dd HH:mm";
|
|
11
10
|
export declare const DATE_HOUR_MINUTE_SECOND_FORMAT = "yyyy.MM.dd HH:mm:ss";
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DatePickerIconProps } from './DatePickerIcon';
|
|
3
3
|
import { InputBaseProps } from '../input/InputBase';
|
|
4
4
|
import { AriaFocusProps } from '../../types/common';
|
|
5
|
-
export type FocusType = null | 'start' | 'end';
|
|
6
5
|
export interface DateRangeInputProps extends Omit<InputBaseProps, 'leftAddon' | 'rightAddon' | 'alignment'>, AriaFocusProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
setFocused?: (focused: FocusType) => void;
|
|
6
|
+
fromDate?: string;
|
|
7
|
+
toDate?: string;
|
|
10
8
|
onClickRemoveButton?: () => void;
|
|
11
|
-
inputValue: {
|
|
12
|
-
start: string;
|
|
13
|
-
end: string;
|
|
14
|
-
};
|
|
15
|
-
fetchInputValue: Dispatch<SetStateAction<{
|
|
16
|
-
start: string;
|
|
17
|
-
end: string;
|
|
18
|
-
}>>;
|
|
19
|
-
modalOpen: boolean;
|
|
20
9
|
}
|
|
21
10
|
export declare const DateRangeInput: React.ForwardRefExoticComponent<DateRangeInputProps & DatePickerIconProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -43,12 +43,5 @@ export interface DateRangePickerProps extends DatePickerBaseProps {
|
|
|
43
43
|
*/
|
|
44
44
|
numberOfMonths?: number;
|
|
45
45
|
onChange?: (start: Dates['from'], end: Dates['to']) => void;
|
|
46
|
-
/**
|
|
47
|
-
* 선택 완료시 자동으로 캘린더 선택 창을 닫습니다.
|
|
48
|
-
* - displayMode 'bottomSheet'인 경우 적용이 불가합니다.
|
|
49
|
-
* - displayMode 'popover'인 경우 하단의 footer 영역의 취소/확인 버튼은 노출되지 않습니다.
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
autoCloseable?: boolean;
|
|
53
46
|
}
|
|
54
|
-
export declare const DateRangePicker: ({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton,
|
|
47
|
+
export declare const DateRangePicker: ({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton, opened: openProp, customDatePreset, displayMode, 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, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton,
|
|
4
|
+
declare const _default: ComponentMeta<({ width, error, disabled, className, size, showDatePreset, showRadioGroupDatePreset, dates, maxDate, minDate, maxRange, numberOfMonths: numberOfMonthsProps, showRemoveButton, opened: openProp, customDatePreset, displayMode, 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: any;
|
|
@@ -16,4 +16,3 @@ export declare const WithDatePreset: any;
|
|
|
16
16
|
export declare const WithRadioGroupDatePreset: any;
|
|
17
17
|
export declare const WithAllDatePreset: any;
|
|
18
18
|
export declare const BottomSheetPicker: any;
|
|
19
|
-
export declare const UnusedAutoCloseable: any;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export declare const POPOVER_CELL_SIZE =
|
|
2
|
-
export declare const BOTTOM_SHEET_CELL_SIZE =
|
|
3
|
-
export declare const CELL_SIZE_MARGIN = 4;
|
|
1
|
+
export declare const POPOVER_CELL_SIZE = 32;
|
|
2
|
+
export declare const BOTTOM_SHEET_CELL_SIZE = 49;
|
|
4
3
|
export declare const BOTTOM_SHEET_CAPTION_HEIGHT = 72;
|
|
5
4
|
export declare const BOTTOM_SHEET_FOOTER_HEIGHT = 90;
|
|
6
5
|
export declare const MIN_SATE_PADDING_TOP = 40;
|
|
@@ -5,18 +5,10 @@ import { ButtonProps } from '../../button';
|
|
|
5
5
|
import { VStackProps, HStackProps } from '../../stack';
|
|
6
6
|
interface DatePickerAttributes {
|
|
7
7
|
maxHeight: number;
|
|
8
|
-
panelSize: {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
8
|
cellSize: number;
|
|
13
9
|
caption: {
|
|
14
10
|
kind: Typography;
|
|
15
|
-
|
|
16
|
-
size: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
11
|
+
arrowSize: number;
|
|
20
12
|
style?: CSSObject;
|
|
21
13
|
};
|
|
22
14
|
footer: {
|
|
@@ -24,6 +16,9 @@ interface DatePickerAttributes {
|
|
|
24
16
|
container: Partial<HStackProps & VStackProps> & {
|
|
25
17
|
style?: CSSObject;
|
|
26
18
|
};
|
|
19
|
+
description?: {
|
|
20
|
+
kind: Typography;
|
|
21
|
+
};
|
|
27
22
|
};
|
|
28
23
|
}
|
|
29
24
|
export declare function useDatePickerAttributes(displayMode: DisplayMode): DatePickerAttributes;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { InputSize } from '../input/types';
|
|
3
1
|
export declare const date_picker_base_css: import("@emotion/utils").SerializedStyles;
|
|
4
2
|
export declare const popover_picker_css: import("@emotion/utils").SerializedStyles;
|
|
5
3
|
export declare const bottom_sheet_picker_css: import("@emotion/utils").SerializedStyles;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
export declare const caption_button_css: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const range_input_default_style: {
|
|
6
|
+
border: number;
|
|
7
|
+
borderRadius: number;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
padding: number;
|
|
10
|
+
transition: string;
|
|
11
|
+
'&:hover': {
|
|
12
|
+
borderColor: string;
|
|
13
|
+
};
|
|
14
|
+
'&:focus, &:focus-within': {
|
|
15
|
+
outline: string;
|
|
16
|
+
border: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { AriaFocusProps } from '../../types/common';
|
|
3
|
-
import { RadioCategoryType, RadioItemType } from './RadioGroup';
|
|
3
|
+
import { RadioCategoryType, RadioItemType, RadioWidthType } from './RadioGroup';
|
|
4
4
|
interface RadioBaseType extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'>, AriaFocusProps {
|
|
5
5
|
}
|
|
6
6
|
export interface RadioProps extends RadioBaseType, RadioCategoryType<RadioItemType> {
|
|
@@ -8,6 +8,10 @@ export interface RadioProps extends RadioBaseType, RadioCategoryType<RadioItemTy
|
|
|
8
8
|
* @default false
|
|
9
9
|
*/
|
|
10
10
|
fill?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default 'auto'
|
|
13
|
+
*/
|
|
14
|
+
width?: RadioWidthType;
|
|
11
15
|
className?: string;
|
|
12
16
|
}
|
|
13
17
|
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -3,6 +3,7 @@ import { AriaFocusProps } from '../../types/common';
|
|
|
3
3
|
import { RadioSizeUnion } from './types';
|
|
4
4
|
export type AlignType = 'horizontal' | 'vertical';
|
|
5
5
|
export type RadioItemType = 'default' | 'box';
|
|
6
|
+
export type RadioWidthType = 'fill' | 'auto';
|
|
6
7
|
export interface RadioCategoryType<T> {
|
|
7
8
|
radioItemType?: T;
|
|
8
9
|
/**
|
|
@@ -24,16 +25,21 @@ export interface RadioGroupProps<RadioValue> extends Omit<React.HTMLAttributes<H
|
|
|
24
25
|
name?: string;
|
|
25
26
|
items: RadioItem<RadioValue>[];
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* RadioItemType - box 일경우 spacing 속성은 미적용됩니다.
|
|
28
29
|
* @default 24
|
|
29
30
|
*/
|
|
30
31
|
spacing?: number;
|
|
31
32
|
disabled?: boolean;
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* RadioItemType - box 일경우 align 속성은 'horizontal' 고정입니다.
|
|
34
35
|
* @default horizontal
|
|
35
36
|
*/
|
|
36
37
|
align?: AlignType;
|
|
38
|
+
/**
|
|
39
|
+
* 'fill' 일경우 Full Width 값, 'auto' 일경우 기본 너비 값으로 적용됩니다.
|
|
40
|
+
* @default 'auto'
|
|
41
|
+
*/
|
|
42
|
+
width?: RadioWidthType;
|
|
37
43
|
keyExtractor?: (item: RadioItem<RadioValue>, index: number) => string | number;
|
|
38
44
|
onChange?: (value: RadioValue) => void;
|
|
39
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadioItemType, AlignType, RadioCategoryType } from './RadioGroup';
|
|
1
|
+
import { RadioItemType, AlignType, RadioCategoryType, RadioWidthType } from './RadioGroup';
|
|
2
2
|
import { RadioSizeUnion } from './types';
|
|
3
3
|
export declare const getRadioGroupStyleByProps: ({ radio_item_type, align, spacing, }: {
|
|
4
4
|
radio_item_type?: RadioItemType;
|
|
@@ -9,9 +9,10 @@ export declare const radio_size_css: Record<RadioSizeUnion, string>;
|
|
|
9
9
|
export declare const getRadioWidthBySize: (size: RadioSizeUnion) => number;
|
|
10
10
|
interface RadioStyleProps extends RadioCategoryType<RadioItemType> {
|
|
11
11
|
fill?: boolean;
|
|
12
|
+
width?: RadioWidthType;
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
checked?: boolean;
|
|
14
15
|
focused?: boolean;
|
|
15
16
|
}
|
|
16
|
-
export declare const getRadioStyleByProps: ({ radioItemType, fill, size, disabled, checked, focused }: RadioStyleProps) => import("@emotion/utils").SerializedStyles;
|
|
17
|
+
export declare const getRadioStyleByProps: ({ radioItemType, fill, width, size, disabled, checked, focused, }: RadioStyleProps) => import("@emotion/utils").SerializedStyles;
|
|
17
18
|
export {};
|