@protonradio/proton-ui 0.7.2 → 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.d.ts CHANGED
@@ -456,7 +456,7 @@ export { Row }
456
456
  /**
457
457
  * A search input component with optional clear functionality and URL parameter sync.
458
458
  */
459
- export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
459
+ export declare const SearchInput: ({ name, placeholder, autoComplete, isClearable, isDisabled, error, defaultValue, value: controlledValue, "data-testid": testId, onChange, onClear, }: SearchInputProps) => JSX_2.Element;
460
460
 
461
461
  declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suffix" | "value" | "onChange" | "description" | "descriptionPosition" | "label"> {
462
462
  /** Should the clear button be shown when there is text? */
@@ -601,7 +601,7 @@ export declare const ThemeProvider: default_2.FC<ThemeProviderProps>;
601
601
  declare interface ThemeProviderProps {
602
602
  theme: Theme;
603
603
  children: ReactNode;
604
- palette: Palette;
604
+ palette?: Palette;
605
605
  }
606
606
 
607
607
  export declare const THEMES: {
@@ -618,13 +618,43 @@ 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
- export declare const Tombstone: ({ width, height, borderRadius, ...props }: TombstoneProps) => JSX_2.Element;
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;
624
642
 
625
643
  declare interface TombstoneProps {
644
+ /**
645
+ * The width of the tombstone.
646
+ * @default "100%"
647
+ */
626
648
  width?: string;
649
+ /**
650
+ * The height of the tombstone.
651
+ * @default "1.5rem"
652
+ */
627
653
  height?: string;
654
+ /**
655
+ * The border radius of the tombstone.
656
+ * @default "4px"
657
+ */
628
658
  borderRadius?: string;
629
659
  }
630
660
 
@@ -694,7 +724,7 @@ declare const WARNING: {
694
724
  *
695
725
  * @returns {JSX.Element} A waveform visualization with optional timestamps and interactive features
696
726
  */
697
- export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick, timestampColor: timestampColorProp, "data-testid": testId, }: WaveformProps): JSX_2.Element;
727
+ export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick, "data-testid": testId, }: WaveformProps): JSX_2.Element;
698
728
 
699
729
  declare interface WaveformProps {
700
730
  /**
@@ -730,11 +760,6 @@ declare interface WaveformProps {
730
760
  * Click handler that receives the clicked position (0-1) and event.
731
761
  */
732
762
  onClick?: (position: number, e: React.MouseEvent<HTMLDivElement>) => void;
733
- /**
734
- * Custom color for timestamp text backgrounds.
735
- * Will use theme color by default.
736
- */
737
- timestampColor?: string;
738
763
  /**
739
764
  * Test ID for testing purposes.
740
765
  */