genesys-react-components 0.3.1 → 0.3.2-devengage-1573-implementing-tables.230
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/LICENSE +1 -1
- package/build/datatable/DataTable.d.ts +13 -0
- package/build/index.d.ts +13 -1
- package/build/index.js +6013 -32
- package/build/index.js.map +1 -1
- package/package.json +54 -53
- package/src/datatable/DataTable.scss +199 -0
- package/src/datatable/DataTable.tsx +431 -0
- package/src/index.ts +15 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Genesys Cloud Services, Inc.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataTableRow } from '..';
|
|
3
|
+
import './DataTable.scss';
|
|
4
|
+
interface IProps {
|
|
5
|
+
rows: DataTableRow[];
|
|
6
|
+
headerRow?: DataTableRow;
|
|
7
|
+
className?: string;
|
|
8
|
+
indentation?: number;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
filterable?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export default function DataTable(props: IProps): JSX.Element;
|
|
13
|
+
export {};
|
package/build/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ import AlertBlock from './alertblock/AlertBlock';
|
|
|
14
14
|
import LoadingPlaceholder from './loadingplaceholder/LoadingPlaceholder';
|
|
15
15
|
import Tooltip from './tooltip/Tooltip';
|
|
16
16
|
import CopyButton from './copybutton/CopyButton';
|
|
17
|
-
|
|
17
|
+
import DataTable from './datatable/DataTable';
|
|
18
|
+
export { DxAccordion, DxAccordionGroup, DxButton, DxItemGroup, DxCheckbox, DxLabel, DxTabbedContent, DxTabPanel, DxTextbox, DxToggle, Tooltip, CopyButton, LoadingPlaceholder, AlertBlock, DataTable, };
|
|
18
19
|
export interface StringChangedCallback {
|
|
19
20
|
(value: string): void;
|
|
20
21
|
}
|
|
@@ -107,3 +108,14 @@ export interface DxTabPanelProps {
|
|
|
107
108
|
children: React.ReactNode;
|
|
108
109
|
className?: string;
|
|
109
110
|
}
|
|
111
|
+
export interface DataTableRow {
|
|
112
|
+
cells: DataTableCell[];
|
|
113
|
+
}
|
|
114
|
+
export interface DataTableCell {
|
|
115
|
+
raw?: string;
|
|
116
|
+
renderedContent: React.ReactNode;
|
|
117
|
+
content: string;
|
|
118
|
+
parsedContent?: string | number | Date;
|
|
119
|
+
align?: 'left' | 'center' | 'right';
|
|
120
|
+
copyButton?: boolean;
|
|
121
|
+
}
|