@codecademy/gamut
72.0.272.0.3-alpha.982f9f.0
~
Modified (4 files)
Index: package/dist/DataList/DataList.js
===================================================================
--- package/dist/DataList/DataList.js
+++ package/dist/DataList/DataList.js
@@ -9,5 +9,26 @@
...rest,
scrollable: false,
shadow: false
});
-};
\ No newline at end of file
+};
+
+// USE FOR TESTING ONLY
+// UNCOMMENT AND RUN THE FOLLOWING CODE TO TEST THAT size: 'content' errors
+
+// const TestingDataList = () => {
+// return (
+// <DataList variant="default" columns={[
+// { header: 'Name', key: 'name', size: 'lg' },
+// { header: 'Age', key: 'age', size: 'sm' },
+// { header: 'Species', key: 'species', size: 'md' },
+// { header: 'Ship', key: 'ship', size: 'content' },
+// ]}
+// id="test"
+// idKey="id"
+// rows={[
+// { id: 1, name: 'John Doe', age: 30, species: 'Human', ship: 'USS Enterprise' },
+// { id: 2, name: 'Jane Doe', age: 25, species: 'Human', ship: 'USS Enterprise' },
+// { id: 3, name: 'John Smith', age: 35, species: 'Human', ship: 'USS Enterprise' },
+// ]} />
+// )
+// }
\ No newline at end of file Index: package/dist/DataList/DataTable.js
===================================================================
--- package/dist/DataList/DataTable.js
+++ package/dist/DataList/DataTable.js
@@ -6,5 +6,28 @@
variant: "table",
onRowExpand: undefined,
onRowSelect: undefined
});
-};
\ No newline at end of file
+};
+
+// USE FOR TESTING ONLY
+// UNCOMMENT AND RUN THE FOLLOWING CODE TO TEST THAT size: 'content' errors
+
+// const TestingDataTable = () => {
+// return (
+// <DataTable
+// columns={[
+// { header: 'Name', key: 'name', size: 'lg' },
+// { header: 'Age', key: 'age', size: 'sm' },
+// { header: 'Species', key: 'species', size: 'md' },
+// { header: 'Ship', key: 'ship', size: 'content' },
+// ]}
+// id="test"
+// idKey="id"
+// rows={[
+// { id: 1, name: 'John Doe', age: 30, species: 'Human', ship: 'USS Enterprise' },
+// { id: 2, name: 'Jane Doe', age: 25, species: 'Human', ship: 'USS Enterprise' },
+// { id: 3, name: 'John Smith', age: 35, species: 'Human', ship: 'USS Enterprise' },
+// ]}
+// />
+// )
+// }
\ No newline at end of file Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,16 +1,16 @@
{
"name": "@codecademy/gamut",
"description": "Styleguide & Component library for Codecademy",
- "version": "72.0.2",
+ "version": "72.0.3-alpha.982f9f.0",
"author": "Codecademy Engineering <[email protected]>",
"bin": "./bin/gamut.mjs",
"dependencies": {
- "@codecademy/gamut-icons": "9.57.9",
- "@codecademy/gamut-illustrations": "0.58.15",
- "@codecademy/gamut-patterns": "0.10.34",
- "@codecademy/gamut-styles": "20.0.2",
- "@codecademy/variance": "0.26.1",
+ "@codecademy/gamut-icons": "9.57.10-alpha.982f9f.0",
+ "@codecademy/gamut-illustrations": "0.58.16-alpha.982f9f.0",
+ "@codecademy/gamut-patterns": "0.10.35-alpha.982f9f.0",
+ "@codecademy/gamut-styles": "20.0.3-alpha.982f9f.0",
+ "@codecademy/variance": "0.26.2-alpha.982f9f.0",
"@formatjs/intl-locale": "5.3.1",
"@react-aria/interactions": "3.25.0",
"@types/marked": "^4.0.8",
"@vidstack/react": "^1.12.12", Index: package/dist/DataList/types.d.ts
===================================================================
--- package/dist/DataList/types.d.ts
+++ package/dist/DataList/types.d.ts
@@ -60,9 +60,9 @@
* This will cause the column to be sticky and slightly offset from the rest of the data.
*/
header?: string;
type?: ListColProps['type'];
- size?: ListColProps['size'];
+ size?: Exclude<ListColProps['size'], 'content'>;
render?: (row: T) => ReactElement<any, any> | null;
sortable?: boolean;
filters?: string[];
options?: FilterOption[];