@konoma-development/react-components 0.0.1 → 0.0.3

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,4 +1,4 @@
1
1
  export declare const FilterContext: import('react').Context<{
2
2
  filters: Record<string, string>;
3
- setFilters: (errors: Record<string, string>) => Promise<void>;
3
+ setFilters: (filters: Record<string, string>) => Promise<void>;
4
4
  }>;
@@ -13,10 +13,11 @@ export interface TableColumn<DataType> {
13
13
  allowResize?: boolean;
14
14
  filterable?: boolean;
15
15
  grow?: boolean;
16
+ filterComponent?: (filters: Record<string, string>, setFilters: (filters: Record<string, string>) => Promise<void>) => JSX.Element;
16
17
  }
17
18
  export default function Table<DataType extends {
18
19
  dragRef?: React.RefObject<HTMLDivElement>;
19
- }>({ noDataClasses, paginationClasses, columnsCenter, columnsRight, columnsLeft, cellRenderer, filters, data, pagination, totalRows, noEntryLabel, allowReorder, onMoveRow, onRowClick, onRowDoubleClick, onScroll, onUpdateFilters, }: {
20
+ }>({ noDataClasses, paginationClasses, columnsCenter, columnsRight, columnsLeft, cellRenderer, filters, data, pagination, totalRows, noEntryLabel, allowReorder, showFilters, onMoveRow, onRowClick, onRowDoubleClick, onScroll, onUpdateFilters, onSort, }: {
20
21
  wrapperClasses?: string;
21
22
  columnsWrapperClasses?: string;
22
23
  columnsLeftClasses?: string;
package/dist/main.d.ts CHANGED
@@ -12,6 +12,7 @@ import { Classes, FormFieldProps, FormValue, Mask, Option } from './components/f
12
12
  import { default as Column } from './components/table/column';
13
13
  import { default as ColumnChooser } from './components/table/columnChooser';
14
14
  import { default as ColumnChooserEntry } from './components/table/columnChooserEntry';
15
+ import { FilterContext } from './components/table/FilterContext';
15
16
  import { default as Pagination } from './components/table/pagination';
16
17
  import { TableColumn, default as Table } from './components/table/table';
17
18
  import { default as TableActions, TableActionEntry } from './components/table/tableActions';
@@ -22,4 +23,4 @@ import { default as Modal } from './components/ui/modal';
22
23
  import { default as Tabs } from './components/ui/tabs';
23
24
  import { default as Tag } from './components/ui/tag';
24
25
  import * as validators from './components/form/validators';
25
- export { Button, Checkbox, CheckboxList, Classes, Column, ColumnChooser, ColumnChooserEntry, Form, FormField, FormFieldProps, FormValue, Icon, Input, LoadingIndicator, Mask, Modal, Option, Pagination, PhoneInput, RadioButtonGroup, Select, Table, TableActionEntry, TableActions, TableColumn, Tabs, Tag, TagList, TextArea, validators, };
26
+ export { Button, Checkbox, CheckboxList, Classes, Column, ColumnChooser, ColumnChooserEntry, FilterContext, Form, FormField, FormFieldProps, FormValue, Icon, Input, LoadingIndicator, Mask, Modal, Option, Pagination, PhoneInput, RadioButtonGroup, Select, Table, TableActionEntry, TableActions, TableColumn, Tabs, Tag, TagList, TextArea, validators, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@konoma-development/react-components",
3
3
  "packageManager": "yarn@4.6.0",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },