@protonradio/proton-ui 0.7.3 → 0.7.4
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 +19 -7
- package/dist/index.es.js +3042 -3088
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-DW0aDmds.js +2 -0
- package/dist/utils-DW0aDmds.js.map +1 -0
- package/dist/utils-lYqR6GD0.mjs +222 -0
- package/dist/utils-lYqR6GD0.mjs.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +1 -2
- package/dist/utils.es.js +1 -1
- 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
|
@@ -618,25 +618,42 @@ declare interface ThemeVariables {
|
|
|
618
618
|
"--proton-color__primary": string;
|
|
619
619
|
"--proton-color__primary-light": string;
|
|
620
620
|
"--proton-color__secondary": string;
|
|
621
|
+
"--proton-control__primary-super-dark": string;
|
|
622
|
+
"--proton-control__primary-dark": string;
|
|
623
|
+
"--proton-control__primary-medium": string;
|
|
624
|
+
"--proton-control__primary-medium-light": string;
|
|
625
|
+
"--proton-control__primary-light": string;
|
|
626
|
+
"--proton-control__primary-lightest": string;
|
|
627
|
+
"--proton-control__primary-super-light": string;
|
|
628
|
+
"--proton-control__secondary-super-dark": string;
|
|
629
|
+
"--proton-control__secondary-dark": string;
|
|
630
|
+
"--proton-control__secondary-medium": string;
|
|
631
|
+
"--proton-control__secondary-medium-light": string;
|
|
632
|
+
"--proton-control__secondary-light": string;
|
|
633
|
+
"--proton-control__secondary-lightest": string;
|
|
634
|
+
"--proton-control__secondary-super-light": string;
|
|
621
635
|
}
|
|
622
636
|
|
|
623
637
|
/**
|
|
624
638
|
* A component that displays a loading tombstone. For use as a placeholder while loading content
|
|
625
639
|
* @interface TombstoneProps
|
|
626
640
|
*/
|
|
627
|
-
export declare const Tombstone: ({ width, height, borderRadius,
|
|
641
|
+
export declare const Tombstone: ({ width, height, borderRadius, }: TombstoneProps) => JSX_2.Element;
|
|
628
642
|
|
|
629
643
|
declare interface TombstoneProps {
|
|
630
644
|
/**
|
|
631
645
|
* The width of the tombstone.
|
|
646
|
+
* @default "100%"
|
|
632
647
|
*/
|
|
633
648
|
width?: string;
|
|
634
649
|
/**
|
|
635
650
|
* The height of the tombstone.
|
|
651
|
+
* @default "1.5rem"
|
|
636
652
|
*/
|
|
637
653
|
height?: string;
|
|
638
654
|
/**
|
|
639
655
|
* The border radius of the tombstone.
|
|
656
|
+
* @default "4px"
|
|
640
657
|
*/
|
|
641
658
|
borderRadius?: string;
|
|
642
659
|
}
|
|
@@ -707,7 +724,7 @@ declare const WARNING: {
|
|
|
707
724
|
*
|
|
708
725
|
* @returns {JSX.Element} A waveform visualization with optional timestamps and interactive features
|
|
709
726
|
*/
|
|
710
|
-
export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick,
|
|
727
|
+
export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick, "data-testid": testId, }: WaveformProps): JSX_2.Element;
|
|
711
728
|
|
|
712
729
|
declare interface WaveformProps {
|
|
713
730
|
/**
|
|
@@ -743,11 +760,6 @@ declare interface WaveformProps {
|
|
|
743
760
|
* Click handler that receives the clicked position (0-1) and event.
|
|
744
761
|
*/
|
|
745
762
|
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
763
|
/**
|
|
752
764
|
* Test ID for testing purposes.
|
|
753
765
|
*/
|