@juv/codego-react-ui 3.2.6 → 3.2.8
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/index.cjs +4988 -4946
- package/dist/index.d.cts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.global.js +5324 -5282
- package/dist/index.js +4911 -4869
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -345,6 +345,8 @@ interface DefaultActionsConfig<T> {
|
|
|
345
345
|
viewForm?: ActionField[];
|
|
346
346
|
/** Grid columns for the edit form layout (e.g. 2 = two-column grid). Default single column. */
|
|
347
347
|
editFormGrid?: number;
|
|
348
|
+
/** Width of the Edit/View/Delete modal. Default "lg". */
|
|
349
|
+
modalWidth?: ModalWidth;
|
|
348
350
|
/** Called after a successful edit or delete so the parent can refresh data. */
|
|
349
351
|
onSuccess?: (action: "edit" | "delete", item: T) => void;
|
|
350
352
|
/** Show a toast or notification banner on successful edit/delete */
|
|
@@ -378,6 +380,21 @@ interface ActionSuccessNotif {
|
|
|
378
380
|
/** Extra action element rendered inside the notification */
|
|
379
381
|
action?: React.ReactNode;
|
|
380
382
|
}
|
|
383
|
+
declare const MODAL_WIDTH: {
|
|
384
|
+
readonly sm: "max-w-sm";
|
|
385
|
+
readonly md: "max-w-md";
|
|
386
|
+
readonly lg: "max-w-lg";
|
|
387
|
+
readonly xl: "max-w-xl";
|
|
388
|
+
readonly '2xl': "max-w-2xl";
|
|
389
|
+
readonly '3xl': "max-w-3xl";
|
|
390
|
+
readonly '4xl': "max-w-4xl";
|
|
391
|
+
readonly '5xl': "max-w-5xl";
|
|
392
|
+
readonly '6xl': "max-w-6xl";
|
|
393
|
+
readonly '7xl': "max-w-7xl";
|
|
394
|
+
readonly screen: "max-w-screen-xl";
|
|
395
|
+
readonly full: "max-w-full";
|
|
396
|
+
};
|
|
397
|
+
type ModalWidth = keyof typeof MODAL_WIDTH;
|
|
381
398
|
interface Column<T> {
|
|
382
399
|
key: keyof T | string;
|
|
383
400
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -345,6 +345,8 @@ interface DefaultActionsConfig<T> {
|
|
|
345
345
|
viewForm?: ActionField[];
|
|
346
346
|
/** Grid columns for the edit form layout (e.g. 2 = two-column grid). Default single column. */
|
|
347
347
|
editFormGrid?: number;
|
|
348
|
+
/** Width of the Edit/View/Delete modal. Default "lg". */
|
|
349
|
+
modalWidth?: ModalWidth;
|
|
348
350
|
/** Called after a successful edit or delete so the parent can refresh data. */
|
|
349
351
|
onSuccess?: (action: "edit" | "delete", item: T) => void;
|
|
350
352
|
/** Show a toast or notification banner on successful edit/delete */
|
|
@@ -378,6 +380,21 @@ interface ActionSuccessNotif {
|
|
|
378
380
|
/** Extra action element rendered inside the notification */
|
|
379
381
|
action?: React.ReactNode;
|
|
380
382
|
}
|
|
383
|
+
declare const MODAL_WIDTH: {
|
|
384
|
+
readonly sm: "max-w-sm";
|
|
385
|
+
readonly md: "max-w-md";
|
|
386
|
+
readonly lg: "max-w-lg";
|
|
387
|
+
readonly xl: "max-w-xl";
|
|
388
|
+
readonly '2xl': "max-w-2xl";
|
|
389
|
+
readonly '3xl': "max-w-3xl";
|
|
390
|
+
readonly '4xl': "max-w-4xl";
|
|
391
|
+
readonly '5xl': "max-w-5xl";
|
|
392
|
+
readonly '6xl': "max-w-6xl";
|
|
393
|
+
readonly '7xl': "max-w-7xl";
|
|
394
|
+
readonly screen: "max-w-screen-xl";
|
|
395
|
+
readonly full: "max-w-full";
|
|
396
|
+
};
|
|
397
|
+
type ModalWidth = keyof typeof MODAL_WIDTH;
|
|
381
398
|
interface Column<T> {
|
|
382
399
|
key: keyof T | string;
|
|
383
400
|
title: string;
|