@protonradio/proton-ui 0.10.0 → 0.10.2

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
@@ -199,12 +199,6 @@ declare interface BaseInputProps {
199
199
  value?: string;
200
200
  }
201
201
 
202
- declare const BRAND: {
203
- PRIMARY: string;
204
- PRIMARY_LIGHT: string;
205
- SECONDARY: string;
206
- };
207
-
208
202
  /**
209
203
  * A customizable button component that can render as either a button or anchor element
210
204
  * @interface ButtonProps
@@ -288,51 +282,8 @@ export declare type ButtonVariant = "primary" | "secondary" | "success" | "dange
288
282
 
289
283
  export declare const Cell: <T>(props: ProtonColumnProps<T>) => JSX.Element;
290
284
 
291
- export declare namespace COLORS {
292
- export {
293
- BRAND,
294
- GRAYSCALE,
295
- SECONDARY,
296
- DANGER,
297
- WARNING,
298
- SUCCESS,
299
- DARK_GRAYSCALE,
300
- DARK_SECONDARY
301
- }
302
- }
303
-
304
285
  export declare const Column: <T>(props: ProtonColumnProps<T>) => JSX.Element;
305
286
 
306
- declare const DANGER: {
307
- SUPER_DARK: string;
308
- DARK: string;
309
- MEDIUM: string;
310
- LIGHT: string;
311
- SUPER_LIGHT: string;
312
- };
313
-
314
- declare const DARK_GRAYSCALE: {
315
- GRAY_SUPER_DARK: string;
316
- GRAY_DARK: string;
317
- GRAY_MEDIUM: string;
318
- GRAY_MEDIUM_LIGHT: string;
319
- GRAY_LIGHT: string;
320
- GRAY_LIGHTEST: string;
321
- GRAY_SUPER_LIGHT: string;
322
- WHITE: string;
323
- BORDER: string;
324
- };
325
-
326
- declare const DARK_SECONDARY: {
327
- SECONDARY_SUPER_DARK: string;
328
- SECONDARY_DARK: string;
329
- SECONDARY_MEDIUM: string;
330
- SECONDARY_MEDIUM_LIGHT: string;
331
- SECONDARY_LIGHT: string;
332
- SECONDARY_LIGHTEST: string;
333
- SECONDARY_SUPER_LIGHT: string;
334
- };
335
-
336
287
  /**
337
288
  * Intended use in overlay containers such as modals or popovers.
338
289
  */
@@ -343,18 +294,6 @@ declare interface DialogProps extends AriaDialogProps {
343
294
  children: React.ReactNode;
344
295
  }
345
296
 
346
- declare const GRAYSCALE: {
347
- GRAY_SUPER_DARK: string;
348
- GRAY_DARK: string;
349
- GRAY_MEDIUM: string;
350
- GRAY_MEDIUM_LIGHT: string;
351
- GRAY_LIGHT: string;
352
- GRAY_LIGHTEST: string;
353
- GRAY_SUPER_LIGHT: string;
354
- WHITE: string;
355
- BORDER: string;
356
- };
357
-
358
297
  export declare function Icon(props: Omit<IconProps, "svgContent">): JSX_2.Element;
359
298
 
360
299
  declare type IconID = "external-link" | "caret-down";
@@ -405,6 +344,15 @@ declare interface ImageBackgroundProps {
405
344
  */
406
345
  export declare const Input: default_2.ForwardRefExoticComponent<BaseInputProps & default_2.RefAttributes<HTMLInputElement>>;
407
346
 
347
+ export declare const Modal: ({ isOpen, onClose, title, children }: ModalProps) => JSX_2.Element;
348
+
349
+ declare interface ModalProps {
350
+ isOpen: boolean;
351
+ onClose: () => void;
352
+ title?: string;
353
+ children: React.ReactNode;
354
+ }
355
+
408
356
  declare type Palette = {
409
357
  BASE_COLOR: string;
410
358
  BRAND: {
@@ -542,7 +490,8 @@ declare interface ScreenOverlayProps {
542
490
  */
543
491
  fadeIn?: boolean;
544
492
  /**
545
- * Whether to fade out the overlay. Fade out triggers on click.
493
+ * Whether to fade out the overlay.
494
+ * @important Fade out triggers on click, you must provide an onClose prop to use this.
546
495
  */
547
496
  fadeOut?: boolean;
548
497
  /**
@@ -573,17 +522,6 @@ declare interface SearchInputProps extends Omit<BaseInputProps, "prefix" | "suff
573
522
  value?: string;
574
523
  }
575
524
 
576
- declare const SECONDARY: {
577
- SUPER_DARK: string;
578
- DARK: string;
579
- MEDIUM: string;
580
- MEDIUM_LIGHT: string;
581
- LIGHT: string;
582
- LIGHTEST: string;
583
- SUPER_LIGHT: string;
584
- WHITE: string;
585
- };
586
-
587
525
  export { Section }
588
526
 
589
527
  export declare const Select: {
@@ -630,13 +568,6 @@ declare interface SelectProps<T> {
630
568
  children: CollectionChildren<T>;
631
569
  }
632
570
 
633
- declare const SUCCESS: {
634
- DARK: string;
635
- MEDIUM: string;
636
- LIGHT: string;
637
- SUPER_LIGHT: string;
638
- };
639
-
640
571
  export declare function Switch(props: SwitchProps): JSX_2.Element;
641
572
 
642
573
  declare interface SwitchProps {
@@ -758,7 +689,7 @@ declare interface ThemeProviderProps {
758
689
  palette?: Palette;
759
690
  }
760
691
 
761
- export declare const THEMES: {
692
+ declare const THEMES: {
762
693
  readonly DARK: "dark";
763
694
  readonly CUSTOM_DARK: "custom-dark";
764
695
  readonly LIGHT: "light";
@@ -869,13 +800,6 @@ export declare function usePopoverTrigger(props?: OverlayTriggerProps): {
869
800
 
870
801
  export declare const useTheme: () => ThemeContextType;
871
802
 
872
- declare const WARNING: {
873
- DARK: string;
874
- MEDIUM: string;
875
- LIGHT: string;
876
- SUPER_LIGHT: string;
877
- };
878
-
879
803
  /**
880
804
  * A waveform visualization component that displays audio data with interactive features.
881
805
  *