@krosoft/react 0.0.337 → 0.0.339

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 (39) hide show
  1. package/dist/components/core/charts/BarChartHorizontal.d.ts +1 -1
  2. package/dist/components/core/charts/BarChartVertical.d.ts +1 -1
  3. package/dist/components/core/charts/LineChart.d.ts +1 -1
  4. package/dist/components/core/charts/PieChart.d.ts +1 -1
  5. package/dist/components/core/dialogs/AppDialog.d.ts +1 -1
  6. package/dist/components/core/dialogs/ConfirmationDialog.d.ts +1 -1
  7. package/dist/components/core/dialogs/FormDialog.d.ts +2 -2
  8. package/dist/components/core/dialogs/index.d.ts +1 -1
  9. package/dist/components/core/filters/AdvancedFilters.d.ts +1 -1
  10. package/dist/components/core/filters/FilterField.d.ts +1 -1
  11. package/dist/components/core/filters/TableFilter.d.ts +1 -1
  12. package/dist/components/core/forms/GenericForm.d.ts +1 -1
  13. package/dist/components/core/inputs/DateRangePicker.d.ts +1 -1
  14. package/dist/components/core/language/LanguageSelector.d.ts +1 -1
  15. package/dist/components/core/language/index.d.ts +1 -1
  16. package/dist/components/core/layouts/AppActions.d.ts +1 -1
  17. package/dist/components/core/layouts/AppPageHeader.d.ts +1 -1
  18. package/dist/components/core/layouts/AppSubTitle.d.ts +1 -1
  19. package/dist/components/core/table/TableActions.d.ts +1 -1
  20. package/dist/components/core/table/TableBody.d.ts +2 -2
  21. package/dist/components/core/table/TableBulkActions.d.ts +1 -1
  22. package/dist/components/core/table/TableHeader.d.ts +2 -2
  23. package/dist/components/core/table/TableSettings.d.ts +1 -1
  24. package/dist/components/core/tabs/AppTabContainer.d.ts +1 -1
  25. package/dist/components/core/tabs/AppTabHeader.d.ts +1 -1
  26. package/dist/components/core/tabs/AppTabs.d.ts +1 -1
  27. package/dist/components/core/tabs/AppVerticalTabs.d.ts +1 -1
  28. package/dist/components/core/theme/ThemeSelector.d.ts +1 -1
  29. package/dist/components/core/theme/index.d.ts +1 -1
  30. package/dist/contexts/page.context.d.ts +1 -1
  31. package/dist/helpers/table.helper.d.ts +2 -2
  32. package/dist/hooks/behavior/useConfirmDeleteDialog.d.ts +1 -1
  33. package/dist/hooks/behavior/useConfirmationDialog.d.ts +1 -1
  34. package/dist/hooks/behavior/usePage.d.ts +1 -1
  35. package/dist/hooks/behavior/useSidebar.d.ts +1 -1
  36. package/dist/hooks/behavior/useUrlState.d.ts +1 -1
  37. package/dist/hooks/ui/useDataTable.d.ts +2 -2
  38. package/dist/types/ButtonVariantType.d.ts +1 -1
  39. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import { ChartDatum } from "../../../types/ChartDatum";
1
+ import { ChartDatum } from "../../../types/ChartDatum.js";
2
2
  import * as React from "react";
