@pandacss/types
Advanced tools
Comparing version 0.0.0-dev-20240706171714 to 0.0.0-dev-20240719174947
@@ -136,3 +136,3 @@ import type { Config } from './config' | ||
details: ReportDetails | ||
config: Omit<Config, 'globalCss'> | ||
config: Omit<Config, 'globalCss' | 'globalFontface'> | ||
@@ -139,0 +139,0 @@ propByIndex: Map<PropertyReportItem['index'], PropertyReportItem> |
@@ -7,3 +7,8 @@ import type { TSConfig } from 'pkg-types' | ||
import type { StaticCssOptions } from './static-css' | ||
import type { ExtendableGlobalStyleObject, GlobalStyleObject } from './system-types' | ||
import type { | ||
ExtendableGlobalFontface, | ||
ExtendableGlobalStyleObject, | ||
GlobalFontface, | ||
GlobalStyleObject, | ||
} from './system-types' | ||
import type { ExtendableTheme, Theme } from './theme' | ||
@@ -57,2 +62,6 @@ import type { ExtendableUtilityConfig, UtilityConfig } from './utility' | ||
/** | ||
* The global fontface for your project. | ||
*/ | ||
globalFontface?: GlobalFontface | ||
/** | ||
* Used to generate css utility classes for your project. | ||
@@ -153,2 +162,6 @@ */ | ||
/** | ||
* The global fontface for your project. | ||
*/ | ||
globalFontface?: ExtendableGlobalFontface | ||
/** | ||
* Used to generate css utility classes for your project. | ||
@@ -155,0 +168,0 @@ */ |
import type { ConditionalValue, Nested } from './conditions' | ||
import type { PropertiesFallback } from './csstype' | ||
import type { AtRule, PropertiesFallback } from './csstype' | ||
import type { SystemProperties, CssVarProperties } from './style-props' | ||
@@ -58,2 +58,6 @@ | ||
/* ----------------------------------------------------------------------------- | ||
* Composition (text styles, layer styles) | ||
* -----------------------------------------------------------------------------*/ | ||
type FilterStyleObject<P extends string> = { | ||
@@ -66,2 +70,19 @@ [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown | ||
/* ----------------------------------------------------------------------------- | ||
* Font face | ||
* -----------------------------------------------------------------------------*/ | ||
export type GlobalFontfaceRule = Omit<AtRule.FontFaceFallback, 'src'> & Required<Pick<AtRule.FontFaceFallback, 'src'>> | ||
export type FontfaceRule = Omit<GlobalFontfaceRule, 'fontFamily'> | ||
export interface GlobalFontface { | ||
[name: string]: FontfaceRule | FontfaceRule[] | ||
} | ||
export interface ExtendableGlobalFontface { | ||
[name: string]: FontfaceRule | FontfaceRule[] | GlobalFontface | undefined | ||
extend?: GlobalFontface | undefined | ||
} | ||
/* ----------------------------------------------------------------------------- | ||
* Jsx style props | ||
@@ -68,0 +89,0 @@ * -----------------------------------------------------------------------------*/ |
{ | ||
"name": "@pandacss/types", | ||
"version": "0.0.0-dev-20240706171714", | ||
"version": "0.0.0-dev-20240719174947", | ||
"description": "The types for css panda", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.d.ts", | ||
"ts-morph": "21.0.1", | ||
"@pandacss/extractor": "0.0.0-dev-20240706171714" | ||
"@pandacss/extractor": "0.0.0-dev-20240719174947" | ||
}, | ||
@@ -37,0 +37,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
965101
22727