Skip to content

Commit 0171071

Browse files
committed
refactor(coreui.types): update to v5
1 parent d462648 commit 0171071

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

projects/coreui-angular/src/lib/coreui.types.ts

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { IsActiveMatchOptions } from '@angular/router';
22

3+
export type NgCssClass = string | string[] | Set<string> | { [klass: string]: any };
4+
35
export enum BreakpointInfix {
46
xs = 'xs',
57
sm = 'sm',
@@ -24,28 +26,42 @@ export type Colors =
2426
| 'info'
2527
| 'dark'
2628
| 'light'
29+
| 'primary-gradient'
30+
| 'secondary-gradient'
31+
| 'success-gradient'
32+
| 'danger-gradient'
33+
| 'warning-gradient'
34+
| 'info-gradient'
35+
| 'dark-gradient'
36+
| 'light-gradient'
2737
| string;
2838

29-
export type ColorsGradient =
30-
| `${Colors}-gradient`;
39+
// export type ColorsGradient =
40+
// | Colors
41+
// | `${Colors}-gradient`;
3142

3243
export type BackgroundColors = Colors | 'body' | 'white' | 'transparent';
3344

3445
export type Directions = 'down' | 'up' | 'start' | 'end' | '';
3546

3647
export type TextColors =
3748
| Colors
49+
| 'primary-emphasis'
50+
| 'secondary-emphasis'
51+
| 'success-emphasis'
52+
| 'danger-emphasis'
53+
| 'warning-emphasis'
54+
| 'info-emphasis'
55+
| 'light-emphasis'
3856
| 'body'
39-
| 'white'
40-
| 'muted'
57+
| 'body-emphasis'
58+
| 'body-secondary'
59+
| 'body-tertiary'
60+
| 'black'
4161
| 'black-50'
62+
| 'white'
4263
| 'white-50'
43-
| 'high-emphasis'
44-
| 'medium-emphasis'
45-
| 'disabled'
46-
| 'high-emphasis-inverse'
47-
| 'medium-emphasis-inverse'
48-
| 'disabled-inverse';
64+
| string;
4965

5066
export type Alignment =
5167
| 'baseline'

0 commit comments

Comments
 (0)