@reportportal/ui-kit 0.0.1-alpha.92 → 0.0.1-alpha.94

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.
Files changed (39) hide show
  1. package/dist/attachedFile.js +9 -0
  2. package/dist/common/types.d.ts +1 -0
  3. package/dist/common/utils/getFileExtension.d.ts +1 -0
  4. package/dist/common/utils/index.d.ts +1 -0
  5. package/dist/components/attachedFile/attachedFile.d.ts +14 -0
  6. package/dist/components/attachedFile/index.d.ts +2 -0
  7. package/dist/components/fileDropArea/attachedFilesList/attachedFilesList.d.ts +20 -0
  8. package/dist/components/fileDropArea/attachedFilesList/index.d.ts +5 -0
  9. package/dist/components/fileDropArea/browseButton/browseButton.d.ts +9 -0
  10. package/dist/components/fileDropArea/browseButton/index.d.ts +4 -0
  11. package/dist/components/fileDropArea/constants.d.ts +2 -0
  12. package/dist/components/fileDropArea/dropZone/dropZone.d.ts +10 -0
  13. package/dist/components/fileDropArea/dropZone/index.d.ts +4 -0
  14. package/dist/components/fileDropArea/errorMessage/errorMessage.d.ts +5 -0
  15. package/dist/components/fileDropArea/errorMessage/index.d.ts +4 -0
  16. package/dist/components/fileDropArea/fileDropArea.d.ts +19 -0
  17. package/dist/components/fileDropArea/fileDropAreaProvider/fileDropAreaProvider.d.ts +17 -0
  18. package/dist/components/fileDropArea/fileDropAreaProvider/index.d.ts +1 -0
  19. package/dist/components/fileDropArea/fileDropAreaProvider/useFileDropAreaContext.d.ts +3 -0
  20. package/dist/components/fileDropArea/hooks/index.d.ts +1 -0
  21. package/dist/components/fileDropArea/hooks/useFileDropArea.d.ts +13 -0
  22. package/dist/components/fileDropArea/hooks/useFileProcessing.d.ts +13 -0
  23. package/dist/components/fileDropArea/hooks/useOverlayDropArea.d.ts +22 -0
  24. package/dist/components/fileDropArea/index.d.ts +2 -0
  25. package/dist/components/fileDropArea/types.d.ts +57 -0
  26. package/dist/components/fileDropArea/utils/getValidationErrorMessage.d.ts +3 -0
  27. package/dist/components/fileDropArea/utils/index.d.ts +2 -0
  28. package/dist/components/fileDropArea/utils/validateFile.d.ts +3 -0
  29. package/dist/components/icons/index.d.ts +11 -5
  30. package/dist/components/index.d.ts +15 -13
  31. package/dist/{datePicker-ff670fde.js → datePicker-0aca795c.js} +20 -20
  32. package/dist/datePicker.js +2 -2
  33. package/dist/fileDropArea.js +353 -0
  34. package/dist/icons.js +52 -45
  35. package/dist/index-b073dd45.js +99 -0
  36. package/dist/index.js +122 -110
  37. package/dist/style.css +1 -1
  38. package/dist/xls-995781cc.js +11 -0
  39. package/package.json +4 -2
@@ -0,0 +1,9 @@
1
+ import { A as a } from "./index-b073dd45.js";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "./bind-06a7ff84.js";
5
+ import "./close-4d480ef7.js";
6
+ import "./xls-995781cc.js";
7
+ export {
8
+ a as AttachedFile
9
+ };
@@ -1,3 +1,4 @@
1
1
  export type ShapeWithClassName<P = Record<string, unknown>> = P & {
2
2
  className?: string;
3
3
  };
