@true-engineering/true-react-common-ui-kit 3.23.0 → 3.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +6 -0
  2. package/dist/components/FileInput/FileInput.d.ts +25 -0
  3. package/dist/components/FileInput/FileInput.stories.d.ts +7 -0
  4. package/dist/components/FileInput/FileInput.styles.d.ts +3 -0
  5. package/dist/components/FileInput/helpers.d.ts +2 -0
  6. package/dist/components/FileInput/index.d.ts +2 -0
  7. package/dist/components/FileItem/FileItem.d.ts +31 -0
  8. package/dist/components/FileItem/FileItem.stories.d.ts +8 -0
  9. package/dist/components/FileItem/FileItem.styles.d.ts +11 -0
  10. package/dist/components/FileItem/constants.d.ts +5 -0
  11. package/dist/components/FileItem/helpers.d.ts +4 -0
  12. package/dist/components/FileItem/index.d.ts +4 -0
  13. package/dist/components/FileItem/types.d.ts +8 -0
  14. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +1 -1
  15. package/dist/components/Icon/complexIcons/icons.d.ts +7 -0
  16. package/dist/components/Icon/helpers.d.ts +1 -1
  17. package/dist/components/Icon/icons-list.d.ts +1 -1
  18. package/dist/components/Input/Input.styles.d.ts +1 -1
  19. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +1 -1
  20. package/dist/components/Notification/Notification.styles.d.ts +1 -1
  21. package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -1
  22. package/dist/components/Select/Select.styles.d.ts +3 -3
  23. package/dist/components/TextArea/TextArea.styles.d.ts +1 -1
  24. package/dist/components/Toaster/Toaster.styles.d.ts +1 -1
  25. package/dist/components/index.d.ts +2 -0
  26. package/dist/constants/index.d.ts +1 -0
  27. package/dist/constants/mime-types.d.ts +76 -0
  28. package/dist/theme/types.d.ts +3 -1
  29. package/dist/true-react-common-ui-kit.js +16131 -15468
  30. package/dist/true-react-common-ui-kit.js.map +1 -1
  31. package/dist/true-react-common-ui-kit.umd.cjs +16132 -15470
  32. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  33. package/package.json +3 -2
  34. package/src/components/FileInput/FileInput.stories.tsx +75 -0
  35. package/src/components/FileInput/FileInput.styles.ts +80 -0
  36. package/src/components/FileInput/FileInput.tsx +147 -0
  37. package/src/components/FileInput/helpers.ts +6 -0
  38. package/src/components/FileInput/index.ts +2 -0
  39. package/src/components/FileItem/FileItem.stories.tsx +63 -0
  40. package/src/components/FileItem/FileItem.styles.ts +122 -0
  41. package/src/components/FileItem/FileItem.tsx +157 -0
  42. package/src/components/FileItem/constants.ts +29 -0
  43. package/src/components/FileItem/helpers.ts +27 -0
  44. package/src/components/FileItem/index.ts +4 -0
  45. package/src/components/FileItem/types.ts +11 -0
  46. package/src/components/Icon/complexIcons/fileExcel.svg +11 -0
  47. package/src/components/Icon/complexIcons/fileImage.svg +13 -0
  48. package/src/components/Icon/complexIcons/fileOther.svg +10 -0
  49. package/src/components/Icon/complexIcons/filePdf.svg +11 -0
  50. package/src/components/Icon/complexIcons/fileWord.svg +11 -0
  51. package/src/components/Icon/complexIcons/fileXml.svg +13 -0
  52. package/src/components/Icon/complexIcons/fileZip.svg +16 -0
  53. package/src/components/Icon/complexIcons/icons.ts +14 -0
  54. package/src/components/Icon/icons-list.ts +8 -0
  55. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +3 -2
  56. package/src/components/index.ts +2 -0
  57. package/src/constants/index.ts +1 -0
  58. package/src/constants/mime-types.ts +77 -0
  59. package/src/theme/types.ts +4 -0
package/README.md CHANGED
@@ -11,6 +11,12 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.24.0
15
+
16
+ ### Changes
17
+
18
+ - Добавлены компоненты: **FileInput**, **FileItem**
19
+
14
20
  ## v3.23.0
