@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/ui-constants",
3
- "version": "8.16.0-alpha.1",
3
+ "version": "8.16.0-alpha.2",
4
4
  "description": "Constants used in the UI libs",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/es/index.js",
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
+ }