@layers-app/shared 0.0.19 → 0.0.21

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 (64) hide show
  1. package/dist/components/AnimationWrapper/index.d.ts +8 -0
  2. package/dist/components/AttachmentsGalleryModal/ImageModal.d.ts +10 -0
  3. package/dist/components/AttachmentsGalleryModal/index.d.ts +2 -0
  4. package/dist/components/AttachmentsGalleryModal/types.d.ts +15 -0
  5. package/dist/components/ColorPicker/ColorPicker.d.ts +13 -0
  6. package/dist/components/ColorPicker/ColorPickerPopover.d.ts +10 -0
  7. package/dist/components/CustomKBD/index.d.ts +1 -1
  8. package/dist/components/EmojiPicker/EmojiPanel.d.ts +4 -0
  9. package/dist/components/EmojiPicker/EmojiPicker.d.ts +14 -5
  10. package/dist/components/EmojiPicker/IconsPanel.d.ts +4 -0
  11. package/dist/components/EmojiPicker/icons.json.d.ts +80399 -0
  12. package/dist/components/ErrorAlert/ErrorAlert.story.d.ts +8 -0
  13. package/dist/components/ErrorAlert/index.d.ts +7 -0
  14. package/dist/components/ErrorPage/components/Error404.d.ts +16 -2
  15. package/dist/components/ErrorPage/components/ErrorUndefined.d.ts +3 -0
  16. package/dist/components/ErrorPage/index.d.ts +1 -1
  17. package/dist/components/NewColorPicker/NewColorPicker.story.d.ts +6 -0
  18. package/dist/components/NewColorPicker/components/Pallete.d.ts +12 -0
  19. package/dist/components/NewColorPicker/components/Target.d.ts +10 -0
  20. package/dist/components/NewColorPicker/index.d.ts +18 -0
  21. package/dist/components/NewColorPicker/types.d.ts +28 -0
  22. package/dist/components/NoData/NoData.d.ts +20 -96
  23. package/dist/components/NotFound/NoFound.d.ts +4 -0
  24. package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.d.ts +2 -0
  25. package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.d.ts +8 -0
  26. package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.d.ts +2 -0
  27. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts +2 -0
  28. package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.d.ts +2 -0
  29. package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.d.ts +2 -0
  30. package/dist/components/OnBoarding/steps/DifferentLayouts/TimeLine.d.ts +2 -0
  31. package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts +7 -1
  32. package/dist/components/OnBoarding/steps/Wrapper.d.ts +4 -1
  33. package/dist/components/ProjectIcon/ProjectIcon.d.ts +18 -0
  34. package/dist/components/RichText/extensions/bold.d.ts +3 -0
  35. package/dist/components/RichText/extensions/check-list.d.ts +42 -0
  36. package/dist/components/RichText/extensions/color-picker.d.ts +28 -0
  37. package/dist/components/RichText/extensions/font-size.d.ts +23 -0
  38. package/dist/components/RichText/extensions/italic.d.ts +3 -0
  39. package/dist/components/RichText/extensions/underline.d.ts +3 -0
  40. package/dist/components/RichText/index.d.ts +41 -0
  41. package/dist/components/SearchFilters/SearchFilters.d.ts +7 -0
  42. package/dist/components/SearchFilters/components/Date.d.ts +7 -0
  43. package/dist/components/SearchFilters/components/SearchHelp.d.ts +4 -0
  44. package/dist/components/SearchFilters/components/Sort.d.ts +7 -0
  45. package/dist/components/SearchFilters/components/Type.d.ts +7 -0
  46. package/dist/components/SearchFilters/types.d.ts +19 -0
  47. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +2 -1
  48. package/dist/constants.d.ts +8 -0
  49. package/dist/helpers/combineStatuses.d.ts +2 -0
  50. package/dist/helpers/download.d.ts +3 -0
  51. package/dist/helpers/fileUtils.d.ts +26 -0
  52. package/dist/helpers/formatBytes.d.ts +1 -0
  53. package/dist/helpers/generateLink.d.ts +3 -0
  54. package/dist/helpers/showNotifications.d.ts +1 -0
  55. package/dist/icons-DayTtENI.js +5658 -0
  56. package/dist/index.d.ts +34 -7
  57. package/dist/index.js +36811 -9026
  58. package/dist/index.umd.cjs +964 -13
  59. package/dist/store/onboarding.d.ts +14 -2
  60. package/package.json +2 -1
  61. package/dist/components/EmojiPicker/index.d.ts +0 -2
  62. package/dist/components/EmojiPicker/types.d.ts +0 -8
  63. package/dist/components/NoData/index.d.ts +0 -1
  64. package/dist/components/NotFoundPage/index.d.ts +0 -3
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ErrorAlert } from './index';
3
+ declare const meta: Meta<typeof ErrorAlert>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ErrorAlert>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomMessage: Story;
8
+ export declare const WithoutMessage: Story;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { AlertProps } from '@mantine/core';
3
+ type Props = {
4
+ message?: ReactNode;
5
+ } & AlertProps;
6
+ export declare const ErrorAlert: ({ message, ...others }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,3 +1,17 @@
1
- export declare const Error404: ({ closeAction }: {
2
- closeAction?: () => void;
1
+ /// <reference types="react" />
2
+ export declare const Error404: ({ title, description, buttons, closeAction, ...props }: {
3
+ title?: import('react').ReactNode;
4
+ titleProps?: import('@mantine/core').TitleProps | undefined;
5
+ description?: import('react').ReactNode;
6
+ descriptionProps?: import('@mantine/core').TextProps | undefined;
7
+ buttons?: (import('@mantine/core').ButtonProps & {
8
+ component?: "button" | undefined;
9
+ } & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "component" | keyof import('@mantine/core').ButtonProps> & {
10
+ ref?: ((instance: HTMLButtonElement | null) => void) | import('react').RefObject<HTMLButtonElement> | null | undefined;
11
+ renderRoot?: ((props: any) => any) | undefined;
12
+ })[] | undefined;
13
+ illustration?: string | undefined;
14
+ size?: number | undefined;
15
+ } & import('@mantine/core').StackProps & {
16
+ closeAction?: (() => void) | undefined;
3
17
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const ErrorUndefined: ({ closeAction, }: {
2
+ closeAction?: () => void;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
2
2
  type Props = {
3
- error: FetchBaseQueryError | SerializedError | undefined;
3
+ error?: FetchBaseQueryError | SerializedError | undefined;
4
4
  closeAction?: () => void;
5
5
  };
6
6
  export declare const ErrorPage: ({ error, closeAction }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { NewColorPicker } from '.';
3
+ declare const meta: Meta<typeof NewColorPicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof NewColorPicker>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,12 @@
1
+ import { MantineRadius } from '@mantine/core';
2
+ import { IColor, IColorData } from '../types';
3
+ interface IProps<T extends IColorData> {
4
+ value: string;
5
+ item: T;
6
+ onChange: (v: IColor) => void;
7
+ hideModeLabel?: boolean;
8
+ radius?: MantineRadius;
9
+ hint?: 'tooltip' | 'title';
10
+ }
11
+ export declare const Palette: <T extends IColorData>({ value, item, onChange, hideModeLabel, radius, hint, }: IProps<T>) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { MantineRadius } from '@mantine/core';
2
+ interface IProps {
3
+ value: Record<string, string>;
4
+ disabled?: boolean;
5
+ radius?: MantineRadius;
6
+ hint?: 'tooltip' | 'title';
7
+ withoutIcon?: boolean;
8
+ }
9
+ export declare const Target: import('react').ForwardRefExoticComponent<IProps & import('react').RefAttributes<HTMLButtonElement>>;
10
+ export {};
@@ -0,0 +1,18 @@
1
+ import { MantineRadius, MenuProps } from '@mantine/core';
2
+ import { IColorDictionary, OnChangeResult, WithDefaults } from './types';
3
+ interface IProps<T extends IColorDictionary, M extends readonly (keyof T)[]> {
4
+ value: Record<M[number], string>;
5
+ data?: T;
6
+ modes?: M;
7
+ onChange: (v: OnChangeResult<WithDefaults<T>, M>) => void;
8
+ target?: React.ReactNode;
9
+ menuProps?: MenuProps;
10
+ disabled?: boolean;
11
+ hideModeLabel?: boolean;
12
+ hideInherit?: boolean;
13
+ radius?: MantineRadius;
14
+ hint?: 'tooltip' | 'title';
15
+ alpha?: number;
16
+ }
17
+ export declare const NewColorPicker: <T extends IColorDictionary, M extends readonly ("color" | "background" | keyof T)[]>(props: IProps<T, M>) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ export interface IColor {
3
+ label: string;
4
+ value: string;
5
+ icon?: React.ReactNode;
6
+ meta?: object;
7
+ }
8
+ export interface IColorData {
9
+ label?: string;
10
+ filled?: boolean;
11
+ palette: IColor[];
12
+ }
13
+ export type IColorDictionary = Record<string, IColorData>;
14
+ export type WithDefaults<T extends IColorDictionary> = T & {
15
+ color: IColorData;
16
+ background: IColorData;
17
+ };
18
+ type MergeMeta<T> = {
19
+ [K in T extends unknown ? keyof T : never]?: T extends {
20
+ [P in K]?: infer V;
21
+ } ? V : never;
22
+ };
23
+ export type OnChangeResult<T extends IColorDictionary, M extends readonly (keyof T)[]> = {
24
+ value: string;
25
+ meta?: MergeMeta<T[M[number]]['palette'][number]['meta']>;
26
+ mode: M[number];
27
+ };
28
+ export {};
@@ -1,99 +1,24 @@
1
- import { ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { ButtonProps, PolymorphicComponentProps, StackProps, TextProps, TitleProps } from '@mantine/core';
3
3
  export declare const illustrationMap: {
4
- empty: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
5
- title?: string | undefined;
6
- titleId?: string | undefined;
7
- desc?: string | undefined;
8
- descId?: string | undefined;
9
- }>;
10
- noAccess: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
11
- title?: string | undefined;
12
- titleId?: string | undefined;
13
- desc?: string | undefined;
14
- descId?: string | undefined;
15
- }>;
16
- trash: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
17
- title?: string | undefined;
18
- titleId?: string | undefined;
19
- desc?: string | undefined;
20
- descId?: string | undefined;
21
- }>;
22
- noImage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
23
- title?: string | undefined;
24
- titleId?: string | undefined;
25
- desc?: string | undefined;
26
- descId?: string | undefined;
27
- }>;
28
- noResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
29
- title?: string | undefined;
30
- titleId?: string | undefined;
31
- desc?: string | undefined;
32
- descId?: string | undefined;
33
- }>;
34
- noTasks: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
35
- title?: string | undefined;
36
- titleId?: string | undefined;
37
- desc?: string | undefined;
38
- descId?: string | undefined;
39
- }>;
40
- noComments: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
41
- title?: string | undefined;
42
- titleId?: string | undefined;
43
- desc?: string | undefined;
44
- descId?: string | undefined;
45
- }>;
46
- noData: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
47
- title?: string | undefined;
48
- titleId?: string | undefined;
49
- desc?: string | undefined;
50
- descId?: string | undefined;
51
- }>;
52
- addDataR7: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
53
- title?: string | undefined;
54
- titleId?: string | undefined;
55
- desc?: string | undefined;
56
- descId?: string | undefined;
57
- }>;
58
- addDataLayers: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
59
- title?: string | undefined;
60
- titleId?: string | undefined;
61
- desc?: string | undefined;
62
- descId?: string | undefined;
63
- }>;
64
- emptyFolder: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
65
- title?: string | undefined;
66
- titleId?: string | undefined;
67
- desc?: string | undefined;
68
- descId?: string | undefined;
69
- }>;
70
- emptyBoard: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
71
- title?: string | undefined;
72
- titleId?: string | undefined;
73
- desc?: string | undefined;
74
- descId?: string | undefined;
75
- }>;
76
- noTaskResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
77
- title?: string | undefined;
78
- titleId?: string | undefined;
79
- desc?: string | undefined;
80
- descId?: string | undefined;
81
- }>;
82
- '404': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
83
- title?: string | undefined;
84
- titleId?: string | undefined;
85
- desc?: string | undefined;
86
- descId?: string | undefined;
87
- }>;
88
- '500': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
89
- title?: string | undefined;
90
- titleId?: string | undefined;
91
- desc?: string | undefined;
92
- descId?: string | undefined;
93
- }>;
4
+ empty: FC<import('react').SVGProps<SVGSVGElement>>;
5
+ noAccess: FC<import('react').SVGProps<SVGSVGElement>>;
6
+ trash: FC<import('react').SVGProps<SVGSVGElement>>;
7
+ noImage: FC<import('react').SVGProps<SVGSVGElement>>;
8
+ noResults: FC<import('react').SVGProps<SVGSVGElement>>;
9
+ noTasks: FC<import('react').SVGProps<SVGSVGElement>>;
10
+ noComments: FC<import('react').SVGProps<SVGSVGElement>>;
11
+ noData: FC<import('react').SVGProps<SVGSVGElement>>;
12
+ addDataR7: FC<import('react').SVGProps<SVGSVGElement>>;
13
+ addDataLayers: FC<import('react').SVGProps<SVGSVGElement>>;
14
+ emptyFolder: FC<import('react').SVGProps<SVGSVGElement>>;
15
+ emptyBoard: FC<import('react').SVGProps<SVGSVGElement>>;
16
+ noTaskResults: FC<import('react').SVGProps<SVGSVGElement>>;
17
+ '404': FC<import('react').SVGProps<SVGSVGElement>>;
18
+ '500': FC<import('react').SVGProps<SVGSVGElement>>;
94
19
  };
