@krosoft/react 0.0.168 → 0.0.170
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/components/core/dialogs/ConfirmationDialog.d.ts +1 -1
- package/dist/components/core/dialogs/FormDialog.d.ts +1 -1
- package/dist/components/core/dialogs/index.d.ts +1 -1
- package/dist/components/core/filters/AdvancedFilters.d.ts +1 -1
- package/dist/components/core/filters/FilterField.d.ts +1 -1
- package/dist/components/core/filters/TableFilter.d.ts +1 -1
- package/dist/components/core/forms/GenericForm.d.ts +1 -1
- package/dist/components/core/layouts/AppActions.d.ts +1 -1
- package/dist/components/core/layouts/AppPageHeader.d.ts +1 -1
- package/dist/components/core/layouts/AppSubTitle.d.ts +1 -1
- package/dist/components/core/table/TableActions.d.ts +1 -1
- package/dist/components/core/table/TableBody.d.ts +1 -1
- package/dist/components/core/table/TableBulkActions.d.ts +1 -1
- package/dist/components/core/table/TableHeader.d.ts +1 -1
- package/dist/components/core/table/TableSettings.d.ts +1 -1
- package/dist/components/core/tabs/AppTabContainer.d.ts +1 -1
- package/dist/components/core/tabs/AppTabHeader.d.ts +1 -1
- package/dist/components/core/tabs/AppTabs.d.ts +1 -1
- package/dist/components/core/tabs/AppVerticalTabs.d.ts +1 -1
- package/dist/components/core/theme/ThemeSelector.d.ts +1 -1
- package/dist/components/core/theme/index.d.ts +1 -1
- package/dist/contexts/page.context.d.ts +1 -1
- package/dist/hooks/behavior/useConfirmDeleteDialog.d.ts +1 -1
- package/dist/hooks/behavior/useConfirmationDialog.d.ts +1 -1
- package/dist/hooks/behavior/usePage.d.ts +1 -1
- package/dist/hooks/behavior/useSidebar.d.ts +1 -1
- package/dist/hooks/ui/useDataTable.d.ts +2 -2
- package/package.json +4 -3
|
@@ -4,6 +4,6 @@ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, Dialog
|
|
|
4
4
|
export { Progress } from "../../ui/progress";
|
|
5
5
|
export { default as FormDialog } from "./FormDialog";
|
|
6
6
|
export type { FormDialogProps } from "./FormDialog";
|
|
7
|
-
export type { ConfirmDialogConfig } from "
|
|
7
|
+
export type { ConfirmDialogConfig } from "../../../types/ConfirmDialogConfig";
|
|
8
8
|
export { ConfirmationDialog } from "./ConfirmationDialog";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FilterSection } from "
|
|
2
|
+
import { FilterSection } from "../../../types/FilterSection";
|
|
3
3
|
export interface AdvancedFiltersProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
4
|
sections: FilterSection<T>[];
|
|
5
5
|
filters: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FilterFieldConfig } from "
|
|
2
|
+
import { FilterFieldConfig } from "../../../types/FilterFieldConfig";
|
|
3
3
|
interface FilterFieldProps<T extends Record<string, unknown>> {
|
|
4
4
|
field: FilterFieldConfig<T>;
|
|
5
5
|
value: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilterSection } from "
|
|
1
|
+
import type { FilterSection } from "../../../types/FilterSection";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export interface TableFilterProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
4
|
searchQuery?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { BulkAction } from "
|
|
2
|
+
import { BulkAction } from "../../../types/BulkAction";
|
|
3
3
|
export interface TableBulkActionsProps {
|
|
4
4
|
selectedRows: string[];
|
|
5
5
|
setSelectedRows: React.Dispatch<React.SetStateAction<string[]>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseDataTableProps } from "
|
|
2
|
-
import { UseDataTableResult } from "
|
|
1
|
+
import { UseDataTableProps } from "../../types/UseDataTableProps";
|
|
2
|
+
import { UseDataTableResult } from "../../types/UseDataTableResult";
|
|
3
3
|
export declare function useDataTable<T>({ data, columns, getRowId, defaultPageSize, actions, bulkActions, columnVisibility, totalRows, currentPage: controlledCurrentPage, pageSize: controlledPageSize, onPageChange, onPageSizeChange, sortColumn: controlledSortColumn, sortDirection: controlledSortDirection, onSortChange, }: UseDataTableProps<T>): UseDataTableResult<T>;
|
|
4
4
|
//# sourceMappingURL=useDataTable.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.170",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
7
|
+
"build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly && tsc-alias -p tsconfig.build.json",
|
|
8
8
|
"lint": "eslint .",
|
|
9
9
|
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}'",
|
|
10
10
|
"type-check": "tsc --noEmit",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@types/react": "^19.2.17",
|
|
104
104
|
"@types/react-dom": "^19.2.3",
|
|
105
105
|
"autoprefixer": "^10.5.2",
|
|
106
|
-
"eslint-plugin-storybook": "10.5.
|
|
106
|
+
"eslint-plugin-storybook": "10.5.5",
|
|
107
107
|
"jsdom": "^29.1.1",
|
|
108
108
|
"next-themes": "^0.4.6",
|
|
109
109
|
"prettier": "^3.9.6",
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"react-router-dom": "^7.18.1",
|
|
114
114
|
"storybook": "^10.5.0",
|
|
115
115
|
"tailwindcss": "^3.4.19",
|
|
116
|
+
"tsc-alias": "^1.9.1",
|
|
116
117
|
"typescript": "^5.9.3",
|
|
117
118
|
"vite": "^6.4.3",
|
|
118
119
|
"vitest": "^4.1.10"
|