@dhis2/ui-constants
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.statusPropType = exports.statusArgType = exports.sizePropType = exports.sizeArgType = exports.popperReferencePropType = exports.popperReferenceArgType = exports.popperPlacementPropType = exports.popperPlacementArgType = exports.insideAlignmentPropType = exports.insideAlignmentArgType = exports.buttonVariantPropType = exports.buttonVariantArgType = void 0; | ||
exports.statusPropType = exports.statusArgType = exports.sizePropType = exports.sizeArgType = exports.popperReferencePropType = exports.popperReferenceArgType = exports.popperPlacementPropType = exports.popperPlacementArgType = exports.insideAlignmentPropType = exports.insideAlignmentArgType = void 0; | ||
@@ -34,23 +34,2 @@ var _propTypes = require("@dhis2/prop-types"); | ||
/** | ||
* Button variant propType | ||
* @return {PropType} Mutually exclusive variants: | ||
* primary/secondary/destructive | ||
*/ | ||
exports.statusArgType = statusArgType; | ||
const buttonVariantPropType = (0, _propTypes.mutuallyExclusive)(['primary', 'secondary', 'destructive'], _propTypes2.default.bool); | ||
exports.buttonVariantPropType = buttonVariantPropType; | ||
const buttonVariantArgType = { | ||
// No description because it should be set for the component description | ||
table: { | ||
type: { | ||
summary: 'bool', | ||
detail: "'primary', 'secondary', and 'destructive' are mutually exclusive props" | ||
} | ||
}, | ||
control: { | ||
type: 'boolean' | ||
} | ||
}; | ||
/** | ||
* Size variant propType | ||
@@ -61,3 +40,3 @@ * @return {PropType} Mutually exclusive variants: | ||
exports.buttonVariantArgType = buttonVariantArgType; | ||
exports.statusArgType = statusArgType; | ||
const sizePropType = (0, _propTypes.mutuallyExclusive)(['small', 'large', 'extrasmall', 'fluid'], _propTypes2.default.bool); | ||
@@ -64,0 +43,0 @@ exports.sizePropType = sizePropType; |
@@ -22,21 +22,2 @@ import { mutuallyExclusive } from '@dhis2/prop-types'; | ||
/** | ||
* Button variant propType | ||
* @return {PropType} Mutually exclusive variants: | ||
* primary/secondary/destructive | ||
*/ | ||
export const buttonVariantPropType = mutuallyExclusive(['primary', 'secondary', 'destructive'], PropTypes.bool); | ||
export const buttonVariantArgType = { | ||
// No description because it should be set for the component description | ||
table: { | ||
type: { | ||
summary: 'bool', | ||
detail: "'primary', 'secondary', and 'destructive' are mutually exclusive props" | ||
} | ||
}, | ||
control: { | ||
type: 'boolean' | ||
} | ||
}; | ||
/** | ||
* Size variant propType | ||
@@ -43,0 +24,0 @@ * @return {PropType} Mutually exclusive variants: |
{ | ||
"name": "@dhis2/ui-constants", | ||
"version": "8.15.0-alpha.3", | ||
"version": "8.15.0", | ||
"description": "Constants used in the UI libs", | ||
@@ -8,3 +8,2 @@ "main": "./build/cjs/index.js", | ||
"exports": { | ||
"types": "./types/index.d.ts", | ||
"import": "./build/es/index.js", | ||
@@ -34,6 +33,4 @@ "require": "./build/cjs/index.js" | ||
"files": [ | ||
"build", | ||
"types" | ||
], | ||
"types": "types" | ||
"build" | ||
] | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
-100%20343
-11.53%16
-5.88%606
-13.68%