denwa-react-shared 1.0.11 → 1.0.13
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/denwa-react-shared.cjs.js +98 -98
- package/dist/denwa-react-shared.es.js +14203 -14259
- package/dist/denwa-react-shared.umd.js +98 -98
- package/dist/shared/ui/date-picker/types.d.ts +3 -0
- package/dist/shared/ui/drawer-form/types.d.ts +4 -0
- package/dist/shared/ui/image-upload/schema.d.ts +6 -1
- package/dist/shared/ui/image-upload/types.d.ts +11 -0
- package/dist/shared/ui/image-upload/upload-button.d.ts +6 -1
- package/dist/shared/ui/input/index.d.ts +10 -3
- package/dist/shared/ui/input-number/index.d.ts +5 -1
- package/dist/shared/ui/readonly-input/types.d.ts +1 -0
- package/dist/shared/ui/search-input/types.d.ts +1 -0
- package/dist/shared/ui/text-editor/data.d.ts +14 -2
- package/dist/shared/ui/text-editor/link-button.d.ts +7 -1
- package/dist/shared/ui/text-editor/remove-link-button.d.ts +6 -1
- package/dist/shared/ui/text-editor/toolbar.d.ts +17 -1
- package/dist/shared/ui/text-editor/types.d.ts +12 -0
- package/package.json +1 -2
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DatePickerProps } from 'antd';
|
|
2
|
+
import { Locale } from 'antd/es/locale';
|
|
2
3
|
export interface BaseDatePickerProps extends DatePickerProps {
|
|
4
|
+
noDateText: string;
|
|
5
|
+
configLocale: Locale;
|
|
3
6
|
currentValue: Date | string;
|
|
4
7
|
readOnly?: boolean;
|
|
5
8
|
onChangeDate: (date: Date | null) => void;
|
|
@@ -4,6 +4,10 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
import { LanguagesTypes, OptionType } from '../../types';
|
|
5
5
|
export interface BaseDrawerFormProps extends FormProps {
|
|
6
6
|
children: ReactNode;
|
|
7
|
+
language: string;
|
|
8
|
+
saveText: string;
|
|
9
|
+
translateAllText: string;
|
|
10
|
+
translateAllTooltipText: string;
|
|
7
11
|
languagesData?: OptionType[];
|
|
8
12
|
submitButtonText?: string;
|
|
9
13
|
submitHtmlType?: ButtonHTMLType;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
interface UseUploadItemSchemaParams {
|
|
3
|
+
requiredText: string;
|
|
4
|
+
minimumCharactersLengthText: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const useUploadItemSchema: ({ requiredText, minimumCharactersLengthText, }: UseUploadItemSchemaParams) => z.ZodObject<{
|
|
3
7
|
altRU: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
4
8
|
altEN: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
5
9
|
altAR: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
@@ -12,3 +16,4 @@ export declare const useUploadItemSchema: () => z.ZodObject<{
|
|
|
12
16
|
altEN?: string | undefined;
|
|
13
17
|
altAR?: string | undefined;
|
|
14
18
|
}>;
|
|
19
|
+
export {};
|
|
@@ -2,6 +2,12 @@ import { UploadProps } from 'antd';
|
|
|
2
2
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
3
3
|
import { IServerImageForm, IUploadImage } from '../../types';
|
|
4
4
|
export interface BaseImageUploadProps extends UploadProps {
|
|
5
|
+
labelText: string;
|
|
6
|
+
loadingErrorText: string;
|
|
7
|
+
emptyText: string;
|
|
8
|
+
downloadText: string;
|
|
9
|
+
requiredText: string;
|
|
10
|
+
minimumCharactersLengthText: string;
|
|
5
11
|
serverImages: IServerImageForm[];
|
|
6
12
|
updatedImages?: IUploadImage[];
|
|
7
13
|
language: string;
|
|
@@ -25,6 +31,11 @@ export type OnUpdateBaseImageUploadTempImageType = {
|
|
|
25
31
|
error?: unknown;
|
|
26
32
|
};
|
|
27
33
|
export interface ItemProps {
|
|
34
|
+
labelText: string;
|
|
35
|
+
loadingErrorText: string;
|
|
36
|
+
emptyText: string;
|
|
37
|
+
requiredText: string;
|
|
38
|
+
minimumCharactersLengthText: string;
|
|
28
39
|
file: IUploadFile;
|
|
29
40
|
language: string;
|
|
30
41
|
maxCount: number | undefined;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { InputProps } from 'antd';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { TextAreaProps } from 'antd/es/input';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
interface BaseInputProps extends InputProps {
|
|
5
|
+
emptyText: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const BaseInput: FC<BaseInputProps>;
|
|
8
|
+
export declare const BasePasswordInput: FC<BaseInputProps>;
|
|
9
|
+
interface BaseTextAreaInput extends TextAreaProps {
|
|
10
|
+
emptyText: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const BaseTextAreaInput: FC<BaseTextAreaInput>;
|
|
13
|
+
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { InputNumberProps } from 'antd';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
|
|
3
|
+
interface BaseInputNumberProps extends InputNumberProps {
|
|
4
|
+
emptyText: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const BaseInputNumber: FC<BaseInputNumberProps>;
|
|
7
|
+
export {};
|
|
@@ -7,10 +7,22 @@ export declare const HOTKEYS: {
|
|
|
7
7
|
export declare const LIST_TYPES: string[];
|
|
8
8
|
export declare const TEXT_ALIGN_TYPES: string[];
|
|
9
9
|
export declare const allowedUrls: string[];
|
|
10
|
-
|
|
10
|
+
interface UseIconButtonsParams {
|
|
11
|
+
boldText: string;
|
|
12
|
+
italicText: string;
|
|
13
|
+
underlineText: string;
|
|
14
|
+
numberedListText: string;
|
|
15
|
+
bulletedListText: string;
|
|
16
|
+
leftText: string;
|
|
17
|
+
centerText: string;
|
|
18
|
+
rightText: string;
|
|
19
|
+
justifyText: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const useIconButtons: ({ boldText, italicText, underlineText, numberedListText, bulletedListText, leftText, centerText, rightText, justifyText, }: UseIconButtonsParams) => {
|
|
11
22
|
id: string;
|
|
12
|
-
title:
|
|
23
|
+
title: string;
|
|
13
24
|
format: string;
|
|
14
25
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
15
26
|
type: string;
|
|
16
27
|
}[];
|
|
28
|
+
export {};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface ToolbarProps {
|
|
3
|
+
boldText: string;
|
|
4
|
+
italicText: string;
|
|
5
|
+
underlineText: string;
|
|
6
|
+
numberedListText: string;
|
|
7
|
+
bulletedListText: string;
|
|
8
|
+
leftText: string;
|
|
9
|
+
centerText: string;
|
|
10
|
+
rightText: string;
|
|
11
|
+
justifyText: string;
|
|
12
|
+
linkErrorText: string;
|
|
13
|
+
linkButtonTooltipText: string;
|
|
14
|
+
removeLinkTooltipText: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Toolbar: FC<ToolbarProps>;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { RenderElementProps, RenderLeafProps } from 'slate-react';
|
|
2
2
|
export interface BaseTextEditorProps {
|
|
3
|
+
boldText: string;
|
|
4
|
+
italicText: string;
|
|
5
|
+
underlineText: string;
|
|
6
|
+
numberedListText: string;
|
|
7
|
+
bulletedListText: string;
|
|
8
|
+
leftText: string;
|
|
9
|
+
centerText: string;
|
|
10
|
+
rightText: string;
|
|
11
|
+
justifyText: string;
|
|
12
|
+
linkErrorText: string;
|
|
13
|
+
linkButtonTooltipText: string;
|
|
14
|
+
removeLinkTooltipText: string;
|
|
3
15
|
language: string;
|
|
4
16
|
readOnly?: boolean;
|
|
5
17
|
isResetContent?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "denwa-react-shared",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Denwa",
|
|
7
7
|
"main": "dist/denwa-react-shared.umd.js",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"react": "^19.1.0",
|
|
48
48
|
"react-dom": "^19.1.0",
|
|
49
49
|
"react-hook-form": "^7.57.0",
|
|
50
|
-
"react-i18next": "^15.5.2",
|
|
51
50
|
"react-use": "^17.6.0",
|
|
52
51
|
"slate": "^0.115.1",
|
|
53
52
|
"slate-dom": "^0.114.0",
|