@oniratec/onira-react-ui 1.3.2 → 1.4.0
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +55 -0
- package/dist/index.js +753 -636
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,14 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
20
20
|
import { UseFormReturn } from 'react-hook-form';
|
|
21
21
|
import { z } from 'zod';
|
|
22
22
|
|
|
23
|
+
export declare const Alert: React_2.ForwardRefExoticComponent<AlertProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
|
|
25
|
+
export declare interface AlertProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
variant?: AlertVariant;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare type AlertVariant = 'error' | 'warning' | 'info' | 'success';
|
|
30
|
+
|
|
23
31
|
export declare function AsyncSelect<T>({ value, onValueChange, placeholder, searchPlaceholder, disabled, hasError, minChars, debounceMs, fetcher, getOptionValue, getOptionLabel, emptyLabel, loadingLabel, emptyActionLabel, onEmptyActionClick, contentClassName, triggerClassName, }: Props<T>): JSX.Element;
|
|
24
32
|
|
|
25
33
|
/** =========================
|
|
@@ -65,6 +73,32 @@ export declare type AsyncSelectOption = {
|
|
|
65
73
|
meta?: unknown;
|
|
66
74
|
};
|
|
67
75
|
|
|
76
|
+
export declare const AuthLayout: React_2.FC<AuthLayoutProps>;
|
|
77
|
+
|
|
78
|
+
export declare interface AuthLayoutLogo {
|
|
79
|
+
src: string;
|
|
80
|
+
alt: string;
|
|
81
|
+
href?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export declare interface AuthLayoutProps {
|
|
85
|
+
logo?: AuthLayoutLogo;
|
|
86
|
+
children: React_2.ReactNode;
|
|
87
|
+
footer?: React_2.ReactNode;
|
|
88
|
+
className?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
|
|
93
|
+
export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLSpanElement> {
|
|
94
|
+
variant?: BadgeVariant;
|
|
95
|
+
size?: BadgeSize;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export declare type BadgeSize = 'sm' | 'md';
|
|
99
|
+
|
|
100
|
+
export declare type BadgeVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
101
|
+
|
|
68
102
|
declare type BaseField<T extends FieldValues> = InputField<T> | TextareaField<T> | SelectField<T> | AsyncSelectField<T> | ToggleField<T> | CheckboxField<T> | DateField<T> | FileUploadField<T> | CustomField<T>;
|
|
69
103
|
|
|
70
104
|
/** =========================
|
|
@@ -384,6 +418,27 @@ export declare function FormFactoryRenderer<TFormModel extends FieldValues, TEnt
|
|
|
384
418
|
|
|
385
419
|
declare type FormFactoryRendererProps<TFormModel extends FieldValues, TEntity> = Parameters<typeof FormFactoryRenderer<TFormModel, TEntity>>[0];
|
|
386
420
|
|
|
421
|
+
export declare function ImportFileCard({ title, description, helperText, accept, className, actionLabel, disabled, loading, summary, onImport, }: ImportFileCardProps): JSX.Element;
|
|
422
|
+
|
|
423
|
+
export declare type ImportFileCardProps = {
|
|
424
|
+
title?: string;
|
|
425
|
+
description?: string;
|
|
426
|
+
helperText?: string;
|
|
427
|
+
accept?: string;
|
|
428
|
+
className?: string;
|
|
429
|
+
actionLabel?: string;
|
|
430
|
+
disabled?: boolean;
|
|
431
|
+
loading?: boolean;
|
|
432
|
+
summary?: ImportSummary | null;
|
|
433
|
+
onImport: (file: File) => Promise<void> | void;
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
export declare type ImportSummary = {
|
|
437
|
+
created: number;
|
|
438
|
+
updated: number;
|
|
439
|
+
failed: number;
|
|
440
|
+
};
|
|
441
|
+
|
|
387
442
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
388
443
|
|
|
389
444
|
/** =========================
|