greenole-design-system 1.1.43 → 1.1.44

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.
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { THookTypes } from '../../utils/i18n/types';
2
3
  export interface DropdownOptionsType {
3
4
  icon?: ReactNode;
4
5
  label: string;
@@ -24,6 +25,7 @@ export interface DropdownTypes {
24
25
  className?: string;
25
26
  displayValue?: string;
26
27
  isRequired?: boolean;
28
+ t?: THookTypes;
27
29
  onChange: (value: string | string[]) => void;
28
30
  onSearch?: (searchTerm: string) => void;
29
31
  onLoadMore?: () => void;
@@ -10,6 +10,8 @@ export interface DrawerProps {
10
10
  cancelButtonText?: string;
11
11
  confirmButtonText?: string;
12
12
  direction?: 'left' | 'right';
13
+ cancelButton?: ReactNode;
14
+ confirmButton?: ReactNode;
13
15
  onCancel?: () => void;
14
16
  onConfirm?: () => void;
15
17
  onClose?: () => void;
@@ -1,8 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
+ import { THookTypes } from '../../utils/i18n/types';
2
3
  export interface EmptyProps {
3
4
  icon?: ReactNode;
4
5
  iconBg?: string;
5
6
  title?: string;
6
7
  description?: string;
7
8
  className?: string;
9
+ t?: THookTypes;
8
10
  }
@@ -1,9 +1,10 @@
1
+ import { THookTypes } from '../../utils/i18n/types';
1
2
  export type AspectRatio = {
2
3
  width: number;
3
4
  height: number;
4
5
  };
5
6
  export type UploadProps = {
6
- variant?: "input" | "preview";
7
+ variant?: 'input' | 'preview';
7
8
  maxSize?: number;
8
9
  acceptedTypes?: string;
9
10
  previewSize?: {
@@ -14,6 +15,8 @@ export type UploadProps = {
14
15
  maxFiles?: number;
15
16
  aspectRatio?: AspectRatio;
16
17
  initialImage?: string;
18
+ showPreview?: boolean;
19
+ t?: THookTypes;
17
20
  onUpload?: (files: File[]) => void;
18
21
  onRemove?: (fileIndex: number) => void;
19
22
  };