15
21
 
16
22
  ### Changes
@@ -0,0 +1,25 @@
1
+ import { ReactNode, InputHTMLAttributes } from 'react';
2
+ import { ICommonProps } from '../../types';
3
+ import { IFileInputStyles } from './FileInput.styles';
4
+ export interface IFileInputProps extends ICommonProps<IFileInputStyles> {
5
+ fileList?: ReactNode;
6
+ label?: ReactNode;
7
+ text: ReactNode;
8
+ description?: ReactNode;
9
+ /** @default false */
10
+ isDragAndDropDisabled?: boolean;
11
+ /** @default false */
12
+ isRequired?: boolean;
13
+ /** @default false */
14
+ isReadOnly?: boolean;
15
+ /** @default false */
16
+ isMultipleDisabled?: boolean;
17
+ /** @default false */
18
+ isDisabled?: boolean;
19
+ /** @default false */
20
+ isActive?: boolean;
21
+ /** @default undefined */
22
+ accept?: InputHTMLAttributes<HTMLInputElement>['accept'];
23
+ onAdd?: (files: File[]) => void;
24
+ }
25
+ export declare const FileInput: import("react").ForwardRefExoticComponent<IFileInputProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ component: import("react").ForwardRefExoticComponent<import("./FileInput").IFileInputProps & import("react").RefAttributes<HTMLInputElement>>;
5
+ };
6
+ export default _default;
7
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./FileInput").IFileInputProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,3 @@
1
+ import { ITweakStyles } from '../../theme';
2
+ export declare const useStyles: import("../../theme").IUseStyles<"root" | "text" | "active" | "disabled" | "label" | "requiredLabel" | "description" | "inputWrapper" | "inputLabel" | "dragged" | "fileList", unknown>;
3
+ export type IFileInputStyles = ITweakStyles<typeof useStyles>;
@@ -0,0 +1,2 @@
1
+ import { SyntheticEvent } from 'react';
2
+ export declare const blockEvent: (event: SyntheticEvent) => void;
@@ -0,0 +1,2 @@
1
+ export * from './FileInput';
2
+ export type { IFileInputStyles } from './FileInput.styles';
@@ -0,0 +1,31 @@
1
+ import { FC, MouseEvent, KeyboardEvent, ReactNode } from 'react';
2
+ import { ICommonProps } from '../../types';
3
+ import { IIcon } from '../Icon';
4
+ import { IThemedPreloaderProps } from '../ThemedPreloader';
5
+ import { IFileInfo, IFileItemSize } from './types';
6
+ import { IFileItemStyles } from './FileItem.styles';
7
+ export interface IFileItemProps extends ICommonProps<IFileItemStyles> {
8
+ fileInfo: IFileInfo;
9
+ icon?: IIcon;
10
+ /** @default trash-can */
11
+ removeIcon?: IIcon;
12
+ metadata?: ReactNode;
13
+ actions?: ReactNode;
14
+ error?: ReactNode;
15
+ info?: ReactNode;
16
+ /** @default m */
17
+ itemSize?: IFileItemSize;
18
+ /** @default default */
19
+ preloaderType?: IThemedPreloaderProps['type'];
20
+ /** @default false */
21
+ isDisabled?: boolean;
22
+ /** @default false */
23
+ areActionsDisabled?: boolean;
24
+ /** @default false */
25
+ isLoading?: boolean;
26
+ /** @default false */
27
+ shouldShowSize?: boolean;
28
+ onClick?: (event: MouseEvent | KeyboardEvent) => void;
29
+ onRemove?: (event: MouseEvent | KeyboardEvent) => void;
30
+ }
31
+ export declare const FileItem: FC<IFileItemProps>;
@@ -0,0 +1,8 @@
1
+ import { ComponentStory } from '@storybook/react';
2
+ import { FileItem, IFileItemProps } from './FileItem';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").FC<IFileItemProps>;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<typeof FileItem>;
@@ -0,0 +1,11 @@
1
+ import { ITweakStyles } from '../../theme';
2
+ import { IIconButtonStyles } from '../IconButton';
3
+ import { IThemedPreloaderStyles } from '../ThemedPreloader';
4
+ import { ITooltipStyles } from '../Tooltip';
5
+ export declare const useStyles: import("../../theme").IUseStyles<"error" | "root" | "disabled" | "m" | "l" | "fileItemWrapper" | "fileIcon" | "fileName" | "fileNameContainer" | "preloader" | "preloader-dots" | "preloader-default" | "preloader-logo" | "metadata" | "actions" | "fileSize" | "footer" | "info", unknown>;
6
+ export declare const themedPreloaderStyles: IThemedPreloaderStyles;
7
+ export type IFileItemStyles = ITweakStyles<typeof useStyles, {
8
+ tweakRemoveIconButton: IIconButtonStyles;
9
+ tweakPreloader: IThemedPreloaderStyles;
10
+ tweakTooltip: ITooltipStyles;
11
+ }>;
@@ -0,0 +1,5 @@
1
+ import { type IFileIcon } from './types';
2
+ export declare const FILE_ICONS: ("file-excel" | "file-image" | "file-other" | "file-pdf" | "file-word" | "file-xml" | "file-zip")[];
3
+ export declare const FILE_ICON_DEFAULT: IFileIcon;
4
+ export declare const iconTypeMap: Record<string, IFileIcon>;
5
+ export declare const FILE_ITEM_SIZES: readonly ["m", "l"];
@@ -0,0 +1,4 @@
1
+ import { IFileIcon, IFileInfo } from './types';
2
+ export declare const getFileExtensionByFilename: (fileName: string) => string | undefined;
3
+ export declare const getMimeTypeByFilename: (fileName: string) => string | undefined;
4
+ export declare const getFileIcon: ({ type, name }: IFileInfo) => IFileIcon;
@@ -0,0 +1,4 @@
1
+ export * from './FileItem';
2
+ export * from './types';
3
+ export * from './helpers';
4
+ export type { IFileItemStyles } from './FileItem.styles';
@@ -0,0 +1,8 @@
1
+ import { FILE_ICONS, FILE_ITEM_SIZES } from './constants';
2
+ export interface IFileInfo {
3
+ name: File['name'];
4
+ type?: File['type'];
5
+ size?: File['size'];
6
+ }
7
+ export type IFileIcon = (typeof FILE_ICONS)[number];
8
+ export type IFileItemSize = (typeof FILE_ITEM_SIZES)[number];
@@ -1,7 +1,7 @@
1
1
  import { ITweakStyles } from '../../../../theme';
