@croquiscom/pds 5.7.0 → 5.8.1

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
+ ## 5.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9816f25: 박스타입의 라디오 그룹 버튼의 checked 스타일 이슈 수정
8
+
9
+ ## 5.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 6dc08ea: DateRangePicker 개별 disabled 기능 추가
14
+
3
15
  ## 5.7.0
4
16
 
5
17
  ### Minor Changes
@@ -3,7 +3,7 @@ import { DatePickerIconProps } from './DatePickerIcon';
3
3
  import { InputBaseProps } from '../input/InputBase';
4
4
  import { AriaFocusProps } from '../../types/common';
5
5
  export type FocusType = null | 'start' | 'end';
6
- export interface DateRangeInputProps extends Omit<InputBaseProps, 'leftAddon' | 'rightAddon' | 'alignment'>, AriaFocusProps {
6
+ export interface DateRangeInputProps extends Omit<InputBaseProps, 'leftAddon' | 'rightAddon' | 'alignment' | 'disabled'>, AriaFocusProps {
7
7
  placeholder?: string;
8
8
  focused?: FocusType;
9
9
  setFocused?: (focused: FocusType) => void;
@@ -17,5 +17,6 @@ export interface DateRangeInputProps extends Omit<InputBaseProps, 'leftAddon' |
17
17
  end: string;
18
18
  }>>;
19
19
  modalOpen: boolean;
20
+ disabled?: [boolean, boolean];
20
21
  }
21
22
  export declare const DateRangeInput: React.ForwardRefExoticComponent<DateRangeInputProps & DatePickerIconProps & React.RefAttributes<HTMLInputElement>>;
@@ -6,10 +6,11 @@ export type DatePresetItem = {
6
6
  id: number;
7
7
  label: string;
8
8
  range: [Date, Date];
9
+ disabled?: boolean;
9
10
  };
10
11
  export type DatePreset = DatePresetItem[];
11
12
  export type Dates = DateRange;
12
- export interface DateRangePickerProps extends DatePickerBaseProps {
13
+ export interface DateRangePickerProps extends Omit<DatePickerBaseProps, 'disabled'> {
13
14
  /**
14
15
  * 좌측 팝오버 DatePreset 사용 유무
15
16
  * @default false
@@ -57,5 +58,6 @@ export interface DateRangePickerProps extends DatePickerBaseProps {
57
58
  * @default true
58
59
  */
59
60
  autoCloseable?: boolean;
61
+ disabled?: boolean | [boolean, boolean];
60
62
  }
61
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;
@@ -4,7 +4,7 @@ import { DateRangePicker } from './DateRangePicker';
4
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>;
5
5
  export default _default;
6
6
  export declare const Base: any;
7
- export declare const Disabled: any;
7
+ export declare const Disabled: ComponentStory<typeof DateRangePicker>;
8
8
  export declare const Error: any;
9
9
  export declare const ErrorValidation: ComponentStory<typeof DateRangePicker>;
10
10
  export declare const Size: ComponentStory<typeof DateRangePicker>;
@@ -7,5 +7,7 @@ export declare const caption_text_button_css: import("@emotion/utils").Serialize
7
7
  export declare const caption_arrow_button_css: import("@emotion/utils").SerializedStyles;
8
8
  export declare const range_input_default_style: CSSProperties;
9
9
  export declare const range_picker_focus_style: import("@emotion/utils").SerializedStyles;
10
+ export declare const range_input_disabled_style: import("@emotion/utils").SerializedStyles;
10
11
  export declare const year_month_select_panel_css: import("@emotion/utils").SerializedStyles;
11
12
  export declare const getRangeFocusInputStyle: (size: InputSize) => import("@emotion/utils").SerializedStyles;
13
+ export declare const date_ragne_preset_disabled_style: import("@emotion/utils").SerializedStyles;