95
- type IllustrationType = keyof typeof illustrationMap | string;
96
- interface NoDataProps {
20
+ export type IllustrationType = keyof typeof illustrationMap | string;
21
+ export type NoDataProps = {
97
22
  title?: ReactNode;
98
23
  titleProps?: TitleProps;
99
24
  description?: ReactNode;
@@ -101,6 +26,5 @@ interface NoDataProps {
101
26
  buttons?: PolymorphicComponentProps<'button', ButtonProps>[];
102
27
  illustration?: IllustrationType;
103
28
  size?: number;
104
- }
105
- export declare const NoData: React.FC<NoDataProps & StackProps>;
106
- export {};
29
+ } & StackProps;
30
+ export declare const NoData: FC<NoDataProps>;
@@ -0,0 +1,4 @@
1
+ import { NoDataProps } from '../NoData/NoData';
2
+ export declare const NotFound: ({ title, description, buttons, closeAction, ...props }: NoDataProps & {
3
+ closeAction?: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const DefineStatusesNav: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DefineStatusesNav;
@@ -0,0 +1,8 @@
1
+ import { BadgeProps } from '@mantine/core';
2
+ declare const StatusBadge: ({ variant, title, color, rest, }: {
3
+ variant?: string;
4
+ title: string;
5
+ color: string;
6
+ rest?: BadgeProps;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default StatusBadge;
@@ -0,0 +1,2 @@
1
+ declare const StatusesListBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default StatusesListBoard;
@@ -0,0 +1,2 @@
1
+ declare const DifferentLayoutsBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DifferentLayoutsBoard;
@@ -0,0 +1,2 @@
1
+ declare const DifferentLayoutsNav: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DifferentLayoutsNav;
@@ -0,0 +1,2 @@
1
+ declare const KanbanLayout: () => import("react/jsx-runtime").JSX.Element;
2
+ export default KanbanLayout;
@@ -0,0 +1,2 @@
1
+ declare const TimeLine: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TimeLine;
@@ -1,2 +1,8 @@
1
- declare const CategorySelect: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const CategorySelect: ({ task, }: {
2
+ task: {
3
+ title: string;
4
+ type: string;
5
+ id: string;
6
+ };
7
+ }) => import("react/jsx-runtime").JSX.Element;
2
8
  export default CategorySelect;
@@ -1,11 +1,14 @@
1
+ import { default as React } from 'react';
1
2
  import { ButtonProps } from '@mantine/core';
2
- declare const StepperWrapper: ({ children, title, description, prevButtonProps, nextButtonProps, nextText, prevText, }: {
3
+ declare const StepperWrapper: ({ children, title, description, prevButtonProps, nextButtonProps, nextText, nextIcon, prevText, prevIcon, }: {
3
4
  children: React.ReactNode;
4
5
  title: string;
5
6
  description?: string;
6
7
  prevButtonProps?: ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
7
8
  nextButtonProps?: ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
8
9
  nextText: string | null;
10
+ nextIcon?: React.ReactNode;
9
11
  prevText: string | null;
12
+ prevIcon?: React.ReactNode;
10
13
  }) => import("react/jsx-runtime").JSX.Element;
11
14
  export default StepperWrapper;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { AvatarProps } from '@mantine/core';
3
+ type IconData = {
4
+ icon: string;
5
+ color: string;
6
+ emoji: string;
7
+ };
8
+ export declare namespace IconEntity {
9
+ const parse: (value?: string | null) => IconData | null;
10
+ const stringify: (value?: Partial<IconData>) => string;
11
+ }
12
+ /** Используется для отображения бокса с иконкой или первой буквы имени */
13
+ export declare const ProjectIcon: import('react').ForwardRefExoticComponent<{
14
+ icon?: string | null | undefined;
15
+ name?: string | null | undefined;
16
+ fallback?: 'initials' | ReactNode;
17
+ } & Omit<AvatarProps, "name" | "color"> & import('react').RefAttributes<HTMLDivElement>>;
18
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const Bold: import('@tiptap/core').Mark<import('@tiptap/extension-bold').BoldOptions, any> & {
2
+ Control: () => import("react/jsx-runtime").JSX.Element;
3
+ };
@@ -0,0 +1,42 @@
1
+ import { Node } from '@tiptap/core';
2
+ interface ICheckListOptions {
3
+ /**
4
+ * The node name for the list items
5
+ * @default 'listItem'
6
+ * @example 'paragraph'
7
+ */
8
+ itemTypeName: string;
9
+ /**
10
+ * HTML attributes to add to the check list element
11
+ * @default {}
12
+ * @example { class: 'foo' }
13
+ */
14
+ HTMLAttributes: Record<string, any>;
15
+ /**
16
+ * Keep the marks when splitting the list
17
+ * @default false
18
+ * @example true
19
+ */
20
+ keepMarks: boolean;
21
+ /**
22
+ * Keep the attributes when splitting the list
23
+ * @default false
24
+ * @example true
25
+ */
26
+ keepAttributes: boolean;
27
+ }
28
+ declare module '@tiptap/core' {
29
+ interface Commands<ReturnType> {
30
+ checkList: {
31
+ /**
32
+ * Toggle an check list
33
+ * @example editor.commands.toggleCheckList()
34
+ */
35
+ toggleCheckList: () => ReturnType;
36
+ };
37
+ }
38
+ }
39
+ export declare const CheckList: Node<ICheckListOptions, any> & {
40
+ Control: () => import("react/jsx-runtime").JSX.Element;
41
+ };
42
+ export {};
@@ -0,0 +1,28 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export type ColorOptions = {
3
+ types: string[];
4
+ };
5
+ declare module '@tiptap/core' {
6
+ interface Commands<ReturnType> {
7
+ backColor: {
8
+ /**
9
+ * Set the text color
10
+ */
11
+ setBackColor: (color: string) => ReturnType;
12
+ /**
13
+ * Unset the text color
14
+ */
15
+ unsetBackColor: () => ReturnType;
16
+ };
17
+ }
18
+ }
19
+ export declare const BackColor: Extension<ColorOptions, any>;
20
+ export declare const ColorPicker: Extension<ColorOptions, any> & {
21
+ Control: ({ staticBg, onChange, }: {
22
+ staticBg?: boolean;
23
+ onChange?: (v: {
24
+ value: string;
25
+ mode: string;
26
+ }) => void;
27
+ }) => import("react/jsx-runtime").JSX.Element;
28
+ };
@@ -0,0 +1,23 @@
1
+ import { Extension } from '@tiptap/core';
2
+ interface IFontSizeOptions {
3
+ types: string[];
4
+ getStyle: (fontSize: string) => string;
5
+ }
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ fontSize: {
9
+ /**
10
+ * Set the font size attribute
11
+ */
12
+ setFontSize: (size: string) => ReturnType;
13
+ /**
14
+ * Unset the font size attribute
15
+ */
16
+ unsetFontSize: () => ReturnType;
17
+ };
18
+ }
19
+ }
20
+ export declare const FontSize: Extension<IFontSizeOptions, any> & {
21
+ Control: () => import("react/jsx-runtime").JSX.Element;
22
+ };
23
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const Italic: import('@tiptap/core').Mark<import('@tiptap/extension-italic').ItalicOptions, any> & {
2
+ Control: () => import("react/jsx-runtime").JSX.Element;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const Underline: import('@tiptap/core').Mark<import('@tiptap/extension-underline').UnderlineOptions, any> & {
2
+ Control: () => import("react/jsx-runtime").JSX.Element;
3
+ };
@@ -0,0 +1,41 @@
1
+ import { RichTextEditorContentProps } from '@mantine/tiptap';
2
+ interface IProps {
3
+ value?: string;
4
+ placeholder?: string;
5
+ style?: React.CSSProperties;
6
+ disabled?: boolean;
7
+ onChange?: (v: string) => void;
8
+ }
9
+ export declare const RichText: import('react').ForwardRefExoticComponent<IProps & {
10
+ children?: import('react').ReactNode;
11
+ } & import('react').RefAttributes<HTMLDivElement>> & {
12
+ Content: (props: RichTextEditorContentProps) => import("react/jsx-runtime").JSX.Element;
13
+ Bold: () => import("react/jsx-runtime").JSX.Element;
14
+ Italic: () => import("react/jsx-runtime").JSX.Element;
15
+ Underline: () => import("react/jsx-runtime").JSX.Element;
16
+ OrderedList: import('react').ForwardRefExoticComponent<import('@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorControl').RichTextEditorControlBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
17
+ BulletList: import('react').ForwardRefExoticComponent<import('@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorControl').RichTextEditorControlBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
18
+ Link: import('@mantine/core').MantineComponent<{
19
+ props: import('@mantine/tiptap').RichTextEditorLinkControlProps;
20
+ ref: HTMLButtonElement;
21
+ stylesNames: import('@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorLinkControl').RichTextEditorLinkControlStylesNames;
22
+ compound: true;
23
+ }>;
24
+ CheckList: () => import("react/jsx-runtime").JSX.Element;
25
+ FontSize: () => import("react/jsx-runtime").JSX.Element;
26
+ ColorPicker: ({ staticBg, onChange, }: {
27
+ staticBg?: boolean | undefined;
28
+ onChange?: ((v: {
29
+ value: string;
30
+ mode: string;
31
+ }) => void) | undefined;
32
+ }) => import("react/jsx-runtime").JSX.Element;
33
+ };
34
+ export interface IRichTextRef extends HTMLDivElement {
35
+ isFocused: boolean;
36
+ text: string | undefined;
37
+ setContent: (v: string) => void;
38
+ focus: (v?: FocusOptions) => void;
39
+ setTextAlign: (v: 'left' | 'right' | 'center') => void;
40
+ }
41
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SelectedFilter, setSelectedFilterType } from './types';
2
+ interface IProps {
3
+ setSelectedFilter?: setSelectedFilterType;
4
+ selectedFilter?: SelectedFilter;
5
+ }
6
+ export declare const SearchFilters: ({ setSelectedFilter, selectedFilter, }: IProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SelectedFilter } from '../types';
2
+ interface IProps {
3
+ setSelectedFilter: (value: (prev: SelectedFilter) => SelectedFilter) => void;
4
+ selectedFilter?: SelectedFilter;
5
+ }
6
+ export declare const Date: ({ setSelectedFilter, selectedFilter }: IProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const openSearchHelpModal: () => void;
3
+ export declare const closeSearchHelpModal: () => void;
4
+ export declare const SearchHelpModal: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,7 @@
1
+ import { SelectedFilter } from '../types';
2
+ interface IProps {
3
+ setSelectedFilter: (value: (prev: SelectedFilter) => SelectedFilter) => void;
4
+ selectedFilter?: SelectedFilter;
5
+ }
6
+ export declare const Sort: ({ setSelectedFilter, selectedFilter }: IProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SelectedFilter } from '../types';
2
+ interface IProps {
3
+ setSelectedFilter: (value: (prev: SelectedFilter) => SelectedFilter) => void;
4
+ selectedFilter?: SelectedFilter;
5
+ }
6
+ export declare const Type: ({ setSelectedFilter, selectedFilter }: IProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,19 @@
1
+ export type SortOrder = 'asc' | 'desc';
2
+ export type FilterType = 'Page' | 'Project' | 'Flow' | 'Form' | 'Cloud' | null;
3
+ export type SortFilter = {
4
+ [key: string]: {
5
+ order: SortOrder;
6
+ };
7
+ };
8
+ export type RangeFilter = {
9
+ [key: string]: {
10
+ gte?: number;
11
+ lte?: number;
12
+ };
13
+ };
14
+ export type SelectedFilter = {
15
+ sort: SortFilter[];
16
+ range: RangeFilter[];
17
+ type: FilterType;
18
+ };
19
+ export type setSelectedFilterType = (value: (prev: SelectedFilter) => SelectedFilter) => void;
@@ -11,5 +11,6 @@ export type WorkspaceMenuProps<W extends MenuWorkspace = MenuWorkspace> = PropsW
11
11
  active?: W | null;
12
12
  settingsLink?: string;
13
13
  membersLink?: string;
14
+ workspaceLink?: string;
14
15
  }>;
15
- export declare const WorkspaceMenu: <W extends MenuWorkspace>({ children, onCreate, onClick, active, items, settingsLink, membersLink, }: WorkspaceMenuProps<W>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const WorkspaceMenu: <W extends MenuWorkspace>({ children, onCreate, onClick, active, items, settingsLink, membersLink, workspaceLink, }: WorkspaceMenuProps<W>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const DEFAULT_VALUES: {
2
+ readonly TASK_TYPE_COLOR: string;
3
+ readonly TASK_STATUS_COLOR: string;
4
+ readonly FOLDER_COLOR: string;
5
+ readonly PROJECT_COLOR: string;
6
+ COLORS: string[];
7
+ };
8
+ export declare const NAVBAR_ICON_COLOR = "light-dark(\n var(--mantine-color-gray-7),\n var(--mantine-color-gray-4)\n )";
@@ -0,0 +1,2 @@
1
+ import { QueryStatus } from '@reduxjs/toolkit/query';
2
+ export declare const combineStatuses: (statuses: QueryStatus[]) => QueryStatus;
@@ -0,0 +1,3 @@
1
+ export declare const downloadURL: (data: string, fileName: string) => void;
2
+ export declare const downloadImageFromExternalUrl: (data: string, fileName: string) => void;
3
+ export declare const downloadCSVAsBlob: (csv: string, fileName: string) => void;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Определяет, является ли устройство мобильным
3
+ * @returns {boolean} - true, если устройство мобильное, иначе false
4
+ */
5
+ export declare const isMobileDevice: () => boolean;
6
+ /**
7
+ * Проверяет, является ли файл видеофайлом
8
+ * @param {string} mimeType - MIME тип файла
9
+ * @param {string | null | undefined} filename - имя файла
10
+ * @returns {boolean} - true, если файл является видеофайлом, иначе false
11
+ */
12
+ export declare const isVideoFile: (mimeType: string | null | undefined, filename: string | null | undefined) => boolean;
13
+ /**
14
+ * Проверяет, является ли файл медиафайлом для галереи
15
+ * @param {string} mimeType - MIME тип файла
16
+ * @param {string | null} filename - имя файла
17
+ * @returns {boolean} - true, если файл является медиафайлом для галереи, иначе false
18
+ */
19
+ export declare const isGalleryMediaFile: (mimeType: string | null | undefined, filename: string | null) => boolean;
20
+ /**
21
+ * Получает правильный MIME тип для файла
22
+ * @param {string} mimeType - исходный MIME тип файла
23
+ * @param {string | null | undefined} filename - имя файла
24
+ * @returns {string} - корректный MIME тип файла
25
+ */
26
+ export declare const getMimeType: (mimeType: string | null | undefined, filename: string | null | undefined) => string;
@@ -0,0 +1 @@
1
+ export declare const formatBytes: (bytes: number, decimals?: number) => string;
@@ -0,0 +1,3 @@
1
+ type PathParam<Path extends string> = Path extends `${infer L}/${infer R}` ? PathParam<L> | PathParam<R> : Path extends `:${infer Param}` ? Param : never;
2
+ export declare const generateLink: <Path extends string>(originPath: Path, params?: { [key in PathParam<Path>]: string | number | null; } | undefined, query?: Record<string, string | number | null>) => string;
3
+ export {};