2
2
  import { IButtonStyles } from '../../../Button';
3
3
  import { ISearchInputStyles } from '../../../SearchInput';
4
- export declare const useStyles: import("../../../../theme").IUseStyles<"clear" | "item" | "root" | "icon" | "list" | "label" | "labelChosen" | "withoutTopGap" | "withClearButton" | "option" | "panel" | "panelWithFooter" | "footer" | "preloader" | "dropdownInput" | "nothingFound", unknown>;
4
+ export declare const useStyles: import("../../../../theme").IUseStyles<"clear" | "item" | "root" | "icon" | "label" | "preloader" | "footer" | "list" | "labelChosen" | "withoutTopGap" | "withClearButton" | "option" | "panel" | "panelWithFooter" | "dropdownInput" | "nothingFound", unknown>;
5
5
  export declare const searchInputStyles: ISearchInputStyles;
6
6
  export declare const clearButtonStyles: Partial<import("jss").Styles<"content" | "outline" | "root" | "inline" | "text" | "icon" | "active" | "disabled" | "fullWidth" | "primary" | "secondary" | "warning" | "destructive" | "custom" | "children" | "iconFromLeft" | "iconFromRight" | "onlyIcon" | "withIcon" | "s" | "m" | "l" | "xl" | "loader" | "loading", unknown, undefined>> & Partial<{
7
7
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
@@ -1,3 +1,10 @@
1
1
  export declare const complexIcons: {
2
2
  avatar: string;
3
+ 'file-excel': string;
4
+ 'file-image': string;
5
+ 'file-other': string;
6
+ 'file-pdf': string;
7
+ 'file-word': string;
8
+ 'file-xml': string;
9
+ 'file-zip': string;
3
10
  };
@@ -1,5 +1,5 @@
1
1
  import type { IIconType, ISvgIcon } from './types';
2
- export declare const isComplexIcon: (type: IIconType) => type is "avatar";
2
+ export declare const isComplexIcon: (type: IIconType) => type is "avatar" | "file-excel" | "file-image" | "file-other" | "file-pdf" | "file-word" | "file-xml" | "file-zip";
3
3
  /**
4
4
  * Эта функция позволяет корректно определить ключи в типе
5
5
  */
@@ -1 +1 @@
1
- export declare const iconsList: Record<"direction" | "filter" | "document" | "copy" | "cancel" | "close" | "search" | "repeat" | "link" | "sort" | "size" | "menu" | "check" | "settings" | "list" | "arrow" | "vendor-service" | "aircraft-takeoff" | "archive" | "arrow-right" | "baggage" | "balloon" | "bluetooth" | "bonus" | "book" | "box" | "business" | "calendar" | "check-big" | "check-all" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down-small" | "chevron-left-small" | "chevron-right-small" | "chevron-up-small" | "circle-check" | "close-large" | "close-window" | "copy-outline" | "crane" | "danger" | "download" | "email" | "eye" | "eye-closed" | "female" | "folder" | "folder-add" | "food" | "import" | "information" | "insurance" | "lock" | "lock-open" | "male" | "minus" | "burger-menu" | "pencil" | "pin" | "plane" | "plane-circle" | "plus" | "presentation" | "print" | "question" | "refresh" | "rocket" | "round-trip" | "vendor-logo" | "scan" | "send-email" | "sign-out" | "sort-asc" | "sort-desc" | "sort-list-asc" | "sort-list-desc" | "star" | "status-error" | "status-info" | "status-not-ok" | "status-ok" | "status-warning" | "three-circles" | "ticket-revert" | "ticket" | "time" | "trash-can" | "upgrade" | "user" | "user-group" | "voucher", import("./types").ISvgIcon>;
1
+ export declare const iconsList: Record<"direction" | "filter" | "document" | "copy" | "cancel" | "close" | "search" | "repeat" | "link" | "sort" | "size" | "menu" | "check" | "settings" | "list" | "arrow" | "vendor-service" | "aircraft-takeoff" | "archive" | "arrow-right" | "baggage" | "balloon" | "bluetooth" | "bonus" | "book" | "box" | "business" | "calendar" | "check-big" | "check-all" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down-small" | "chevron-left-small" | "chevron-right-small" | "chevron-up-small" | "circle-check" | "close-large" | "close-window" | "copy-outline" | "crane" | "danger" | "download" | "email" | "eye" | "eye-closed" | "female" | "folder" | "folder-add" | "food" | "import" | "information" | "insurance" | "lock" | "lock-open" | "male" | "minus" | "burger-menu" | "pencil" | "pin" | "plane" | "plane-circle" | "plus" | "presentation" | "print" | "question" | "refresh" | "rocket" | "round-trip" | "vendor-logo" | "scan" | "send-email" | "sign-out" | "sort-asc" | "sort-desc" | "sort-list-asc" | "sort-list-desc" | "star" | "status-error" | "status-info" | "status-not-ok" | "status-ok" | "status-warning" | "three-circles" | "ticket-revert" | "ticket" | "time" | "trash-can" | "upgrade" | "user" | "user-group" | "voucher" | "upload", import("./types").ISvgIcon>;
@@ -1,7 +1,7 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IThemedPreloaderStyles } from '../ThemedPreloader';
3
3
  export declare const AUTOSIZE_MAX_WIDTH = 480;
