@croquiscom/pds 4.3.1 → 4.4.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,18 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 4.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f480891: DatePicker,DateRangePicker safari invalid date, invalid time 오류
8
+
9
+ ## 4.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 5c903a7: - Checkbox, Radio 사이즈 추가(medium, large)
14
+ - IconMinusBold 아이콘 추가
15
+
3
16
  ## 4.3.1
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21 13.5H3V10.5H21V13.5Z" fill="#363644"/>
3
+ </svg>
@@ -1,9 +1,12 @@
1
1
  import React from 'react';
2
2
  import { AriaFocusProps } from '../../types/common';
3
- export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement>, AriaFocusProps {
3
+ export type CheckboxSize = 'medium' | 'large';
4
+ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, AriaFocusProps {
4
5
  checked?: boolean;
5
6
  disabled?: boolean;
6
7
  indeterminate?: boolean;
8
+ /** @default medium */
9
+ size?: CheckboxSize;
7
10
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
11
  }
9
12
  export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -6,7 +6,9 @@ export declare const Default: any;
6
6
  export declare const Checked: any;
7
7
  export declare const Disabled: any;
8
8
  export declare const CheckedDisabled: any;
9
+ export declare const IndeterminateDisabled: any;
9
10
  export declare const Link: ({ disabled, ...args }: {
10
11
  [x: string]: any;
11
12
  disabled: any;
12
13
  }) => JSX.Element;
14
+ export declare const Size: () => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { CheckboxSize } from './Checkbox';
2
3
  import { AlignType } from '../radio';
3
4
  import { AriaFocusProps } from '../../types/common';
4
5
  interface CheckboxItem<CheckboxValue> {
@@ -18,6 +19,8 @@ export interface CheckboxGroupProps<CheckboxValue> extends Omit<React.HTMLAttrib
18
19
  spacing?: number;
19
20
  items: CheckboxItem<CheckboxValue>[];
20
21
  align?: AlignType;
22
+ /** @default medium */
23
+ size?: CheckboxSize;
21
24
  keyExtractor?: (item: CheckboxItem<CheckboxValue>, index: number) => string | number;
22
25
  onChange?: (value: CheckboxValue[]) => void;
23
26
  }
@@ -6,6 +6,7 @@ export declare const Base: any;
6
6
  export declare const Spacing: any;
7
7
  export declare const Disabled: any;
8
8
  export declare const VerticalAlign: any;
9
+ export declare const Size: () => JSX.Element;
9
10
  export declare const Controlled: () => JSX.Element;
10
11
  export declare const Link: any;
11
12
  export declare const indeterminate: () => JSX.Element;
@@ -4,3 +4,4 @@
4
4
  * @param strongCheck boolean [default=false] 값이 없는 경우, 날짜 입력중인 경우 (dateFormat.length 와 비교) error 추가 판단
5
5
  */
6
6
  export declare function checkInputValidation(value: any, dateFormat?: string, strongCheck?: boolean): boolean;
7
+ export declare function convertStringToDate(value: any): Date;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgMinusBold: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgMinusBold;
@@ -153,6 +153,7 @@ export { default as IconLock } from './Lock';
153
153
  export { default as IconMegaphone } from './Megaphone';
154
154
  export { default as IconMessage } from './Message';
155
155
  export { default as IconMinus } from './Minus';
156
+ export { default as IconMinusBold } from './MinusBold';
156
157
  export { default as IconMonitor } from './Monitor';
157
158
  export { default as IconMove } from './Move';
158
159
  export { default as IconNew } from './New';
@@ -9,4 +9,5 @@ export declare const Disabled: any;
9
9
  export declare const DisabledItem: any;
10
10
  export declare const SelectedDisabled: any;
11
11
  export declare const FullWidth: any;
12
+ export declare const Size: () => JSX.Element;
12
13
  export declare const Controlled: () => JSX.Element;
@@ -6,3 +6,4 @@ export declare const Base: any;
6
6
  export declare const Checked: any;
7
7
  export declare const Disabled: any;
8
8
  export declare const CheckedDisabled: any;
9
+ export declare const Size: () => JSX.Element;
@@ -1,17 +1,17 @@
1
1
  import React from 'react';
2
2
  import { AriaFocusProps } from '../../types/common';
3
- import { RadioSizeUnion } from './types';
3
+ import { RadioSizeUnion, DefaultRadioSizeUnion } from './types';
4
4
  export type AlignType = 'horizontal' | 'vertical';
5
5
  export type RadioItemType = 'default' | 'box';
6
6
  export type RadioWidthType = 'fill' | 'auto';
7
7
  export interface RadioCategoryType<T> {
8
8
  radioItemType?: T;
9
9
  /**
10
- * radioItmType - default일 경우 number 타입만 적용됩니다.
10
+ * radioItmType - default일 경우 'medium', 'large'만 적용되며 default값은 'medium'입니다.
11
11
  *
12
- * radioItmType - box일 경우 'small', 'medium', 'large'만 적용됩니다.
12
+ * radioItmType - box일 경우 'small', 'medium', 'large'만 적용되며 default값은 'large'입니다.
13
13
  */
14
- size?: T extends 'box' ? RadioSizeUnion : number;
14
+ size?: T extends 'box' ? RadioSizeUnion : DefaultRadioSizeUnion;
15
15
  }
16
16
  interface RadioItem<RadioValue> {
17
17
  label: React.ReactNode;
@@ -9,4 +9,5 @@ export declare const Spacing: any;
9
9
  export declare const Disabled: any;
10
10
  export declare const VerticalAlign: any;
11
11
  export declare const FullWidth: any;
12
+ export declare const Size: () => JSX.Element;
12
13
  export declare const Controlled: () => JSX.Element;
@@ -1,11 +1,12 @@
1
1
  import { RadioItemType, AlignType, RadioCategoryType, RadioWidthType } from './RadioGroup';
2
- import { RadioSizeUnion } from './types';
3
- export declare const getRadioGroupStyleByProps: ({ radio_item_type, align, spacing, }: {
2
+ import { RadioSizeUnion, DefaultRadioSizeUnion } from './types';
3
+ export declare const getRadioGroupStyleByProps: ({ radio_item_type, align, spacing, size, }: {
4
4
  radio_item_type?: RadioItemType;
5
5
  align?: AlignType;
6
6
  spacing?: Number;
7
+ size?: RadioSizeUnion;
7
8
  }) => import("@emotion/utils").SerializedStyles;
8
- export declare const radio_size_css: Record<RadioSizeUnion, string>;
9
+ export declare const default_radio_size_css: Record<DefaultRadioSizeUnion, Record<string, number>>;
9
10
  export declare const getRadioWidthBySize: (size: RadioSizeUnion) => number;
10
11
  interface RadioStyleProps extends RadioCategoryType<RadioItemType> {
11
12
  fill?: boolean;
@@ -4,3 +4,4 @@ export declare enum RadioSize {
4
4
  large = "large"
5
5
  }
6
6
  export type RadioSizeUnion = keyof typeof RadioSize;
7
+ export type DefaultRadioSizeUnion = Exclude<RadioSizeUnion, 'small'>;