@protonradio/proton-ui 0.7.4 → 0.7.5-beta1
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 +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +26 -25
- package/dist/index.es.js +2110 -2102
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-D7mXXAiZ.js +2 -0
- package/dist/utils-D7mXXAiZ.js.map +1 -0
- package/dist/utils-XtM3icg-.mjs +449 -0
- package/dist/utils-XtM3icg-.mjs.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +7 -0
- package/dist/utils.es.js +5 -4
- package/package.json +1 -1
- package/dist/utils-DW0aDmds.js +0 -2
- package/dist/utils-DW0aDmds.js.map +0 -1
- package/dist/utils-lYqR6GD0.mjs +0 -222
- package/dist/utils-lYqR6GD0.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -354,6 +354,31 @@ declare interface IconProps {
|
|
|
354
354
|
*/
|
|
355
355
|
export declare const Input: default_2.ForwardRefExoticComponent<BaseInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
356
356
|
|
|
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 {
|
|
364
|
+
/**
|
|
365
|
+
* The URL of the image to display in the overlay. If not provided, the overlay will be solid black.
|
|
366
|
+
*/
|
|
367
|
+
imageUrl?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Whether to fade in the overlay.
|
|
370
|
+
*/
|
|
371
|
+
fadeIn?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Callback function to handle the image load event.
|
|
374
|
+
*/
|
|
375
|
+
onLoad?: (image: HTMLImageElement) => void;
|
|
376
|
+
/**
|
|
377
|
+
* Callback function to handle the background event.
|
|
378
|
+
*/
|
|
379
|
+
onBackgroundEvent?: () => void;
|
|
380
|
+
}
|
|
381
|
+
|
|
357
382
|
declare type Palette = {
|
|
358
383
|
BRAND: {
|
|
359
384
|
PRIMARY: string;
|
|
@@ -456,7 +481,7 @@ export { Row }
|
|
|
456
481
|
/**
|
|
457
482
|
* A search input component with optional clear functionality and URL parameter sync.
|
|
458
483
|
*/
|
|
459
|
-
export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable,
|
|
484
|
+
export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
|
|
460
485
|
|
|
461
486
|
declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suffix" | "value" | "onChange" | "description" | "descriptionPosition" | "label"> {
|
|
462
487
|
/** Should the clear button be shown when there is text? */
|
|
@@ -634,30 +659,6 @@ declare interface ThemeVariables {
|
|
|
634
659
|
"--proton-control__secondary-super-light": string;
|
|
635
660
|
}
|
|
636
661
|
|
|
637
|
-
/**
|
|
638
|
-
* A component that displays a loading tombstone. For use as a placeholder while loading content
|
|
639
|
-
* @interface TombstoneProps
|
|
640
|
-
*/
|
|
641
|
-
export declare const Tombstone: ({ width, height, borderRadius, }: TombstoneProps) => JSX_2.Element;
|
|
642
|
-
|
|
643
|
-
declare interface TombstoneProps {
|
|
644
|
-
/**
|
|
645
|
-
* The width of the tombstone.
|
|
646
|
-
* @default "100%"
|
|
647
|
-
*/
|
|
648
|
-
width?: string;
|
|
649
|
-
/**
|
|
650
|
-
* The height of the tombstone.
|
|
651
|
-
* @default "1.5rem"
|
|
652
|
-
*/
|
|
653
|
-
height?: string;
|
|
654
|
-
/**
|
|
655
|
-
* The border radius of the tombstone.
|
|
656
|
-
* @default "4px"
|
|
657
|
-
*/
|
|
658
|
-
borderRadius?: string;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
662
|
export declare function Tooltip({ children, arrow, ...props }: TooltipProps): JSX_2.Element;
|
|
662
663
|
|
|
663
664
|
export declare interface TooltipProps extends Omit<TooltipProps_2, "children"> {
|