4
- export declare const useStyles: import("../../theme").IUseStyles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown>;
4
+ export declare const useStyles: import("../../theme").IUseStyles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "label" | "requiredLabel" | "inputWrapper" | "info" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "error-top" | "error-bottom" | "withUnits", unknown>;
5
5
  export type IInputStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakPreloader: IThemedPreloaderStyles;
7
7
  }>;
@@ -2,7 +2,7 @@ import { ITweakStyles } from '../../theme';
2
2
  import { IButtonStyles } from '../Button';
3
3
  import { ICheckboxStyles } from '../Checkbox';
4
4
  import { ISearchInputStyles } from '../SearchInput';
5
- export declare const useStyles: import("../../theme").IUseStyles<"clear" | "item" | "root" | "list" | "label" | "labelChosen" | "withoutTopGap" | "option" | "panel" | "preloader" | "dropdownInput" | "nothingFound" | "selectedItem", unknown>;
5
+ export declare const useStyles: import("../../theme").IUseStyles<"clear" | "item" | "root" | "label" | "preloader" | "list" | "labelChosen" | "withoutTopGap" | "option" | "panel" | "dropdownInput" | "nothingFound" | "selectedItem", unknown>;
6
6
  export declare const searchInputStyles: ISearchInputStyles;
7
7
  export declare const checkboxStyles: ICheckboxStyles;
