@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 +13 -0
- package/assets/icons/MinusBold.svg +3 -0
- package/dist/components/checkbox/Checkbox.d.ts +4 -1
- package/dist/components/checkbox/Checkbox.stories.d.ts +2 -0
- package/dist/components/checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/components/checkbox/CheckboxGroup.stories.d.ts +1 -0
- package/dist/components/date-picker/utils.d.ts +1 -0
- package/dist/components/icons/generated/MinusBold.d.ts +4 -0
- package/dist/components/icons/generated/index.d.ts +1 -0
- package/dist/components/radio/BoxRadioGroup.stories.d.ts +1 -0
- package/dist/components/radio/Radio.stories.d.ts +1 -0
- package/dist/components/radio/RadioGroup.d.ts +4 -4
- package/dist/components/radio/RadioGroup.stories.d.ts +1 -0
- package/dist/components/radio/styles.d.ts +4 -3
- package/dist/components/radio/types.d.ts +1 -0
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AriaFocusProps } from '../../types/common';
|
|
3
|
-
export
|
|
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;
|
|
@@ -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';
|
|
@@ -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일 경우
|
|
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 :
|
|
14
|
+
size?: T extends 'box' ? RadioSizeUnion : DefaultRadioSizeUnion;
|
|
15
15
|
}
|
|
16
16
|
interface RadioItem<RadioValue> {
|
|
17
17
|
label: React.ReactNode;
|
|
@@ -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
|
|
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;
|