brd-ui-kit 0.1.39 → 0.1.40

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/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ export type { AppSidebarGroup, AppSidebarItem, AppSidebarState, } from './compon
36
36
  export { BasicCheckbox } from './components/basic-checkbox';
37
37
  export type { CheckboxProps } from './components/basic-checkbox';
38
38
  export { BasicModal } from './components/basic-modal';
39
- export { BasicTable } from './components/basic-table';
39
+ export { BasicTable, type DataTableProps } from './components/basic-table';
40
40
  export { BasicTooltip } from './components/basic-tooltip';
41
41
  export { InputField } from './components/input-field';
42
42
  export type { DateAddon, InputFieldProps, InputProps } from './components/input-field';
package/dist/index.js CHANGED
@@ -18983,33 +18983,41 @@ function Sxe({
18983
18983
  sorting: n,
18984
18984
  columnFilters: r,
18985
18985
  pagination: i,
18986
- onSortingChange: o,
18987
- onColumnFiltersChange: a,
18988
- onPaginationChange: s
18986
+ globalFilter: o,
18987
+ setGlobalFilter: a,
18988
+ onSortingChange: s,
18989
+ onColumnFiltersChange: c,
18990
+ onPaginationChange: u
18989
18991
  }) {
18990
- const c = {};
18991
- n && (c.sorting = n), r && (c.columnFilters = r), i && (c.pagination = i);
18992
- const u = XJ({
18992
+ const p = XJ({
18993
18993
  data: t,
18994
18994
  columns: e,
18995
- state: c,
18996
- onSortingChange: o,
18997
- onColumnFiltersChange: a,
18998
- onPaginationChange: s,
18995
+ state: {
18996
+ sorting: n,
18997
+ columnFilters: r,
18998
+ pagination: i,
18999
+ globalFilter: o
19000
+ // добавляем в state
19001
+ },
19002
+ onSortingChange: s,
19003
+ onColumnFiltersChange: c,
19004
+ onPaginationChange: u,
18999
19005
  getCoreRowModel: FJ(),
19000
19006
  getPaginationRowModel: UJ(),
19001
19007
  getSortedRowModel: qJ(),
19002
- getFilteredRowModel: HJ()
19008
+ getFilteredRowModel: HJ(),
19009
+ onGlobalFilterChange: a,
19010
+ globalFilterFn: "includesString"
19003
19011
  });
19004
19012
  return /* @__PURE__ */ P("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ Ie(MM, { children: [
19005
- /* @__PURE__ */ P(DM, { children: u.getHeaderGroups().map((f) => /* @__PURE__ */ P(rp, { children: f.headers.map((p) => /* @__PURE__ */ P($M, { children: p.isPlaceholder ? null : x_(p.column.columnDef.header, p.getContext()) }, p.id)) }, f.id)) }),
19006
- /* @__PURE__ */ P(LM, { children: u.getRowModel().rows.length ? u.getRowModel().rows.map((f) => /* @__PURE__ */ P(
19013
+ /* @__PURE__ */ P(DM, { children: p.getHeaderGroups().map((h) => /* @__PURE__ */ P(rp, { children: h.headers.map((m) => /* @__PURE__ */ P($M, { children: m.isPlaceholder ? null : x_(m.column.columnDef.header, m.getContext()) }, m.id)) }, h.id)) }),
19014
+ /* @__PURE__ */ P(LM, { children: p.getRowModel().rows.length ? p.getRowModel().rows.map((h) => /* @__PURE__ */ P(
19007
19015
  rp,
19008
19016
  {
19009
- "data-state": f.getIsSelected() && "selected",
19010
- children: f.getVisibleCells().map((p) => /* @__PURE__ */ P(Lb, { children: x_(p.column.columnDef.cell, p.getContext()) }, p.id))
19017
+ "data-state": h.getIsSelected() && "selected",
19018
+ children: h.getVisibleCells().map((m) => /* @__PURE__ */ P(Lb, { children: x_(m.column.columnDef.cell, m.getContext()) }, m.id))
19011
19019
  },
19012
- f.id
19020
+ h.id
19013
19021
  )) : /* @__PURE__ */ P(rp, { children: /* @__PURE__ */ P(
19014
19022
  Lb,
19015
19023
  {