8
8
  export declare const clearButtonStyles: IButtonStyles;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"content" | "error" | "root" | "inline" | "text" | "icon" | "warning" | "s" | "m" | "l" | "body" | "info" | "title" | "withText" | "withTitle" | "ok" | "not-ok", unknown>;
2
+ export declare const useStyles: import("../../theme").IUseStyles<"content" | "error" | "root" | "inline" | "text" | "icon" | "warning" | "s" | "m" | "l" | "info" | "body" | "title" | "withText" | "withTitle" | "ok" | "not-ok", unknown>;
3
3
  export type INotificationStyles = ITweakStyles<typeof useStyles>;
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("..").IInputProps, "border" | "tweakStyles" | "label" | "isInvalid" | "type" | "isActive" | "hasFloatingLabel" | "errorMessage" | "errorPosition"> & import("../..").ICommonProps<Partial<import("jss").Styles<"root" | "icon", unknown, undefined>> & Partial<{
7
- tweakInput: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
7
+ tweakInput: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "label" | "requiredLabel" | "inputWrapper" | "info" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
8
8
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
9
9
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
10
10
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
@@ -3,19 +3,19 @@ import { IInputStyles } from '../Input';
3
3
  import { ISearchInputStyles } from '../SearchInput';
4
4
  import { ISelectListStyles } from './components';
5
5
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "icon" | "disabled" | "inputWrapper" | "arrow" | "listWrapper" | "withoutPopper" | "listWrapperInBody" | "activeArrow" | "counter", unknown>;
6
- export declare const readonlyInputStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
6
+ export declare const readonlyInputStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "label" | "requiredLabel" | "inputWrapper" | "info" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
7
7
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
8
8
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
9
9
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
10
10
  }>;
11
11
  }>;
12
- export declare const multiSelectInputStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
12
+ export declare const multiSelectInputStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "label" | "requiredLabel" | "inputWrapper" | "info" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
13
13
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
14
14
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
15
15
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
16
16
  }>;
17
17
  }>;
18
- export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
18
+ export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "label" | "requiredLabel" | "inputWrapper" | "info" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
19
19
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
20
20
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
21
21
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"error" | "invalid" | "root" | "textarea" | "disabled" | "autosize" | "label" | "footer" | "focused" | "withFloatingLabel" | "floating" | "activeLabel" | "required" | "requiredLabel" | "invalidLabel" | "info" | "wrapper" | "symbolsCount" | "symbolsCountError", unknown>;
2
+ export declare const useStyles: import("../../theme").IUseStyles<"error" | "invalid" | "root" | "textarea" | "disabled" | "label" | "requiredLabel" | "footer" | "info" | "autosize" | "focused" | "withFloatingLabel" | "floating" | "activeLabel" | "required" | "invalidLabel" | "wrapper" | "symbolsCount" | "symbolsCountError", unknown>;
3
3
  export type ITextAreaStyles = ITweakStyles<typeof useStyles>;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IIconButtonStyles } from '../IconButton';
3
- export declare const useStyles: import("../../theme").IUseStyles<"content" | "close" | "error" | "root" | "text" | "warning" | "iconContainer" | "info" | "title" | "ok" | "not-ok", unknown>;
3
+ export declare const useStyles: import("../../theme").IUseStyles<"content" | "close" | "error" | "root" | "text" | "warning" | "info" | "iconContainer" | "title" | "ok" | "not-ok", unknown>;
4
4
  export type IToasterStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakCloseButton: IIconButtonStyles;
6
6
  }>;
