@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.
Files changed (28) hide show
  1. package/dist/components/core/dialogs/ConfirmationDialog.d.ts +1 -1
  2. package/dist/components/core/dialogs/FormDialog.d.ts +1 -1
  3. package/dist/components/core/dialogs/index.d.ts +1 -1
  4. package/dist/components/core/filters/AdvancedFilters.d.ts +1 -1
  5. package/dist/components/core/filters/FilterField.d.ts +1 -1
  6. package/dist/components/core/filters/TableFilter.d.ts +1 -1
  7. package/dist/components/core/forms/GenericForm.d.ts +1 -1
  8. package/dist/components/core/layouts/AppActions.d.ts +1 -1
  9. package/dist/components/core/layouts/AppPageHeader.d.ts +1 -1
  10. package/dist/components/core/layouts/AppSubTitle.d.ts +1 -1
  11. package/dist/components/core/table/TableActions.d.ts +1 -1
  12. package/dist/components/core/table/TableBody.d.ts +1 -1
  13. package/dist/components/core/table/TableBulkActions.d.ts +1 -1
  14. package/dist/components/core/table/TableHeader.d.ts +1 -1
  15. package/dist/components/core/table/TableSettings.d.ts +1 -1
  16. package/dist/components/core/tabs/AppTabContainer.d.ts +1 -1
  17. package/dist/components/core/tabs/AppTabHeader.d.ts +1 -1
  18. package/dist/components/core/tabs/AppTabs.d.ts +1 -1
  19. package/dist/components/core/tabs/AppVerticalTabs.d.ts +1 -1
  20. package/dist/components/core/theme/ThemeSelector.d.ts +1 -1
  21. package/dist/components/core/theme/index.d.ts +1 -1
  22. package/dist/contexts/page.context.d.ts +1 -1
  23. package/dist/hooks/behavior/useConfirmDeleteDialog.d.ts +1 -1
  24. package/dist/hooks/behavior/useConfirmationDialog.d.ts +1 -1
  25. package/dist/hooks/behavior/usePage.d.ts +1 -1
  26. package/dist/hooks/behavior/useSidebar.d.ts +1 -1
  27. package/dist/hooks/ui/useDataTable.d.ts +2 -2
  28. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- import { ConfirmDialogConfig } from "@/types/ConfirmDialogConfig";
1
+ import { ConfirmDialogConfig } from "../../../types/ConfirmDialogConfig";
2
2
  import { ErrorHttp } from "@krosoft/core/types";
