@croquiscom/pds 4.4.2 → 4.6.0
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/PinFill.svg +3 -0
- package/dist/components/column-view-controller/ColumnViewController.d.ts +45 -0
- package/dist/components/column-view-controller/ColumnViewController.stories.d.ts +8 -0
- package/dist/components/column-view-controller/index.d.ts +1 -0
- package/dist/components/icons/generated/PinFill.d.ts +4 -0
- package/dist/components/icons/generated/index.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/list/List.d.ts +17 -0
- package/dist/components/list/List.stories.d.ts +7 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list-item/ListItem.d.ts +35 -0
- package/dist/components/list-item/ListItem.stories.d.ts +10 -0
- package/dist/components/list-item/index.d.ts +1 -0
- package/dist/components/list-item/styles.d.ts +5 -0
- package/dist/components/popover/Popover.d.ts +8 -0
- package/dist/components/popover/Popover.stories.d.ts +10 -0
- package/dist/components/popover/PopoverRoundedBase.d.ts +5 -0
- package/dist/index.es.js +24 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +24 -3
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts +8 -0
- package/dist/locales/ja.d.ts +8 -0
- package/dist/locales/ko.d.ts +8 -0
- package/locales/en.esm.js +8 -0
- package/locales/en.esm.js.map +1 -1
- package/locales/en.js +8 -0
- package/locales/en.js.map +1 -1
- package/locales/ja.esm.js +8 -0
- package/locales/ja.esm.js.map +1 -1
- package/locales/ja.js +8 -0
- package/locales/ja.js.map +1 -1
- package/locales/ko.esm.js +8 -0
- package/locales/ko.esm.js.map +1 -1
- package/locales/ko.js +8 -0
- package/locales/ko.js.map +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 4.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 439e2eb: add ColumnViewController
|
|
8
|
+
|
|
9
|
+
## 4.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 134fef2: add arrow=false into Popover
|
|
14
|
+
- 64082ab: add DraggableList
|
|
15
|
+
|
|
3
16
|
## 4.4.2
|
|
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="M13.7656 2.4696L21.5303 10.2343L20.4697 11.295L19.4808 10.3061L13.859 15.9279L13.6309 19.6342C13.6128 19.9287 13.4238 20.1851 13.1479 20.2896C12.8721 20.394 12.5606 20.3271 12.352 20.1185L8.64704 16.4135L3.53031 21.5303L2.46965 20.4696L7.58638 15.3529L3.88141 11.6479C3.67283 11.4393 3.60589 11.1279 3.71034 10.852C3.8148 10.5761 4.07126 10.3871 4.36568 10.369L8.072 10.1409L13.6938 4.51912L12.7049 3.53026L13.7656 2.4696Z" fill="#363644"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableColumnType } from '../table';
|
|
3
|
+
export interface TableColumnViewType<DataType> extends TableColumnType<DataType> {
|
|
4
|
+
isOn?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ColumnViewControllerProps<DataType> {
|
|
7
|
+
/**
|
|
8
|
+
* @default '열: 목록보기 설정'
|
|
9
|
+
*/
|
|
10
|
+
buttonText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* columns의 모든 width가 필수값이어야 함
|
|
13
|
+
*/
|
|
14
|
+
columns: Array<TableColumnViewType<DataType>>;
|
|
15
|
+
onChange: (columns: Array<TableColumnViewType<DataType>>) => void;
|
|
16
|
+
width?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 고정 column 변경 기능 사용 여부
|
|
19
|
+
* @default true
|
|
20
|
+
* @see maxFixedCount
|
|
21
|
+
* @see pullsFixed
|
|
22
|
+
*/
|
|
23
|
+
canFixed?: boolean;
|
|
24
|
+
maxFixedCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 고정 column을 별도로 끌어서 사용할 지 여부
|
|
27
|
+
* @default false
|
|
28
|
+
* @see noFixedItemsText
|
|
29
|
+
* @see fixedSectionTitle
|
|
30
|
+
*/
|
|
31
|
+
pullsFixed?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @default '고정 정보가 없습니다.'
|
|
34
|
+
*/
|
|
35
|
+
noFixedItemsText?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @default '고정 정보'
|
|
38
|
+
*/
|
|
39
|
+
fixedSectionTitle?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @default '목록 정보'
|
|
42
|
+
*/
|
|
43
|
+
listSectionTitle?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const ColumnViewController: <T>({ columns, onChange, width, canFixed, pullsFixed, maxFixedCount, buttonText, noFixedItemsText, fixedSectionTitle, listSectionTitle, }: ColumnViewControllerProps<T>) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<(<T>({ columns, onChange, width, canFixed, pullsFixed, maxFixedCount, buttonText, noFixedItemsText, fixedSectionTitle, listSectionTitle, }: import("./ColumnViewController").ColumnViewControllerProps<T>) => JSX.Element)>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Base: any;
|
|
6
|
+
export declare const PullsFixed: any;
|
|
7
|
+
export declare const MaxFixedCount: any;
|
|
8
|
+
export declare const NoFixed: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ColumnViewController';
|
|
@@ -172,6 +172,7 @@ export { default as IconPicture } from './Picture';
|
|
|
172
172
|
export { default as IconPictureX } from './PictureX';
|
|
173
173
|
export { default as IconPin } from './Pin';
|
|
174
174
|
export { default as IconPinColor } from './PinColor';
|
|
175
|
+
export { default as IconPinFill } from './PinFill';
|
|
175
176
|
export { default as IconPlayFill } from './PlayFill';
|
|
176
177
|
export { default as IconPlus } from './Plus';
|
|
177
178
|
export { default as IconRefresh } from './Refresh';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItemProps } from '../list-item';
|
|
3
|
+
export interface ListProps<T = string> {
|
|
4
|
+
items: Array<ListItemProps<T>>;
|
|
5
|
+
/**
|
|
6
|
+
* 항목을 드래그해서 순서를 바꿀 수 있는 기능 확장 여부
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
draggable?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 드래그될 경우 변경된 items값을 파라미터로 넘겨준다
|
|
12
|
+
* @see draggable
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (items: Array<ListItemProps<T>>) => void;
|
|
15
|
+
width?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const List: <T extends string>({ items, draggable, onChange, width }: ListProps<T>) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<(<T extends string>({ items, draggable, onChange, width }: import("./List").ListProps<T>) => JSX.Element)>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Base: any;
|
|
6
|
+
export declare const Draggable: any;
|
|
7
|
+
export declare const FullCase: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './List';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ListItemProps<T = string> {
|
|
3
|
+
id: T;
|
|
4
|
+
text: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* 항목을 드래그해서 순서를 바꿀 수 있는 기능 확장 여부
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
draggable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* draggable=true이면, index는 필수값이 된다
|
|
13
|
+
* @see draggable
|
|
14
|
+
*/
|
|
15
|
+
index?: number;
|
|
16
|
+
/**
|
|
17
|
+
* isOn 정의시 토글버튼을 사용한다 (Togglable)
|
|
18
|
+
*/
|
|
19
|
+
isOn?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* isOn 정의시 onToggle은 필수값이 된다
|
|
22
|
+
* @see isOn
|
|
23
|
+
*/
|
|
24
|
+
onToggle?: (isOn: boolean, index?: number) => void;
|
|
25
|
+
/**
|
|
26
|
+
* fixed 정의시 핀버튼을 사용한다 (Pinnable)
|
|
27
|
+
*/
|
|
28
|
+
fixed?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* fixed 정의시 onPin은 필수값이 된다
|
|
31
|
+
* @see fixed
|
|
32
|
+
*/
|
|
33
|
+
onPin?: (fixed: boolean, index?: number) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare const ListItem: <T extends string>({ id, isOn, fixed, disabled, text, draggable, index, onToggle, onPin, }: ListItemProps<T>) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<(<T extends string>({ id, isOn, fixed, disabled, text, draggable, index, onToggle, onPin, }: import("./ListItem").ListItemProps<T>) => JSX.Element)>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Base: any;
|
|
6
|
+
export declare const Draggable: any;
|
|
7
|
+
export declare const Disabled: any;
|
|
8
|
+
export declare const Togglable: any;
|
|
9
|
+
export declare const Pinnable: any;
|
|
10
|
+
export declare const FullCase: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListItem';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getItemStyle: (isDragging: boolean, draggableStyle: any) => any;
|
|
2
|
+
export declare const item_base_css: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const pin_base_css: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const getStylesByPinned: (isFixed: boolean) => import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const three_bars_base_css: import("@emotion/utils").SerializedStyles;
|
|
@@ -44,6 +44,14 @@ export interface PopoverProps {
|
|
|
44
44
|
* @default true
|
|
45
45
|
*/
|
|
46
46
|
canClickOutside?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 화살표 사용 여부
|
|
49
|
+
* - false로 지정할 경우, 화살표가 빠지고 border-radius와 box-shadow가 적용됩니다.
|
|
50
|
+
* - placement의 기본값은 'bottom-start' 로 변경 됩니다. (자동 배치 되지 않음)
|
|
51
|
+
* - openerTriggerEvent의 기본값은 'click' 로 변경 됩니다.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
arrow?: boolean;
|
|
47
55
|
}
|
|
48
56
|
export declare const Popover: React.FC<PopoverProps>;
|
|
49
57
|
export {};
|
|
@@ -18,3 +18,13 @@ export declare const TemplateWithCloseButton: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export declare const HidingFullyClippedReferenceElements: () => JSX.Element;
|
|
21
|
+
export declare const NoArrow: {
|
|
22
|
+
(): JSX.Element;
|
|
23
|
+
parameters: {
|
|
24
|
+
docs: {
|
|
25
|
+
description: {
|
|
26
|
+
story: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PopoverRoundedBase: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|