@@ -11,7 +11,7 @@ export const ActionState = Schema.Literals(["disabled", "pressed", "focused", "s
1111export type ActionState = Schema . Schema . Type < typeof ActionState >
1212export type ActionStateKey = `$${ActionState } `
1313
14- export const SurfaceName = Schema . Literal ( "dialog" )
14+ export const SurfaceName = Schema . Literals ( [ "dialog" , "dialog.footer" ] )
1515export type SurfaceName = Schema . Schema . Type < typeof SurfaceName >
1616
1717export const FormfieldState = ActionState
@@ -201,6 +201,12 @@ const ThemeTokensDefinition = Schema.Struct({
201201} )
202202export type ThemeTokensDefinition = Schema . Schema . Type < typeof ThemeTokensDefinition >
203203
204+ const DialogTokensDefinition = Schema . Struct ( {
205+ ...ThemeTokensDefinition . fields ,
206+ "@footer" : Schema . optional ( ThemeTokensDefinition ) ,
207+ } )
208+ export type DialogTokensDefinition = Schema . Schema . Type < typeof DialogTokensDefinition >
209+
204210const CompleteStatefulColorDefinition = Schema . Struct ( {
205211 base : ColorValue ,
206212 $hovered : Schema . optional ( ColorValue ) ,
@@ -264,23 +270,23 @@ const ThemeDefinitionFields = Schema.Struct({
264270 hue : HueDefinition ,
265271 categorical : CategoricalDefinition ,
266272 ...CompleteThemeTokensDefinition . fields ,
267- "@dialog" : Schema . optional ( ThemeTokensDefinition ) ,
273+ "@dialog" : Schema . optional ( DialogTokensDefinition ) ,
268274} )
269275export const ThemeDefinition = ThemeDefinitionFields
270276export type ThemeDefinition = Schema . Schema . Type < typeof ThemeDefinition >
271277
272278export const BaseThemeDefinition = Schema . Struct ( {
273279 categorical : CategoricalDefinition ,
274280 ...CompleteThemeTokensDefinition . fields ,
275- "@dialog" : Schema . optional ( ThemeTokensDefinition ) ,
281+ "@dialog" : Schema . optional ( DialogTokensDefinition ) ,
276282} )
277283export type BaseThemeDefinition = Schema . Schema . Type < typeof BaseThemeDefinition >
278284
279285export const ModeDefinition = Schema . Struct ( {
280286 hue : HueDefinition ,
281287 categorical : Schema . optional ( CategoricalDefinition ) ,
282288 ...ThemeTokensDefinition . fields ,
283- "@dialog" : Schema . optional ( ThemeTokensDefinition ) ,
289+ "@dialog" : Schema . optional ( DialogTokensDefinition ) ,
284290} )
285291export type ModeDefinition = Schema . Schema . Type < typeof ModeDefinition >
286292
0 commit comments