@dhis2/ui-constants 8.15.0 → 8.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.statusPropType = exports.statusArgType = exports.sizePropType = exports.sizeArgType = exports.popperReferencePropType = exports.popperReferenceArgType = exports.popperPlacementPropType = exports.popperPlacementArgType = exports.insideAlignmentPropType = exports.insideAlignmentArgType = void 0;
|
6
|
+
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;
|
7
7
|
|
8
8
|
var _propTypes = require("@dhis2/prop-types");
|
9
9
|
|
@@ -29,13 +29,35 @@ const statusArgType = {
|
|
29
29
|
type: 'boolean'
|
30
30
|
}
|
31
31
|
};
|
32
|
+
/**
|
33
|
+
* @deprecated Not unused, will be removed in a future version.
|
34
|
+
* Button variant propType
|
35
|
+
* @return {PropType} Mutually exclusive variants:
|
36
|
+
* primary/secondary/destructive
|
37
|
+
*/
|
38
|
+
|
39
|
+
exports.statusArgType = statusArgType;
|
40
|
+
const buttonVariantPropType = (0, _propTypes.mutuallyExclusive)(['primary', 'secondary', 'destructive'], _propTypes2.default.bool);
|
41
|
+
exports.buttonVariantPropType = buttonVariantPropType;
|
42
|
+
const buttonVariantArgType = {
|
43
|
+
// No description because it should be set for the component description
|
44
|
+
table: {
|
45
|
+
type: {
|
46
|
+
summary: 'bool',
|
47
|
+
detail: "'primary', 'secondary', and 'destructive' are mutually exclusive props"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
control: {
|
51
|
+
type: 'boolean'
|
52
|
+
}
|
53
|
+
};
|
32
54
|
/**
|
33
55
|
* Size variant propType
|
34
56
|
* @return {PropType} Mutually exclusive variants:
|
35
57
|
* small/large
|
36
58
|
*/
|
37
59
|
|
38
|
-
exports.
|
60
|
+
exports.buttonVariantArgType = buttonVariantArgType;
|
39
61
|
const sizePropType = (0, _propTypes.mutuallyExclusive)(['small', 'large', 'extrasmall', 'fluid'], _propTypes2.default.bool);
|
40
62
|
exports.sizePropType = sizePropType;
|
41
63
|
const sizeArgType = {
|
@@ -18,6 +18,26 @@ export const statusArgType = {
|
|
18
18
|
type: 'boolean'
|
19
19
|
}
|
20
20
|
};
|
21
|
+
/**
|
22
|
+
* @deprecated Not unused, will be removed in a future version.
|
23
|
+
* Button variant propType
|
24
|
+
* @return {PropType} Mutually exclusive variants:
|
25
|
+
* primary/secondary/destructive
|
26
|
+
*/
|
27
|
+
|
28
|
+
export const buttonVariantPropType = mutuallyExclusive(['primary', 'secondary', 'destructive'], PropTypes.bool);
|
29
|
+
export const buttonVariantArgType = {
|
30
|
+
// No description because it should be set for the component description
|
31
|
+
table: {
|
32
|
+
type: {
|
33
|
+
summary: 'bool',
|
34
|
+
detail: "'primary', 'secondary', and 'destructive' are mutually exclusive props"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
control: {
|
38
|
+
type: 'boolean'
|
39
|
+
}
|
40
|
+
};
|
21
41
|
/**
|
22
42
|
* Size variant propType
|
23
43
|
* @return {PropType} Mutually exclusive variants:
|