3
3
  interface ConfirmationDialogProps {
4
4
  isLoading: boolean;
@@ -1,4 +1,4 @@
1
- import type { FormSchema } from "@/types";
1
+ import type { FormSchema } from "../../../types";
2
2
  export interface FormDialogProps<T> {
3
3
  open: boolean;
4
4
  onOpenChange: (open: boolean) => void;
@@ -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 "@/types/ConfirmDialogConfig";
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 "@/types/FilterSection";
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 "@/types/FilterFieldConfig";
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 "@/types/FilterSection";
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,4 +1,4 @@
1
- import { FormSchema } from "@/types";
1
+ import { FormSchema } from "../../../types";
2
2
  import React from "react";
3
3
  /**
4
4
  * Props mapping for the GenericForm component.
@@ -1,4 +1,4 @@
1
- import { AppAction } from "@/types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction";
2
2
  export interface AppActionsProps {
3
3
  actions?: AppAction[];
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { AppAction } from "@/types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction";
2
2
  import React from "react";
3
3
  export interface AppPageHeaderProps {
4
4
  icon?: React.ElementType;
@@ -1,4 +1,4 @@
1
- import { AppAction } from "@/types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction";
2
2
  export interface AppSubTitleProps {
3
3
  titleKey: string;
4
4
  actions?: AppAction[];
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { RowAction } from "@/types/RowAction";
2
+ import { RowAction } from "../../../types/RowAction";
3
3
  export interface TableActionsProps<T> {
4
4
  actions: RowAction<T>[];
5
5
  row: T;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ColumnDef, RowAction } from "@/types";
2
+ import { ColumnDef, RowAction } from "../../../types";
3
3
  export type { BulkAction, ColumnDef, RowAction } from "../../../types";
4
4
  export interface TableBodyProps<T> {
5
5
  isLoading: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { BulkAction } from "@/types/BulkAction";
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 { ColumnDef } from "@/types";
1
+ import { ColumnDef } from "../../../types";
2
2
  import React from "react";
3
3
  export interface TableHeaderProps<T> {
4
4
  hasBulkActions: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ColumnDef } from "@/types/ColumnDef";
2
+ import { ColumnDef } from "../../../types/ColumnDef";
3
3
  export interface TableSettingsProps<T> {
4
4
  columns: ColumnDef<T>[];
5
5
  visibleColumns: Set<string>;
@@ -1,4 +1,4 @@
1
- import { AppAction } from "@/types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction";
2
2
  import { ReactNode } from "react";
3
3
  export interface AppTabContainerProps {
4
4
  titleKey: string;
@@ -1,4 +1,4 @@
1
- import { AppAction } from "@/types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction";
2
2
  export interface AppTabHeaderProps {
3
3
  titleKey: string;
4
4
  descriptionKey?: string;
@@ -1,4 +1,4 @@
1
- import type { TabConfig } from "@/types/TabConfig";
1
+ import type { TabConfig } from "../../../types/TabConfig";
2
2
  export interface AppTabsProps<T = unknown> {
3
3
  tabs: TabConfig<T>[];
4
4
  itemId?: string | null;
@@ -1,4 +1,4 @@
1
- import type { TabConfig } from "@/types/TabConfig";
1
+ import type { TabConfig } from "../../../types/TabConfig";
2
2
  export interface AppVerticalTabsProps<T = unknown> {
3
3
  tabs: TabConfig<T>[];
4
4
  item?: T | null;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { type ThemeOption } from "@/hooks/ui/useTheme";
2
+ import { type ThemeOption } from "../../../hooks/ui/useTheme";
3
3
  interface ThemeSelectorProps {
4
4
  themeOptions: readonly ThemeOption[];
5
5
  variant?: "select" | "mini";
@@ -1,3 +1,3 @@
1
1
  export { ThemeSelector } from "./ThemeSelector";
2
- export type { ThemeOption } from "@/hooks/ui/useTheme";
2
+ export type { ThemeOption } from "../../../hooks/ui/useTheme";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AppAction } from "@/types/AppAction";
1
+ import { AppAction } from "../types/AppAction";
2
2
  export interface PageContextType {
3
3
  registerTitleKey: (titleKey: string) => void;
4
4
  registerDescriptionKey: (descriptionKey: string) => void;
@@ -1,4 +1,4 @@
1
- import { ConfirmDialogConfig } from "@/types/ConfirmDialogConfig";
1
+ import { ConfirmDialogConfig } from "../../types/ConfirmDialogConfig";
2
2
  interface UseConfirmDeleteDialogProps {
3
3
  titleKey: string;
4
4
  descriptionKey: string;
@@ -1,4 +1,4 @@
1
- import { ConfirmDialogConfig } from "@/types/ConfirmDialogConfig";
1
+ import { ConfirmDialogConfig } from "../../types/ConfirmDialogConfig";
2
2
  interface UseConfirmationDialogProps {
3
3
  titleKey: string;
4
4
  descriptionKey: string;
@@ -1,3 +1,3 @@
1
- import { PageContextType } from "@/contexts/page.context";
1
+ import { PageContextType } from "../../contexts/page.context";
2
2
  export declare const usePage: () => PageContextType;
3
3
  //# sourceMappingURL=usePage.d.ts.map
@@ -1,3 +1,3 @@
1
- import { SidebarContextType } from "@/contexts/sidebar.context";
1
+ import { SidebarContextType } from "../../contexts/sidebar.context";
2
2
  export declare const useSidebar: () => SidebarContextType;
3
3
  //# sourceMappingURL=useSidebar.d.ts.map
@@ -1,4 +1,4 @@
1
- import { UseDataTableProps } from "@/types/UseDataTableProps";
2
- import { UseDataTableResult } from "@/types/UseDataTableResult";
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.168",
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.4",
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"