@@ -40,11 +40,10 @@ const defalutStyle: React.CSSProperties = {
4040} ;
4141
4242type TypeProps = PropsWithChildren < {
43- expandKey : string ;
4443 keyName : string | number ;
4544} > ;
4645
47- export const TypeString : FC < TypeProps > = ( { children = '' , expandKey , keyName } ) => {
46+ export const TypeString : FC < TypeProps > = ( { children = '' , keyName } ) => {
4847 const { Str = { } , displayDataTypes } = useTypesStore ( ) ;
4948 const { shortenTextAfterLength : length = 30 } = useStore ( ) ;
5049 const { as, render, ...reset } = Str ;
@@ -87,14 +86,13 @@ export const TypeString: FC<TypeProps> = ({ children = '', expandKey, keyName })
8786 < ValueQuote />
8887 </ Fragment >
8988 ) }
90- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
9189 </ Fragment >
9290 ) ;
9391} ;
9492
9593TypeString . displayName = 'JVR.TypeString' ;
9694
97- export const TypeTrue : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
95+ export const TypeTrue : FC < TypeProps > = ( { children, keyName } ) => {
9896 const { True = { } , displayDataTypes } = useTypesStore ( ) ;
9997 const { as, render, ...reset } = True ;
10098 const Comp = as || 'span' ;
@@ -115,14 +113,13 @@ export const TypeTrue: FC<TypeProps> = ({ children, expandKey, keyName }) => {
115113 { children ?. toString ( ) }
116114 </ Comp >
117115 ) }
118- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
119116 </ Fragment >
120117 ) ;
121118} ;
122119
123120TypeTrue . displayName = 'JVR.TypeTrue' ;
124121
125- export const TypeFalse : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
122+ export const TypeFalse : FC < TypeProps > = ( { children, keyName } ) => {
126123 const { False = { } , displayDataTypes } = useTypesStore ( ) ;
127124 const { as, render, ...reset } = False ;
128125 const Comp = as || 'span' ;
@@ -144,14 +141,13 @@ export const TypeFalse: FC<TypeProps> = ({ children, expandKey, keyName }) => {
144141 { children ?. toString ( ) }
145142 </ Comp >
146143 ) }
147- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
148144 </ Fragment >
149145 ) ;
150146} ;
151147
152148TypeFalse . displayName = 'JVR.TypeFalse' ;
153149
154- export const TypeFloat : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
150+ export const TypeFloat : FC < TypeProps > = ( { children, keyName } ) => {
155151 const { Float = { } , displayDataTypes } = useTypesStore ( ) ;
156152 const { as, render, ...reset } = Float ;
157153 const Comp = as || 'span' ;
@@ -173,14 +169,13 @@ export const TypeFloat: FC<TypeProps> = ({ children, expandKey, keyName }) => {
173169 { children ?. toString ( ) }
174170 </ Comp >
175171 ) }
176- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
177172 </ Fragment >
178173 ) ;
179174} ;
180175
181176TypeFloat . displayName = 'JVR.TypeFloat' ;
182177
183- export const TypeInt : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
178+ export const TypeInt : FC < TypeProps > = ( { children, keyName } ) => {
184179 const { Int = { } , displayDataTypes } = useTypesStore ( ) ;
185180 const { as, render, ...reset } = Int ;
186181 const Comp = as || 'span' ;
@@ -202,18 +197,13 @@ export const TypeInt: FC<TypeProps> = ({ children, expandKey, keyName }) => {
202197 { children ?. toString ( ) }
203198 </ Comp >
204199 ) }
205- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
206200 </ Fragment >
207201 ) ;
208202} ;
209203
210204TypeInt . displayName = 'JVR.TypeInt' ;
211205
212- export const TypeBigint : FC < { children ?: BigInt } & Omit < TypeProps , 'children' > > = ( {
213- children,
214- expandKey,
215- keyName,
216- } ) => {
206+ export const TypeBigint : FC < { children ?: BigInt } & Omit < TypeProps , 'children' > > = ( { children, keyName } ) => {
217207 const { Bigint : CompBigint = { } , displayDataTypes } = useTypesStore ( ) ;
218208 const { as, render, ...reset } = CompBigint ;
219209 const Comp = as || 'span' ;
@@ -235,14 +225,13 @@ export const TypeBigint: FC<{ children?: BigInt } & Omit<TypeProps, 'children'>>
235225 { children ?. toString ( ) + 'n' }
236226 </ Comp >
237227 ) }
238- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
239228 </ Fragment >
240229 ) ;
241230} ;
242231
243232TypeBigint . displayName = 'JVR.TypeFloat' ;
244233
245- export const TypeUrl : FC < { children ?: URL } & Omit < TypeProps , 'children' > > = ( { children, expandKey , keyName } ) => {
234+ export const TypeUrl : FC < { children ?: URL } & Omit < TypeProps , 'children' > > = ( { children, keyName } ) => {
246235 const { Url = { } , displayDataTypes } = useTypesStore ( ) ;
247236 const { as, render, ...reset } = Url ;
248237 const Comp = as || 'span' ;
@@ -270,14 +259,13 @@ export const TypeUrl: FC<{ children?: URL } & Omit<TypeProps, 'children'>> = ({
270259 < ValueQuote />
271260 </ a >
272261 ) }
273- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
274262 </ Fragment >
275263 ) ;
276264} ;
277265
278266TypeUrl . displayName = 'JVR.TypeUrl' ;
279267
280- export const TypeDate : FC < { children ?: Date } & Omit < TypeProps , 'children' > > = ( { children, expandKey , keyName } ) => {
268+ export const TypeDate : FC < { children ?: Date } & Omit < TypeProps , 'children' > > = ( { children, keyName } ) => {
281269 const { Date : CompData = { } , displayDataTypes } = useTypesStore ( ) ;
282270 const { as, render, ...reset } = CompData ;
283271 const Comp = as || 'span' ;
@@ -301,14 +289,13 @@ export const TypeDate: FC<{ children?: Date } & Omit<TypeProps, 'children'>> = (
301289 { childStr }
302290 </ Comp >
303291 ) }
304- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
305292 </ Fragment >
306293 ) ;
307294} ;
308295
309296TypeDate . displayName = 'JVR.TypeDate' ;
310297
311- export const TypeUndefined : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
298+ export const TypeUndefined : FC < TypeProps > = ( { children, keyName } ) => {
312299 const { Undefined = { } , displayDataTypes } = useTypesStore ( ) ;
313300 const { as, render, ...reset } = Undefined ;
314301 const Comp = as || 'span' ;
@@ -326,14 +313,13 @@ export const TypeUndefined: FC<TypeProps> = ({ children, expandKey, keyName }) =
326313 < Fragment >
327314 { displayDataTypes && ( type || < Comp { ...reset } style = { style } /> ) }
328315 { child }
329- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
330316 </ Fragment >
331317 ) ;
332318} ;
333319
334320TypeUndefined . displayName = 'JVR.TypeUndefined' ;
335321
336- export const TypeNull : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
322+ export const TypeNull : FC < TypeProps > = ( { children, keyName } ) => {
337323 const { Null = { } , displayDataTypes } = useTypesStore ( ) ;
338324 const { as, render, ...reset } = Null ;
339325 const Comp = as || 'span' ;
@@ -351,14 +337,13 @@ export const TypeNull: FC<TypeProps> = ({ children, expandKey, keyName }) => {
351337 < Fragment >
352338 { displayDataTypes && ( type || < Comp { ...reset } style = { style } /> ) }
353339 { child }
354- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
355340 </ Fragment >
356341 ) ;
357342} ;
358343
359344TypeNull . displayName = 'JVR.TypeNull' ;
360345
361- export const TypeNan : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
346+ export const TypeNan : FC < TypeProps > = ( { children, keyName } ) => {
362347 const { Nan = { } , displayDataTypes } = useTypesStore ( ) ;
363348 const { as, render, ...reset } = Nan ;
364349 const Comp = as || 'span' ;
@@ -380,7 +365,6 @@ export const TypeNan: FC<TypeProps> = ({ children, expandKey, keyName }) => {
380365 < Fragment >
381366 { displayDataTypes && ( type || < Comp { ...reset } style = { style } /> ) }
382367 { child }
383- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
384368 </ Fragment >
385369 ) ;
386370} ;
0 commit comments