@croquiscom/pds 3.4.0 → 3.4.2
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 +12 -0
- package/dist/components/checkbox/Checkbox.d.ts +2 -1
- package/dist/components/checkbox/CheckboxGroup.d.ts +2 -1
- package/dist/components/date-picker/DateRangeInput.d.ts +2 -1
- package/dist/components/dropdown/Dropdown.d.ts +2 -1
- package/dist/components/dropdown/Dropdown.stories.d.ts +1 -1
- package/dist/components/dropdown/DropdownInput.d.ts +2 -1
- package/dist/components/dropdown/DropdownInput.stories.d.ts +1 -1
- package/dist/components/input/Input.d.ts +1 -1
- package/dist/components/input/Input.stories.d.ts +1 -1
- package/dist/components/input/InputBase.d.ts +3 -2
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/radio/Radio.d.ts +2 -1
- package/dist/components/radio/RadioGroup.d.ts +2 -1
- package/dist/components/textarea/Textarea.d.ts +2 -1
- package/dist/components/time-picker/TimeRangeInput.d.ts +2 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/common.d.ts +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 3.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e708072: react-aria useFocusRing isFocusVisible 속성 외부 제어 가능하도록 수정
|
|
8
|
+
|
|
9
|
+
## 3.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f49470b: export되지 않은 Menu 부속 컴포넌트 export 하도록 수정
|
|
14
|
+
|
|
3
15
|
## 3.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { AriaFocusProps } from '../../types/common';
|
|
3
|
+
export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement>, AriaFocusProps {
|
|
3
4
|
checked?: boolean;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
indeterminate?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { AlignType } from '../radio';
|
|
3
|
+
import { AriaFocusProps } from '../../types/common';
|
|
3
4
|
interface CheckboxItem<CheckboxValue> {
|
|
4
5
|
label: ReactNode;
|
|
5
6
|
value: CheckboxValue;
|
|
@@ -7,7 +8,7 @@ interface CheckboxItem<CheckboxValue> {
|
|
|
7
8
|
link?: string;
|
|
8
9
|
onClickLink?: (e: CheckboxValue) => void;
|
|
9
10
|
}
|
|
10
|
-
export interface CheckboxGroupProps<CheckboxValue> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'
|
|
11
|
+
export interface CheckboxGroupProps<CheckboxValue> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'>, AriaFocusProps {
|
|
11
12
|
className?: string;
|
|
12
13
|
defaultValue?: CheckboxValue[];
|
|
13
14
|
value?: CheckboxValue[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
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 interface DateRangeInputProps extends Omit<InputBaseProps, 'leftAddon' | 'rightAddon' | 'alignment'>, AriaFocusProps {
|
|
5
6
|
fromDate?: string;
|
|
6
7
|
toDate?: string;
|
|
7
8
|
onClickRemoveButton?: () => void;
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { DropdownLabelProps } from './DropdownLabel';
|
|
3
3
|
import { CSSValueWithLength } from '../../styles';
|
|
4
4
|
import { InputSize } from '../input/types';
|
|
5
|
+
import { AriaFocusProps } from '../../types/common';
|
|
5
6
|
export interface DropdownOption<OptionValue> {
|
|
6
7
|
label: ReactNode;
|
|
7
8
|
value: OptionValue;
|
|
@@ -42,4 +43,4 @@ export interface DropdownProps<OptionValue> {
|
|
|
42
43
|
onChange?: (value: OptionValue) => void;
|
|
43
44
|
renderLabel?: (selectedOption: DropdownOption<OptionValue>) => ReactNode;
|
|
44
45
|
}
|
|
45
|
-
export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, keyExtractor, onChange, renderLabel, }: DropdownProps<OptionValue>) => JSX.Element;
|
|
46
|
+
export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, unstableFocusVisible, keyExtractor, onChange, renderLabel, }: DropdownProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { Dropdown } from './Dropdown';
|
|
4
|
-
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, keyExtractor, onChange, renderLabel, }: import("./Dropdown").DropdownProps<OptionValue>) => JSX.Element)>;
|
|
4
|
+
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, unstableFocusVisible, keyExtractor, onChange, renderLabel, }: import("./Dropdown").DropdownProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { AriaFocusProps } from '../../types/common';
|
|
2
3
|
import { DropdownProps } from './Dropdown';
|
|
3
4
|
export interface DropdownInputOption<OptionValue> {
|
|
4
5
|
label: string;
|
|
@@ -14,4 +15,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
|
|
|
14
15
|
options: Array<DropdownInputOption<OptionValue>>;
|
|
15
16
|
keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
|
|
16
17
|
}
|
|
17
|
-
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, keyExtractor, onSearch, onChange, }: DropdownInputProps<OptionValue>) => JSX.Element;
|
|
18
|
+
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { DropdownInput } from './DropdownInput';
|
|
4
|
-
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, keyExtractor, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue>) => JSX.Element)>;
|
|
4
|
+
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { InputAffixProps } from './InputAffix';
|
|
3
3
|
import { InputBaseProps } from './InputBase';
|
|
4
4
|
export type InputProps = InputBaseProps & InputAffixProps;
|
|
5
|
-
export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & import("./InputBase").InputBaseType & InputAffixProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & import("./InputBase").InputBaseType & import("../../types/common").AriaFocusProps & InputAffixProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & import("./InputBase").InputBaseType & import("./InputAffix").InputAffixProps & React.RefAttributes<HTMLInputElement>>>;
|
|
3
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & import("./InputBase").InputBaseType & import("../../types/common").AriaFocusProps & import("./InputAffix").InputAffixProps & React.RefAttributes<HTMLInputElement>>>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Base: any;
|
|
6
6
|
export declare const Error: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { AriaFocusProps } from '../../types/common';
|
|
2
3
|
import { InputAffixProps } from './InputAffix';
|
|
3
4
|
import { InputAlignment, InputSize, InputStatus } from './types';
|
|
4
5
|
import { IconProps } from '../icons/generated';
|
|
@@ -24,6 +25,6 @@ export interface InputBaseType {
|
|
|
24
25
|
*/
|
|
25
26
|
showCounter?: boolean;
|
|
26
27
|
}
|
|
27
|
-
export type InputBaseProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width' | 'size'> & InputBaseType;
|
|
28
|
+
export type InputBaseProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width' | 'size'> & InputBaseType & AriaFocusProps;
|
|
28
29
|
export declare const controlledInputValue: (value: any) => string;
|
|
29
|
-
export declare const InputBase: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & InputBaseType & React.RefAttributes<HTMLInputElement>>;
|
|
30
|
+
export declare const InputBase: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & InputBaseType & AriaFocusProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { RadioItemType } from './RadioGroup';
|
|
3
|
-
|
|
3
|
+
import { AriaFocusProps } from '../../types/common';
|
|
4
|
+
export interface RadioProps extends Exclude<InputHTMLAttributes<HTMLInputElement>, 'type'>, AriaFocusProps {
|
|
4
5
|
/**
|
|
5
6
|
* @default false
|
|
6
7
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AriaFocusProps } from '../../types/common';
|
|
2
3
|
export type AlignType = 'horizontal' | 'vertical';
|
|
3
4
|
export type RadioItemType = 'default' | 'box';
|
|
4
5
|
interface RadioItem<RadioValue> {
|
|
@@ -6,7 +7,7 @@ interface RadioItem<RadioValue> {
|
|
|
6
7
|
value: RadioValue;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export interface RadioGroupProps<RadioValue> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'
|
|
10
|
+
export interface RadioGroupProps<RadioValue> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'>, AriaFocusProps {
|
|
10
11
|
className?: string;
|
|
11
12
|
defaultValue?: RadioValue;
|
|
12
13
|
value?: RadioValue;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { AriaFocusProps } from '../../types/common';
|
|
2
3
|
import { SizeProps } from '../../styles';
|
|
3
|
-
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, SizeProps {
|
|
4
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, SizeProps, AriaFocusProps {
|
|
4
5
|
error?: boolean;
|
|
5
6
|
/**
|
|
6
7
|
* 입력된 value count 노출 여부
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AriaFocusProps } from '../../types/common';
|
|
2
3
|
import { TimePickerIconProps } from './TimePickerIcon';
|
|
3
4
|
import { InputBaseProps } from '../input/InputBase';
|
|
4
|
-
export interface TimeRangeInputProps extends Omit<InputBaseProps, 'leftAddon' | 'rightAddon' | 'alignment'
|
|
5
|
+
export interface TimeRangeInputProps extends Omit<InputBaseProps, 'leftAddon' | 'rightAddon' | 'alignment'>, AriaFocusProps {
|
|
5
6
|
fromTime?: string;
|
|
6
7
|
toTime?: string;
|
|
7
8
|
onClickRemoveButton?: () => void;
|