3
3
  export interface BarChartHorizontalProps {
4
4
  data: ChartDatum[];
@@ -1,4 +1,4 @@
1
- import { ChartDatum } from "../../../types/ChartDatum";
1
+ import { ChartDatum } from "../../../types/ChartDatum.js";
2
2
  import * as React from "react";
3
3
  export interface BarChartVerticalProps {
4
4
  data: ChartDatum[];
@@ -1,4 +1,4 @@
1
- import { ChartDatum } from "../../../types/ChartDatum";
1
+ import { ChartDatum } from "../../../types/ChartDatum.js";
2
2
  import * as React from "react";
3
3
  export interface LineChartProps {
4
4
  data: ChartDatum[];
@@ -1,4 +1,4 @@
1
- import { ChartDatum } from "../../../types/ChartDatum";
1
+ import { ChartDatum } from "../../../types/ChartDatum.js";
2
2
  import * as React from "react";
3
3
  export interface PieChartProps {
4
4
  data: ChartDatum[];
@@ -1,5 +1,5 @@
1
1
  import { ErrorHttp } from "@krosoft/core/types";
2
- import type { ButtonVariantType } from "../../../types";
2
+ import type { ButtonVariantType } from "../../../types/index.js";
3
3
  import React from "react";
4
4
  export type { ButtonVariantType };
5
5
  export type AppDialogSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full";
@@ -1,4 +1,4 @@
1
- import { ConfirmDialogConfig } from "../../../types/ConfirmDialogConfig";
1
+ import { ConfirmDialogConfig } from "../../../types/ConfirmDialogConfig.js";
2
2
  import { ErrorHttp } from "@krosoft/core/types";
3
3
  interface ConfirmationDialogProps {
4
4
  isLoading: boolean;
@@ -1,5 +1,5 @@
1
- import { AppDialogSize } from "./AppDialog";
2
- import type { FormSchema } from "../../../types";
1
+ import { AppDialogSize } from "./AppDialog.js";
2
+ import type { FormSchema } from "../../../types/index.js";
3
3
  export interface FormDialogProps<T> {
4
4
  open: boolean;
5
5
  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.js";
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.js";
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.js";
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.js";
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/index.js";
2
2
  import React from "react";
3
3
  /**
4
4
  * Props mapping for the GenericForm component.
@@ -1,4 +1,4 @@
1
- import { DateRangeValue } from "../../../types/DateRangeValue";
1
+ import { DateRangeValue } from "../../../types/DateRangeValue.js";
2
2
  import * as React from "react";
3
3
  interface DateRangePickerProps {
4
4
  value?: DateRangeValue;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { type LanguageOption } from "../../../hooks/ui/useLanguage";
2
+ import { type LanguageOption } from "../../../hooks/ui/useLanguage.js";
3
3
  interface LanguageSelectorProps {
4
4
  languageOptions: readonly LanguageOption[];
5
5
  variant?: "select" | "mini";
@@ -1,3 +1,3 @@
1
1
  export { LanguageSelector } from "./LanguageSelector";
2
- export type { LanguageOption } from "../../../hooks/ui/useLanguage";
2
+ export type { LanguageOption } from "../../../hooks/ui/useLanguage.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AppAction } from "../../../types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction.js";
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.js";
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.js";
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 { DataTableRowAction } from "../../../types/DataTableRowAction";
2
+ import { DataTableRowAction } from "../../../types/DataTableRowAction.js";
3
3
  export interface TableActionsProps<T> {
4
4
  actions: DataTableRowAction<T>[];
5
5
  row: T;
@@ -1,5 +1,5 @@
1
- import type { FixedColumnOffset } from "../../../hooks/ui/useFixedColumns";
2
- import { DataTableColumn, DataTableMessages, DataTableRowAction } from "../../../types";
1
+ import type { FixedColumnOffset } from "../../../hooks/ui/useFixedColumns.js";
2
+ import { DataTableColumn, DataTableMessages, DataTableRowAction } from "../../../types/index.js";
3
3
  import React from "react";
4
4
  export interface TableBodyProps<T> {
5
5
  isLoading: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { DataTableBulkAction } from "../../../types/DataTableBulkAction";
2
+ import type { DataTableBulkAction } from "../../../types/DataTableBulkAction.js";
3
3
  export interface TableBulkActionsProps<T> {
4
4
  selectedRows: T[];
5
5
  setSelectedRows: React.Dispatch<React.SetStateAction<T[]>>;
@@ -1,5 +1,5 @@
1
- import type { FixedColumnOffset } from "../../../hooks/ui/useFixedColumns";
2
- import { DataTableColumn } from "../../../types";
1
+ import type { FixedColumnOffset } from "../../../hooks/ui/useFixedColumns.js";
2
+ import { DataTableColumn } from "../../../types/index.js";
3
3
  import React from "react";
4
4
  export interface TableHeaderProps<T> {
5
5
  hasBulkActions: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { DataTableColumn } from "../../../types/DataTableColumn";
2
+ import { DataTableColumn } from "../../../types/DataTableColumn.js";
3
3
  export interface TableSettingsProps<T> {
4
4
  columns: DataTableColumn<T>[];
5
5
  visibleColumns: Set<string>;
@@ -1,4 +1,4 @@
1
- import { AppAction } from "../../../types/AppAction";
1
+ import { AppAction } from "../../../types/AppAction.js";
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.js";
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.js";
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.js";
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.js";
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.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AppAction } from "../types/AppAction";
1
+ import { AppAction } from "../types/AppAction.js";
2
2
  export interface PageContextType {
3
3
  registerTitleKey: (titleKey: string) => void;
4
4
  registerDescriptionKey: (descriptionKey: string) => void;
@@ -1,5 +1,5 @@
1
- import type { FixedColumnOffset } from "../hooks/ui/useFixedColumns";
2
- import type { DataTableColumn } from "../types";
1
+ import type { FixedColumnOffset } from "../hooks/ui/useFixedColumns.js";
2
+ import type { DataTableColumn } from "../types/index.js";
3
3
  import type React from "react";
4
4
  export type ColumnAlignment = "left" | "center" | "right";
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { ConfirmDialogConfig } from "../../types/ConfirmDialogConfig";
1
+ import { ConfirmDialogConfig } from "../../types/ConfirmDialogConfig.js";
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.js";
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.js";
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.js";
2
2
  export declare const useSidebar: () => SidebarContextType;
3
3
  //# sourceMappingURL=useSidebar.d.ts.map
@@ -1,4 +1,4 @@
1
- import { DateRangeValue } from "../../types/DateRangeValue";
1
+ import { DateRangeValue } from "../../types/DateRangeValue.js";
2
2
  /** Format des dates en URL : compact et lisible. */
3
3
  export declare const URL_DATE_FORMAT = "yyyy-MM-dd";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { UseDataTableProps } from "../../types/UseDataTableProps";
2
- import { UseDataTableResult } from "../../types/UseDataTableResult";
1
+ import { UseDataTableProps } from "../../types/UseDataTableProps.js";
2
+ import { UseDataTableResult } from "../../types/UseDataTableResult.js";
3
3
  export declare function useDataTable<T>({ data, columns, rowKey, rowSelectable, pageSizeDefault, actions, bulkActions, columnVisibility, server, }: UseDataTableProps<T>): UseDataTableResult<T>;
4
4
  //# sourceMappingURL=useDataTable.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { buttonVariants } from "../components/ui/button";
1
+ import type { buttonVariants } from "../components/ui/button.js";
2
2
  import type { VariantProps } from "class-variance-authority";
3
3
  /**
4
4
  * Variants du `Button`, dérivés de `buttonVariants` : un variant ajouté au composant
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.337",
3
+ "version": "0.0.339",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -87,10 +87,10 @@
87
87
  "date-fns": "^4.4.0",
88
88
  "embla-carousel-react": "^8.6.0",
89
89
  "input-otp": "^1.5.0",
90
- "lucide-react": "^1.41.0",
91
- "react-day-picker": "^10.0.1",
90
+ "lucide-react": "^1.61.0",
91
+ "react-day-picker": "^10.0.2",
92
92
  "react-hook-form": "^7.87.0",
93
- "react-resizable-panels": "^4.12.4",
93
+ "react-resizable-panels": "^4.14.8",
94
94
  "recharts": "^3.10.1",
95
95
  "sonner": "^2.0.8",
96
96
  "tailwind-merge": "^2.6.1",
@@ -107,13 +107,13 @@
107
107
  "@storybook/addon-docs": "^10.6.3",
108
108
  "@storybook/addon-themes": "^10.6.3",
109
109
  "@storybook/react-vite": "^10.6.3",
110
- "@tanstack/react-query": "^5.102.8",
110
+ "@tanstack/react-query": "^5.104.5",
111
111
  "@testing-library/dom": "^10.4.2",
112
112
  "@testing-library/react": "^16.3.3",
113
113
  "@types/node": "^25.9.9",
114
114
  "@types/react": "^19.2.18",
115
115
  "@types/react-dom": "^19.2.7",
116
- "autoprefixer": "^10.5.5",
116
+ "autoprefixer": "^10.6.1",
117
117
  "eslint-plugin-storybook": "10.6.3",
118
118
  "i18next": "^26.4.2",
119
119
  "jsdom": "^30.1.3",
@@ -125,7 +125,7 @@
125
125
  "react-router-dom": "^7.18.4",
126
126
  "storybook": "^10.6.3",
127
127
  "tailwindcss": "^3.4.19",
128
- "tsc-alias": "^1.9.4",
128
+ "tsc-alias": "^1.9.8",
129
129
  "typescript": "^5.9.3",
130
130
  "vite": "^8.3.5",
131
131
  "vite-plugin-pwa": "^1.3.0",