@@ -16,8 +16,7 @@ import {
1616 sandDark ,
1717 whiteA ,
1818} 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'
2120import { ReactNode } from 'react'
2221import { ThemeConfig } from './components/ThemeProvider/ThemeProvider.stories'
2322
@@ -369,110 +368,70 @@ const stitches = createStitches({
369368 light : '(prefers-color-scheme: light)' ,
370369 } ,
371370 utils : {
372- p : (
373- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'paddingTop' >
374- ) => ( {
371+ p : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingTop' > ) => ( {
375372 paddingTop : value ,
376373 paddingBottom : value ,
377374 paddingLeft : value ,
378375 paddingRight : value ,
379376 } ) ,
380- pt : (
381- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'paddingTop' >
382- ) => ( {
377+ pt : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingTop' > ) => ( {
383378 paddingTop : value ,
384379 } ) ,
385- pr : (
386- value :
387- | Stitches . ScaleValue < 'space' >
388- | Stitches . PropertyValue < 'paddingRight' >
389- ) => ( {
380+ pr : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingRight' > ) => ( {
390381 paddingRight : value ,
391382 } ) ,
392- pb : (
393- value :
394- | Stitches . ScaleValue < 'space' >
395- | Stitches . PropertyValue < 'paddingBottom' >
396- ) => ( {
383+ pb : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingBottom' > ) => ( {
397384 paddingBottom : value ,
398385 } ) ,
399- pl : (
400- value :
401- | Stitches . ScaleValue < 'space' >
402- | Stitches . PropertyValue < 'paddingLeft' >
403- ) => ( {
386+ pl : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingLeft' > ) => ( {
404387 paddingLeft : value ,
405388 } ) ,
406- px : (
407- value :
408- | Stitches . ScaleValue < 'space' >
409- | Stitches . PropertyValue < 'paddingLeft' >
410- ) => ( {
389+ px : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingLeft' > ) => ( {
411390 paddingLeft : value ,
412391 paddingRight : value ,
413392 } ) ,
414- py : (
415- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'paddingTop' >
416- ) => ( {
393+ py : ( value : ScaleValue < 'space' > | PropertyValue < 'paddingTop' > ) => ( {
417394 paddingTop : value ,
418395 paddingBottom : value ,
419396 } ) ,
420397
421- m : (
422- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginTop' >
423- ) => ( {
398+ m : ( value : ScaleValue < 'space' > | PropertyValue < 'marginTop' > ) => ( {
424399 marginTop : value ,
425400 marginBottom : value ,
426401 marginLeft : value ,
427402 marginRight : value ,
428403 } ) ,
429- mt : (
430- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginTop' >
431- ) => ( {
404+ mt : ( value : ScaleValue < 'space' > | PropertyValue < 'marginTop' > ) => ( {
432405 marginTop : value ,
433406 } ) ,
434- mr : (
435- value :
436- | Stitches . ScaleValue < 'space' >
437- | Stitches . PropertyValue < 'marginRight' >
438- ) => ( {
407+ mr : ( value : ScaleValue < 'space' > | PropertyValue < 'marginRight' > ) => ( {
439408 marginRight : value ,
440409 } ) ,
441- mb : (
442- value :
443- | Stitches . ScaleValue < 'space' >
444- | Stitches . PropertyValue < 'marginBottom' >
445- ) => ( {
410+ mb : ( value : ScaleValue < 'space' > | PropertyValue < 'marginBottom' > ) => ( {
446411 marginBottom : value ,
447412 } ) ,
448- ml : (
449- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginLeft' >
450- ) => ( {
413+ ml : ( value : ScaleValue < 'space' > | PropertyValue < 'marginLeft' > ) => ( {
451414 marginLeft : value ,
452415 } ) ,
453- mx : (
454- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginLeft' >
455- ) => ( {
416+ mx : ( value : ScaleValue < 'space' > | PropertyValue < 'marginLeft' > ) => ( {
456417 marginLeft : value ,
457418 marginRight : value ,
458419 } ) ,
459- my : (
460- value : Stitches . ScaleValue < 'space' > | Stitches . PropertyValue < 'marginTop' >
461- ) => ( {
420+ my : ( value : ScaleValue < 'space' > | PropertyValue < 'marginTop' > ) => ( {
462421 marginTop : value ,
463422 marginBottom : value ,
464423 } ) ,
465424
466425 size : (
467426 value :
468- | Stitches . ScaleValue < 'sizes' >
469- | Stitches . PropertyValue < 'width' >
470- | Stitches . PropertyValue < 'height' >
427+ | ScaleValue < 'sizes' >
428+ | PropertyValue < 'width' >
429+ | PropertyValue < 'height' >
471430 ) => ( {
472431 width : value ,
473432 height : value ,
474433 } ) ,
475- '@dark' : ( value : Stitches . CSS ) => ( {
434+ '@dark' : ( value : CSS ) => ( {
476435 [ `.${ DARK_THEME } &` ] : value ,
477436 } ) ,
478437 } ,
@@ -587,8 +546,9 @@ export const {
587546 config,
588547} = stitches
589548
590- export type CSS = Stitches . CSS < typeof config >
549+ type ComponentsCSS = CSS < typeof config >
591550export type { VariantProps } from '@stitches/react'
551+ export { ComponentsCSS as CSS }
592552export type CSSProps = { css ?: CSS }
593553export type As = React . ElementType
594554export type AsProps = {
0 commit comments