denwa-react-shared 1.0.10 → 1.0.12

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.
@@ -63,8 +63,8 @@ export interface IAllImages {
63
63
  altAR?: string | null;
64
64
  }
65
65
  export interface IServerImageForm {
66
- uid: string | undefined;
67
- url: string | undefined;
66
+ uid?: string;
67
+ url?: string;
68
68
  altRU?: string | null;
69
69
  altEN?: string | null;
70
70
  altAR?: string | null;
@@ -1,5 +1,6 @@
1
1
  import { DatePickerProps } from 'antd';
2
2
  export interface BaseDatePickerProps extends DatePickerProps {
3
+ noDateText: string;
3
4
  currentValue: Date | string;
4
5
  readOnly?: boolean;
5
6
  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
- export declare const useUploadItemSchema: () => z.ZodObject<{
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 +1,6 @@
1
- export declare const UploadButton: () => import("react/jsx-runtime").JSX.Element;
1
+ import { FC } from 'react';
2
+ interface UploadButtonProps {
3
+ downloadText: string;
4
+ }
5
+ export declare const UploadButton: FC<UploadButtonProps>;
6
+ export {};
@@ -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
- export declare const BaseInput: FC<InputProps>;
5
- export declare const BasePasswordInput: FC<InputProps>;
6
- export declare const BaseTextAreaInput: FC<TextAreaProps>;
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
- export declare const BaseInputNumber: FC<InputNumberProps>;
3
+ interface BaseInputNumberProps extends InputNumberProps {
4
+ emptyText: string;
5
+ }
6
+ export declare const BaseInputNumber: FC<BaseInputNumberProps>;
7
+ export {};
@@ -1,3 +1,4 @@
1
1
  export interface BaseReadonlyInputProps {
2
+ emptyText: string;
2
3
  value: string | number | undefined;
3
4
  }
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { OptionType } from '../../types';
3
3
  export interface BaseSearchInputProps {
4
+ notFoundText: string;
4
5
  dataName: string | undefined;
5
6
  value: string | undefined;
6
7
  searchTypeDefaultValue: string;
@@ -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
- export declare const useIconButtons: () => {
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: any;
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,7 @@
1
- export declare const LinkButton: () => import("react/jsx-runtime").JSX.Element;
1
+ import { FC } from 'react';
2
+ interface LinkButtonProps {
3
+ tooltipText: string;
4
+ linkErrorText: string;
5
+ }
6
+ export declare const LinkButton: FC<LinkButtonProps>;
7
+ export {};
@@ -1 +1,6 @@
1
- export declare const RemoveLinkButton: () => import("react/jsx-runtime").JSX.Element;
1
+ import { FC } from 'react';
2
+ interface RemoveLinkButtonProps {
3
+ tooltipText: string;
4
+ }
5
+ export declare const RemoveLinkButton: FC<RemoveLinkButtonProps>;
6
+ export {};
@@ -1 +1,17 @@
1
- export declare const Toolbar: () => import("react/jsx-runtime").JSX.Element;
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.10",
4
+ "version": "1.0.12",
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",