@layers-app/shared 0.0.19 → 0.0.20
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/components/AnimationWrapper/index.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/ImageModal.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/index.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/types.d.ts +15 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +13 -0
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +10 -0
- package/dist/components/CustomKBD/index.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +4 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +14 -5
- package/dist/components/EmojiPicker/IconsPanel.d.ts +4 -0
- package/dist/components/EmojiPicker/icons.json.d.ts +80399 -0
- package/dist/components/ErrorAlert/ErrorAlert.story.d.ts +8 -0
- package/dist/components/ErrorAlert/index.d.ts +7 -0
- package/dist/components/ErrorPage/components/Error404.d.ts +16 -2
- package/dist/components/ErrorPage/components/ErrorUndefined.d.ts +3 -0
- package/dist/components/ErrorPage/index.d.ts +1 -1
- package/dist/components/NewColorPicker/NewColorPicker.story.d.ts +6 -0
- package/dist/components/NewColorPicker/components/Pallete.d.ts +12 -0
- package/dist/components/NewColorPicker/components/Target.d.ts +10 -0
- package/dist/components/NewColorPicker/index.d.ts +18 -0
- package/dist/components/NewColorPicker/types.d.ts +28 -0
- package/dist/components/NoData/NoData.d.ts +20 -96
- package/dist/components/NotFound/NoFound.d.ts +4 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.d.ts +2 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.d.ts +8 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.d.ts +2 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts +2 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.d.ts +2 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.d.ts +2 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/TimeLine.d.ts +2 -0
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts +7 -1
- package/dist/components/OnBoarding/steps/Wrapper.d.ts +4 -1
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +18 -0
- package/dist/components/RichText/extensions/bold.d.ts +3 -0
- package/dist/components/RichText/extensions/check-list.d.ts +42 -0
- package/dist/components/RichText/extensions/color-picker.d.ts +28 -0
- package/dist/components/RichText/extensions/font-size.d.ts +23 -0
- package/dist/components/RichText/extensions/italic.d.ts +3 -0
- package/dist/components/RichText/extensions/underline.d.ts +3 -0
- package/dist/components/RichText/index.d.ts +41 -0
- package/dist/components/SearchFilters/SearchFilters.d.ts +7 -0
- package/dist/components/SearchFilters/components/Date.d.ts +7 -0
- package/dist/components/SearchFilters/components/SearchHelp.d.ts +4 -0
- package/dist/components/SearchFilters/components/Sort.d.ts +7 -0
- package/dist/components/SearchFilters/components/Type.d.ts +7 -0
- package/dist/components/SearchFilters/types.d.ts +19 -0
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +2 -1
- package/dist/constants.d.ts +8 -0
- package/dist/helpers/combineStatuses.d.ts +2 -0
- package/dist/helpers/download.d.ts +3 -0
- package/dist/helpers/fileUtils.d.ts +26 -0
- package/dist/helpers/formatBytes.d.ts +1 -0
- package/dist/helpers/generateLink.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts +1 -0
- package/dist/icons-DayTtENI.js +5658 -0
- package/dist/index.d.ts +34 -7
- package/dist/index.js +36811 -9026
- package/dist/index.umd.cjs +964 -13
- package/dist/store/onboarding.d.ts +14 -2
- package/package.json +2 -1
- package/dist/components/EmojiPicker/index.d.ts +0 -2
- package/dist/components/EmojiPicker/types.d.ts +0 -8
- package/dist/components/NoData/index.d.ts +0 -1
- package/dist/components/NotFoundPage/index.d.ts +0 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MotionProps } from 'framer-motion';
|
|
3
|
+
interface AnimationWrapperProps extends MotionProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
animationProps?: MotionProps;
|
|
6
|
+
}
|
|
7
|
+
export declare const AnimationWrapper: ({ children, animationProps, }: AnimationWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ImageModalState {
|
|
3
|
+
opened: boolean;
|
|
4
|
+
src: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const useChangePasswordModalStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ImageModalState>>;
|
|
7
|
+
export declare const openImageModal: (src: string) => void;
|
|
8
|
+
export declare const closeImageModal: () => void;
|
|
9
|
+
export declare const ImageModal: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AttachmentsGalleryModalProps } from './types';
|
|
2
|
+
export declare const AttachmentsGalleryModal: import('react').MemoExoticComponent<({ attachments, onOpenChange, opened, setShowAttach, showAttach, translation, }: AttachmentsGalleryModalProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type IAttachment = {
|
|
2
|
+
Id: string | null;
|
|
3
|
+
Name?: string | null;
|
|
4
|
+
Size?: number;
|
|
5
|
+
MimeType?: string;
|
|
6
|
+
Url: string;
|
|
7
|
+
};
|
|
8
|
+
export type AttachmentsGalleryModalProps = {
|
|
9
|
+
opened: boolean;
|
|
10
|
+
onOpenChange: (v: boolean) => void;
|
|
11
|
+
showAttach?: IAttachment | null;
|
|
12
|
+
setShowAttach?: (v: IAttachment | null) => void;
|
|
13
|
+
attachments: IAttachment[];
|
|
14
|
+
translation?: Record<string, string>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColorSwatchProps, FlexProps } from '@mantine/core';
|
|
2
|
+
interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.ComponentPropsWithoutRef<'div'>, keyof Omit<ColorSwatchProps, 'color'>> {
|
|
3
|
+
value?: string | null;
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const ColorPicker: import('react').ForwardRefExoticComponent<{
|
|
7
|
+
value?: string | null | undefined;
|
|
8
|
+
onChange?: ((v: string) => void) | undefined;
|
|
9
|
+
allowCustomColor?: boolean | undefined;
|
|
10
|
+
} & Omit<FlexProps, "onChange"> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
11
|
+
ColorCircle: import('react').ForwardRefExoticComponent<ColorCircleProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
interface ColorPickerPopoverProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (v: string) => void;
|
|
5
|
+
defaultOpened?: boolean;
|
|
6
|
+
size?: number;
|
|
7
|
+
radius?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const ColorPickerPopover: ({ value, onChange, defaultOpened, size, radius, children, }: PropsWithChildren<ColorPickerPopoverProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { FloatingPosition, PopoverProps } from '@mantine/core';
|
|
3
|
-
import { EmojiPickerLocales } from './types';
|
|
4
3
|
export type EmojiPickerProps = {
|
|
5
|
-
value?: string;
|
|
4
|
+
value?: string | null;
|
|
6
5
|
onChange?: (v: string) => void;
|
|
7
|
-
onRemove?: () => void;
|
|
8
|
-
hasIcon?: boolean;
|
|
9
6
|
position?: FloatingPosition;
|
|
10
7
|
popoverProps?: PopoverProps;
|
|
11
8
|
locales?: EmojiPickerLocales;
|
|
9
|
+
showIcons?: boolean;
|
|
10
|
+
showColors?: boolean;
|
|
11
|
+
showEmojis?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type EmojiPickerLocales = {
|
|
14
|
+
emojis?: string;
|
|
15
|
+
search?: string;
|
|
16
|
+
searchResults?: string;
|
|
17
|
+
searchNoResults?: string;
|
|
18
|
+
remove?: string;
|
|
19
|
+
icons?: string;
|
|
20
|
+
emojiCategory?: Record<string, string>;
|
|
21
|
+
};
|
|
22
|
+
export declare const EmojiPicker: ({ value, children, onChange, position, popoverProps, showIcons, showColors, showEmojis, locales: _locales, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EmojiPickerProps } from './EmojiPicker';
|
|
2
|
+
export declare const IconsPanel: ({ showColors, locales, onChange, value, onClose, }: Pick<EmojiPickerProps, 'locales' | 'showColors' | 'value' | 'onChange'> & {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|