@@ -8,6 +8,8 @@ import CollectContainer from 'skyflow-js/types/core/external/collect/collect-con
88import ComposableContainer from 'skyflow-js/types/core/external/collect/compose-collect-container'
99import RevealContainer from 'skyflow-js/types/core/external/reveal/reveal-container'
1010import { IValidationRule , RedactionType } from 'skyflow-js/types/utils/common'
11+ import { ElementClassesConfig , CollectElementState } from '../common'
12+ import EventEmitter from '../utils/event-emitter'
1113
1214export const FileRenderElements = { } ;
1315export const CollectElements = { } ;
@@ -22,13 +24,13 @@ export interface SkyflowCollectElementProps {
2224 placeholder ?: string
2325 errorText ?: string
2426 validations ?: IValidationRule [ ] | undefined
25- classes ?: Record < string , unknown >
27+ classes ?: ElementClassesConfig
2628 options ?: ICollectElementOptions
27- onChange ?: ( state : unknown ) => void
28- onFocus ?: ( state : unknown ) => void
29- onBlur ?: ( state : unknown ) => void
30- onReady ?: ( state : unknown ) => void
31- eventEmitter ?:any
29+ onChange ?: ( state : CollectElementState ) => void
30+ onFocus ?: ( state : CollectElementState ) => void
31+ onBlur ?: ( state : CollectElementState ) => void
32+ onReady ?: ( state : CollectElementState ) => void
33+ eventEmitter ?: EventEmitter
3234 skyflowID ?:string
3335 ref ?: { current : SkyflowCollectElementRef | null } ;
3436 // TODO ref
@@ -44,7 +46,7 @@ export interface SkyflowRevealElementProps {
4446 id ?: string
4547 label ?: string
4648 altText ?: string
47- classes ?: Record < string , unknown >
49+ classes ?: ElementClassesConfig
4850 options ?: IRevealOptions
4951 redaction ?: RedactionType
5052 ref ?: { current : SkyflowRevealElementRef | null }
@@ -58,7 +60,7 @@ export interface SkyflowRenderElementProps {
5860 container : RevealContainer
5961 id : string
6062 altText ?: string
61- classes ?: Record < string , unknown >
63+ classes ?: ElementClassesConfig
6264 skyflowID :string
6365 table : string
6466 column : string
0 commit comments