File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/bezier-react/src/types Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { JSX } from 'react'
2
2
3
+ import { type FunctionalAndSemanticColor } from './alpha-tokens'
3
4
import type {
4
5
BackgroundSemanticColor ,
5
6
BackgroundTextSemanticColor ,
@@ -10,6 +11,8 @@ import type {
10
11
ZIndex ,
11
12
} from './tokens'
12
13
14
+ type LegacyAndAlphaSemanticColor = SemanticColor | FunctionalAndSemanticColor
15
+
13
16
/**
14
17
* Props for overriding default styles of components. Intended for exceptional use cases where default styles need customization.
15
18
*/
@@ -140,7 +143,7 @@ export interface ColorProps {
140
143
/**
141
144
* Color from the design system's semantic color.
142
145
*/
143
- color ?: SemanticColor
146
+ color ?: LegacyAndAlphaSemanticColor
144
147
}
145
148
146
149
/**
@@ -179,7 +182,7 @@ export type AdditionalOverridableStyleProps<ElementName extends PropNameType> =
179
182
* Props for adding color properties to named elements within a component.
180
183
*/
181
184
export type AdditionalColorProps < ElementName extends PropNameType > =
182
- AdditionalProps < ElementName , 'color' , SemanticColor >
185
+ AdditionalProps < ElementName , 'color' , LegacyAndAlphaSemanticColor >
183
186
184
187
/**
185
188
* Props for components that can be activated or deactivated.
You can’t perform that action at this time.
0 commit comments