@@ -8,6 +8,8 @@ export * from './CssBaseline';
8
8
  export * from './DateInput';
9
9
  export * from './DatePicker';
10
10
  export * from './Description';
11
+ export * from './FileInput';
12
+ export * from './FileItem';
11
13
  export * from './FiltersPane';
12
14
  export * from './Flag';
13
15
  export * from './FlexibleTable';
@@ -1 +1,2 @@
1
1
  export * from './phone-info';
2
+ export * from './mime-types';
@@ -0,0 +1,76 @@
1
+ export declare const mimeTypes: {
2
+ readonly aac: "audio/aac";
3
+ readonly abw: "application/x-abiword";
4
+ readonly arc: "application/x-freearc";
5
+ readonly avi: "video/x-msvideo";
6
+ readonly azw: "application/vnd.amazon.ebook";
7
+ readonly bin: "application/octet-stream";
8
+ readonly bmp: "image/bmp";
9
+ readonly bz: "application/x-bzip";
10
+ readonly bz2: "application/x-bzip2";
11
+ readonly csh: "application/x-csh";
12
+ readonly css: "text/css";
13
+ readonly csv: "text/csv";
14
+ readonly doc: "application/msword";
15
+ readonly docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
16
+ readonly eot: "application/vnd.ms-fontobject";
17
+ readonly epub: "application/epub+zip";
18
+ readonly gz: "application/gzip";
19
+ readonly gif: "image/gif";
20
+ readonly htm: "text/html";
21
+ readonly html: "text/html";
22
+ readonly ico: "image/vnd.microsoft.icon";
23
+ readonly ics: "text/calendar";
24
+ readonly jar: "application/java-archive";
25
+ readonly jpeg: "image/jpeg";
26
+ readonly jpg: "image/jpeg";
27
+ readonly js: "text/javascript";
28
+ readonly json: "application/json";
29
+ readonly jsonld: "application/ld+json";
30
+ readonly mid: ".midi";
31
+ readonly mjs: "text/javascript";
32
+ readonly mp3: "audio/mpeg";
33
+ readonly mpeg: "video/mpeg";
34
+ readonly mpkg: "application/vnd.apple.installer+xml";
35
+ readonly odp: "application/vnd.oasis.opendocument.presentation";
36
+ readonly ods: "application/vnd.oasis.opendocument.spreadsheet";
37
+ readonly odt: "application/vnd.oasis.opendocument.text";
38
+ readonly oga: "audio/ogg";
39
+ readonly ogv: "video/ogg";
40
+ readonly ogx: "application/ogg";
41
+ readonly opus: "audio/opus";
42
+ readonly otf: "font/otf";
43
+ readonly png: "image/png";
44
+ readonly pdf: "application/pdf";
45
+ readonly php: "application/php";
46
+ readonly ppt: "application/vnd.ms-powerpoint";
47
+ readonly pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
48
+ readonly rar: "application/vnd.rar";
49
+ readonly rtf: "application/rtf";
50
+ readonly sh: "application/x-sh";
51
+ readonly svg: "image/svg+xml";
52
+ readonly swf: "application/x-shockwave-flash";
53
+ readonly tar: "application/x-tar";
54
+ readonly tif: "image/tiff";
55
+ readonly tiff: "image/tiff";
56
+ readonly ts: "video/mp2t";
57
+ readonly ttf: "font/ttf";
58
+ readonly txt: "text/plain";
59
+ readonly vsd: "application/vnd.visio";
60
+ readonly wav: "audio/wav";
61
+ readonly weba: "audio/webm";
62
+ readonly webm: "video/webm";
63
+ readonly webp: "image/webp";
64
+ readonly woff: "font/woff";
65
+ readonly woff2: "font/woff2";
66
+ readonly xhtml: "application/xhtml+xml";
67
+ readonly xls: "application/vnd.ms-excel";
68
+ readonly xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
69
+ readonly xml: "XML";
70
+ readonly xul: "application/vnd.mozilla.xul+xml";
71
+ readonly zip: "application/zip";
72
+ readonly '3gp': "video/3gpp";
73
+ readonly '3g2': "video/3gpp2";
74
+ readonly '7z': "application/x-7z-compressed";
75
+ };
76
+ export type IMimeType = keyof typeof mimeTypes;
@@ -1,6 +1,6 @@
1
1
  import { Styles } from 'react-jss';
