@@ -40,11 +40,10 @@ const defalutStyle: React.CSSProperties = {
40
40
} ;
41
41
42
42
type TypeProps = PropsWithChildren < {
43
- expandKey : string ;
44
43
keyName : string | number ;
45
44
} > ;
46
45
47
- export const TypeString : FC < TypeProps > = ( { children = '' , expandKey , keyName } ) => {
46
+ export const TypeString : FC < TypeProps > = ( { children = '' , keyName } ) => {
48
47
const { Str = { } , displayDataTypes } = useTypesStore ( ) ;
49
48
const { shortenTextAfterLength : length = 30 } = useStore ( ) ;
50
49
const { as, render, ...reset } = Str ;
@@ -87,14 +86,13 @@ export const TypeString: FC<TypeProps> = ({ children = '', expandKey, keyName })
87
86
< ValueQuote />
88
87
</ Fragment >
89
88
) }
90
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
91
89
</ Fragment >
92
90
) ;
93
91
} ;
94
92
95
93
TypeString . displayName = 'JVR.TypeString' ;
96
94
97
- export const TypeTrue : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
95
+ export const TypeTrue : FC < TypeProps > = ( { children, keyName } ) => {
98
96
const { True = { } , displayDataTypes } = useTypesStore ( ) ;
99
97
const { as, render, ...reset } = True ;
100
98
const Comp = as || 'span' ;
@@ -115,14 +113,13 @@ export const TypeTrue: FC<TypeProps> = ({ children, expandKey, keyName }) => {
115
113
{ children ?. toString ( ) }
116
114
</ Comp >
117
115
) }
118
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
119
116
</ Fragment >
120
117
) ;
121
118
} ;
122
119
123
120
TypeTrue . displayName = 'JVR.TypeTrue' ;
124
121
125
- export const TypeFalse : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
122
+ export const TypeFalse : FC < TypeProps > = ( { children, keyName } ) => {
126
123
const { False = { } , displayDataTypes } = useTypesStore ( ) ;
127
124
const { as, render, ...reset } = False ;
128
125
const Comp = as || 'span' ;
@@ -144,14 +141,13 @@ export const TypeFalse: FC<TypeProps> = ({ children, expandKey, keyName }) => {
144
141
{ children ?. toString ( ) }
145
142
</ Comp >
146
143
) }
147
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
148
144
</ Fragment >
149
145
) ;
150
146
} ;
151
147
152
148
TypeFalse . displayName = 'JVR.TypeFalse' ;
153
149
154
- export const TypeFloat : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
150
+ export const TypeFloat : FC < TypeProps > = ( { children, keyName } ) => {
155
151
const { Float = { } , displayDataTypes } = useTypesStore ( ) ;
156
152
const { as, render, ...reset } = Float ;
157
153
const Comp = as || 'span' ;
@@ -173,14 +169,13 @@ export const TypeFloat: FC<TypeProps> = ({ children, expandKey, keyName }) => {
173
169
{ children ?. toString ( ) }
174
170
</ Comp >
175
171
) }
176
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
177
172
</ Fragment >
178
173
) ;
179
174
} ;
180
175
181
176
TypeFloat . displayName = 'JVR.TypeFloat' ;
182
177
183
- export const TypeInt : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
178
+ export const TypeInt : FC < TypeProps > = ( { children, keyName } ) => {
184
179
const { Int = { } , displayDataTypes } = useTypesStore ( ) ;
185
180
const { as, render, ...reset } = Int ;
186
181
const Comp = as || 'span' ;
@@ -202,18 +197,13 @@ export const TypeInt: FC<TypeProps> = ({ children, expandKey, keyName }) => {
202
197
{ children ?. toString ( ) }
203
198
</ Comp >
204
199
) }
205
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
206
200
</ Fragment >
207
201
) ;
208
202
} ;
209
203
210
204
TypeInt . displayName = 'JVR.TypeInt' ;
211
205
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 } ) => {
217
207
const { Bigint : CompBigint = { } , displayDataTypes } = useTypesStore ( ) ;
218
208
const { as, render, ...reset } = CompBigint ;
219
209
const Comp = as || 'span' ;
@@ -235,14 +225,13 @@ export const TypeBigint: FC<{ children?: BigInt } & Omit<TypeProps, 'children'>>
235
225
{ children ?. toString ( ) + 'n' }
236
226
</ Comp >
237
227
) }
238
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
239
228
</ Fragment >
240
229
) ;
241
230
} ;
242
231
243
232
TypeBigint . displayName = 'JVR.TypeFloat' ;
244
233
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 } ) => {
246
235
const { Url = { } , displayDataTypes } = useTypesStore ( ) ;
247
236
const { as, render, ...reset } = Url ;
248
237
const Comp = as || 'span' ;
@@ -270,14 +259,13 @@ export const TypeUrl: FC<{ children?: URL } & Omit<TypeProps, 'children'>> = ({
270
259
< ValueQuote />
271
260
</ a >
272
261
) }
273
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
274
262
</ Fragment >
275
263
) ;
276
264
} ;
277
265
278
266
TypeUrl . displayName = 'JVR.TypeUrl' ;
279
267
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 } ) => {
281
269
const { Date : CompData = { } , displayDataTypes } = useTypesStore ( ) ;
282
270
const { as, render, ...reset } = CompData ;
283
271
const Comp = as || 'span' ;
@@ -301,14 +289,13 @@ export const TypeDate: FC<{ children?: Date } & Omit<TypeProps, 'children'>> = (
301
289
{ childStr }
302
290
</ Comp >
303
291
) }
304
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
305
292
</ Fragment >
306
293
) ;
307
294
} ;
308
295
309
296
TypeDate . displayName = 'JVR.TypeDate' ;
310
297
311
- export const TypeUndefined : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
298
+ export const TypeUndefined : FC < TypeProps > = ( { children, keyName } ) => {
312
299
const { Undefined = { } , displayDataTypes } = useTypesStore ( ) ;
313
300
const { as, render, ...reset } = Undefined ;
314
301
const Comp = as || 'span' ;
@@ -326,14 +313,13 @@ export const TypeUndefined: FC<TypeProps> = ({ children, expandKey, keyName }) =
326
313
< Fragment >
327
314
{ displayDataTypes && ( type || < Comp { ...reset } style = { style } /> ) }
328
315
{ child }
329
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
330
316
</ Fragment >
331
317
) ;
332
318
} ;
333
319
334
320
TypeUndefined . displayName = 'JVR.TypeUndefined' ;
335
321
336
- export const TypeNull : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
322
+ export const TypeNull : FC < TypeProps > = ( { children, keyName } ) => {
337
323
const { Null = { } , displayDataTypes } = useTypesStore ( ) ;
338
324
const { as, render, ...reset } = Null ;
339
325
const Comp = as || 'span' ;
@@ -351,14 +337,13 @@ export const TypeNull: FC<TypeProps> = ({ children, expandKey, keyName }) => {
351
337
< Fragment >
352
338
{ displayDataTypes && ( type || < Comp { ...reset } style = { style } /> ) }
353
339
{ child }
354
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
355
340
</ Fragment >
356
341
) ;
357
342
} ;
358
343
359
344
TypeNull . displayName = 'JVR.TypeNull' ;
360
345
361
- export const TypeNan : FC < TypeProps > = ( { children, expandKey , keyName } ) => {
346
+ export const TypeNan : FC < TypeProps > = ( { children, keyName } ) => {
362
347
const { Nan = { } , displayDataTypes } = useTypesStore ( ) ;
363
348
const { as, render, ...reset } = Nan ;
364
349
const Comp = as || 'span' ;
@@ -380,7 +365,6 @@ export const TypeNan: FC<TypeProps> = ({ children, expandKey, keyName }) => {
380
365
< Fragment >
381
366
{ displayDataTypes && ( type || < Comp { ...reset } style = { style } /> ) }
382
367
{ child }
383
- < Copied keyName = { keyName } value = { children as object } expandKey = { expandKey } />
384
368
</ Fragment >
385
369
) ;
386
370
} ;
0 commit comments