@croquiscom/pds 8.33.0 → 8.34.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/modal/Modal.d.ts +2 -2
- package/dist/components/modal/Modal.stories.d.ts +1 -0
- package/dist/components/switch/Switch.d.ts +4 -0
- package/dist/components/switch/Switch.stories.d.ts +3 -0
- package/dist/components/switch/styles.d.ts +6 -2
- package/dist/components/table/DataTable.d.ts +1 -1
- package/dist/components/table/DataTableRows.d.ts +1 -1
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, HTMLAttributes } from 'react';
|
|
2
2
|
import { ButtonProps } from '../button';
|
|
3
3
|
import { CSSValueWithLength, SpaceProps } from '../../styles';
|
|
4
4
|
import { ModalOverlayBaseProps, ModalBaseCancelReason } from './ModalOverlay';
|
|
5
5
|
import { ModalActionButtonType } from './ModalActionButton';
|
|
6
6
|
export type ModalButtonProps = Omit<ButtonProps, 'onClick'>;
|
|
7
7
|
export type ModalCancelReason = ModalBaseCancelReason;
|
|
8
|
-
export interface ModalContentProps extends SpaceProps {
|
|
8
|
+
export interface ModalContentProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
maxHeight?: CSSValueWithLength;
|
|
10
10
|
scrollable?: boolean;
|
|
11
11
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SwitchSize } from './Switch';
|
|
2
2
|
export declare const switch_base_css: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
3
|
+
export declare const getStyleByProps: ({ size, isOn, width, hasLabel, }: {
|
|
4
|
+
size: SwitchSize;
|
|
5
|
+
isOn: boolean;
|
|
6
|
+
width?: number;
|
|
7
|
+
hasLabel: boolean;
|
|
8
|
+
}) => import("@emotion/utils").SerializedStyles;
|
|
@@ -96,7 +96,7 @@ export interface DataTableProps<DataType> {
|
|
|
96
96
|
* Row 배경색을 지정하는 함수 혹은 컬러값을 전달합니다.
|
|
97
97
|
* hover는 auto code 정책을 따릅니다.
|
|
98
98
|
*/
|
|
99
|
-
rowColor?: (row: DataType, index: number) => string | string;
|
|
99
|
+
rowColor?: (row: DataType, index: number) => (string | undefined) | string;
|
|
100
100
|
/**
|
|
101
101
|
* Sort 이벤트, 대상 Column 아이디를 전달합니다.
|
|
102
102
|
*/
|
|
@@ -5,7 +5,7 @@ interface DataTableRowsProps<DataType> extends Pick<DataTableProps<DataType>, 'c
|
|
|
5
5
|
tableContainerAttribute: number;
|
|
6
6
|
allSelected?: boolean;
|
|
7
7
|
selectedRows?: DataTableRowsType<DataType>;
|
|
8
|
-
rowColor?: (row: DataTableRowType<DataType>, index: number) => string | string;
|
|
8
|
+
rowColor?: (row: DataTableRowType<DataType>, index: number) => (string | undefined) | string;
|
|
9
9
|
onSelectedRow?: (action: SelectRowAction<DataType>) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const DataTableRows: <DataType extends object = any>({ columns, rows, loading, selectableRows, clickableRows, selectedRows, noDataText, cellHoverStyle, cellDisabledStyle, tableContainerAttribute, resize, onSelectedRow, rowColor, }: DataTableRowsProps<DataType>) => React.JSX.Element;
|