akeyless-client-commons 1.0.1
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/assets/index.d.mts +17 -0
- package/dist/assets/index.d.ts +17 -0
- package/dist/assets/index.js +334 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/assets/index.mjs +248 -0
- package/dist/assets/index.mjs.map +1 -0
- package/dist/components/index.css +1815 -0
- package/dist/components/index.css.map +1 -0
- package/dist/components/index.d.mts +511 -0
- package/dist/components/index.d.ts +511 -0
- package/dist/components/index.js +5663 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +5423 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/helpers/index.d.mts +207 -0
- package/dist/helpers/index.d.ts +207 -0
- package/dist/helpers/index.js +1858 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/index.mjs +1494 -0
- package/dist/helpers/index.mjs.map +1 -0
- package/dist/hooks/index.d.mts +35 -0
- package/dist/hooks/index.d.ts +35 -0
- package/dist/hooks/index.js +592 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +496 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/types/index.d.mts +265 -0
- package/dist/types/index.d.ts +265 -0
- package/dist/types/index.js +49 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/index.mjs.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
4
|
+
import { TObject, Geo } from 'akeyless-types-commons';
|
|
5
|
+
import { Command as Command$1 } from 'cmdk';
|
|
6
|
+
import * as RPNInput from 'react-phone-number-input';
|
|
7
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
8
|
+
import { VariantProps } from 'class-variance-authority';
|
|
9
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
10
|
+
|
|
11
|
+
interface CheckBoxProps {
|
|
12
|
+
id: string;
|
|
13
|
+
checked: boolean;
|
|
14
|
+
setChecked: (v: boolean) => void;
|
|
15
|
+
style?: React__default.CSSProperties;
|
|
16
|
+
rotate: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const Checkbox: ({ id, checked, setChecked, rotate, style }: CheckBoxProps) => react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
interface ErrorBoundaryProps {
|
|
21
|
+
fallback?: React__default.ReactNode;
|
|
22
|
+
children: React__default.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
interface ErrorBoundaryState {
|
|
25
|
+
hasError: boolean;
|
|
26
|
+
error: Error | null;
|
|
27
|
+
errorInfo: React__default.ErrorInfo | null;
|
|
28
|
+
}
|
|
29
|
+
declare class ErrorBoundary extends React__default.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
30
|
+
constructor(props: ErrorBoundaryProps);
|
|
31
|
+
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
|
|
32
|
+
componentDidCatch(error: Error, errorInfo: React__default.ErrorInfo): void;
|
|
33
|
+
render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<React__default.ReactNode>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface LoaderProps {
|
|
37
|
+
color?: string;
|
|
38
|
+
size?: number;
|
|
39
|
+
style?: React__default.CSSProperties;
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
declare const Loader: React__default.FC<LoaderProps>;
|
|
43
|
+
|
|
44
|
+
declare const Version: ({ version, className }: {
|
|
45
|
+
version: string;
|
|
46
|
+
className?: string;
|
|
47
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
50
|
+
children?: React$1.ReactNode;
|
|
51
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
52
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
53
|
+
} & {
|
|
54
|
+
asChild?: boolean;
|
|
55
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
56
|
+
label?: string;
|
|
57
|
+
shouldFilter?: boolean;
|
|
58
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
59
|
+
defaultValue?: string;
|
|
60
|
+
value?: string;
|
|
61
|
+
onValueChange?: (value: string) => void;
|
|
62
|
+
loop?: boolean;
|
|
63
|
+
disablePointerSelection?: boolean;
|
|
64
|
+
vimBindings?: boolean;
|
|
65
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
|
|
67
|
+
interface MultipleSelectorOption {
|
|
68
|
+
value: string;
|
|
69
|
+
label: string;
|
|
70
|
+
disable?: boolean;
|
|
71
|
+
fixed?: boolean;
|
|
72
|
+
[key: string]: string | boolean | undefined;
|
|
73
|
+
}
|
|
74
|
+
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
75
|
+
interface MultipleSelectorProps {
|
|
76
|
+
value?: MultipleSelectorOption[];
|
|
77
|
+
defaultOptions?: MultipleSelectorOption[];
|
|
78
|
+
options?: MultipleSelectorOption[];
|
|
79
|
+
placeholder?: string;
|
|
80
|
+
loadingIndicator?: React$1.ReactNode;
|
|
81
|
+
emptyIndicator?: React$1.ReactNode;
|
|
82
|
+
delay?: number;
|
|
83
|
+
triggerSearchOnFocus?: boolean;
|
|
84
|
+
onSearch?: (value: string) => Promise<MultipleSelectorOption[]>;
|
|
85
|
+
onSearchSync?: (value: string) => MultipleSelectorOption[];
|
|
86
|
+
onChange?: (options: MultipleSelectorOption[]) => void;
|
|
87
|
+
maxSelected?: number;
|
|
88
|
+
onMaxSelected?: (maxLimit: number) => void;
|
|
89
|
+
hidePlaceholderWhenSelected?: boolean;
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
groupBy?: string;
|
|
92
|
+
className?: string;
|
|
93
|
+
badgeClassName?: string;
|
|
94
|
+
selectFirstItem?: boolean;
|
|
95
|
+
creatable?: boolean;
|
|
96
|
+
commandProps?: React$1.ComponentPropsWithoutRef<typeof Command>;
|
|
97
|
+
inputProps?: Omit<React$1.ComponentPropsWithoutRef<typeof Command$1.Input>, "value" | "placeholder" | "disabled">;
|
|
98
|
+
hideClearAllButton?: boolean;
|
|
99
|
+
dropdownClassName?: string;
|
|
100
|
+
dropdownOptionClassName?: string;
|
|
101
|
+
dropdownContainerClassName?: string;
|
|
102
|
+
emptyIndicatorClassName?: string;
|
|
103
|
+
unremovableOptions?: MultipleSelectorOption[];
|
|
104
|
+
name?: string;
|
|
105
|
+
}
|
|
106
|
+
interface MultipleSelectorRef {
|
|
107
|
+
selectedValue: MultipleSelectorOption[];
|
|
108
|
+
input: HTMLInputElement;
|
|
109
|
+
focus: () => void;
|
|
110
|
+
reset: () => void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type Direction = "rtl" | "ltr";
|
|
114
|
+
|
|
115
|
+
type ValidationType = "text" | "numbers" | "numbersOnly" | "price" | "textNumbers" | "email" | "color" | "address" | "cars" | "charts" | (string & {});
|
|
116
|
+
|
|
117
|
+
declare const badgeVariants: (props?: {
|
|
118
|
+
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
119
|
+
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
120
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
121
|
+
}
|
|
122
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
|
|
124
|
+
declare const buttonVariants: (props?: {
|
|
125
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost";
|
|
126
|
+
size?: "default" | "icon" | "sm" | "lg";
|
|
127
|
+
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
128
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: {
|
|
129
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost";
|
|
130
|
+
size?: "default" | "icon" | "sm" | "lg";
|
|
131
|
+
} & class_variance_authority_dist_types.ClassProp) => string> & {
|
|
132
|
+
asChild?: boolean;
|
|
133
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
134
|
+
|
|
135
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
136
|
+
|
|
137
|
+
interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
|
|
138
|
+
containerClassName?: string;
|
|
139
|
+
indicatorClassName?: string;
|
|
140
|
+
showValue?: boolean;
|
|
141
|
+
showValueClassName?: string;
|
|
142
|
+
}
|
|
143
|
+
declare const ProgressComponent: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
144
|
+
|
|
145
|
+
interface SearchSelectOptions extends Record<string, string> {
|
|
146
|
+
value: string;
|
|
147
|
+
label: string;
|
|
148
|
+
}
|
|
149
|
+
interface SearchSelectProps {
|
|
150
|
+
options: SearchSelectOptions[];
|
|
151
|
+
selectPlaceholder?: string;
|
|
152
|
+
name?: string;
|
|
153
|
+
notFoundLabel?: string;
|
|
154
|
+
searchPlaceholder?: string;
|
|
155
|
+
defaultValue?: SearchSelectOptions["value"];
|
|
156
|
+
dropdownClassName?: string;
|
|
157
|
+
dropdownOptionClassName?: string;
|
|
158
|
+
notFoundLabelClassName?: string;
|
|
159
|
+
selectButtonClassName?: string;
|
|
160
|
+
elementClassName?: string;
|
|
161
|
+
searchClassName?: string;
|
|
162
|
+
onChange?: (value: SearchSelectOptions["value"]) => void;
|
|
163
|
+
value?: SearchSelectOptions["value"];
|
|
164
|
+
disabled?: boolean;
|
|
165
|
+
direction?: Direction;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
interface BaseElementProps {
|
|
169
|
+
name?: string;
|
|
170
|
+
labelContent?: string;
|
|
171
|
+
required?: boolean;
|
|
172
|
+
labelClassName?: string;
|
|
173
|
+
containerClassName?: string;
|
|
174
|
+
elementClassName?: string;
|
|
175
|
+
minLength?: number;
|
|
176
|
+
validationError?: string;
|
|
177
|
+
direction?: Direction;
|
|
178
|
+
}
|
|
179
|
+
interface InputElement extends BaseElementProps {
|
|
180
|
+
type: "input";
|
|
181
|
+
inputType?: string;
|
|
182
|
+
defaultValue?: string;
|
|
183
|
+
validationName?: ValidationType;
|
|
184
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
185
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
186
|
+
value?: string;
|
|
187
|
+
placeholder?: string;
|
|
188
|
+
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
189
|
+
}
|
|
190
|
+
interface TextAreaElement extends BaseElementProps {
|
|
191
|
+
type: "textarea";
|
|
192
|
+
defaultValue?: string;
|
|
193
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
194
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
props?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
197
|
+
}
|
|
198
|
+
interface SelectElement extends BaseElementProps {
|
|
199
|
+
type: "select";
|
|
200
|
+
options: {
|
|
201
|
+
value: any;
|
|
202
|
+
label: string;
|
|
203
|
+
}[];
|
|
204
|
+
optionsContainerClassName?: string;
|
|
205
|
+
defaultValue?: any;
|
|
206
|
+
onChange?: (value: any) => void;
|
|
207
|
+
optionClassName?: string;
|
|
208
|
+
sortDirection?: "abc" | "cba";
|
|
209
|
+
sortAsNumber?: boolean;
|
|
210
|
+
}
|
|
211
|
+
interface MultiSelectProps extends Omit<BaseElementProps, "containerClassName" | "elementClassName"> {
|
|
212
|
+
type?: "multiSelect";
|
|
213
|
+
options: MultipleSelectorOption[];
|
|
214
|
+
emptyOptionsElement?: ReactNode;
|
|
215
|
+
onChange?: (value: MultipleSelectorOption[]) => void;
|
|
216
|
+
onSearch?: (value: string) => Promise<MultipleSelectorOption[]>;
|
|
217
|
+
triggerSearchOnFocus?: boolean;
|
|
218
|
+
onSearchSync?: (value: string) => MultipleSelectorOption[];
|
|
219
|
+
selectedOptions?: MultipleSelectorOption[];
|
|
220
|
+
styles?: {
|
|
221
|
+
containerClassName?: string;
|
|
222
|
+
badgeClassName?: string;
|
|
223
|
+
className?: string;
|
|
224
|
+
dropdownClassName?: string;
|
|
225
|
+
dropdownOptionClassName?: string;
|
|
226
|
+
emptyIndicatorClassName?: string;
|
|
227
|
+
dropdownContainerClassName?: string;
|
|
228
|
+
};
|
|
229
|
+
unremovableOptions?: MultipleSelectorOption[];
|
|
230
|
+
placeholder?: string;
|
|
231
|
+
groupBy?: string;
|
|
232
|
+
sortDirection?: "abc" | "cba";
|
|
233
|
+
sortAsNumber?: boolean;
|
|
234
|
+
searchInputProps?: MultipleSelectorProps["inputProps"];
|
|
235
|
+
}
|
|
236
|
+
interface SelectWithSearchProps extends BaseElementProps {
|
|
237
|
+
type?: "selectWithSearch";
|
|
238
|
+
options: SearchSelectOptions[];
|
|
239
|
+
onChange?: (value: SearchSelectOptions["value"]) => void;
|
|
240
|
+
value?: SearchSelectOptions["value"];
|
|
241
|
+
defaultValue?: SearchSelectOptions["value"];
|
|
242
|
+
dropdownClassName?: string;
|
|
243
|
+
dropdownOptionClassName?: string;
|
|
244
|
+
placeholder?: string;
|
|
245
|
+
notFoundLabel?: string;
|
|
246
|
+
searchPlaceholder?: string;
|
|
247
|
+
notFoundLabelClassName?: string;
|
|
248
|
+
searchClassName?: string;
|
|
249
|
+
selectButtonClassName?: string;
|
|
250
|
+
sortDirection?: "abc" | "cba";
|
|
251
|
+
sortAsNumber?: boolean;
|
|
252
|
+
disabled?: boolean;
|
|
253
|
+
}
|
|
254
|
+
interface InternationalInputProps extends Omit<BaseElementProps, "elementClassName"> {
|
|
255
|
+
type?: "internationalPhoneInput";
|
|
256
|
+
phoneValue?: string;
|
|
257
|
+
setPhoneValue?: Dispatch<SetStateAction<string>>;
|
|
258
|
+
placeholder?: string;
|
|
259
|
+
className?: string;
|
|
260
|
+
containerClassName?: string;
|
|
261
|
+
style?: React.CSSProperties;
|
|
262
|
+
flagContainerClassName?: string;
|
|
263
|
+
inputClassName?: string;
|
|
264
|
+
defaultValue?: string;
|
|
265
|
+
defaultCountry?: RPNInput.Country;
|
|
266
|
+
onEnter?: () => void;
|
|
267
|
+
direction?: Direction;
|
|
268
|
+
}
|
|
269
|
+
interface CustomElementProps extends BaseElementProps {
|
|
270
|
+
type: "custom";
|
|
271
|
+
element: JSX.Element;
|
|
272
|
+
}
|
|
273
|
+
interface InputContainerProps extends Partial<InputElement> {
|
|
274
|
+
}
|
|
275
|
+
interface SelectContainerProps extends Partial<SelectElement> {
|
|
276
|
+
}
|
|
277
|
+
interface TextAreaContainerProps extends Partial<TextAreaElement> {
|
|
278
|
+
}
|
|
279
|
+
type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps;
|
|
280
|
+
interface ModularFormProps {
|
|
281
|
+
submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
282
|
+
elements: FormElement[];
|
|
283
|
+
buttonContent: React.ReactNode;
|
|
284
|
+
headerContent?: React.ReactNode;
|
|
285
|
+
buttonClassName?: string;
|
|
286
|
+
formClassName?: string;
|
|
287
|
+
headerClassName?: string;
|
|
288
|
+
direction?: Direction;
|
|
289
|
+
submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
|
|
290
|
+
}
|
|
291
|
+
interface ConfirmFormProps {
|
|
292
|
+
onV: () => Promise<void> | void;
|
|
293
|
+
onX: () => Promise<void> | void;
|
|
294
|
+
headline?: string;
|
|
295
|
+
direction?: Direction;
|
|
296
|
+
containerClassName?: string;
|
|
297
|
+
headlineClassName?: string;
|
|
298
|
+
buttonsContainerClassName?: string;
|
|
299
|
+
}
|
|
300
|
+
interface DatePickerProps {
|
|
301
|
+
submit?: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
302
|
+
formClassName?: string;
|
|
303
|
+
labelsClassName?: string;
|
|
304
|
+
inputsClassName?: string;
|
|
305
|
+
buttonClassName?: string;
|
|
306
|
+
buttonStyle?: React.CSSProperties;
|
|
307
|
+
defaultFrom?: string;
|
|
308
|
+
defaultTo?: string;
|
|
309
|
+
direction?: Direction;
|
|
310
|
+
fromText?: string;
|
|
311
|
+
toText?: string;
|
|
312
|
+
buttonText?: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
interface FilterableColumn {
|
|
316
|
+
header: string;
|
|
317
|
+
dataKey: string;
|
|
318
|
+
ui?: (value: any) => ReactNode;
|
|
319
|
+
}
|
|
320
|
+
interface TableProviderType {
|
|
321
|
+
sortColumn: number;
|
|
322
|
+
sortOrder: "asc" | "desc";
|
|
323
|
+
handleSort: (columnIndex: number) => void;
|
|
324
|
+
searchQuery: string;
|
|
325
|
+
deferredSearchQuery: string;
|
|
326
|
+
handleSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
327
|
+
dataToRender: {
|
|
328
|
+
renderedData: TObject<any>[];
|
|
329
|
+
filtered: TObject<any>[];
|
|
330
|
+
};
|
|
331
|
+
filters: TObject<string[]>;
|
|
332
|
+
filterPopupsDisplay: string;
|
|
333
|
+
filterOptions: any;
|
|
334
|
+
handleFilterChange: (dataKey: string, value: string) => void;
|
|
335
|
+
handleFilterClick: (dataKey: string) => void;
|
|
336
|
+
closeFilterWindow: () => void;
|
|
337
|
+
}
|
|
338
|
+
interface UseFilterProps {
|
|
339
|
+
data: Record<string, any>[];
|
|
340
|
+
filterableColumns: FilterableColumn[];
|
|
341
|
+
}
|
|
342
|
+
interface TableProps {
|
|
343
|
+
data: Record<string, any>[];
|
|
344
|
+
headers: string[];
|
|
345
|
+
keysToRender: string[];
|
|
346
|
+
optionalElement?: ReactNode;
|
|
347
|
+
containerStyle?: React.CSSProperties;
|
|
348
|
+
containerClassName?: string;
|
|
349
|
+
containerHeaderClassName?: string;
|
|
350
|
+
includeSearch?: boolean;
|
|
351
|
+
searchInputStyle?: React.CSSProperties;
|
|
352
|
+
searchInputClassName?: string;
|
|
353
|
+
searchContainerClassName?: string;
|
|
354
|
+
tableContainerStyle?: React.CSSProperties;
|
|
355
|
+
tableContainerClass?: string;
|
|
356
|
+
tableStyle?: React.CSSProperties;
|
|
357
|
+
rowStyles?: React.CSSProperties;
|
|
358
|
+
rowClassName?: string;
|
|
359
|
+
headerStyle?: React.CSSProperties;
|
|
360
|
+
headerClassName?: string;
|
|
361
|
+
headerCellStyle?: React.CSSProperties;
|
|
362
|
+
headerCellClassName?: string;
|
|
363
|
+
cellStyle?: React.CSSProperties;
|
|
364
|
+
cellClassName?: string;
|
|
365
|
+
filterableColumns?: {
|
|
366
|
+
header: string;
|
|
367
|
+
dataKey: string;
|
|
368
|
+
ui?: (value: any) => ReactNode;
|
|
369
|
+
}[];
|
|
370
|
+
sortKeys?: string[];
|
|
371
|
+
exportToExcelKeys?: string[];
|
|
372
|
+
excelFileName?: string;
|
|
373
|
+
exportExcelContent?: ReactNode;
|
|
374
|
+
exportToExcelClassName?: string;
|
|
375
|
+
dataToAddToExcelTable?: {
|
|
376
|
+
key: string;
|
|
377
|
+
value: any;
|
|
378
|
+
header: string;
|
|
379
|
+
}[];
|
|
380
|
+
sumColumns?: {
|
|
381
|
+
label: string;
|
|
382
|
+
dataKey: string;
|
|
383
|
+
ui?: (value: any) => ReactNode;
|
|
384
|
+
}[];
|
|
385
|
+
searchPlaceHolder?: string;
|
|
386
|
+
summaryContainerStyle?: React.CSSProperties;
|
|
387
|
+
summaryLabelStyle?: React.CSSProperties;
|
|
388
|
+
summaryRowStyle?: React.CSSProperties;
|
|
389
|
+
summaryLabel?: string;
|
|
390
|
+
filterLabel?: string;
|
|
391
|
+
sortLabel?: string;
|
|
392
|
+
exportExcelTitle?: string;
|
|
393
|
+
onRowClick?: (data?: any) => void;
|
|
394
|
+
direction?: Direction;
|
|
395
|
+
maxRows?: number;
|
|
396
|
+
maxRowsLabel1?: string;
|
|
397
|
+
maxRowsLabel2?: string;
|
|
398
|
+
maxRowsContainerClassName?: string;
|
|
399
|
+
zebraStriping?: {
|
|
400
|
+
oddRowClassName?: string;
|
|
401
|
+
evenRowClassName?: string;
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
interface FilterProps {
|
|
405
|
+
index: number;
|
|
406
|
+
filterableColumn: FilterableColumn;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare const getFixedNumber: (number?: number, fix?: number) => string;
|
|
410
|
+
declare const TableRow: ({ item, index }: {
|
|
411
|
+
item: TObject<any>;
|
|
412
|
+
index: number;
|
|
413
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
414
|
+
declare const TableCell: ({ value }: {
|
|
415
|
+
value: any;
|
|
416
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
417
|
+
declare const Filter: React__default.NamedExoticComponent<FilterProps>;
|
|
418
|
+
declare const TableHead: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
419
|
+
declare const TableBody: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
420
|
+
declare const MaxRowsLabel: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
421
|
+
declare const ExportToExcel: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
422
|
+
declare const Search: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
423
|
+
declare const Summary: React__default.MemoExoticComponent<() => react_jsx_runtime.JSX.Element>;
|
|
424
|
+
interface TimesUIProps {
|
|
425
|
+
timestamp: any;
|
|
426
|
+
format?: string;
|
|
427
|
+
fromFormat?: string;
|
|
428
|
+
tz?: string;
|
|
429
|
+
direction?: Direction;
|
|
430
|
+
className?: string;
|
|
431
|
+
}
|
|
432
|
+
declare const TimesUI: ({ timestamp, format, tz, direction, fromFormat, className }: TimesUIProps) => react_jsx_runtime.JSX.Element;
|
|
433
|
+
interface TableButtonProps {
|
|
434
|
+
onClick: () => void;
|
|
435
|
+
title?: string;
|
|
436
|
+
className?: string;
|
|
437
|
+
type: "add" | "edit" | "delete" | "custom";
|
|
438
|
+
children?: ReactNode;
|
|
439
|
+
}
|
|
440
|
+
declare const TableButton: ({ onClick, title, className, type, children }: TableButtonProps) => react_jsx_runtime.JSX.Element;
|
|
441
|
+
interface DurationUIProps {
|
|
442
|
+
duration: number;
|
|
443
|
+
daysLabel?: string;
|
|
444
|
+
hoursLabel?: string;
|
|
445
|
+
minutesLabel?: string;
|
|
446
|
+
secondsLabel?: string;
|
|
447
|
+
className?: string;
|
|
448
|
+
direction?: "rtl" | "ltr";
|
|
449
|
+
}
|
|
450
|
+
declare const DurationUI: ({ duration, daysLabel, hoursLabel, minutesLabel, secondsLabel, className, direction, }: DurationUIProps) => react_jsx_runtime.JSX.Element;
|
|
451
|
+
declare const PhoneUI: ({ phone, direction, className }: {
|
|
452
|
+
phone: string;
|
|
453
|
+
direction?: Direction;
|
|
454
|
+
className?: string;
|
|
455
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
456
|
+
interface BooleanUIProps {
|
|
457
|
+
value: boolean;
|
|
458
|
+
size?: "big" | "small";
|
|
459
|
+
className?: string;
|
|
460
|
+
trueUi?: ReactNode;
|
|
461
|
+
falseUi?: ReactNode;
|
|
462
|
+
}
|
|
463
|
+
declare const BooleanUi: ({ value, size, className, falseUi, trueUi }: BooleanUIProps) => string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<React__default.ReactNode>;
|
|
464
|
+
interface GeoUiProps {
|
|
465
|
+
value: Partial<Geo> & {
|
|
466
|
+
latitude?: number;
|
|
467
|
+
longitude?: number;
|
|
468
|
+
};
|
|
469
|
+
className?: string;
|
|
470
|
+
linkUi?: ReactNode;
|
|
471
|
+
}
|
|
472
|
+
declare const GeoUi: ({ value, className, linkUi }: GeoUiProps) => react_jsx_runtime.JSX.Element;
|
|
473
|
+
interface NumberUIProps {
|
|
474
|
+
number: string | number;
|
|
475
|
+
direction?: Direction;
|
|
476
|
+
className?: string;
|
|
477
|
+
}
|
|
478
|
+
declare const NumberUI: ({ number, direction, className }: NumberUIProps) => react_jsx_runtime.JSX.Element;
|
|
479
|
+
|
|
480
|
+
declare const TableContext: React__default.Context<TableProps & TableProviderType>;
|
|
481
|
+
declare const TableProvider: (props: TableProps & {
|
|
482
|
+
children: React__default.ReactNode;
|
|
483
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
484
|
+
declare const Table: React__default.MemoExoticComponent<(props: TableProps) => react_jsx_runtime.JSX.Element>;
|
|
485
|
+
|
|
486
|
+
declare const ModularForm: ({ submitFunction, elements, headerContent, buttonContent, formClassName, headerClassName, direction, buttonClassName, submitRef, }: ModularFormProps) => react_jsx_runtime.JSX.Element;
|
|
487
|
+
|
|
488
|
+
declare function InternationalPhonePicker({ setPhoneValue, phoneValue, placeholder, className, containerClassName, defaultCountry, flagContainerClassName, inputClassName, defaultValue, name, style, onEnter, labelContent, labelClassName, required, direction, }: InternationalInputProps): react_jsx_runtime.JSX.Element;
|
|
489
|
+
|
|
490
|
+
declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sortAsNumber?: boolean) => any[];
|
|
491
|
+
declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
|
|
492
|
+
declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
|
|
493
|
+
declare function MultiSelect({ onChange, selectedOptions, emptyOptionsElement, unremovableOptions, options, styles, name, placeholder, labelContent, required, labelClassName, groupBy, onSearch, onSearchSync, triggerSearchOnFocus, sortDirection, sortAsNumber, direction, searchInputProps, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
494
|
+
declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, selectButtonClassName, sortDirection, sortAsNumber, disabled, direction, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
|
|
495
|
+
declare const TextAreaContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, }: TextAreaContainerProps) => react_jsx_runtime.JSX.Element;
|
|
496
|
+
declare const ElementLabel: ({ labelContent, labelClassName, name, required, withDots, direction, }: Omit<BaseElementProps, "containerClassName" | "elementClassName"> & {
|
|
497
|
+
withDots?: boolean;
|
|
498
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
499
|
+
|
|
500
|
+
declare const ConfirmForm: ({ onV, onX, headline, direction, containerClassName, buttonsContainerClassName, headlineClassName, }: ConfirmFormProps) => react_jsx_runtime.JSX.Element;
|
|
501
|
+
declare const DatePicker: ({ submit, formClassName, labelsClassName, inputsClassName, buttonClassName, buttonStyle, defaultFrom, defaultTo, direction, fromText, toText, buttonText, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
502
|
+
|
|
503
|
+
interface CodeInputProps {
|
|
504
|
+
codeValue: string;
|
|
505
|
+
setCodeValue: Dispatch<SetStateAction<string>>;
|
|
506
|
+
className?: string;
|
|
507
|
+
slotContainerClassName?: string;
|
|
508
|
+
}
|
|
509
|
+
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
510
|
+
|
|
511
|
+
export { Badge, type BadgeProps, BooleanUi, Button, Checkbox, CodeInput, ConfirmForm, DatePicker, DurationUI, ElementLabel, ErrorBoundary, ExportToExcel, Filter, type FilterProps, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, Loader, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, getFixedNumber, useDebounce, useSortValues };
|