@croquiscom/pds 12.7.0 → 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 +6 -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/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
|
@@ -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>;
|