@weng-lab/ui-components 1.0.6 → 1.0.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"GenomeSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/GenomeSearch/GenomeSearch.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAU,MAAM,SAAS,CAAC;AA+UpD,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAM7C;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"GenomeSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/GenomeSearch/GenomeSearch.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAU,MAAM,SAAS,CAAC;AAqVpD,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAM7C;AAED,eAAe,YAAY,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { DataGridProProps } from '@mui/x-data-grid-pro';
2
+ import { TableProps } from './types';
2
3
  import * as React from "react";
3
4
  type CustomToolbarProps = {
4
5
  label: DataGridProProps["label"];
5
- extraComponentSlot?: React.ReactNode;
6
+ labelTooltip: TableProps["labelTooltip"];
7
+ toolbarSlot?: React.ReactNode;
6
8
  };
7
- export declare function CustomToolbar({ label, extraComponentSlot }: CustomToolbarProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function CustomToolbar({ label, labelTooltip, toolbarSlot }: CustomToolbarProps): import("react/jsx-runtime").JSX.Element;
8
10
  export {};
9
11
  //# sourceMappingURL=CustomToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/CustomToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAWL,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AA4C9B,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACjC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,kBAAkB,2CA4H9E"}
1
+ {"version":3,"file":"CustomToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/CustomToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAWL,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAc9B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgCrC,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACjC,YAAY,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,kBAAkB,2CAoIrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,QAAA,MAAM,KAAK,GAAI,OAAO,UAAU,4CA6G/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,QAAA,MAAM,KAAK,GAAI,OAAO,UAAU,4CAiH/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import { default as Table } from './Table';
2
2
  export { Table };
3
3
  export type * from './types';
4
+ export * from '@mui/x-data-grid-pro';
5
+ export type * from '@mui/x-data-grid-pro';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,CAAA;AAChB,mBAAmB,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,CAAA;AAChB,mBAAmB,SAAS,CAAA;AAC5B,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,sBAAsB,CAAA"}
@@ -1,5 +1,6 @@
1
- import { DataGridProProps } from '@mui/x-data-grid-pro';
1
+ import { DataGridProProps, GridColDef } from '@mui/x-data-grid-pro';
2
2
  import { ReactElement, ReactNode } from 'react';
3
+ export type { GridColDef as TableColDef };
3
4
  export interface TableProps extends DataGridProProps {
4
5
  /**
5
6
  * Rows to be consumed in the table.
@@ -62,11 +63,10 @@ export interface TableProps extends DataGridProProps {
62
63
  * Slot for extra component to be rendered within the toolbar, to the left of the filters
63
64
  */
64
65
  toolbarSlot?: ReactNode;
65
- }
66
- export type TableToolbarProps = {
67
66
  /**
68
- * Optional ReactNode to be used in the table toolbar. Strings and numbers will be rendered as Typography variant h6.
67
+ * If anything besides an element, renders tooltip icon to the right of the table label with specified string as tooltip contents.
68
+ * If an element, renders the element to the right of the table label.
69
69
  */
70
- title?: ReactNode;
71
- };
70
+ labelTooltip?: ReactNode;
71
+ }
72
72
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC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OAMG;IACH,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B;;;OAGG;IACH,0BAA0B,CAAC,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;IAC5E;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC3C;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAA;IAC7C;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IACD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAA;CACzB"}
@@ -3,7 +3,7 @@ export type { SliderProps } from './components/RangeSlider';
3
3
  export { DataTable } from './components/DataTable';
4
4
  export type { DataTableProps, DataTableColumn } from './components/DataTable';
5
5
  export { Table } from './components/Table';
6
- export type * from './components/Table';
6
+ export type { TableProps, TableColDef } from './components/Table';
7
7
  export { GenomeSearch } from './components/GenomeSearch';
8
8
  export type { GenomeSearchProps, Result, Domain, ResultType } from './components/GenomeSearch';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,mBAAmB,oBAAoB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { D as r, G as s, R as l, T as o } from "./index-C6D6wSai.js";
1
+ import { D as r, G as s, R as l, T as o } from "./index-BIxHQhkE.js";
2
2
  export {
3
3
  r as DataTable,
4
4
  s as GenomeSearch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weng-lab/ui-components",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "React MUI components for the Weng/Moore Labs suite of genomics web resources",
5
5
  "type": "module",
6
6
  "module": "dist/ui-components.es.js",