4
+ export type VoidFn = () => void;
@@ -0,0 +1 @@
1
+ export declare const getFileExtension: (fileName: string) => string;
@@ -0,0 +1 @@
1
+ export { getFileExtension } from './getFileExtension';
@@ -0,0 +1,14 @@
1
+ import { VoidFn } from '../../common/types';
2
+
3
+ export interface AttachedFileProps {
4
+ fileName: string;
5
+ size: number;
6
+ isFullWidth?: boolean;
7
+ uploadingProgress?: number;
8
+ isUploading?: boolean;
9
+ isUploadFailed?: boolean;
10
+ uploadFailedMessage?: string;
11
+ onRemove?: VoidFn;
12
+ onDownload?: VoidFn;
13
+ }
14
+ export declare const AttachedFile: ({ fileName, size, uploadingProgress, isUploadFailed, uploadFailedMessage, isUploading, isFullWidth, onDownload, onRemove, }: AttachedFileProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { AttachedFile } from './attachedFile';
2
+ export type { AttachedFileProps } from './attachedFile';
@@ -0,0 +1,20 @@
1
+ import { FileValidationError } from '../types';
2
+
3
+ export interface AttachmentFile {
4
+ id: string;
5
+ fileName: string;
6
+ file: File;
7
+ size: number;
8
+ uploadingProgress?: number;
9
+ isUploadFailed?: boolean;
10
+ isUploading?: boolean;
11
+ validationErrors?: FileValidationError[];
12
+ }
13
+ interface AttachedFilesListProps {
14
+ files: AttachmentFile[];
15
+ className?: string;
16
+ onRemoveFile: (fileId: string) => void;
17
+ onDownloadFile?: (file: AttachmentFile) => void;
18
+ }
19
+ export declare const AttachedFilesList: ({ files, className, onRemoveFile, onDownloadFile, }: AttachedFilesListProps) => import("react/jsx-runtime").JSX.Element | null;
20
+ export {};
@@ -0,0 +1,5 @@
1
+ import { AttachedFilesList } from './attachedFilesList';
2
+
3
+ export { AttachedFilesList };
4
+ export type { AttachmentFile } from './attachedFilesList';
5
+ export default AttachedFilesList;
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ButtonProps } from '../../button';
3
+
4
+ type BrowseButtonProps = Omit<ButtonProps, 'onClick' | 'disabled' | 'children'> & {
5
+ className?: string;
6
+ variant?: ButtonProps['variant'];
7
+ };
8
+ export declare const BrowseButton: ({ children, className, variant, ...buttonProps }: PropsWithChildren<BrowseButtonProps>) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { BrowseButton } from './browseButton';
2
+
3
+ export { BrowseButton };
4
+ export default BrowseButton;
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_MAX_FILE_SIZE_MB = 128;
2
+ export declare const DEFAULT_MAX_FILE_SIZE: number;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ interface DropZoneProps {
4
+ icon: ReactNode;
5
+ description?: ReactNode;
6
+ fileSizeMessage?: string;
7
+ className?: string;
8
+ }
9
+ export declare const DropZone: ({ icon, description, fileSizeMessage, className }: DropZoneProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { DropZone } from './dropZone';
2
+
3
+ export { DropZone };
4
+ export default DropZone;
@@ -0,0 +1,5 @@
1
+ interface ErrorMessageProps {
2
+ className?: string;
3
+ }
4
+ export declare const ErrorMessage: ({ className }: ErrorMessageProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ErrorMessage } from './errorMessage';
2
+
3
+ export { ErrorMessage };
4
+ export default ErrorMessage;
@@ -0,0 +1,19 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { BrowseButton } from './browseButton';
3
+ import { ErrorMessage } from './errorMessage';
4
+ import { DropZone } from './dropZone';
5
+ import { AttachedFilesList } from './attachedFilesList';
6
+ import { FileDropAreaBaseConfig, FileWithValidation } from './types';
7
+
8
+ interface FileDropAreaProps extends FileDropAreaBaseConfig {
9
+ variant?: 'default' | 'overlay';
10
+ onFilesAdded: (files: FileWithValidation[]) => void;
11
+ }
12
+ interface FileDropAreaComposite extends FC<PropsWithChildren<FileDropAreaProps>> {
13
+ DropZone: typeof DropZone;
14
+ BrowseButton: typeof BrowseButton;
15
+ Error: typeof ErrorMessage;
16
+ AttachedFilesList: typeof AttachedFilesList;
17
+ }
18
+ export declare const FileDropArea: FileDropAreaComposite;
19
+ export {};
@@ -0,0 +1,17 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { VoidFn } from '../../../common/types';
3
+ import { useFileDropArea } from '../hooks/useFileDropArea';
4
+ import { useOverlayDropArea } from '../hooks/useOverlayDropArea';
5
+ import { FileValidationMessages } from '../types';
6
+
7
+ export interface FileDropAreaProviderProps extends ReturnType<typeof useFileDropArea> {
8
+ messages: FileValidationMessages;
9
+ isMultipleFiles?: boolean;
10
+ isDisabled?: boolean;
11
+ variant?: 'default' | 'overlay';
12
+ overlayProps?: ReturnType<typeof useOverlayDropArea>;
13
+ registerOpenFunction: (openFunc: VoidFn) => void;
14
+ openFileDialog: VoidFn;
15
+ }
16
+ export declare const FileDropAreaContext: import('react').Context<FileDropAreaProviderProps | null>;
17
+ export declare const FileDropAreaProvider: ({ children, ...props }: PropsWithChildren<Omit<FileDropAreaProviderProps, 'registerOpenFunction' | 'openFileDialog'>>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { FileDropAreaProvider } from './fileDropAreaProvider';
@@ -0,0 +1,3 @@
1
+ import { FileDropAreaProviderProps } from './fileDropAreaProvider';
2
+
3
+ export declare const useFileDropAreaContext: () => FileDropAreaProviderProps;
@@ -0,0 +1 @@
1
+ export { useFileDropArea } from './useFileDropArea';
@@ -0,0 +1,13 @@
1
+ import { FileDropAreaBaseConfig, FileWithValidation } from '../types';
2
+
3
+ interface UseFileDropAreaOptions extends FileDropAreaBaseConfig {
4
+ onFilesAdded: (files: FileWithValidation[]) => void;
5
+ }
6
+ export declare const useFileDropArea: ({ maxFileSize, acceptFileMimeTypes, onFilesAdded, }: UseFileDropAreaOptions) => {
7
+ error: import('../types').FileValidationError | null;
8
+ onDrop: (acceptedFiles: File[]) => void;
9
+ handleDropzoneClick: () => void;
10
+ handleFileInputChange: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
11
+ clearError: () => void;
12
+ };
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ChangeEvent } from 'react';
2
+ import { FileValidationError as ValidationError, FileValidationOptions, FileWithValidation } from '../types';
3
+
4
+ interface FileProcessingOptions extends FileValidationOptions {
5
+ onFilesAdded: (files: FileWithValidation[]) => void;
6
+ }
7
+ export declare const useFileProcessing: ({ maxFileSize, acceptFileMimeTypes, onFilesAdded, }: FileProcessingOptions) => {
8
+ onDrop: (acceptedFiles: File[]) => void;
9
+ handleFileInputChange: (event: ChangeEvent<HTMLInputElement>) => void;
10
+ error: ValidationError | null;
11
+ clearError: () => void;
12
+ };
13
+ export {};
@@ -0,0 +1,22 @@
1
+ import { DragEvent } from 'react';
2
+
3
+ interface UseOverlayDropAreaOptions {
4
+ isOverlay: boolean;
5
+ }
6
+ export declare const useOverlayDropArea: ({ isOverlay }: UseOverlayDropAreaOptions) => {
7
+ isDragActive?: boolean | undefined;
8
+ handlers: {
9
+ ref: import('react').RefObject<HTMLDivElement>;
10
+ onDragEnter: (event: DragEvent) => void;
11
+ onDragLeave: (event: DragEvent) => void;
12
+ onDragOver: (event: DragEvent) => void;
13
+ onDrop: (event: DragEvent) => void;
14
+ } | {
15
+ ref?: undefined;
16
+ onDragEnter?: undefined;
17
+ onDragLeave?: undefined;
18
+ onDragOver?: undefined;
19
+ onDrop?: undefined;
20
+ };
21
+ };
22
+ export {};
@@ -0,0 +1,2 @@
1
+ export { FileDropArea } from './fileDropArea';
2
+ export { MIME_TYPES } from './types';
@@ -0,0 +1,57 @@
1
+ export declare const MIME_TYPES: {
2
+ readonly png: "image/png";
3
+ readonly jpeg: "image/jpeg";
4
+ readonly gif: "image/gif";
5
+ readonly svg: "image/svg+xml";
6
+ readonly webp: "image/webp";
7
+ readonly pdf: "application/pdf";
8
+ readonly doc: "application/msword";
9
+ readonly docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
10
+ readonly xls: "application/vnd.ms-excel";
11
+ readonly xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
12
+ readonly csv: "text/csv";
13
+ readonly txt: "text/plain";
14
+ readonly zip: "application/zip";
15
+ readonly mp4: "video/mp4";
16
+ readonly mov: "video/quicktime";
17
+ readonly avi: "video/x-msvideo";
18
+ readonly xml: "application/xml";
19
+ readonly html: "text/html";
20
+ readonly javascript: "application/javascript";
21
+ readonly json: "application/json";
22
+ readonly css: "text/css";
23
+ readonly php: "application/x-httpd-php";
24
+ readonly har: "application/json";
25
+ readonly rar: "application/vnd.rar";
26
+ readonly tgz: "application/gzip";
27
+ readonly taz: "application/x-compress";
28
+ readonly tar: "application/x-tar";
29
+ readonly gzip: "application/gzip";
30
+ readonly plain: "text/plain";
31
+ readonly image: "image/*";
32
+ readonly jar: "application/java-archive";
33
+ readonly gtar: "application/x-gtar";
34
+ readonly kml: "application/vnd.google-earth.kml+xml";
35
+ };
36
+ export type MimeType = (typeof MIME_TYPES)[keyof typeof MIME_TYPES];
37
+ export declare enum FileValidationError {
38
+ INCORRECT_FILE_SIZE = "INCORRECT_FILE_SIZE",
39
+ INCORRECT_FILE_FORMAT = "INCORRECT_FILE_FORMAT"
40
+ }
41
+ export interface FileValidationMessages {
42
+ incorrectFileSize: string;
43
+ incorrectFileFormat: string;
44
+ }
45
+ export interface FileValidationOptions {
46
+ acceptFileMimeTypes: MimeType[];
47
+ maxFileSize: number;
48
+ }
49
+ export interface FileWithValidation {
50
+ file: File;
51
+ validationErrors: FileValidationError[];
52
+ }
53
+ export interface FileDropAreaBaseConfig extends FileValidationOptions {
54
+ messages: FileValidationMessages;
55
+ isMultipleFiles?: boolean;
56
+ isDisabled?: boolean;
57
+ }
@@ -0,0 +1,3 @@
1
+ import { FileValidationError, FileValidationMessages } from '../types';
2
+
3
+ export declare const getValidationErrorMessage: (errors: FileValidationError[], messages: FileValidationMessages) => string | null;
@@ -0,0 +1,2 @@
1
+ export { validateFile } from './validateFile';
2
+ export { getValidationErrorMessage } from './getValidationErrorMessage';
@@ -0,0 +1,3 @@
1
+ import { FileValidationOptions, FileValidationError } from '../types';
2
+
3
+ export declare const validateFile: (file: File, options: FileValidationOptions) => FileValidationError[];
@@ -4,34 +4,39 @@ export { default as AddJarIcon } from './svg/addJar.svg';
4
4
  export { default as ArrowDownIcon } from './svg/arrowDown.svg';
5
5
  export { default as ArrowUpIcon } from './svg/arrowUp.svg';
6
6
  export { default as BreadcrumbsTreeIcon } from './svg/breadcrumbsTree.svg';
7
+ export { default as CalendarArrowIcon } from './svg/calendarArrow.svg';
7
8
  export { default as CalendarIcon } from './svg/calendar.svg';
8
9
  export { default as CheckmarkIcon } from './svg/checkmark.svg';
9
- export { default as CalendarArrowIcon } from './svg/calendarArrow.svg';
10
10
  export { default as ChevronDownDropdownIcon } from './svg/chevronDownDropdown.svg';
11
11
  export { default as ChevronRightBreadcrumbsIcon } from './svg/chevronRightBreadcrumbs.svg';
12
12
  export { default as ClearIcon } from './svg/clear.svg';
13
- export { default as CloseIcon } from './svg/close.svg';
14
13
  export { default as CloseEyeIcon } from './svg/closeEye.svg';
14
+ export { default as CloseIcon } from './svg/close.svg';
15
15
  export { default as CopyIcon } from './svg/copy.svg';
16
+ export { default as CsvIcon } from './svg/csv.svg';
16
17
  export { default as DeleteIcon } from './svg/delete.svg';
17
- export { default as DurationIcon } from './svg/duration.svg';
18
18
  export { default as DragAndDropIcon } from './svg/dragAndDrop.svg';
19
- export { default as DropdownIcon } from './svg/dropdown.svg';
20
19
  export { default as DragNDropIcon } from './svg/dragNDrop.svg';
20
+ export { default as DropdownIcon } from './svg/dropdown.svg';
21
+ export { default as DurationIcon } from './svg/duration.svg';
21
22
  export { default as EditIcon } from './svg/edit.svg';
22
23
  export { default as ErrorIcon } from './svg/error.svg';
23
24
  export { default as ExportIcon } from './svg/export.svg';
24
25
  export { default as ExternalLinkIcon } from './svg/externalLink.svg';
26
+ export { default as FileOtherIcon } from './svg/fileOther.svg';
25
27
  export { default as FilterFilledIcon } from './svg/filterFilled.svg';
26
28
  export { default as FilterOutlineIcon } from './svg/filterOutline.svg';
27
29
  export { default as FlagIcon } from './svg/flag.svg';
28
30
  export { default as HideIcon } from './svg/hide.svg';
31
+ export { default as ImageIcon } from './svg/image.svg';
29
32
  export { default as InfoIcon } from './svg/info.svg';
33
+ export { default as JarIcon } from './svg/jar.svg';
30
34
  export { default as MaximizeIcon } from './svg/maximize.svg';
31
35
  export { default as MeatballMenuIcon } from './svg/meatballMenu.svg';
32
36
  export { default as MinusIcon } from './svg/minus.svg';
33
37
  export { default as MoveToFolderIcon } from './svg/moveToFolder.svg';
34
38
  export { default as OpenEyeIcon } from './svg/openEye.svg';
39
+ export { default as PdfIcon } from './svg/pdf.svg';
35
40
  export { default as PlusIcon } from './svg/plus.svg';
36
41
  export { default as PrevChapterIcon } from './svg/prevChapter.svg';
37
42
  export { default as PrevPageIcon } from './svg/prevPage.svg';
@@ -41,11 +46,12 @@ export { default as PriorityHighIcon } from './svg/priorityHigh.svg';
41
46
  export { default as PriorityLowIcon } from './svg/priorityLow.svg';
42
47
  export { default as PriorityMediumIcon } from './svg/priorityMedium.svg';
43
48
  export { default as PriorityUnspecifiedIcon } from './svg/priorityUnspecified.svg';
44
- export { default as RerunIcon } from './svg/rerun.svg';
45
49
  export { default as RefreshIcon } from './svg/refresh.svg';
50
+ export { default as RerunIcon } from './svg/rerun.svg';
46
51
  export { default as SearchIcon } from './svg/search.svg';
47
52
  export { default as SortIcon } from './svg/sort.svg';
48
53
  export { default as StatusSuccessIcon } from './svg/statusSuccess.svg';
49
54
  export { default as SuccessIcon } from './svg/success.svg';
50
55
  export { default as TreeIcon } from './svg/tree.svg';
51
56
  export { default as WarningIcon } from './svg/warning.svg';
57
+ export { default as XlsIcon } from './svg/xls.svg';
@@ -1,23 +1,25 @@
1
- export { Button } from './button';
1
+ export { AttachedFile } from './attachedFile';
2
2
  export { BaseIconButton } from './baseIconButton';
3
3
  export { Breadcrumbs } from './breadcrumbs';
4
+ export { BubblesLoader } from './bubblesLoader';
5
+ export { Button } from './button';
4
6
  export { Checkbox } from './checkbox';
5
- export { SystemMessage } from './systemMessage';
6
- export { FieldText } from './fieldText';
7
- export { ThemeProvider } from './themeProvider';
8
- export { Modal } from './modal';
7
+ export { DatePicker } from './datePicker';
9
8
  export { Dropdown } from './dropdown';
10
- export { Toggle } from './toggle';
11
9
  export { FieldNumber } from './fieldNumber';
12
- export { BubblesLoader } from './bubblesLoader';
13
- export { SpinLoader } from './spinLoader';
10
+ export { FieldText } from './fieldText';
14
11
  export { FieldTextFlex } from './fieldTextFlex';
15
- export { Radio } from './radio';
16
- export { Tooltip } from './tooltip';
17
- export { Popover } from './popover';
12
+ export { FileDropArea } from './fileDropArea';
13
+ export { Modal } from './modal';
18
14
  export { Pagination } from './pagination';
15
+ export { Popover } from './popover';
16
+ export { Radio } from './radio';
19
17
  export { Selection } from './selection';
20
- export { Table } from './table';
21
- export { DatePicker } from './datePicker';
18
+ export { SpinLoader } from './spinLoader';
22
19
  export { SystemAlert } from './systemAlert';
20
+ export { SystemMessage } from './systemMessage';
21
+ export { Table } from './table';
22
+ export { ThemeProvider } from './themeProvider';
23
+ export { Toggle } from './toggle';
24
+ export { Tooltip } from './tooltip';
23
25
  export * from './icons';
@@ -9,8 +9,8 @@ import { registerLocale as j } from "react-datepicker";
9
9
  const ie = (n, s) => {
10
10
  j(n, s);
11
11
  }, G = (n, s = 20) => {
12
- const d = n + s;
13
- return new Array(d - n).fill(void 0).map((g, t) => n - t);
12
+ const i = n + s;
13
+ return new Array(i - n).fill(void 0).map((g, t) => n - t);
14
14
  }, H = "_header_1q16i_1", V = "_disabled_1q16i_25", O = "_dropdown_1q16i_8", W = {
15
15
  header: H,
16
16
  "dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
@@ -24,7 +24,7 @@ const ie = (n, s) => {
24
24
  date: n = /* @__PURE__ */ new Date(),
25
25
  changeYear: s = () => {
26
26
  },
27
- changeMonth: d = () => {
27
+ changeMonth: i = () => {
28
28
  },
29
29
  decreaseMonth: g = () => {
30
30
  },
@@ -34,22 +34,22 @@ const ie = (n, s) => {
34
34
  nextMonthButtonDisabled: h = !1,
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
- yearsOptions: i = [],
37
+ yearsOptions: p = [],
38
38
  locale: N
39
39
  }) => {
40
- const p = n.getFullYear(), C = n.getMonth(), y = P(() => {
40
+ const l = n.getFullYear(), C = n.getMonth(), y = P(() => {
41
41
  const e = Array(12).keys(), c = new Intl.DateTimeFormat(N, {
42
42
  month: "long"
43
- }), l = (m) => c.format(new Date(p, m));
44
- return Array.from(e, l).reduce((m, f, x) => m.concat({
43
+ }), d = (m) => c.format(new Date(l, m));
44
+ return Array.from(e, d).reduce((m, f, x) => m.concat({
45
45
  value: x,
46
46
  label: f
47
47
  }), []);
48
- }, []), v = P(() => (i.length > 0 ? i : G(p)).reduce(
49
- (c, l) => c.concat({ value: l, label: `${l}` }),
48
+ }, []), v = P(() => (p.length > 0 ? p : G(l)).reduce(
49
+ (c, d) => c.concat({ value: d, label: `${d}` }),
50
50
  []
51
- ), [i]), A = (e) => {
52
- d(e);
51
+ ), [p, l]), A = (e) => {
52
+ i(e);
53
53
  }, k = (e) => {
54
54
  s(e);
55
55
  };
@@ -85,7 +85,7 @@ const ie = (n, s) => {
85
85
  E,
86
86
  {
87
87
  options: v,
88
- value: p,
88
+ value: l,
89
89
  onChange: k,
90
90
  transparentBackground: !0,
91
91
  className: a("dropdown"),
@@ -121,7 +121,7 @@ const ie = (n, s) => {
121
121
  onChange: n = () => {
122
122
  },
123
123
  disabled: s = !1,
124
- onBlur: d = () => {
124
+ onBlur: i = () => {
125
125
  },
126
126
  onFocus: g = () => {
127
127
  },
@@ -130,9 +130,9 @@ const ie = (n, s) => {
130
130
  headerNodes: h = null,
131
131
  customClassName: b = "",
132
132
  customTimeInput: w = void 0,
133
- shouldCloseOnSelect: i = !0,
133
+ shouldCloseOnSelect: p = !0,
134
134
  popperClassName: N = "",
135
- calendarClassName: p = "",
135
+ calendarClassName: l = "",
136
136
  fixedHeight: C = !1,
137
137
  language: y = te,
138
138
  yearsOptions: v = [],
@@ -141,7 +141,7 @@ const ie = (n, s) => {
141
141
  selects: e = "start",
142
142
  value: c = null
143
143
  }) => {
144
- const l = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), f = t && o && t > o, x = (u) => {
144
+ const d = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), f = t && o && t > o, x = (u) => {
145
145
  const M = u.toDateString(), Y = M === S, q = f && M === m, U = o && t && u > o && u < t;
146
146
  return _("date", {
147
147
  "current-date": Y,
@@ -153,18 +153,18 @@ const ie = (n, s) => {
153
153
  return /* @__PURE__ */ r(
154
154
  B,
155
155
  {
156
- customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: l }),
156
+ customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: d }),
157
157
  placeholderText: A,
158
158
  selected: c,
159
159
  startDate: o,
160
160
  endDate: t,
161
161
  disabled: s,
162
- shouldCloseOnSelect: i,
162
+ shouldCloseOnSelect: p,
163
163
  fixedHeight: C,
164
164
  locale: y,
165
165
  showPopperArrow: !1,
166
166
  dayClassName: x,
167
- calendarClassName: _(p, "calendar"),
167
+ calendarClassName: _(l, "calendar"),
168
168
  renderCustomHeader: (u) => /* @__PURE__ */ r(
169
169
  z,
170
170
  {
@@ -176,7 +176,7 @@ const ie = (n, s) => {
176
176
  }
177
177
  ),
178
178
  onChange: n,
179
- onBlur: d,
179
+ onBlur: i,
180
180
  onFocus: g,
181
181
  customTimeInput: w,
182
182
  showTimeInput: !!w,
@@ -1,5 +1,5 @@
1
- import { D as t } from "./datePicker-ff670fde.js";
2
- import { r as q } from "./datePicker-ff670fde.js";
1
+ import { D as t } from "./datePicker-0aca795c.js";
2
+ import { r as q } from "./datePicker-0aca795c.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react-datepicker/dist/es/index.js";
5
5
  import "./bind-06a7ff84.js";