@cagatayfdn/flora-components 0.0.73 → 0.0.75
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.d.mts +1351 -0
- package/package.json +8 -11
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1351 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { AxiosError } from 'axios';
|
|
4
|
+
import { ChartProps } from 'react-chartjs-2';
|
|
5
|
+
import { CustomLocale } from 'flatpickr/dist/types/locale';
|
|
6
|
+
import { DateLimit } from 'flatpickr/dist/types/options';
|
|
7
|
+
import { DateOption } from 'flatpickr/dist/types/options';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import { Dispatch as Dispatch_2 } from 'react';
|
|
10
|
+
import { FC } from 'react';
|
|
11
|
+
import { FieldError } from 'react-hook-form';
|
|
12
|
+
import i18n from 'i18next';
|
|
13
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
14
|
+
import { LegendItem } from 'chart.js';
|
|
15
|
+
import { LinkProps } from 'react-router-dom';
|
|
16
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
17
|
+
import NiceModal from '@ebay/nice-modal-react';
|
|
18
|
+
import { NiceModalHocProps } from '@ebay/nice-modal-react';
|
|
19
|
+
import { default as React_2 } from 'react';
|
|
20
|
+
import { ReactNode } from 'react';
|
|
21
|
+
import { SelectItemRenderer } from 'react-dropdown-select';
|
|
22
|
+
import { SelectRenderer } from 'react-dropdown-select';
|
|
23
|
+
import { SetStateAction } from 'react';
|
|
24
|
+
import { TFunction } from 'i18next';
|
|
25
|
+
import { TFunctionResult } from 'i18next';
|
|
26
|
+
|
|
27
|
+
export declare const Accordion: ({ children, className, }: AccordionProps) => JSX.Element;
|
|
28
|
+
|
|
29
|
+
export declare const AccordionItem: ({ children, title, isVisible, className, onClick, customItemRenderer, }: AccordionItemProps) => JSX.Element;
|
|
30
|
+
|
|
31
|
+
export declare type AccordionItemProps = {
|
|
32
|
+
title?: ReactNode;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
customItemRenderer?: (isOpen: boolean) => ReactNode;
|
|
35
|
+
isVisible: boolean;
|
|
36
|
+
className?: string;
|
|
37
|
+
onClick?: (value: boolean) => void;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
declare type AccordionProps = {
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
className?: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export declare function ActionButton({ items, isDisabled }: ActionButtonProps): JSX_2.Element;
|
|
46
|
+
|
|
47
|
+
export declare type ActionButtonItems = {
|
|
48
|
+
text: string;
|
|
49
|
+
icon: Icons;
|
|
50
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export declare type ActionButtonProps = {
|
|
54
|
+
items: ActionButtonItems[];
|
|
55
|
+
isDisabled?: boolean;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
declare type Actiontype = {
|
|
59
|
+
type: 'login_pending';
|
|
60
|
+
} | {
|
|
61
|
+
type: 'active_user_success';
|
|
62
|
+
payload: UserEntity_2;
|
|
63
|
+
} | {
|
|
64
|
+
type: 'login_failure';
|
|
65
|
+
payload: any;
|
|
66
|
+
} | {
|
|
67
|
+
type: 'active_user_failure';
|
|
68
|
+
payload: any;
|
|
69
|
+
} | {
|
|
70
|
+
type: 'register_pending';
|
|
71
|
+
} | {
|
|
72
|
+
type: 'register_failure';
|
|
73
|
+
payload: any;
|
|
74
|
+
} | {
|
|
75
|
+
type: 'no_active_user';
|
|
76
|
+
} | {
|
|
77
|
+
type: 'signout';
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export declare const AlertCard: ({ description, onClose, appearence, }: AlertCardProps) => JSX_2.Element;
|
|
81
|
+
|
|
82
|
+
declare type AlertCardProps = {
|
|
83
|
+
description: string | JSX_2.Element;
|
|
84
|
+
appearence?: AppearanceAlertCard;
|
|
85
|
+
onClose?: () => void;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type AnchorProps = {
|
|
89
|
+
index: number;
|
|
90
|
+
title: string;
|
|
91
|
+
customIndexItem?: any;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export declare enum AppAndServicesStatusApperenceType {
|
|
95
|
+
ADDONS_INITIALIZING = "addons_initializing",
|
|
96
|
+
ADDONS_ADDONS_INITILIZATION_FAILED = "addons_initialization_failed",
|
|
97
|
+
DEPLOYING = "deploying",
|
|
98
|
+
FAILED = "failed",
|
|
99
|
+
DEPLOYED = "deployed",
|
|
100
|
+
INITIALIZING = "initializing",
|
|
101
|
+
INITIALIZING_FAILED = "initialization_failed",
|
|
102
|
+
QUEUEING = "queueing",
|
|
103
|
+
QUEUED = "queued"
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export declare enum AppearanceAlertCard {
|
|
107
|
+
DANGER = "danger",
|
|
108
|
+
WARNING = "warning"
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare enum AppearanceButton {
|
|
112
|
+
LINK = "link",
|
|
113
|
+
DEFAULT = "default",
|
|
114
|
+
PRIMARY = "primary",
|
|
115
|
+
DANGER = "danger",
|
|
116
|
+
SUCCESS = "success",
|
|
117
|
+
WARNING = "warning",
|
|
118
|
+
DARK = "dark"
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export declare enum AppearanceDirection {
|
|
122
|
+
TOP = "top",
|
|
123
|
+
RIGHT = "right",
|
|
124
|
+
BOTTOM = "bottom",
|
|
125
|
+
LEFT = "left"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export declare enum AppearanceSpinner {
|
|
129
|
+
LIGHT = "light",
|
|
130
|
+
DARK = "dark",
|
|
131
|
+
LIGHT_FULL = "light_full",
|
|
132
|
+
DARK_FULL = "darkFull"
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export declare enum AppearanceTag {
|
|
136
|
+
DANGER = "danger",
|
|
137
|
+
SUCCESS = "success",
|
|
138
|
+
WARNING = "warning"
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export declare enum ApplicationTypeSlug {
|
|
142
|
+
COMMERCE = "commerce",
|
|
143
|
+
ZERO = "zero",
|
|
144
|
+
DEMO_AKINON_ZERO = "demo-akinon-zero",
|
|
145
|
+
INSTORE = "instore",
|
|
146
|
+
SALES_CHANNEL = "sales-channel",
|
|
147
|
+
BI_TOOL = "bi-tool",
|
|
148
|
+
OMNITRON_FRONTEND = "omnitron-frontend",
|
|
149
|
+
OMS = "oms",
|
|
150
|
+
EXTENSION = "extension",
|
|
151
|
+
SELLER_CENTER_FRONTEND = "seller_center_fe",
|
|
152
|
+
SELLER_CENTER_BACKEND = "seller_center_be",
|
|
153
|
+
OMNITRON = "omnitron"
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export declare enum AppTypeEnum {
|
|
157
|
+
SERVICE = "service",
|
|
158
|
+
APPLICATION = "application"
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare type AuthContextType = [state: State & {
|
|
162
|
+
token?: string;
|
|
163
|
+
}, dispatch: Dispatch];
|
|
164
|
+
|
|
165
|
+
export declare const AuthProvider: (props: {
|
|
166
|
+
children: React_2.ReactNode;
|
|
167
|
+
}) => JSX_2.Element;
|
|
168
|
+
|
|
169
|
+
export declare const Autocomplete: (props: AutocompleteProps) => JSX.Element;
|
|
170
|
+
|
|
171
|
+
export declare type AutocompleteProps = {
|
|
172
|
+
items: OptionItem[];
|
|
173
|
+
} & InputProps;
|
|
174
|
+
|
|
175
|
+
declare function Bar({ data, options }: BarProps): JSX_2.Element;
|
|
176
|
+
|
|
177
|
+
export declare type BarChartProps = ChartProps<'bar', number[], unknown>;
|
|
178
|
+
|
|
179
|
+
declare type BarProps = {
|
|
180
|
+
options?: BarChartProps['options'];
|
|
181
|
+
data: BarChartProps['data'];
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export declare type BreadcrumbProps = {
|
|
185
|
+
name: string;
|
|
186
|
+
route: string;
|
|
187
|
+
state?: any;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export declare const Button: ({ children, size, isLoading, isDisabled, isBlock, noBorder, noBackground, round, isSolid, isPill, type, focus, className, prefixIcon, appearance, onClick, }: ButtonProps) => JSX.Element;
|
|
191
|
+
|
|
192
|
+
export declare type ButtonProps = {
|
|
193
|
+
children: ReactNode;
|
|
194
|
+
appearance?: AppearanceButton;
|
|
195
|
+
size?: Size;
|
|
196
|
+
type?: 'submit' | 'button';
|
|
197
|
+
className?: string;
|
|
198
|
+
autoFocus?: boolean;
|
|
199
|
+
isBlock?: boolean;
|
|
200
|
+
isLoading?: boolean;
|
|
201
|
+
noBackground?: boolean;
|
|
202
|
+
round?: boolean;
|
|
203
|
+
isDisabled?: boolean;
|
|
204
|
+
focus?: boolean;
|
|
205
|
+
isPill?: boolean;
|
|
206
|
+
noBorder?: boolean;
|
|
207
|
+
isSolid?: boolean;
|
|
208
|
+
prefixIcon?: Icons;
|
|
209
|
+
} & Omit<EventProps<HTMLButtonElement>, 'onKeyPress' | 'onKeyUp' | 'onKeydown' | 'onChange'>;
|
|
210
|
+
|
|
211
|
+
declare type CanProps = {
|
|
212
|
+
permItem: PermItem;
|
|
213
|
+
permType: PermItem | PermItem[];
|
|
214
|
+
children: ReactNode;
|
|
215
|
+
fallback?: JSX_2.Element | null;
|
|
216
|
+
pk?: string;
|
|
217
|
+
byPass?: boolean;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export declare const Card: (props: CardProps) => JSX.Element;
|
|
221
|
+
|
|
222
|
+
export declare type CardProps = {
|
|
223
|
+
children?: ReactNode;
|
|
224
|
+
icon?: Icons;
|
|
225
|
+
bgColor?: string;
|
|
226
|
+
title?: string;
|
|
227
|
+
description?: string | ReactNode;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export declare const changeLanguage: (user: any, t: TFunction) => void;
|
|
231
|
+
|
|
232
|
+
export declare const Chart: {
|
|
233
|
+
Bar: typeof Bar;
|
|
234
|
+
Pie: typeof Pie;
|
|
235
|
+
Line: typeof Line;
|
|
236
|
+
Legends: typeof Legends;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export declare const Checkbox: React_2.ForwardRefExoticComponent<{
|
|
240
|
+
id?: string | undefined;
|
|
241
|
+
label?: string | undefined;
|
|
242
|
+
labelAppearance?: FormFieldAppearance | undefined;
|
|
243
|
+
className?: string | undefined;
|
|
244
|
+
wrapperClassName?: string | undefined;
|
|
245
|
+
checked?: boolean | undefined;
|
|
246
|
+
isInline?: boolean | undefined;
|
|
247
|
+
} & FormElementProps & Pick<EventProps<HTMLInputElement>, "onClick" | "onChange" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
248
|
+
|
|
249
|
+
export declare type CheckboxProps = {
|
|
250
|
+
id?: string;
|
|
251
|
+
label?: string;
|
|
252
|
+
labelAppearance?: FormFieldAppearance;
|
|
253
|
+
className?: string;
|
|
254
|
+
wrapperClassName?: string;
|
|
255
|
+
checked?: boolean;
|
|
256
|
+
isInline?: boolean;
|
|
257
|
+
} & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus' | 'onClick'>;
|
|
258
|
+
|
|
259
|
+
export declare const CLIENT_DATE_AND_TIME_FORMAT = "DD MMMM YYYY HH:mm";
|
|
260
|
+
|
|
261
|
+
export declare const CLIENT_DATE_AND_TIME_SHORT_FORMAT = "DD MMM YY HH:mm";
|
|
262
|
+
|
|
263
|
+
export declare const CLIENT_DATE_COMPARE_FORMAT = "DD-MM-YYYY";
|
|
264
|
+
|
|
265
|
+
export declare const CLIENT_DATE_FILTER_FORMAT = "YYYY-MM-DD";
|
|
266
|
+
|
|
267
|
+
export declare const CLIENT_DATE_SHORT_FORMAT = "DD MMM YYYY";
|
|
268
|
+
|
|
269
|
+
export declare const CLIENT_TIME_FORMAT = "HH:mm";
|
|
270
|
+
|
|
271
|
+
export declare const CLIENT_TIME_FORMAT_PICKER = "H:i";
|
|
272
|
+
|
|
273
|
+
export declare const Column: ({ children, auto, size, sm, md, lg, xl, className, }: ColumnProps) => JSX.Element;
|
|
274
|
+
|
|
275
|
+
export declare type ColumnProps = {
|
|
276
|
+
children: ReactNode;
|
|
277
|
+
auto?: boolean;
|
|
278
|
+
size?: number;
|
|
279
|
+
sm?: number;
|
|
280
|
+
md?: number;
|
|
281
|
+
lg?: number;
|
|
282
|
+
xl?: number;
|
|
283
|
+
className?: string;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export declare type ColumnsType = {
|
|
287
|
+
title: ReactNode;
|
|
288
|
+
dataIndex: string;
|
|
289
|
+
key?: string;
|
|
290
|
+
width?: string | number;
|
|
291
|
+
className?: string;
|
|
292
|
+
tdClassName?: string;
|
|
293
|
+
onClick?: (e: any, item: any, colItem: any, index: any) => void;
|
|
294
|
+
render?: (property: any, row: any) => void;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export declare function Config({ config, scrollProps }: ConfigProps): JSX_2.Element;
|
|
298
|
+
|
|
299
|
+
declare function Config({ config, scrollProps }: ConfigProps): JSX_2.Element;
|
|
300
|
+
|
|
301
|
+
declare type Config_2 = {
|
|
302
|
+
[key: string]: any;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export declare type ConfigProps = {
|
|
306
|
+
config: Config_2;
|
|
307
|
+
scrollProps?: Omit<React_2.ComponentProps<typeof ScrollContainer>, 'children'>;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export declare const Confirm: FC<ConfirmProps & NiceModalHocProps>;
|
|
311
|
+
|
|
312
|
+
export declare type ConfirmProps = {
|
|
313
|
+
id: string;
|
|
314
|
+
onClose?: () => void;
|
|
315
|
+
okBtnCallback: () => void;
|
|
316
|
+
description: ReactNode;
|
|
317
|
+
descriptionClassName?: string;
|
|
318
|
+
isLoading?: boolean;
|
|
319
|
+
appearence?: ThemeAppearance;
|
|
320
|
+
title?: string;
|
|
321
|
+
okBtnText?: string;
|
|
322
|
+
cancelBtnText?: string;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
export declare const ContentHeader: (props: ContentHeaderProps) => JSX_2.Element;
|
|
326
|
+
|
|
327
|
+
export declare type ContentHeaderProps = {
|
|
328
|
+
title?: string | ReactNode | TFunctionResult;
|
|
329
|
+
leftComponent?: ReactNode;
|
|
330
|
+
rightClassName?: string;
|
|
331
|
+
leftClassName?: string;
|
|
332
|
+
titleWrapperClassName?: string;
|
|
333
|
+
titleClassName?: string;
|
|
334
|
+
description?: string;
|
|
335
|
+
component?: ReactNode;
|
|
336
|
+
isActiveBorder?: boolean;
|
|
337
|
+
isLoading?: boolean;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
export declare const ContentLoader: () => JSX.Element;
|
|
341
|
+
|
|
342
|
+
export declare enum CopyTextStatusEnum {
|
|
343
|
+
SUCCESS = "success",
|
|
344
|
+
ERROR = "error"
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export declare function Countdown({ seconds, reset, onEnd }: CountdownProps): JSX_2.Element;
|
|
348
|
+
|
|
349
|
+
export declare type CountdownProps = {
|
|
350
|
+
seconds: number;
|
|
351
|
+
reset?: any;
|
|
352
|
+
onEnd?: () => void;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
export declare const createConnectedService: (projects: Record<string, any>[], isFlex?: boolean) => JSX_2.Element[] | undefined;
|
|
356
|
+
|
|
357
|
+
export declare type CustomItemProps = {
|
|
358
|
+
item: OptionProps;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export declare type CustomLinkProps = {
|
|
362
|
+
to: LinkProps['to'];
|
|
363
|
+
} & AnchorProps;
|
|
364
|
+
|
|
365
|
+
export declare const DateFormats: {
|
|
366
|
+
SERVER_DATE_FORMAT: string;
|
|
367
|
+
SERVER_DATE_AND_TIME_FORMAT: string;
|
|
368
|
+
CLIENT_DATE_SHORT_FORMAT: string;
|
|
369
|
+
CLIENT_DATE_COMPARE_FORMAT: string;
|
|
370
|
+
CLIENT_DATE_AND_TIME_FORMAT: string;
|
|
371
|
+
CLIENT_DATE_AND_TIME_SHORT_FORMAT: string;
|
|
372
|
+
CLIENT_DATE_FILTER_FORMAT: string;
|
|
373
|
+
CLIENT_TIME_FORMAT_PICKER: string;
|
|
374
|
+
CLIENT_TIME_FORMAT: string;
|
|
375
|
+
MIN_DATE_TODAY: Date;
|
|
376
|
+
MIN_DATE_TOMORROW: Date;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
export declare const Datepicker: React_2.ForwardRefExoticComponent<{
|
|
380
|
+
format?: string | undefined;
|
|
381
|
+
mode?: "single" | "multiple" | "range" | "time" | "datetime" | undefined;
|
|
382
|
+
hasShortFormat?: boolean | undefined;
|
|
383
|
+
isFormGroup?: boolean | undefined;
|
|
384
|
+
minDate?: string | Date | undefined;
|
|
385
|
+
maxDate?: string | Date | undefined;
|
|
386
|
+
time?: boolean | undefined;
|
|
387
|
+
value?: any;
|
|
388
|
+
disable?: any;
|
|
389
|
+
enable?: DateLimit<DateOption>[] | undefined;
|
|
390
|
+
onChange?: ((s: any) => void) | undefined;
|
|
391
|
+
onClose?: ((s: any) => void) | undefined;
|
|
392
|
+
} & Omit<InputProps, "onChange" | "value"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
393
|
+
|
|
394
|
+
export declare type DatepickerProps = {
|
|
395
|
+
format?: string;
|
|
396
|
+
mode?: 'single' | 'multiple' | 'range' | 'time' | 'datetime';
|
|
397
|
+
hasShortFormat?: boolean;
|
|
398
|
+
isFormGroup?: boolean;
|
|
399
|
+
minDate?: string | Date;
|
|
400
|
+
maxDate?: string | Date;
|
|
401
|
+
time?: boolean;
|
|
402
|
+
value?: any;
|
|
403
|
+
disable?: any;
|
|
404
|
+
enable?: DateLimit<DateOption>[];
|
|
405
|
+
onChange?: (s: any) => void;
|
|
406
|
+
onClose?: (s: any) => void;
|
|
407
|
+
} & Omit<InputProps, 'onChange' | 'value'>;
|
|
408
|
+
|
|
409
|
+
export declare interface DateRange {
|
|
410
|
+
from: Date | undefined;
|
|
411
|
+
to: Date | undefined;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export { dayjs }
|
|
415
|
+
|
|
416
|
+
declare type Dispatch = React_2.Dispatch<Actiontype>;
|
|
417
|
+
|
|
418
|
+
export declare const Divider: ({ appearance, className, margin, }: DividerProps) => JSX.Element;
|
|
419
|
+
|
|
420
|
+
export declare enum DividerAppearance {
|
|
421
|
+
LIGHT = "light",
|
|
422
|
+
GREY = "grey"
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export declare type DividerProps = {
|
|
426
|
+
appearance?: DividerAppearance;
|
|
427
|
+
className?: string;
|
|
428
|
+
margin?: string;
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
export declare type DropdownItemType = {
|
|
432
|
+
text: string;
|
|
433
|
+
to?: string;
|
|
434
|
+
icon?: Icons;
|
|
435
|
+
className?: string;
|
|
436
|
+
disabled?: boolean;
|
|
437
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
export declare const DropdownList: ({ buttonChild, items, footerItem, className, title, titleClass, event, size, isDisabled, }: DropdownListProps) => JSX.Element;
|
|
441
|
+
|
|
442
|
+
export declare type DropdownListProps = {
|
|
443
|
+
buttonChild: ReactNode;
|
|
444
|
+
footerItem?: ReactNode;
|
|
445
|
+
items: DropdownItemType[];
|
|
446
|
+
className?: string;
|
|
447
|
+
title?: string;
|
|
448
|
+
titleClass?: string;
|
|
449
|
+
event?: 'click' | 'hover';
|
|
450
|
+
size?: 'sm' | 'md' | 'lg';
|
|
451
|
+
isDisabled?: boolean;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
export declare interface EventProps<T = HTMLElement> {
|
|
455
|
+
onClick?: (e: React.MouseEvent<T>) => void;
|
|
456
|
+
onFocus?: (e: React.FocusEvent<T>) => void;
|
|
457
|
+
onBlur?: (e: React.FocusEvent<T>) => void;
|
|
458
|
+
onChange?: (e: React.ChangeEvent<T>) => void;
|
|
459
|
+
onKeyPress?: (e: React.KeyboardEvent<T>) => void;
|
|
460
|
+
onKeyUp?: (e: React.KeyboardEvent<T>) => void;
|
|
461
|
+
onKeyDown?: (e: React.KeyboardEvent<T>) => void;
|
|
462
|
+
onMouseDown?: (e: React.MouseEventHandler<T>) => void;
|
|
463
|
+
onMouseUp?: (e: React.MouseEventHandler<T>) => void;
|
|
464
|
+
onMouseEnter?: (e: React.MouseEventHandler<T>) => void;
|
|
465
|
+
onMouseLeave?: (e: React.MouseEventHandler<T>) => void;
|
|
466
|
+
onInvalid?: (e: React.FormEvent<T>) => void;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export declare const FileUpload: React_2.ForwardRefExoticComponent<{
|
|
470
|
+
type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
|
|
471
|
+
id?: string | undefined;
|
|
472
|
+
info?: string | undefined;
|
|
473
|
+
accept?: "image/png, image/jpeg" | undefined;
|
|
474
|
+
size?: Size | undefined;
|
|
475
|
+
multiple?: boolean | undefined;
|
|
476
|
+
className?: string | undefined;
|
|
477
|
+
appearance?: FormFieldAppearance | undefined;
|
|
478
|
+
height?: "40" | "80" | undefined;
|
|
479
|
+
autoComplete?: string | undefined;
|
|
480
|
+
wrapperClassName?: string | undefined;
|
|
481
|
+
description?: string | undefined;
|
|
482
|
+
value?: any;
|
|
483
|
+
fileName?: string | undefined;
|
|
484
|
+
required?: boolean | undefined;
|
|
485
|
+
onChange?: ((event: any) => void) | undefined;
|
|
486
|
+
} & Omit<FormElementProps, "value"> & Omit<EventProps<HTMLInputElement>, "onChange" | "onMouseDown" | "onMouseUp" | "onMouseEnter" | "onMouseLeave"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
487
|
+
|
|
488
|
+
export declare const FileUploadImagePreview: ({ onClose, src }: ImagePreviewProps) => JSX_2.Element;
|
|
489
|
+
|
|
490
|
+
export declare const FileUploadLengthCard: ({ count, onCardClick }: LengthCardProps) => JSX_2.Element;
|
|
491
|
+
|
|
492
|
+
export declare const FileUploadPreviewModal: ({ imagePaths, onClose, onDelete }: PreviewModalProps) => JSX_2.Element;
|
|
493
|
+
|
|
494
|
+
export declare type FileUploadProps = {
|
|
495
|
+
type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
|
|
496
|
+
id?: string;
|
|
497
|
+
info?: string;
|
|
498
|
+
accept?: 'image/png, image/jpeg';
|
|
499
|
+
size?: Size;
|
|
500
|
+
multiple?: boolean;
|
|
501
|
+
className?: string;
|
|
502
|
+
appearance?: FormFieldAppearance;
|
|
503
|
+
height?: '40' | '80';
|
|
504
|
+
autoComplete?: string;
|
|
505
|
+
wrapperClassName?: string;
|
|
506
|
+
description?: string;
|
|
507
|
+
value?: any;
|
|
508
|
+
fileName?: string;
|
|
509
|
+
required?: boolean;
|
|
510
|
+
onChange?: (event: any) => void;
|
|
511
|
+
} & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onChange'>;
|
|
512
|
+
|
|
513
|
+
export declare interface FormElementProps {
|
|
514
|
+
name: string;
|
|
515
|
+
placeholder?: string;
|
|
516
|
+
label?: ReactNode;
|
|
517
|
+
error?: FieldError;
|
|
518
|
+
readOnly?: boolean;
|
|
519
|
+
isDisabled?: boolean;
|
|
520
|
+
maxLength?: number;
|
|
521
|
+
autoFocus?: boolean;
|
|
522
|
+
value?: string | number;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export declare enum FormFieldAppearance {
|
|
526
|
+
LIGHT = "light",
|
|
527
|
+
DARK = "dark",
|
|
528
|
+
MORE_DARK = "more_dark"
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export declare type FormKeys = FormSubset<formKeys>;
|
|
532
|
+
|
|
533
|
+
declare type formKeys = Record<string, string>;
|
|
534
|
+
|
|
535
|
+
export declare type FormLabels = Labels<formKeys>;
|
|
536
|
+
|
|
537
|
+
export declare type FormSubset<T extends Record<string, any>> = {
|
|
538
|
+
[K in keyof T]?: K extends formKeys ? T[K] : string | boolean | number | OptionItem;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
export declare const friendlyDate: (v: any, mode?: "single" | "multiple" | "range" | "time" | "datetime", shortFormat?: boolean) => any;
|
|
542
|
+
|
|
543
|
+
export declare const getAuth: ({ permType, user, permItem }: GetAuthProps) => boolean;
|
|
544
|
+
|
|
545
|
+
declare type GetAuthProps = {
|
|
546
|
+
permItem: PermItem;
|
|
547
|
+
permType: PermItem | PermItem[];
|
|
548
|
+
pk?: string;
|
|
549
|
+
user: UserEntity | null | undefined;
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
export declare function getCurrentLanguage(): string;
|
|
553
|
+
|
|
554
|
+
export declare function getDatepickerLocale(): "en" | CustomLocale;
|
|
555
|
+
|
|
556
|
+
export declare const Heading: React_2.FC<HeadingProps>;
|
|
557
|
+
|
|
558
|
+
export declare type HeadingProps = {
|
|
559
|
+
level?: number;
|
|
560
|
+
className?: string;
|
|
561
|
+
children: React_2.ReactNode;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export { i18n }
|
|
565
|
+
|
|
566
|
+
export declare const Icon: (props: IconProps) => JSX.Element;
|
|
567
|
+
|
|
568
|
+
export declare type IconProps = {
|
|
569
|
+
id?: string;
|
|
570
|
+
name: IconsId;
|
|
571
|
+
isDisabled?: boolean;
|
|
572
|
+
onClick?: (e: MouseEvent_2<HTMLElement>) => void;
|
|
573
|
+
style?: any;
|
|
574
|
+
className?: string;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
declare enum Icons {
|
|
578
|
+
Applications = "applications",
|
|
579
|
+
Attach = "attach",
|
|
580
|
+
Attachment = "attachment",
|
|
581
|
+
Billing = "billing",
|
|
582
|
+
Box = "box",
|
|
583
|
+
Calendar = "calendar",
|
|
584
|
+
Cart = "cart",
|
|
585
|
+
Certificate = "certificate",
|
|
586
|
+
Check = "check",
|
|
587
|
+
ChevronLeft = "chevron-left",
|
|
588
|
+
ChevronRight = "chevron-right",
|
|
589
|
+
CircleMinus = "circle-minus",
|
|
590
|
+
CirclePlus = "circle-plus",
|
|
591
|
+
Clock = "clock",
|
|
592
|
+
Close = "close",
|
|
593
|
+
Copy = "copy",
|
|
594
|
+
CreditCard = "credit-card",
|
|
595
|
+
Document = "document",
|
|
596
|
+
DomainRegistration = "domain-registration",
|
|
597
|
+
Domains = "domains",
|
|
598
|
+
DownArrow = "down-arrow",
|
|
599
|
+
DownSquare = "down-square",
|
|
600
|
+
Down = "down",
|
|
601
|
+
Download = "download",
|
|
602
|
+
EditOutline = "edit-outline",
|
|
603
|
+
Edit = "edit",
|
|
604
|
+
Email = "email",
|
|
605
|
+
Environment = "environment",
|
|
606
|
+
ErrorFill = "error-fill",
|
|
607
|
+
Error = "error",
|
|
608
|
+
FileTextOutlined = "fileTextOutlined",
|
|
609
|
+
Info = "info",
|
|
610
|
+
Install = "install",
|
|
611
|
+
Link = "link",
|
|
612
|
+
Log = "log",
|
|
613
|
+
MenuClose = "menu-close",
|
|
614
|
+
MenuOpen = "menu-open",
|
|
615
|
+
Monitoring = "monitoring",
|
|
616
|
+
Network = "network",
|
|
617
|
+
NoResults = "no-results",
|
|
618
|
+
NotEdit = "not-edit",
|
|
619
|
+
Path = "path",
|
|
620
|
+
Plus = "plus",
|
|
621
|
+
Preview = "preview",
|
|
622
|
+
Profile = "profile",
|
|
623
|
+
ProjectList = "project-list",
|
|
624
|
+
Projects = "projects",
|
|
625
|
+
Reload = "reload",
|
|
626
|
+
Retry = "retry",
|
|
627
|
+
Search = "search",
|
|
628
|
+
Settings = "settings",
|
|
629
|
+
Support = "support",
|
|
630
|
+
Trash = "trash",
|
|
631
|
+
Users = "users",
|
|
632
|
+
Warning = "warning"
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare type IconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'fileTextOutlined' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
|
|
636
|
+
|
|
637
|
+
export declare type ImagePreviewProps = {
|
|
638
|
+
onClose: () => void;
|
|
639
|
+
src: string;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
export declare function InfiniteScroll({ children, hasMore, height, loadMore, treshold, }: InfiniteScrollProps): JSX.Element;
|
|
643
|
+
|
|
644
|
+
export declare interface InfiniteScrollProps {
|
|
645
|
+
className?: string;
|
|
646
|
+
children?: React.ReactNode;
|
|
647
|
+
height?: number;
|
|
648
|
+
treshold?: number;
|
|
649
|
+
hasMore?: boolean;
|
|
650
|
+
loadMore: () => void;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export declare const InfoBoxList: ({ items, isLoading, className, }: InfoBoxListProps) => JSX.Element;
|
|
654
|
+
|
|
655
|
+
export declare type InfoBoxListItem = {
|
|
656
|
+
label: string;
|
|
657
|
+
value: ReactNode;
|
|
658
|
+
copy?: boolean;
|
|
659
|
+
className?: string;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
export declare type InfoBoxListProps = {
|
|
663
|
+
items: InfoBoxListItem[];
|
|
664
|
+
isLoading?: boolean;
|
|
665
|
+
className?: string;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
export declare const InfoDate: (props: InfoDateProps) => JSX_2.Element;
|
|
669
|
+
|
|
670
|
+
export declare interface InfoDateProps {
|
|
671
|
+
date: string | Date;
|
|
672
|
+
time?: boolean;
|
|
673
|
+
fromNow?: boolean | any;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
export declare const InfoText: ({ text, className }: InfoTextProps) => JSX_2.Element;
|
|
677
|
+
|
|
678
|
+
export declare type InfoTextProps = {
|
|
679
|
+
text: string;
|
|
680
|
+
className?: string;
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
export declare const Input: React_2.ForwardRefExoticComponent<{
|
|
684
|
+
type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
|
|
685
|
+
prefix?: ReactNode;
|
|
686
|
+
suffix?: ReactNode;
|
|
687
|
+
suffixClickable?: boolean | undefined;
|
|
688
|
+
id?: string | undefined;
|
|
689
|
+
size?: Size | undefined;
|
|
690
|
+
className?: string | undefined;
|
|
691
|
+
appearance?: FormFieldAppearance | undefined;
|
|
692
|
+
autoComplete?: string | undefined;
|
|
693
|
+
isFormGroup?: boolean | undefined;
|
|
694
|
+
wrapperClassName?: string | undefined;
|
|
695
|
+
fieldWrapClassName?: string | undefined;
|
|
696
|
+
addonAfter?: string | undefined;
|
|
697
|
+
value?: any;
|
|
698
|
+
onChange?: ((event: any, value: any) => void) | undefined;
|
|
699
|
+
required?: boolean | undefined;
|
|
700
|
+
isRadius?: boolean | undefined;
|
|
701
|
+
textFillColor?: string | undefined;
|
|
702
|
+
} & Omit<FormElementProps, "value"> & Omit<EventProps<HTMLInputElement>, "onMouseDown" | "onMouseUp" | "onMouseEnter" | "onMouseLeave"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
703
|
+
|
|
704
|
+
export declare type InputProps = {
|
|
705
|
+
type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
|
|
706
|
+
prefix?: ReactNode;
|
|
707
|
+
suffix?: ReactNode;
|
|
708
|
+
suffixClickable?: boolean;
|
|
709
|
+
id?: string;
|
|
710
|
+
size?: Size;
|
|
711
|
+
className?: string;
|
|
712
|
+
appearance?: FormFieldAppearance;
|
|
713
|
+
autoComplete?: string;
|
|
714
|
+
isFormGroup?: boolean;
|
|
715
|
+
wrapperClassName?: string;
|
|
716
|
+
fieldWrapClassName?: string;
|
|
717
|
+
addonAfter?: string;
|
|
718
|
+
value?: any;
|
|
719
|
+
onChange?: (event: any, value: any) => void;
|
|
720
|
+
required?: boolean;
|
|
721
|
+
isRadius?: boolean;
|
|
722
|
+
textFillColor?: string;
|
|
723
|
+
} & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave'>;
|
|
724
|
+
|
|
725
|
+
export declare enum isActiveColor {
|
|
726
|
+
inActive = "#4482ff",
|
|
727
|
+
active = "#3f4b5c"
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export declare interface KeyValueParams {
|
|
731
|
+
[key: string]: string | string[] | number | number[] | undefined | Record<string, unknown>;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export declare const Label: (props: LabelProps) => JSX.Element;
|
|
735
|
+
|
|
736
|
+
export declare type LabelProps = {
|
|
737
|
+
children: ReactNode;
|
|
738
|
+
name?: string;
|
|
739
|
+
className?: string;
|
|
740
|
+
appearance?: FormFieldAppearance;
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
export declare type Labels<FormKeys> = {
|
|
744
|
+
[K in keyof FormKeys]?: TFunctionResult;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
export declare type LayoutProps = {
|
|
748
|
+
children: ReactNode;
|
|
749
|
+
breadcrumbs: any[];
|
|
750
|
+
className?: string;
|
|
751
|
+
defaultRoute?: string;
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
declare function Legends({ items, colorMap }: LegendsProps): JSX_2.Element;
|
|
755
|
+
|
|
756
|
+
declare type LegendsProps = {
|
|
757
|
+
items: LegendItem[];
|
|
758
|
+
colorMap: Record<string, string>;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
export declare type LengthCardProps = {
|
|
762
|
+
count: number;
|
|
763
|
+
onCardClick: () => void;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
declare function Line({ data, options, lineRef }: LineProps): JSX_2.Element;
|
|
767
|
+
|
|
768
|
+
export declare type LineChartProps = ChartProps<'line', any[], unknown>;
|
|
769
|
+
|
|
770
|
+
declare type LineProps = {
|
|
771
|
+
options?: LineChartProps['options'];
|
|
772
|
+
data: LineChartProps['data'];
|
|
773
|
+
lineRef?: any;
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
export declare const Loading: ({ className, appearance, layer, wrapperClass, }: LoadingProps) => JSX.Element;
|
|
777
|
+
|
|
778
|
+
export declare type LoadingProps = {
|
|
779
|
+
className?: string;
|
|
780
|
+
wrapperClass?: string;
|
|
781
|
+
appearance?: AppearanceSpinner;
|
|
782
|
+
layer?: boolean;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
export declare const MenuItem: ({ icon, title, to, visibleTooltip, }: MenuItemProps) => JSX.Element;
|
|
786
|
+
|
|
787
|
+
export declare type MenuItemProps = {
|
|
788
|
+
title: string;
|
|
789
|
+
visibleTooltip: boolean;
|
|
790
|
+
to?: string;
|
|
791
|
+
icon?: IconsId;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
export declare const MIN_DATE_TODAY: Date;
|
|
795
|
+
|
|
796
|
+
export declare const MIN_DATE_TOMORROW: Date;
|
|
797
|
+
|
|
798
|
+
export declare const Modal: (props: ModalProps) => JSX.Element;
|
|
799
|
+
|
|
800
|
+
export declare enum ModalAppearanceType {
|
|
801
|
+
DEFAULT = "default",
|
|
802
|
+
SUCCESS = "success"
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export declare type ModalEvents = {
|
|
806
|
+
onClose: () => void;
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
export declare type ModalProps = {
|
|
810
|
+
children: ReactNode;
|
|
811
|
+
visible?: boolean;
|
|
812
|
+
title?: string;
|
|
813
|
+
header?: ReactNode;
|
|
814
|
+
headerClass?: any;
|
|
815
|
+
descriptionClass?: any;
|
|
816
|
+
description?: string;
|
|
817
|
+
className?: string;
|
|
818
|
+
appearance?: ThemeAppearance;
|
|
819
|
+
} & ModalEvents;
|
|
820
|
+
|
|
821
|
+
export declare const NavigatorCard: (props: NavigatorCardProps) => JSX_2.Element;
|
|
822
|
+
|
|
823
|
+
export declare type NavigatorCardProps = {
|
|
824
|
+
id: number;
|
|
825
|
+
to: string;
|
|
826
|
+
title: string;
|
|
827
|
+
content: string | Date;
|
|
828
|
+
icon?: any;
|
|
829
|
+
iconClassName?: string;
|
|
830
|
+
serviceCount: number | string;
|
|
831
|
+
appCount: number | string;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
export { NiceModal }
|
|
835
|
+
|
|
836
|
+
export declare function NoData({ text }: Props): JSX_2.Element;
|
|
837
|
+
|
|
838
|
+
export declare function NoResult({ text }: Props_2): JSX_2.Element;
|
|
839
|
+
|
|
840
|
+
declare const Notification_2: (props: NotificationProps) => void;
|
|
841
|
+
export { Notification_2 as Notification }
|
|
842
|
+
|
|
843
|
+
export declare enum NotificationAppearanceType {
|
|
844
|
+
INFO = "info",
|
|
845
|
+
SUCCESS = "success",
|
|
846
|
+
ERROR = "error",
|
|
847
|
+
WARNING = "warning",
|
|
848
|
+
LOADING = "loading"
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
export declare type NotificationProps = {
|
|
852
|
+
message: string | ReactNode;
|
|
853
|
+
type: NotificationAppearanceType;
|
|
854
|
+
closeTime?: number;
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
export declare interface OptionItem {
|
|
858
|
+
value: string | number;
|
|
859
|
+
label: string;
|
|
860
|
+
id?: string;
|
|
861
|
+
rest?: any;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export declare interface OptionProps extends OptionItem {
|
|
865
|
+
name?: string;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export declare const Pager: (props: PagerProps) => JSX.Element;
|
|
869
|
+
|
|
870
|
+
export declare type PagerProps = {
|
|
871
|
+
totalCount: number;
|
|
872
|
+
currentPage?: number;
|
|
873
|
+
pageSize?: number;
|
|
874
|
+
reset?: any;
|
|
875
|
+
showInput?: boolean;
|
|
876
|
+
className?: string;
|
|
877
|
+
onChange?: (pageIndex: number) => void;
|
|
878
|
+
appearance?: ThemeAppearance;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
export declare const PageWrapper: (props: LayoutProps) => JSX.Element;
|
|
882
|
+
|
|
883
|
+
export declare const Panel: ({ title, children, description, className, type, appearance, headerDescription, headerRightChild, headerClass, hasBorder, bodyClass, }: PanelProps) => JSX.Element;
|
|
884
|
+
|
|
885
|
+
export declare type PanelProps = {
|
|
886
|
+
children: ReactNode;
|
|
887
|
+
title?: ReactNode;
|
|
888
|
+
description?: string;
|
|
889
|
+
appearance?: ThemeAppearance;
|
|
890
|
+
className?: string;
|
|
891
|
+
type?: 'line' | 'box';
|
|
892
|
+
headerDescription?: string;
|
|
893
|
+
headerRightChild?: ReactNode;
|
|
894
|
+
headerClass?: string;
|
|
895
|
+
hasBorder?: boolean;
|
|
896
|
+
bodyClass?: string;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
export declare type PayloadWithFormKeys<T> = T & {
|
|
900
|
+
[K in keyof formKeys]?: string;
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
export declare const PermaLink: React_2.FC<PermalinkProps>;
|
|
904
|
+
|
|
905
|
+
export declare type PermalinkProps = {
|
|
906
|
+
to: string;
|
|
907
|
+
params?: Record<string, any>;
|
|
908
|
+
activeClassName?: string;
|
|
909
|
+
className?: string;
|
|
910
|
+
style?: any;
|
|
911
|
+
onClick?: () => void;
|
|
912
|
+
isDisabled?: boolean;
|
|
913
|
+
children?: ReactNode;
|
|
914
|
+
state?: any;
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
export declare const PermFallBack: () => JSX_2.Element;
|
|
918
|
+
|
|
919
|
+
export declare function Permission(props: Props_3): JSX_2.Element;
|
|
920
|
+
|
|
921
|
+
declare type PermItem = {
|
|
922
|
+
[key: string]: any;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
declare type PermItem_2 = {
|
|
926
|
+
[key: string]: any;
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
declare function Pie({ data, options }: PieProps): JSX_2.Element;
|
|
930
|
+
|
|
931
|
+
export declare type PieChartProps = ChartProps<'pie', number[], unknown>;
|
|
932
|
+
|
|
933
|
+
declare type PieProps = {
|
|
934
|
+
options?: PieChartProps['options'];
|
|
935
|
+
data: PieChartProps['data'];
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
export declare enum PodStatusEnum {
|
|
939
|
+
TERMINATED = "Terminated",
|
|
940
|
+
TERMINATING = "Terminating",
|
|
941
|
+
FAILED = "Failed",
|
|
942
|
+
PENDING = "Pending",
|
|
943
|
+
RUNNING = "Running",
|
|
944
|
+
SUCCEEDED = "Succeeded",
|
|
945
|
+
EVICTED = "Evicted"
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export declare type PreviewModalProps = {
|
|
949
|
+
imagePaths: string[];
|
|
950
|
+
onClose: () => void;
|
|
951
|
+
onPreview?: () => void;
|
|
952
|
+
onDelete: (imagePaths: string[], selectedImage: string) => void;
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
declare type Props = Partial<SelectRenderer<OptionProps>> & {
|
|
956
|
+
text?: string;
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
declare type Props_2 = Partial<SelectRenderer<OptionProps>> & {
|
|
960
|
+
text?: string;
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
declare type Props_3 = {
|
|
964
|
+
id: string;
|
|
965
|
+
tooltipText?: string;
|
|
966
|
+
} & CanProps;
|
|
967
|
+
|
|
968
|
+
export declare function Provider({ children }: Provider_2): JSX_2.Element;
|
|
969
|
+
|
|
970
|
+
declare type Provider_2 = {
|
|
971
|
+
children: React.ReactNode;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
export declare const Radio: ({ name, label, isDisabled, checked, isInline, onChange: onChangeProp, setContext, suffixBtn, ...restProps }: RadioProps) => JSX.Element;
|
|
975
|
+
|
|
976
|
+
export declare const RadioList: ({ name, items, value, label, isInline, setContext, error, className, ...restProps }: RadioListProps) => JSX.Element;
|
|
977
|
+
|
|
978
|
+
export declare type RadioListProps = {
|
|
979
|
+
name: string;
|
|
980
|
+
label?: string;
|
|
981
|
+
className?: string;
|
|
982
|
+
items: RadioOptionItem[];
|
|
983
|
+
value?: string | number;
|
|
984
|
+
isInline?: boolean;
|
|
985
|
+
error?: FieldError;
|
|
986
|
+
setContext?: (v: OptionItem) => void;
|
|
987
|
+
} & Pick<EventProps<HTMLInputElement>, 'onChange'>;
|
|
988
|
+
|
|
989
|
+
export declare interface RadioOptionItem extends OptionItem {
|
|
990
|
+
name?: string;
|
|
991
|
+
isDisabled?: boolean;
|
|
992
|
+
suffixBtn?: ReactNode;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
export declare type RadioProps = {
|
|
996
|
+
id?: string;
|
|
997
|
+
className?: string;
|
|
998
|
+
checked?: boolean;
|
|
999
|
+
isInline?: boolean;
|
|
1000
|
+
suffixBtn?: ReactNode;
|
|
1001
|
+
setContext?: (v: OptionItem) => void;
|
|
1002
|
+
} & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus'>;
|
|
1003
|
+
|
|
1004
|
+
export declare enum ReportStatus {
|
|
1005
|
+
PENDING = "pending",
|
|
1006
|
+
FAILED = "failed",
|
|
1007
|
+
IN_PROGRESS = "analyzing",
|
|
1008
|
+
SUCCESS = "completed"
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export declare const ResultError: ({ title, text, image, buttonText, onClick, }: ResultErrorProps) => JSX.Element;
|
|
1012
|
+
|
|
1013
|
+
export declare type ResultErrorProps = {
|
|
1014
|
+
title: string;
|
|
1015
|
+
text: string;
|
|
1016
|
+
image: string;
|
|
1017
|
+
buttonText?: string;
|
|
1018
|
+
onClick?: () => void;
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
export declare const Row: ({ children, className }: RowProps) => JSX.Element;
|
|
1022
|
+
|
|
1023
|
+
export declare type RowProps = {
|
|
1024
|
+
children: ReactNode;
|
|
1025
|
+
className?: string;
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
export declare const ScrollContainer: ({ children, maxHeight, height, className, }: ScrollContainerProps) => JSX.Element;
|
|
1029
|
+
|
|
1030
|
+
export declare type ScrollContainerProps = {
|
|
1031
|
+
children: ReactNode;
|
|
1032
|
+
maxHeight?: number;
|
|
1033
|
+
height?: string | number;
|
|
1034
|
+
className?: string;
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
export declare const Select: {
|
|
1038
|
+
(props: SelectProps): JSX.Element;
|
|
1039
|
+
displayName: string;
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
export declare type SelectProps = {
|
|
1043
|
+
id?: string;
|
|
1044
|
+
items?: OptionProps[];
|
|
1045
|
+
itemPrefix?: string;
|
|
1046
|
+
itemSuffix?: string | number;
|
|
1047
|
+
infiniteScrollProps?: InfiniteScrollProps;
|
|
1048
|
+
size?: Size;
|
|
1049
|
+
searchable?: boolean;
|
|
1050
|
+
clearable?: boolean;
|
|
1051
|
+
className?: string;
|
|
1052
|
+
style?: React_2.CSSProperties;
|
|
1053
|
+
wrapperClassName?: string;
|
|
1054
|
+
labelField?: string;
|
|
1055
|
+
valueField?: string;
|
|
1056
|
+
showPlaceholder?: boolean;
|
|
1057
|
+
backspaceDelete?: boolean;
|
|
1058
|
+
customOption?: (props: CustomItemProps) => JSX.Element;
|
|
1059
|
+
onChange?: (value: any, values?: any) => void;
|
|
1060
|
+
onSearch?: (value: string) => void;
|
|
1061
|
+
isAllSelected?: boolean;
|
|
1062
|
+
appearance?: FormFieldAppearance;
|
|
1063
|
+
noDataRenderer?: (props: any) => any;
|
|
1064
|
+
onAddItem?: ({ item, methods, props, state, itemIndex, }: SelectItemRenderer<OptionProps>) => void;
|
|
1065
|
+
onRemoveItem?: (item: OptionProps) => void;
|
|
1066
|
+
onDropdownClose?: () => void;
|
|
1067
|
+
value?: any;
|
|
1068
|
+
required?: boolean;
|
|
1069
|
+
isMulti?: boolean;
|
|
1070
|
+
isRadius?: boolean;
|
|
1071
|
+
} & Omit<FormElementProps, 'value'>;
|
|
1072
|
+
|
|
1073
|
+
export declare const SERVER_DATE_AND_TIME_FORMAT = "YYYY-MM-DD HH:mm";
|
|
1074
|
+
|
|
1075
|
+
export declare const SERVER_DATE_FORMAT = "YYYY-MM-DD";
|
|
1076
|
+
|
|
1077
|
+
export declare const Sidebar: ({ collapsed, items, className, isActiveSubMenu, }: SidebarProps) => JSX.Element;
|
|
1078
|
+
|
|
1079
|
+
declare type SidebarChildItemType = {
|
|
1080
|
+
title: string;
|
|
1081
|
+
to?: string;
|
|
1082
|
+
permItem?: PermItem_2;
|
|
1083
|
+
permType?: PermItem_2 | PermItem_2[];
|
|
1084
|
+
onClick?: () => void;
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
export declare type SidebarItemType = {
|
|
1088
|
+
icon?: Icons;
|
|
1089
|
+
children?: SidebarChildItemType[];
|
|
1090
|
+
} & SidebarChildItemType;
|
|
1091
|
+
|
|
1092
|
+
export declare type SidebarProps = {
|
|
1093
|
+
collapsed?: boolean;
|
|
1094
|
+
className?: string;
|
|
1095
|
+
items: SidebarItemType[];
|
|
1096
|
+
isActiveSubMenu?: string[];
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
export declare enum Size {
|
|
1100
|
+
XS = "xsmall",
|
|
1101
|
+
SM = "small",
|
|
1102
|
+
MD = "normal",
|
|
1103
|
+
LG = "large",
|
|
1104
|
+
XL = "xlarge"
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
declare interface State {
|
|
1108
|
+
user: UserEntity_2 | null;
|
|
1109
|
+
status: Status;
|
|
1110
|
+
error: AxiosError | null;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
declare type Status = 'idle' | 'pending' | 'success' | 'rejected';
|
|
1114
|
+
|
|
1115
|
+
export declare enum StatusEnum {
|
|
1116
|
+
addons_initializing = "initializing",
|
|
1117
|
+
addons_initialization_failed = "failed",
|
|
1118
|
+
deploying = "warning",
|
|
1119
|
+
failed = "failed",
|
|
1120
|
+
deployed = "success",
|
|
1121
|
+
completed = "success",
|
|
1122
|
+
initializing = "initializing",
|
|
1123
|
+
initialization_failed = "failed",
|
|
1124
|
+
queueing = "warning",
|
|
1125
|
+
queued = "queued",
|
|
1126
|
+
pending = "pending"
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export declare enum StatusType {
|
|
1130
|
+
IDLE = "idle",
|
|
1131
|
+
PENDING = "pending",
|
|
1132
|
+
FULFILLED = "fulfilled",
|
|
1133
|
+
REJECTED = "rejected"
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
export declare const StatusTypography: (props: StatusTypographyProps) => JSX_2.Element;
|
|
1137
|
+
|
|
1138
|
+
export declare type StatusTypographyProps = {
|
|
1139
|
+
text: any;
|
|
1140
|
+
type?: AppAndServicesStatusApperenceType;
|
|
1141
|
+
extra?: string;
|
|
1142
|
+
spin?: boolean;
|
|
1143
|
+
condition?: boolean;
|
|
1144
|
+
spinnerLocation?: 'front' | 'back';
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
export declare const Stepper: ({ items, selected, selectAll, renderAnchor, onChange, wrapperClass, }: StepperProps) => JSX.Element;
|
|
1148
|
+
|
|
1149
|
+
export declare type StepperItemProps = {
|
|
1150
|
+
title: string | any;
|
|
1151
|
+
customIndexItem?: any;
|
|
1152
|
+
activeClass?: any;
|
|
1153
|
+
completeClass?: any;
|
|
1154
|
+
to?: LinkProps['to'];
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
export declare type StepperProps = {
|
|
1158
|
+
items: StepperItemProps[];
|
|
1159
|
+
selected?: number;
|
|
1160
|
+
selectAll?: boolean;
|
|
1161
|
+
renderAnchor?: boolean;
|
|
1162
|
+
className?: string;
|
|
1163
|
+
wrapperClass?: string;
|
|
1164
|
+
onChange?: (index: number, event?: any) => void;
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<{
|
|
1168
|
+
name: string;
|
|
1169
|
+
label?: string | undefined;
|
|
1170
|
+
checked?: boolean | undefined;
|
|
1171
|
+
className?: string | undefined;
|
|
1172
|
+
value?: any;
|
|
1173
|
+
onChange?: ((value: boolean) => void) | undefined;
|
|
1174
|
+
onLabelClick?: ((value: boolean) => void) | undefined;
|
|
1175
|
+
checkedChildren?: string | undefined;
|
|
1176
|
+
unCheckedChildren?: string | undefined;
|
|
1177
|
+
} & Omit<FormElementProps, "value"> & Pick<EventProps<HTMLInputElement>, "onClick" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
1178
|
+
|
|
1179
|
+
export declare type SwitchProps = {
|
|
1180
|
+
name: string;
|
|
1181
|
+
label?: string;
|
|
1182
|
+
checked?: boolean;
|
|
1183
|
+
className?: string;
|
|
1184
|
+
value?: any;
|
|
1185
|
+
onChange?: (value: boolean) => void;
|
|
1186
|
+
onLabelClick?: (value: boolean) => void;
|
|
1187
|
+
checkedChildren?: string;
|
|
1188
|
+
unCheckedChildren?: string;
|
|
1189
|
+
} & Omit<FormElementProps, 'value'> & Pick<EventProps<HTMLInputElement>, 'onFocus' | 'onClick'>;
|
|
1190
|
+
|
|
1191
|
+
export declare const t: TFunction;
|
|
1192
|
+
|
|
1193
|
+
export declare function Tab({ items, selected, onChange }: TabProps): JSX_2.Element;
|
|
1194
|
+
|
|
1195
|
+
export declare type TabItemProps = {
|
|
1196
|
+
title: string;
|
|
1197
|
+
component: ReactNode | string;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
export declare const Table: (props: TableProps) => JSX.Element;
|
|
1201
|
+
|
|
1202
|
+
export declare const TableHeader: ({ totalCount, currentPage, title, actionOnChange, className, pagerOnChange, pageSizeOnChange, pagerVisible, pageSizeVisible, pageSize, actionItems, pageSizeItems, headerLeftItem, customItem, appearance, showItemsText, }: TableHeaderProps) => JSX_2.Element;
|
|
1203
|
+
|
|
1204
|
+
export declare type TableHeaderProps = {
|
|
1205
|
+
totalCount?: number;
|
|
1206
|
+
currentPage?: number;
|
|
1207
|
+
title?: string;
|
|
1208
|
+
pagerVisible?: boolean;
|
|
1209
|
+
pageSizeVisible?: boolean;
|
|
1210
|
+
pageSize?: number;
|
|
1211
|
+
actionItems?: OptionProps[];
|
|
1212
|
+
pageSizeItems?: OptionProps[];
|
|
1213
|
+
headerLeftItem?: ReactNode;
|
|
1214
|
+
customItem?: React.ReactNode;
|
|
1215
|
+
className?: string;
|
|
1216
|
+
appearance?: ThemeAppearance;
|
|
1217
|
+
actionOnChange?: (value: any) => void;
|
|
1218
|
+
pagerOnChange?: (pageIndex: number) => void;
|
|
1219
|
+
pageSizeOnChange?: (pageSize: number) => void;
|
|
1220
|
+
showItemsText?: string;
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1223
|
+
export declare type TableProps = {
|
|
1224
|
+
columns: ColumnsType[];
|
|
1225
|
+
dataSource: any[];
|
|
1226
|
+
disabledItems?: any[];
|
|
1227
|
+
isLoading?: boolean;
|
|
1228
|
+
className?: string;
|
|
1229
|
+
wrapperClass?: string;
|
|
1230
|
+
headerVisible?: boolean;
|
|
1231
|
+
headerLeftItem?: ReactNode;
|
|
1232
|
+
customFooterItem?: ReactNode;
|
|
1233
|
+
selectedItems?: any[];
|
|
1234
|
+
footerAction?: boolean;
|
|
1235
|
+
rowSelection?: boolean;
|
|
1236
|
+
rowSelectionChange?: (value: any) => void;
|
|
1237
|
+
columnRenderer?: (columns: ColumnsType[], item: any) => JSX.Element[];
|
|
1238
|
+
fixedHeader?: boolean;
|
|
1239
|
+
customHeader?: ReactNode;
|
|
1240
|
+
scrollClass?: string;
|
|
1241
|
+
} & TableHeaderProps;
|
|
1242
|
+
|
|
1243
|
+
export declare type TabProps = {
|
|
1244
|
+
items: TabItemProps[];
|
|
1245
|
+
onChange: (index: number) => void;
|
|
1246
|
+
selected: number;
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
export declare const Textarea: React_2.ForwardRefExoticComponent<{
|
|
1250
|
+
id?: string | undefined;
|
|
1251
|
+
className?: string | undefined;
|
|
1252
|
+
wrapperClassName?: string | undefined;
|
|
1253
|
+
rows?: number | undefined;
|
|
1254
|
+
maxLength?: number | undefined;
|
|
1255
|
+
value?: any;
|
|
1256
|
+
size?: Size | undefined;
|
|
1257
|
+
readOnly?: boolean | undefined;
|
|
1258
|
+
appearance?: FormFieldAppearance | undefined;
|
|
1259
|
+
onChange?: ((value: any) => void) | undefined;
|
|
1260
|
+
required?: boolean | undefined;
|
|
1261
|
+
} & Omit<FormElementProps, "value"> & Omit<EventProps<HTMLTextAreaElement>, "onMouseDown" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "readOnly"> & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
1262
|
+
|
|
1263
|
+
export declare type TextareaProps = {
|
|
1264
|
+
id?: string;
|
|
1265
|
+
className?: string;
|
|
1266
|
+
wrapperClassName?: string;
|
|
1267
|
+
rows?: number;
|
|
1268
|
+
maxLength?: number;
|
|
1269
|
+
value?: any;
|
|
1270
|
+
size?: Size;
|
|
1271
|
+
readOnly?: boolean;
|
|
1272
|
+
appearance?: FormFieldAppearance;
|
|
1273
|
+
onChange?: (value: any) => void;
|
|
1274
|
+
required?: boolean;
|
|
1275
|
+
} & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLTextAreaElement>, 'readOnly' | 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave'>;
|
|
1276
|
+
|
|
1277
|
+
export declare enum ThemeAppearance {
|
|
1278
|
+
LIGHT = "light",
|
|
1279
|
+
DARK = "dark",
|
|
1280
|
+
DARK_BLUE = "dark_blue"
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export declare const Tooltip: (props: TooltipProps) => JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
export declare type TooltipProps = {
|
|
1286
|
+
id: string;
|
|
1287
|
+
children: ReactNode;
|
|
1288
|
+
tooltipContent: ReactNode;
|
|
1289
|
+
contentClass?: string;
|
|
1290
|
+
childClass?: string;
|
|
1291
|
+
className?: string;
|
|
1292
|
+
direction?: AppearanceDirection;
|
|
1293
|
+
ellipsis?: boolean;
|
|
1294
|
+
tooltipVisible?: boolean;
|
|
1295
|
+
copyText?: string;
|
|
1296
|
+
onClick?: () => void;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
export declare type ToOption<T, K extends keyof T, U extends keyof T> = {
|
|
1300
|
+
label: K extends keyof T ? T[K] : never;
|
|
1301
|
+
value: U extends keyof T ? T[U] : never;
|
|
1302
|
+
rest: T;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
export declare const TypographyText: (props: TypographyTextProps) => JSX.Element;
|
|
1306
|
+
|
|
1307
|
+
export declare type TypographyTextProps = {
|
|
1308
|
+
children: string;
|
|
1309
|
+
id?: string;
|
|
1310
|
+
copyable?: boolean;
|
|
1311
|
+
notificationProps?: {
|
|
1312
|
+
type: NotificationAppearanceType;
|
|
1313
|
+
message: string;
|
|
1314
|
+
closeTime: number;
|
|
1315
|
+
} | null;
|
|
1316
|
+
className?: string;
|
|
1317
|
+
ellipsis?: boolean;
|
|
1318
|
+
href?: string;
|
|
1319
|
+
appearance?: CopyTextStatusEnum;
|
|
1320
|
+
tooltipContent?: ReactNode;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
export declare const useAuth: () => AuthContextType;
|
|
1324
|
+
|
|
1325
|
+
export declare function useDisclosure(isOpenInit?: boolean): {
|
|
1326
|
+
isOpen: boolean;
|
|
1327
|
+
setIsOpen: Dispatch_2<SetStateAction<boolean>>;
|
|
1328
|
+
onOpen: () => void;
|
|
1329
|
+
onClose: () => void;
|
|
1330
|
+
onToggle: () => void;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
declare type UseNiceModal = [() => void, () => void, string];
|
|
1334
|
+
|
|
1335
|
+
export declare function useNiceModal(modalId?: string): UseNiceModal;
|
|
1336
|
+
|
|
1337
|
+
declare type UserEntity = {
|
|
1338
|
+
[key: string]: any;
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
declare type UserEntity_2 = {
|
|
1342
|
+
[key: string]: any;
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
export declare const ValidationError: ({ message }: ValidationErrorProps) => JSX.Element;
|
|
1346
|
+
|
|
1347
|
+
export declare type ValidationErrorProps = {
|
|
1348
|
+
message: string;
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cagatayfdn/flora-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./dist/index.
|
|
6
|
-
"module": "./dist/index.
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
}
|
|
20
|
-
"./dist/style.css": "./dist/style.css"
|
|
16
|
+
"types": "./dist/index.d.mts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.js"
|
|
19
|
+
}
|
|
21
20
|
},
|
|
22
21
|
"scripts": {
|
|
23
22
|
"dev": "vite",
|
|
@@ -98,8 +97,6 @@
|
|
|
98
97
|
"storybook": "^8.0.4",
|
|
99
98
|
"ts-jest": "^29.1.2",
|
|
100
99
|
"typescript": "^5.4.3",
|
|
101
|
-
"vite": "^5.2.0"
|
|
102
|
-
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
103
|
-
"vite-tsconfig-paths": "^5.0.1"
|
|
100
|
+
"vite": "^5.2.0"
|
|
104
101
|
}
|
|
105
102
|
}
|