@protonradio/proton-ui 0.7.5-beta1 → 0.7.5-beta10
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.cjs.js +13 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +37 -13
- package/dist/index.es.js +1341 -1292
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/{utils-XtM3icg-.mjs → utils-KedSkjS1.mjs} +148 -145
- package/dist/utils-KedSkjS1.mjs.map +1 -0
- package/dist/utils-ZbliEUT6.js +2 -0
- package/dist/utils-ZbliEUT6.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +6 -2
- package/dist/utils.es.js +10 -9
- package/package.json +3 -3
- package/dist/utils-D7mXXAiZ.js +0 -2
- package/dist/utils-D7mXXAiZ.js.map +0 -1
- package/dist/utils-XtM3icg-.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,27 @@ declare interface ActionMenuProps {
|
|
|
52
52
|
"data-testid"?: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Base Overlay component for creating modal-like backgrounds.
|
|
57
|
+
* @interface BackdropProps
|
|
58
|
+
*/
|
|
59
|
+
export declare function Backdrop({ fadeIn, onBackgroundEvent, children, }: BackdropProps): JSX_2.Element;
|
|
60
|
+
|
|
61
|
+
declare interface BackdropProps {
|
|
62
|
+
/**
|
|
63
|
+
* Whether to fade in the overlay.
|
|
64
|
+
*/
|
|
65
|
+
fadeIn?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Callback function to handle the background event (click or ESC key).
|
|
68
|
+
*/
|
|
69
|
+
onBackgroundEvent?: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* Children to render inside the overlay.
|
|
72
|
+
*/
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
}
|
|
75
|
+
|
|
55
76
|
export declare const Badge: ({ variant, children, ...props }: BadgeProps) => JSX_2.Element;
|
|
56
77
|
|
|
57
78
|
export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -350,27 +371,24 @@ declare interface IconProps {
|
|
|
350
371
|
}
|
|
351
372
|
|
|
352
373
|
/**
|
|
353
|
-
*
|
|
374
|
+
* ImageOverlay component for displaying an image with a blur effect.
|
|
375
|
+
* @interface ImageBackdropProps
|
|
354
376
|
*/
|
|
355
|
-
export declare
|
|
377
|
+
export declare function ImageBackdrop({ image, imageUrl, onLoad, onBackgroundEvent, }: ImageBackdropProps): JSX_2.Element;
|
|
356
378
|
|
|
357
|
-
|
|
358
|
-
* Overlay component for displaying an image with a blur effect.
|
|
359
|
-
* @interface OverlayProps
|
|
360
|
-
*/
|
|
361
|
-
export declare function Overlay({ imageUrl, fadeIn, onLoad, onBackgroundEvent, }: OverlayProps): JSX_2.Element;
|
|
362
|
-
|
|
363
|
-
declare interface OverlayProps {
|
|
379
|
+
declare interface ImageBackdropProps {
|
|
364
380
|
/**
|
|
365
|
-
* The
|
|
381
|
+
* The image to display in the overlay. Supports server side rendering.
|
|
366
382
|
*/
|
|
367
|
-
|
|
383
|
+
image?: React.ReactNode;
|
|
368
384
|
/**
|
|
369
|
-
*
|
|
385
|
+
* The URL of the image to display in the overlay.
|
|
386
|
+
* @important Supported in client components only.
|
|
370
387
|
*/
|
|
371
|
-
|
|
388
|
+
imageUrl?: string;
|
|
372
389
|
/**
|
|
373
390
|
* Callback function to handle the image load event.
|
|
391
|
+
* @important Supported in client components only.
|
|
374
392
|
*/
|
|
375
393
|
onLoad?: (image: HTMLImageElement) => void;
|
|
376
394
|
/**
|
|
@@ -379,7 +397,13 @@ declare interface OverlayProps {
|
|
|
379
397
|
onBackgroundEvent?: () => void;
|
|
380
398
|
}
|
|
381
399
|
|
|
400
|
+
/**
|
|
401
|
+
* A controlled and customizable input component with support for labels, prefixes, suffixes, and error states.
|
|
402
|
+
*/
|
|
403
|
+
export declare const Input: default_2.ForwardRefExoticComponent<BaseInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
404
|
+
|
|
382
405
|
declare type Palette = {
|
|
406
|
+
BASE_COLOR: string;
|
|
383
407
|
BRAND: {
|
|
384
408
|
PRIMARY: string;
|
|
385
409
|
PRIMARY_LIGHT: string;
|