2
2
  import { Classes, JssValue } from 'jss';
3
- import type { IAccountInfoStyles, IAddButtonStyles, IButtonStyles, ICheckboxStyles, ICloseButtonStyles, ICommonIcon, IComplexIcon, ICssBaselineStyles, IDateInputStyles, IDatePickerHeaderStyles, IDatePickerStyles, IDescriptionStyles, IDotsPreloaderStyles, IFilterIntervalStyles, IFilterSelectStyles, IFiltersPaneSearchStyles, IFiltersPaneStyles, IFilterValueViewStyles, IFilterWithDatesStyles, IFilterWithPeriodStyles, IFilterWrapperStyles, IFlagStyles, IFlexibleTableCellStyles, IFlexibleTableRowStyles, IFlexibleTableStyles, IIconButtonStyles, IIconStyles, IIncrementInputStyles, IInputStyles, IListItemStyles, IListStyles, IModalStyles, IMoreMenuStyles, IMultiSelectInputStyles, IMultiSelectListStyles, IMultiSelectStyles, INotificationStyles, IPhoneInputCountryListStyles, IPhoneInputStyles, IPreloaderSvgType, IRadioButtonStyles, ISearchInputStyles, ISelectListStyles, ISelectorStyles, ISelectStyles, ISkeletonStyles, IStatusStyles, ISvgIcon, ISvgPreloaderStyles, ISwitchStyles, ITextAreaStyles, ITextButtonStyles, ITextWithInfoStyles, ITextWithTooltipStyles, IThemedPreloaderStyles, IToasterStyles, ITooltipStyles, IWithPopupStyles, INewMoreMenuStyles } from '../components';
3
+ import type { IAccountInfoStyles, IAddButtonStyles, IButtonStyles, ICheckboxStyles, ICloseButtonStyles, ICommonIcon, IComplexIcon, ICssBaselineStyles, IDateInputStyles, IDatePickerHeaderStyles, IDatePickerStyles, IDescriptionStyles, IDotsPreloaderStyles, IFilterIntervalStyles, IFilterSelectStyles, IFiltersPaneSearchStyles, IFiltersPaneStyles, IFilterValueViewStyles, IFilterWithDatesStyles, IFilterWithPeriodStyles, IFilterWrapperStyles, IFlagStyles, IFlexibleTableCellStyles, IFlexibleTableRowStyles, IFlexibleTableStyles, IIconButtonStyles, IIconStyles, IIncrementInputStyles, IInputStyles, IListItemStyles, IListStyles, IModalStyles, IMoreMenuStyles, IMultiSelectInputStyles, IMultiSelectListStyles, IMultiSelectStyles, INotificationStyles, IPhoneInputCountryListStyles, IPhoneInputStyles, IPreloaderSvgType, IRadioButtonStyles, ISearchInputStyles, ISelectListStyles, ISelectorStyles, ISelectStyles, ISkeletonStyles, IStatusStyles, ISvgIcon, ISvgPreloaderStyles, ISwitchStyles, ITextAreaStyles, ITextButtonStyles, ITextWithInfoStyles, ITextWithTooltipStyles, IThemedPreloaderStyles, IToasterStyles, ITooltipStyles, IWithPopupStyles, INewMoreMenuStyles, IFileInputStyles, IFileItemStyles } from '../components';
4
4
  export type IStyles<C extends string, P> = Styles<C, P, Partial<Styles<C, P>>>;
5
5
  export type IUseStyles<C extends string, P = unknown> = (data?: P & {
6
6
  theme?: Partial<Styles<C, P>>;
@@ -19,6 +19,8 @@ export interface IComponentStyles {
19
19
  Description: IDescriptionStyles;
20
20
  DotsPreloader: IDotsPreloaderStyles;
21
21
  SvgPreloader: ISvgPreloaderStyles;
22
+ FileInput: IFileInputStyles;
23
+ FileItem: IFileItemStyles;
22
24
  FilterValueView: IFilterValueViewStyles;
23
25
  FiltersPane: IFiltersPaneStyles;
24
26
  FilterInterval: IFilterIntervalStyles;