@croquiscom/pds 0.47.5 → 1.0.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 +12 -0
- package/dist/components/file-upload/FileUpload.d.ts +1 -0
- package/dist/components/provider/Provider.d.ts +10 -4
- package/dist/components/table/Table.d.ts +3 -2
- package/dist/components/table/Table.stories.d.ts +1 -0
- package/dist/components/table/storybook-helper/sampleData.d.ts +1 -0
- package/dist/components/table/types.d.ts +5 -2
- 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/dist/locales/en.d.ts +14 -0
- package/dist/locales/ja.d.ts +14 -0
- package/dist/locales/ko.d.ts +14 -0
- package/locales/en.esm.js +14 -0
- package/locales/en.esm.js.map +1 -1
- package/locales/en.js +14 -0
- package/locales/en.js.map +1 -1
- package/locales/ja.esm.js +14 -0
- package/locales/ja.esm.js.map +1 -1
- package/locales/ja.js +14 -0
- package/locales/ja.js.map +1 -1
- package/locales/ko.esm.js +14 -0
- package/locales/ko.esm.js.map +1 -1
- package/locales/ko.js +14 -0
- package/locales/ko.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { ko } from '../../locales/ko';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { ModalProps } from '../modal';
|
|
4
|
+
import { PaginationProps } from '../pagination';
|
|
5
|
+
export interface CommonComponentProps {
|
|
6
|
+
modal?: Pick<ModalProps, 'fill' | 'dense'>;
|
|
7
|
+
pagination?: Pick<PaginationProps, 'siblingCount' | 'showArrowButton'>;
|
|
8
|
+
}
|
|
9
|
+
export interface ProviderConfig {
|
|
10
|
+
locale?: typeof ko;
|
|
11
|
+
components?: CommonComponentProps;
|
|
12
|
+
}
|
|
6
13
|
export declare const defaultProviderConfig: {
|
|
7
14
|
current: ProviderConfig;
|
|
8
15
|
};
|
|
@@ -12,4 +19,3 @@ export declare const providerContext: React.Context<ProviderConfig>;
|
|
|
12
19
|
export type ProviderProps = ProviderConfig;
|
|
13
20
|
export declare const useProviderConfig: () => ProviderConfig;
|
|
14
21
|
export declare const Provider: ({ children, ...props }: PropsWithChildren<ProviderProps>) => JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -55,8 +55,9 @@ export interface TableProps<DataType> {
|
|
|
55
55
|
*/
|
|
56
56
|
noDataText?: ReactNode;
|
|
57
57
|
/**
|
|
58
|
-
* 테이블 로우 호버 스타일 사용
|
|
59
|
-
* -
|
|
58
|
+
* 테이블 로우 호버 스타일 사용 유무
|
|
59
|
+
* - column cellAttributes 스타일 커스텀시 로우 전체 호버 스타일을 제한할 수 있습니다.
|
|
60
|
+
* - rowspan to highlight all relevant rows 이슈 처리전 임시 props으로 사용할 수 있습니다.
|
|
60
61
|
* @default true
|
|
61
62
|
*/
|
|
62
63
|
cellHoverStyle?: boolean;
|
|
@@ -10,6 +10,7 @@ export declare const Base: any;
|
|
|
10
10
|
export declare const ColumnAlignAndWidth: any;
|
|
11
11
|
export declare const CustomColumnCell: any;
|
|
12
12
|
export declare const CustomRowCell: any;
|
|
13
|
+
export declare const CustomRowCellStyle: any;
|
|
13
14
|
export declare const Loading: any;
|
|
14
15
|
export declare const NoData: any;
|
|
15
16
|
export declare const CustomNoDataText: any;
|
|
@@ -22,3 +22,4 @@ export declare const RowSpanRows: TableRowsType<DataType>;
|
|
|
22
22
|
export declare const fixedColumns: TableColumnsType<DataType>;
|
|
23
23
|
export declare const selectionRows: TableRowsType<DataType>;
|
|
24
24
|
export declare const sortColumns: TableColumnsType<DataType>;
|
|
25
|
+
export declare const customRowStyleColumns: TableColumnsType<DataType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Key, ReactNode, TdHTMLAttributes } from 'react';
|
|
2
|
+
import { CSSObject } from '@emotion/styled';
|
|
2
3
|
import { CSSValueWithLength } from '../../styles';
|
|
3
4
|
export type SortDirection = 'asc' | 'desc' | 'default';
|
|
4
5
|
export type ColumnAlign = 'left' | 'right' | 'center';
|
|
@@ -7,10 +8,12 @@ export type Scroll = {
|
|
|
7
8
|
y?: CSSValueWithLength;
|
|
8
9
|
};
|
|
9
10
|
export type CellValue<Value = any> = Value;
|
|
10
|
-
export type
|
|
11
|
-
export type CellAttributesProps<DataType> = (row: DataType, index?: number) => Pick<TdHTMLAttributes<any>, 'rowSpan'> & {
|
|
11
|
+
export type CellAttributes = {
|
|
12
12
|
hidden?: boolean;
|
|
13
|
+
style?: CSSObject;
|
|
13
14
|
};
|
|
15
|
+
export type RowSelectState<DataType> = ((row: DataType) => boolean) | Array<Key> | null;
|
|
16
|
+
export type CellAttributesProps<DataType> = (row: DataType, index?: number) => Pick<TdHTMLAttributes<any>, 'rowSpan'> & CellAttributes;
|
|
14
17
|
export type CellProps<DataType> = ({ row, value, index, }: {
|
|
15
18
|
row: DataType;
|
|
16
19
|
value: CellValue<any>;
|