@protonradio/proton-ui 0.7.3 → 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 +13 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +41 -28
- package/dist/index.es.js +2955 -2993
- 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 +8 -2
- package/dist/utils.es.js +5 -4
- package/package.json +1 -1
- package/dist/utils-D9D3Fg9O.mjs +0 -145
- package/dist/utils-D9D3Fg9O.mjs.map +0 -1
- package/dist/utils-DbIphMSk.js +0 -2
- package/dist/utils-DbIphMSk.js.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? */
|
|
@@ -618,27 +643,20 @@ declare interface ThemeVariables {
|
|
|
618
643
|
"--proton-color__primary": string;
|
|
619
644
|
"--proton-color__primary-light": string;
|
|
620
645
|
"--proton-color__secondary": string;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
* The height of the tombstone.
|
|
636
|
-
*/
|
|
637
|
-
height?: string;
|
|
638
|
-
/**
|
|
639
|
-
* The border radius of the tombstone.
|
|
640
|
-
*/
|
|
641
|
-
borderRadius?: string;
|
|
646
|
+
"--proton-control__primary-super-dark": string;
|
|
647
|
+
"--proton-control__primary-dark": string;
|
|
648
|
+
"--proton-control__primary-medium": string;
|
|
649
|
+
"--proton-control__primary-medium-light": string;
|
|
650
|
+
"--proton-control__primary-light": string;
|
|
651
|
+
"--proton-control__primary-lightest": string;
|
|
652
|
+
"--proton-control__primary-super-light": string;
|
|
653
|
+
"--proton-control__secondary-super-dark": string;
|
|
654
|
+
"--proton-control__secondary-dark": string;
|
|
655
|
+
"--proton-control__secondary-medium": string;
|
|
656
|
+
"--proton-control__secondary-medium-light": string;
|
|
657
|
+
"--proton-control__secondary-light": string;
|
|
658
|
+
"--proton-control__secondary-lightest": string;
|
|
659
|
+
"--proton-control__secondary-super-light": string;
|
|
642
660
|
}
|
|
643
661
|
|
|
644
662
|
export declare function Tooltip({ children, arrow, ...props }: TooltipProps): JSX_2.Element;
|
|
@@ -707,7 +725,7 @@ declare const WARNING: {
|
|
|
707
725
|
*
|
|
708
726
|
* @returns {JSX.Element} A waveform visualization with optional timestamps and interactive features
|
|
709
727
|
*/
|
|
710
|
-
export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick,
|
|
728
|
+
export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick, "data-testid": testId, }: WaveformProps): JSX_2.Element;
|
|
711
729
|
|
|
712
730
|
declare interface WaveformProps {
|
|
713
731
|
/**
|
|
@@ -743,11 +761,6 @@ declare interface WaveformProps {
|
|
|
743
761
|
* Click handler that receives the clicked position (0-1) and event.
|
|
744
762
|
*/
|
|
745
763
|
onClick?: (position: number, e: React.MouseEvent<HTMLDivElement>) => void;
|
|
746
|
-
/**
|
|
747
|
-
* Custom color for timestamp text backgrounds.
|
|
748
|
-
* Will use theme color by default.
|
|
749
|
-
*/
|
|
750
|
-
timestampColor?: string;
|
|
751
764
|
/**
|
|
752
765
|
* Test ID for testing purposes.
|
|
753
766
|
*/
|