8000 refactor: update `TextColor` type · v-rr/coreui-react@88f7a4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 88f7a4c

Browse files
committed
refactor: update TextColor type
1 parent c855fa3 commit 88f7a4c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/components/Types.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,17 @@ export const shapePropType = PropTypes.oneOfType([
9494
PropTypes.string,
9595
])
9696

97-
export type TextColors = Colors | 'white' | 'muted' | string
97+
export type TextColors =
98+
| Colors
99+
| 'white'
100+
| 'muted'
101+
| 'high-emphasis'
102+
| 'medium-emphasis'
103+
| 'disabled'
104+
| 'high-emphasis-inverse'
105+
| 'medium-emphasis-inverse'
106+
| 'disabled-inverse'
107+
| string
98108

99109
export const textColorsPropType = PropTypes.oneOfType([
100110
colorPropType,

0 commit comments

Comments
 (0)
0