@vacano/ui 1.15.8 → 1.17.0

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/index.d.ts CHANGED
@@ -234,7 +234,7 @@ export declare type ButtonProps = VacanoComponentProps<HTMLButtonElement, Button
234
234
 
235
235
  export declare type ButtonType = 'button' | 'submit' | 'reset' | 'link';
236
236
 
237
- export declare type ButtonVariant = 'normal' | 'system' | 'success' | 'warning' | 'danger' | 'transparent';
237
+ export declare type ButtonVariant = 'normal' | 'system' | 'success' | 'warning' | 'danger' | 'transparent' | 'ghost';
238
238
 
239
239
  export declare type CalendarView = 'days' | 'months' | 'years';
240
240
 
@@ -675,40 +675,6 @@ export declare type HeadingProps = VacanoComponentProps<HTMLHeadingElement> & Om
675
675
 
676
676
  declare const hexColor: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
677
677
 
678
- export declare const ImageCropper: ({ allowedTypes, applyLabel, buttonLabel, cancelLabel, className, classnames, compression, maxFileSize, onCrop, onError, outputSize, portalSize, previewSize, ref, type, value, ...rest }: ImageCropperProps) => JSX.Element;
679
-
680
- export declare type ImageCropperClassNames = {
681
- button?: string;
682
- preview?: string;
683
- };
684
-
685
- export declare type ImageCropperError = {
686
- code: string;
687
- message: string;
688
- };
689
-
690
- export declare type ImageCropperOutputType = 'jpeg' | 'png';
691
-
692
- export declare type ImageCropperProps = VacanoComponentProps<HTMLDivElement, ImageCropperClassNames> & Omit<UseImageCropperOptions, 'onCrop'> & {
693
- buttonLabel?: string;
694
- onCrop?: (result: ImageCropperResult) => void;
695
- previewSize?: number;
696
- value?: string | null;
697
- };
698
-
699
- export declare type ImageCropperResult = {
700
- base64: string;
701
- blob: Blob;
702
- state: ImageCropperState;
703
- };
704
-
705
- export declare type ImageCropperState = {
706
- fileName: string;
707
- sourceBase64: string;
708
- sourceWidth: number;
709
- sourceHeight: number;
710
- };
711
-
712
678
  export declare const Input: ({ className, classnames, disabled, fullWidth, label, ref, message, prefix, size, variant, ...rest }: InputProps) => JSX.Element;
713
679
 
714
680
  export declare type InputClassNames = {
@@ -1550,25 +1516,6 @@ declare const url: (message?: string) => StringSchema<string | undefined, AnyObj
1550
1516
 
1551
1517
  export declare const useConfirmation: () => ConfirmationContextValue;
1552
1518
 
1553
- export declare const useImageCropper: (options?: UseImageCropperOptions) => UseImageCropperReturn;
1554
-
1555
- export declare type UseImageCropperOptions = {
1556
- allowedTypes?: string[];
1557
- applyLabel?: string;
1558
- cancelLabel?: string;
1559
- compression?: number;
1560
- maxFileSize?: number;
1561
- onCrop?: (result: ImageCropperResult) => void;
1562
- onError?: (error: ImageCropperError) => void;
1563
- outputSize?: number;
1564
- portalSize?: number;
1565
- type?: ImageCropperOutputType;
1566
- };
1567
-
1568
- export declare type UseImageCropperReturn = {
1569
- open: () => void;
1570
- };
1571
-
1572
1519
  export declare const useKeyBinding: (keys: KeyboardEventKey[], cb?: () => void) => void;
1573
1520
 
1574
1521
  export declare const useNotification: () => NotificationContextValue;