@croquiscom/pds 12.6.1 → 12.8.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 +12 -0
- package/dist/components/table/DataTable.d.ts +1 -0
- package/dist/components/table/DataTable.test.stories.d.ts +7 -0
- package/dist/components/table/TableCell.d.ts +7 -1
- package/dist/components/table/TableCell.stories.d.ts +3 -0
- package/dist/components/table/TableCell.test.stories.d.ts +3 -0
- package/dist/components/table/styles.d.ts +2 -1
- package/dist/components/table/types.d.ts +1 -0
- package/dist/container/page-header/PageHeader.d.ts +3 -1
- package/dist/container/page-header/PageHeader.stories.d.ts +1 -0
- package/dist/container/page-header/PageHeader.test.stories.d.ts +6 -0
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 12.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e21f07d: Table Body Cell, Max Height, Truncate Text, Huge Contents 추가
|
|
8
|
+
|
|
9
|
+
## 12.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 5411195: PageHeader breadcrumbProps 추가
|
|
14
|
+
|
|
3
15
|
## 12.6.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DataType } from './storybook-helper';
|
|
3
|
+
import { DataTable } from './DataTable';
|
|
4
|
+
declare const meta: Meta<typeof DataTable<DataType>>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof DataTable<DataType>>;
|
|
7
|
+
export declare const Scroll: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { TdHTMLAttributes } from 'react';
|
|
2
|
-
import { ColumnAlign } from '../table/types';
|
|
2
|
+
import { CellSize, ColumnAlign } from '../table/types';
|
|
3
3
|
interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
id?: string;
|
|
5
5
|
fixed?: boolean;
|
|
@@ -14,6 +14,12 @@ interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
|
14
14
|
clickable?: boolean;
|
|
15
15
|
selectable?: boolean;
|
|
16
16
|
isColumnLast?: boolean;
|
|
17
|
+
/** @default medium */
|
|
18
|
+
size?: CellSize;
|
|
19
|
+
/** @default true */
|
|
20
|
+
isTruncate?: boolean;
|
|
21
|
+
/** @default true */
|
|
22
|
+
isHugeContents?: boolean;
|
|
17
23
|
}
|
|
18
24
|
export declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
19
25
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ColumnAlign } from './types';
|
|
2
|
+
import { CellSize, ColumnAlign } from './types';
|
|
3
3
|
export declare const StyledTableCol: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
@@ -12,3 +12,4 @@ export declare const StyledTableCol: import("@emotion/styled").StyledComponent<{
|
|
|
12
12
|
resize?: boolean;
|
|
13
13
|
align?: ColumnAlign;
|
|
14
14
|
}, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
|
|
15
|
+
export declare const cell_size_css: Record<CellSize, string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { SectionTitleProps } from '../section-title';
|
|
3
|
+
import { BreadcrumbProps } from '../../components';
|
|
3
4
|
export interface PageHeaderProps {
|
|
4
5
|
/** @default false */
|
|
5
6
|
dense?: boolean;
|
|
@@ -13,5 +14,6 @@ export interface PageHeaderProps {
|
|
|
13
14
|
* - SectionTitle의 안전 여백은 PageHeader에서 사용시 자동 0으로 세팅되며, 필요시 SectionTitleProps에서 재정의할 수 있습니다.
|
|
14
15
|
*/
|
|
15
16
|
sectionTitleProps?: SectionTitleProps;
|
|
17
|
+
breadcrumbProps?: BreadcrumbProps;
|
|
16
18
|
}
|
|
17
|
-
export declare const PageHeader: ({ dense, border, sectionTitleProps, children, }: PropsWithChildren<PageHeaderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const PageHeader: ({ dense, border, sectionTitleProps, breadcrumbProps, children, }: PropsWithChildren<PageHeaderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PageHeader } from './PageHeader';
|
|
3
|
+
declare const meta: Meta<typeof PageHeader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PageHeader>;
|
|
6
|
+
export declare const WithSectionTitleAndBreadcrumbPropsCustom: Story;
|