@croquiscom/pds 0.17.0 → 0.18.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/dist/checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/hooks/useRover.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/message/MessageManager.d.ts +61 -0
- package/dist/message/index.d.ts +1 -0
- package/dist/message/styles.d.ts +2 -0
- package/dist/notification/Notification.d.ts +31 -0
- package/dist/notification/Notification.stories.d.ts +8 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/styles.d.ts +3 -0
- package/dist/radio/RadioGroup.d.ts +1 -1
- package/dist/toast/Toast.d.ts +10 -0
- package/dist/toast/Toast.stories.d.ts +4 -2
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/styles.d.ts +0 -2
- package/dist/types/index.d.ts +3 -0
- package/dist/utils/props.d.ts +3 -0
- package/package.json +2 -1
- package/dist/toast/ToastManager.d.ts +0 -50
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 0.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d07179d: Toast, Notification Position 타입 export 추가
|
|
8
|
+
|
|
9
|
+
## 0.18.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 3b37820: Notification 컴포넌트 추가
|
|
14
|
+
- 90b3823: Checkbox, Radio, Switch 접근성 처리 추가
|
|
15
|
+
|
|
3
16
|
## 0.17.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -5,7 +5,7 @@ interface CheckboxItem<CheckboxValue> {
|
|
|
5
5
|
value: CheckboxValue;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface CheckboxGroupProps<CheckboxValue> {
|
|
8
|
+
export interface CheckboxGroupProps<CheckboxValue> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'> {
|
|
9
9
|
className?: string;
|
|
10
10
|
defaultValue?: CheckboxValue[];
|
|
11
11
|
value?: CheckboxValue[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Optional } from '../types';
|
|
3
|
+
export interface UseRoverOptions {
|
|
4
|
+
index: number;
|
|
5
|
+
onIndexChange: (index: number, is_selecting: boolean) => void;
|
|
6
|
+
length: number;
|
|
7
|
+
}
|
|
8
|
+
export interface UseRoverItemProps {
|
|
9
|
+
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
10
|
+
onFocus: (e: React.FocusEvent) => void;
|
|
11
|
+
tabIndex: number;
|
|
12
|
+
ref: React.RefCallback<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
export interface UseRoverItemCustomProps extends Optional<Omit<UseRoverItemProps, 'ref'>> {
|
|
15
|
+
ref?: React.Ref<HTMLElement>;
|
|
16
|
+
}
|
|
17
|
+
export interface UseRover {
|
|
18
|
+
getRoverItemProps(index: number, props: UseRoverItemCustomProps): UseRoverItemProps;
|
|
19
|
+
}
|
|
20
|
+
export declare function useRover(options: UseRoverOptions): UseRover;
|