analytica-frontend-lib 1.0.57 → 1.0.59

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.
@@ -1,6 +1,15 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode } from 'react';
3
3
 
4
+ interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
5
+ children: ReactNode;
6
+ variant?: 'default' | 'compact' | 'minimal';
7
+ layout?: 'horizontal' | 'vertical';
8
+ padding?: 'none' | 'small' | 'medium' | 'large';
9
+ minHeight?: 'none' | 'small' | 'medium' | 'large';
10
+ cursor?: 'default' | 'pointer';
11
+ }
12
+ declare const CardBase: react.ForwardRefExoticComponent<CardBaseProps & react.RefAttributes<HTMLDivElement>>;
4
13
  interface CardActivesResultsProps extends HTMLAttributes<HTMLDivElement> {
5
14
  icon: ReactNode;
6
15
  title: string;
@@ -81,5 +90,23 @@ interface CardForumProps<T = unknown> extends HTMLAttributes<HTMLDivElement> {
81
90
  valueProfile?: T;
82
91
  }
83
92
  declare const CardForum: react.ForwardRefExoticComponent<CardForumProps<unknown> & react.RefAttributes<HTMLDivElement>>;
93
+ interface CardAudioProps extends HTMLAttributes<HTMLDivElement> {
94
+ src?: string;
95
+ title?: string;
96
+ onPlay?: () => void;
97
+ onPause?: () => void;
98
+ onEnded?: () => void;
99
+ onAudioTimeUpdate?: (currentTime: number, duration: number) => void;
100
+ loop?: boolean;
101
+ preload?: 'none' | 'metadata' | 'auto';
102
+ tracks?: Array<{
103
+ kind: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
104
+ src: string;
105
+ srcLang: string;
106
+ label: string;
107
+ default?: boolean;
108
+ }>;
109
+ }
110
+ declare const CardAudio: react.ForwardRefExoticComponent<CardAudioProps & react.RefAttributes<HTMLDivElement>>;
84
111
 
85
- export { CardActivesResults, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardStatus, CardSupport, CardTopic };
112
+ export { CardActivesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardStatus, CardSupport, CardTopic };
@@ -1,6 +1,15 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode } from 'react';
3
3
 
4
+ interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
5
+ children: ReactNode;
6
+ variant?: 'default' | 'compact' | 'minimal';
7
+ layout?: 'horizontal' | 'vertical';
8
+ padding?: 'none' | 'small' | 'medium' | 'large';
9
+ minHeight?: 'none' | 'small' | 'medium' | 'large';
10
+ cursor?: 'default' | 'pointer';
11
+ }
12
+ declare const CardBase: react.ForwardRefExoticComponent<CardBaseProps & react.RefAttributes<HTMLDivElement>>;
4
13
  interface CardActivesResultsProps extends HTMLAttributes<HTMLDivElement> {
5
14
  icon: ReactNode;
6
15
  title: string;
@@ -81,5 +90,23 @@ interface CardForumProps<T = unknown> extends HTMLAttributes<HTMLDivElement> {
81
90
  valueProfile?: T;
82
91
  }
83
92
  declare const CardForum: react.ForwardRefExoticComponent<CardForumProps<unknown> & react.RefAttributes<HTMLDivElement>>;
93
+ interface CardAudioProps extends HTMLAttributes<HTMLDivElement> {
94
+ src?: string;
95
+ title?: string;
96
+ onPlay?: () => void;
97
+ onPause?: () => void;
98
+ onEnded?: () => void;
99
+ onAudioTimeUpdate?: (currentTime: number, duration: number) => void;
100
+ loop?: boolean;
101
+ preload?: 'none' | 'metadata' | 'auto';
102
+ tracks?: Array<{
103
+ kind: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
104
+ src: string;
105
+ srcLang: string;
106
+ label: string;
107
+ default?: boolean;
108
+ }>;
109
+ }
110
+ declare const CardAudio: react.ForwardRefExoticComponent<CardAudioProps & react.RefAttributes<HTMLDivElement>>;
84
111
 
85
- export { CardActivesResults, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardStatus, CardSupport, CardTopic };
112
+ export { CardActivesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardStatus, CardSupport, CardTopic };