@krosoft/react 0.0.338 → 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.
- package/dist/components/core/charts/BarChartHorizontal.d.ts +1 -1
- package/dist/components/core/charts/BarChartVertical.d.ts +1 -1
- package/dist/components/core/charts/LineChart.d.ts +1 -1
- package/dist/components/core/charts/PieChart.d.ts +1 -1
- package/dist/components/core/dialogs/AppDialog.d.ts +1 -1
- package/dist/components/core/dialogs/ConfirmationDialog.d.ts +1 -1
- package/dist/components/core/dialogs/FormDialog.d.ts +2 -2
- 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/inputs/DateRangePicker.d.ts +1 -1
- package/dist/components/core/language/LanguageSelector.d.ts +1 -1
- package/dist/components/core/language/index.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 +2 -2
- package/dist/components/core/table/TableBulkActions.d.ts +1 -1
- package/dist/components/core/table/TableHeader.d.ts +2 -2
- 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/helpers/table.helper.d.ts +2 -2
- 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/behavior/useUrlState.d.ts +1 -1
- package/dist/hooks/ui/useDataTable.d.ts +2 -2
- package/dist/types/ButtonVariantType.d.ts +1 -1
- package/package.json +5 -5
|
@@ -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,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,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,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,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 { 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.
|
|
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.
|
|
91
|
-
"react-day-picker": "^10.0.
|
|
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.
|
|
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",
|
|
@@ -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.
|
|
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",
|