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/brd-ui-kit.css +1 -1
- package/dist/components/basic-table/basic-table.d.ts +4 -3
- package/dist/components/basic-table/basic-table.stories.d.ts +1 -1
- package/dist/components/basic-table/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18986
|
+
globalFilter: o,
|
|
18987
|
+
setGlobalFilter: a,
|
|
18988
|
+
onSortingChange: s,
|
|
18989
|
+
onColumnFiltersChange: c,
|
|
18990
|
+
onPaginationChange: u
|
|
18989
18991
|
}) {
|
|
18990
|
-
const
|
|
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:
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
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:
|
|
19006
|
-
/* @__PURE__ */ P(LM, { children:
|
|
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":
|
|
19010
|
-
children:
|
|
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
|
-
|
|
19020
|
+
h.id
|
|
19013
19021
|
)) : /* @__PURE__ */ P(rp, { children: /* @__PURE__ */ P(
|
|
19014
19022
|
Lb,
|
|
19015
19023
|
{
|