@dhis2/ui-constants 8.16.0-alpha.1 → 8.16.0-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/types/index.d.ts +15 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
import { bool } from 'prop-types'
|
2
|
+
import {
|
3
|
+
insideAlignmentPropType,
|
4
|
+
popperPlacementPropType,
|
5
|
+
popperReferencePropType,
|
6
|
+
} from '../src/shared-prop-types'
|
7
|
+
|
1
8
|
export type ColorBase = 'blue' | 'teal' | 'red' | 'yellow' | 'green' | 'grey'
|
2
9
|
export type ColorVariant =
|
3
10
|
| '900'
|
@@ -61,3 +68,11 @@ export type ThemeProp =
|
|
61
68
|
| 'focus'
|
62
69
|
| 'fonts'
|
63
70
|
export const theme: Record<ThemeProp, string>
|
71
|
+
|
72
|
+
export interface sharedPropTypes {
|
73
|
+
statusPropType: typeof bool
|
74
|
+
sizePropType: typeof bool
|
75
|
+
insideAlignmentPropType: typeof insideAlignmentPropType
|
76
|
+
popperPlacementPropType: typeof popperPlacementPropType
|
77
|
+
popperReferencePropType: typeof popperReferencePropType
|
78
|
+
}
|