@@ -16,8 +16,7 @@ import {
16
16
sandDark ,
17
17
whiteA ,
18
18
} from '@radix-ui/colors'
19
- import type * as Stitches from '@stitches/react'
20
- import { createStitches } from '@stitches/react'
19
+ import { createStitches , CSS , PropertyValue , ScaleValue } from '@stitches/react'
21
20
import { ReactNode } from 'react'
22
21
import { ThemeConfig } from './components/ThemeProvider/ThemeProvider.stories'
23
22
@@ -369,110 +368,70 @@ const stitches = createStitches({
369
368
light : '(prefers-color-scheme: light)' ,
370
369
} ,
371
370
utils : {
372
- p : (
373
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'paddingTop' >
374
- ) => ( {
371
+ p : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingTop' > ) => ( {
375
372
paddingTop : value ,
376
373
paddingBottom : value ,
377
374
paddingLeft : value ,
378
375
paddingRight : value ,
379
376
} ) ,
380
- pt : (
381
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'paddingTop' >
382
- ) => ( {
377
+ pt : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingTop' > ) => ( {
383
378
paddingTop : value ,
384
379
} ) ,
385
- pr : (
386
- value :
387
- | Stitches . ScaleValue < 'space' >
388
- | Stitches . PropertyValue < 'paddingRight' >
389
- ) => ( {
380
+ pr : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingRight' > ) => ( {
390
381
paddingRight : value ,
391
382
} ) ,
392
- pb : (
393
- value :
394
- | Stitches . ScaleValue < 'space' >
395
- | Stitches . PropertyValue < 'paddingBottom' >
396
- ) => ( {
383
+ pb : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingBottom' > ) => ( {
397
384
paddingBottom : value ,
398
385
} ) ,
399
- pl : (
400
- value :
401
- | Stitches . ScaleValue < 'space' >
402
- | Stitches . PropertyValue < 'paddingLeft' >
403
- ) => ( {
386
+ pl : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingLeft' > ) => ( {
404
387
paddingLeft : value ,
405
388
} ) ,
406
- px : (
407
- value :
408
- | Stitches . ScaleValue < 'space' >
409
- | Stitches . PropertyValue < 'paddingLeft' >
410
- ) => ( {
389
+ px : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingLeft' > ) => ( {
411
390
paddingLeft : value ,
412
391
paddingRight : value ,
413
392
} ) ,
414
- py : (
415
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'paddingTop' >
416
- ) => ( {
393
+ py : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingTop' > ) => ( {
417
394
paddingTop : value ,
418
395
paddingBottom : value ,
419
396
} ) ,
420
397
421
- m : (
422
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginTop' >
423
- ) => ( {
398
+ m : ( value : ScaleValue < 'space' > | PropertyValue < 'marginTop' > ) => ( {
424
399
marginTop : value ,
425
400
marginBottom : value ,
426
401
marginLeft : value ,
427
402
marginRight : value ,
428
403
} ) ,
429
- mt : (
430
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginTop' >
431
- ) => ( {
404
+ mt : ( value : ScaleValue < 'space' > | PropertyValue < 'marginTop' > ) => ( {
432
405
marginTop : value ,
433
406
} ) ,
434
- mr : (
435
- value :
436
- | Stitches . ScaleValue < 'space' >
437
- | Stitches . PropertyValue < 'marginRight' >
438
- ) => ( {
407
+ mr : ( value : ScaleValue < 'space' > | PropertyValue < 'marginRight' > ) => ( {
439
408
marginRight : value ,
440
409
} ) ,
441
- mb : (
442
- value :
443
- | Stitches . ScaleValue < 'space' >
444
- | Stitches . PropertyValue < 'marginBottom' >
445
- ) => ( {
410
+ mb : ( value : ScaleValue < 'space' > | PropertyValue < 'marginBottom' > ) => ( {
446
411
marginBottom : value ,
447
412
} ) ,
448
- ml : (
449
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginLeft' >
450
- ) => ( {
413
+ ml : ( value : ScaleValue < 'space' > | PropertyValue < 'marginLeft' > ) => ( {
451
414
marginLeft : value ,
452
415
} ) ,
453
- mx : (
454
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginLeft' >
455
- ) => ( {
416
+ mx : ( value : ScaleValue < 'space' > | PropertyValue < 'marginLeft' > ) => ( {
456
417
marginLeft : value ,
457
418
marginRight : value ,
458
419
} ) ,
459
- my : (
460
- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginTop' >
461
- ) => ( {
420
+ my : ( value : ScaleValue < 'space' > | PropertyValue < 'marginTop' > ) => ( {
462
421
marginTop : value ,
463
422
marginBottom : value ,
464
423
} ) ,
465
424
466
425
size : (
467
426
value :
468
- | Stitches . ScaleValue < 'sizes' >
469
- | Stitches . PropertyValue < 'width' >
470
- | Stitches . PropertyValue < 'height' >
427
+ | ScaleValue < 'sizes' >
428
+ | PropertyValue < 'width' >
429
+ | PropertyValue < 'height' >
471
430
) => ( {
472
431
width : value ,
473
432
height : value ,
474
433
} ) ,
475
- '@dark' : ( value : Stitches . CSS ) => ( {
434
+ '@dark' : ( value : CSS ) => ( {
476
435
[ `.${ DARK_THEME } &` ] : value ,
477
436
} ) ,
478
437
} ,
@@ -587,8 +546,9 @@ export const {
587
546
config,
588
547
} = stitches
589
548
590
- export type CSS = Stitches . CSS < typeof config >
549
+ type ComponentsCSS = CSS < typeof config >
591
550
export type { VariantProps } from '@stitches/react'
551
+ export { ComponentsCSS as CSS }
592
552
export type CSSProps = { css ?: CSS }
593
553
export type As = React . ElementType
594
554
export type AsProps = {
0 commit comments