@codacy/ui-components 0.65.91 → 0.65.93
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.
- package/lib/Avatar/Avatar.js +3 -2
- package/lib/ExpandableBox/ExpandableBox.styles.d.ts +2 -2
- package/lib/StepNumber/styles.d.ts +1 -1
- package/lib/Stepper/Stepper.styles.d.ts +1 -1
- package/lib/theme/ColorSchemes/dark/background.d.ts +72 -0
- package/lib/theme/ColorSchemes/dark/background.js +53 -0
- package/lib/theme/ColorSchemes/dark/border.d.ts +70 -0
- package/lib/theme/ColorSchemes/dark/border.js +52 -0
- package/lib/theme/ColorSchemes/dark/data.d.ts +16 -0
- package/lib/theme/ColorSchemes/dark/data.js +23 -0
- package/lib/theme/ColorSchemes/dark/icon.d.ts +73 -0
- package/lib/theme/ColorSchemes/dark/icon.js +54 -0
- package/lib/theme/ColorSchemes/dark/illustration.d.ts +11 -0
- package/lib/theme/ColorSchemes/dark/illustration.js +18 -0
- package/lib/theme/ColorSchemes/dark/index.d.ts +2 -0
- package/lib/theme/ColorSchemes/dark/index.js +73 -0
- package/lib/theme/ColorSchemes/dark/text.d.ts +80 -0
- package/lib/theme/ColorSchemes/dark/text.js +61 -0
- package/lib/theme/ColorSchemes/index.d.ts +5 -0
- package/lib/theme/ColorSchemes/index.js +60 -0
- package/lib/theme/ColorSchemes/light/background.d.ts +72 -0
- package/lib/theme/ColorSchemes/light/background.js +53 -0
- package/lib/theme/ColorSchemes/light/border.d.ts +70 -0
- package/lib/theme/ColorSchemes/light/border.js +52 -0
- package/lib/theme/ColorSchemes/light/data.d.ts +16 -0
- package/lib/theme/ColorSchemes/light/data.js +23 -0
- package/lib/theme/ColorSchemes/light/icon.d.ts +73 -0
- package/lib/theme/ColorSchemes/light/icon.js +54 -0
- package/lib/theme/ColorSchemes/light/illustration.d.ts +11 -0
- package/lib/theme/ColorSchemes/light/illustration.js +18 -0
- package/lib/theme/ColorSchemes/{dark.d.ts → light/index.d.ts} +210 -272
- package/lib/theme/ColorSchemes/light/index.js +82 -0
- package/lib/theme/ColorSchemes/light/text.d.ts +80 -0
- package/lib/theme/ColorSchemes/light/text.js +61 -0
- package/lib/theme/ColorSchemes/primitives.d.ts +6 -0
- package/lib/theme/ColorSchemes/primitives.js +95 -0
- package/lib/theme/ColorSchemes/semantics.d.ts +9 -0
- package/lib/theme/ColorSchemes/semantics.js +26 -0
- package/lib/theme/ColorSchemes/types.d.ts +3 -0
- package/lib/theme/ColorSchemes/types.js +7 -0
- package/lib/theme/index.d.ts +1 -3
- package/lib/theme/index.js +4 -26
- package/lib/theme/theme.d.ts +0 -3
- package/lib/theme/theme.js +2 -6
- package/package.json +1 -1
- package/lib/theme/ColorSchemes/codacy.d.ts +0 -595
- package/lib/theme/ColorSchemes/codacy.js +0 -371
- package/lib/theme/ColorSchemes/dark.js +0 -271
- package/lib/theme/ColorSchemes/security.d.ts +0 -2
- package/lib/theme/ColorSchemes/security.js +0 -28
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const iconColors: {
|
|
2
|
+
'icon-info-enabled': string;
|
|
3
|
+
'icon-minor-enabled': string;
|
|
4
|
+
'icon-minor-disabled': string;
|
|
5
|
+
'icon-brand-enabled': string;
|
|
6
|
+
'icon-brand-hover': string;
|
|
7
|
+
'icon-brand-focus': string;
|
|
8
|
+
'icon-brand-pressed': string;
|
|
9
|
+
'icon-brand-disabled': string;
|
|
10
|
+
'icon-danger-enabled': string;
|
|
11
|
+
'icon-danger-hover': string;
|
|
12
|
+
'icon-danger-focus': string;
|
|
13
|
+
'icon-danger-pressed': string;
|
|
14
|
+
'icon-danger-disabled': string;
|
|
15
|
+
'icon-critical-enabled': string;
|
|
16
|
+
'icon-critical-disabled': string;
|
|
17
|
+
'icon-warning-enabled': string;
|
|
18
|
+
'icon-medium-enabled': string;
|
|
19
|
+
'icon-medium-disabled': string;
|
|
20
|
+
'icon-success-enabled': string;
|
|
21
|
+
'icon-success-disabled': string;
|
|
22
|
+
'icon-high-enabled': string;
|
|
23
|
+
'icon-high-disabled': string;
|
|
24
|
+
'icon-attention-enabled': string;
|
|
25
|
+
"background-high": string;
|
|
26
|
+
"background-medium": string;
|
|
27
|
+
"background-success": string;
|
|
28
|
+
"background-danger": string;
|
|
29
|
+
"background-warning": string;
|
|
30
|
+
"background-info": string;
|
|
31
|
+
"background-attention": string;
|
|
32
|
+
"background-critical": string;
|
|
33
|
+
"background-minor": string;
|
|
34
|
+
"border-high": string;
|
|
35
|
+
"border-medium": string;
|
|
36
|
+
"border-success": string;
|
|
37
|
+
"border-danger": string;
|
|
38
|
+
"border-warning": string;
|
|
39
|
+
"border-info": string;
|
|
40
|
+
"border-attention": string;
|
|
41
|
+
"border-critical": string;
|
|
42
|
+
"border-minor": string;
|
|
43
|
+
"text-high": string;
|
|
44
|
+
"text-medium": string;
|
|
45
|
+
"text-success": string;
|
|
46
|
+
"text-danger": string;
|
|
47
|
+
"text-warning": string;
|
|
48
|
+
"text-info": string;
|
|
49
|
+
"text-attention": string;
|
|
50
|
+
"text-critical": string;
|
|
51
|
+
"text-minor": string;
|
|
52
|
+
"icon-high": string;
|
|
53
|
+
"icon-medium": string;
|
|
54
|
+
"icon-success": string;
|
|
55
|
+
"icon-danger": string;
|
|
56
|
+
"icon-warning": string;
|
|
57
|
+
"icon-info": string;
|
|
58
|
+
"icon-attention": string;
|
|
59
|
+
"icon-critical": string;
|
|
60
|
+
"icon-minor": string;
|
|
61
|
+
'icon-enabled': string;
|
|
62
|
+
'icon-hover': string;
|
|
63
|
+
'icon-disabled': string;
|
|
64
|
+
'icon-focus': string;
|
|
65
|
+
'icon-pressed': string;
|
|
66
|
+
'icon-inverted': string;
|
|
67
|
+
'icon-subtle-enabled': string;
|
|
68
|
+
'icon-subtle-hover': string;
|
|
69
|
+
'icon-subtle-focus': string;
|
|
70
|
+
'icon-subtle-pressed': string;
|
|
71
|
+
'icon-subtle-disabled': string;
|
|
72
|
+
'icon-subtle-inverted': string;
|
|
73
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.iconColors = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _primitives = require("../primitives");
|
|
10
|
+
var _semantics = require("../semantics");
|
|
11
|
+
var iconColors = exports.iconColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
|
|
12
|
+
'icon-enabled': _primitives.primitiveColors['grey-60'],
|
|
13
|
+
'icon-hover': _primitives.primitiveColors['grey-50'],
|
|
14
|
+
'icon-disabled': _primitives.primitiveColors['grey-30'],
|
|
15
|
+
'icon-focus': _primitives.primitiveColors['grey-50'],
|
|
16
|
+
'icon-pressed': _primitives.primitiveColors['grey-80'],
|
|
17
|
+
'icon-inverted': _primitives.primitiveColors['white'],
|
|
18
|
+
'icon-subtle-enabled': _primitives.primitiveColors['grey-60'],
|
|
19
|
+
'icon-subtle-hover': _primitives.primitiveColors['grey-70'],
|
|
20
|
+
'icon-subtle-focus': _primitives.primitiveColors['grey-70'],
|
|
21
|
+
'icon-subtle-pressed': _primitives.primitiveColors['grey-80'],
|
|
22
|
+
'icon-subtle-disabled': _primitives.primitiveColors['grey-30'],
|
|
23
|
+
'icon-subtle-inverted': _primitives.primitiveColors['grey-00']
|
|
24
|
+
}, (0, _semantics.semanticFunctionalColorsFx)('icon', 60)), {}, {
|
|
25
|
+
// blue
|
|
26
|
+
'icon-info-enabled': _primitives.primitiveColors['blue-60'],
|
|
27
|
+
'icon-minor-enabled': _primitives.primitiveColors['blue-60'],
|
|
28
|
+
'icon-minor-disabled': _primitives.primitiveColors['blue-30'],
|
|
29
|
+
'icon-brand-enabled': _primitives.primitiveColors['blue-50'],
|
|
30
|
+
'icon-brand-hover': _primitives.primitiveColors['blue-60'],
|
|
31
|
+
'icon-brand-focus': _primitives.primitiveColors['blue-60'],
|
|
32
|
+
'icon-brand-pressed': _primitives.primitiveColors['blue-30'],
|
|
33
|
+
'icon-brand-disabled': _primitives.primitiveColors['blue-20'],
|
|
34
|
+
// red
|
|
35
|
+
'icon-danger-enabled': _primitives.primitiveColors['red-60'],
|
|
36
|
+
'icon-danger-hover': _primitives.primitiveColors['red-70'],
|
|
37
|
+
'icon-danger-focus': _primitives.primitiveColors['red-70'],
|
|
38
|
+
'icon-danger-pressed': _primitives.primitiveColors['red-80'],
|
|
39
|
+
'icon-danger-disabled': _primitives.primitiveColors['red-30'],
|
|
40
|
+
'icon-critical-enabled': _primitives.primitiveColors['red-60'],
|
|
41
|
+
'icon-critical-disabled': _primitives.primitiveColors['red-30'],
|
|
42
|
+
// yellow
|
|
43
|
+
'icon-warning-enabled': _primitives.primitiveColors['yellow-60'],
|
|
44
|
+
'icon-medium-enabled': _primitives.primitiveColors['yellow-60'],
|
|
45
|
+
'icon-medium-disabled': _primitives.primitiveColors['yellow-30'],
|
|
46
|
+
// green
|
|
47
|
+
'icon-success-enabled': _primitives.primitiveColors['green-60'],
|
|
48
|
+
'icon-success-disabled': _primitives.primitiveColors['green-30'],
|
|
49
|
+
// orange
|
|
50
|
+
'icon-high-enabled': _primitives.primitiveColors['orange-60'],
|
|
51
|
+
'icon-high-disabled': _primitives.primitiveColors['orange-30'],
|
|
52
|
+
// purple
|
|
53
|
+
'icon-attention-enabled': _primitives.primitiveColors['purple-60']
|
|
54
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const illustrationColors: {
|
|
2
|
+
'illustration-neutral1': string;
|
|
3
|
+
'illustration-neutral2': string;
|
|
4
|
+
'illustration-neutral3': string;
|
|
5
|
+
'illustration-neutral4': string;
|
|
6
|
+
'illustration-brand1': string;
|
|
7
|
+
'illustration-brand2': string;
|
|
8
|
+
'illustration-brand3': string;
|
|
9
|
+
'illustration-brand4': string;
|
|
10
|
+
'illustration-brand-inverted': string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.illustrationColors = void 0;
|
|
7
|
+
var _primitives = require("../primitives");
|
|
8
|
+
var illustrationColors = exports.illustrationColors = {
|
|
9
|
+
'illustration-neutral1': _primitives.primitiveColors['grey-10'],
|
|
10
|
+
'illustration-neutral2': _primitives.primitiveColors['grey-50'],
|
|
11
|
+
'illustration-neutral3': _primitives.primitiveColors['grey-80'],
|
|
12
|
+
'illustration-neutral4': _primitives.primitiveColors['grey-95'],
|
|
13
|
+
'illustration-brand1': _primitives.primitiveColors['blue-30'],
|
|
14
|
+
'illustration-brand2': _primitives.primitiveColors['blue-40'],
|
|
15
|
+
'illustration-brand3': _primitives.primitiveColors['blue-20'],
|
|
16
|
+
'illustration-brand4': _primitives.primitiveColors['blue-90'],
|
|
17
|
+
'illustration-brand-inverted': _primitives.primitiveColors['blue-98']
|
|
18
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.darkCodacyThemeColors = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _primitives = require("../primitives");
|
|
10
|
+
var _illustration = require("./illustration");
|
|
11
|
+
var _data = require("./data");
|
|
12
|
+
var _background = require("./background");
|
|
13
|
+
var _border = require("./border");
|
|
14
|
+
var _icon = require("./icon");
|
|
15
|
+
var _text = require("./text");
|
|
16
|
+
var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, _text.textColors), _background.backgroundColors), _border.borderColors), _icon.iconColors), _illustration.illustrationColors), _data.dataColors), {}, {
|
|
17
|
+
// COLORS THAT ARE NOT DEFINED IN THE NEW DESIGN SYSTEM
|
|
18
|
+
// Brand
|
|
19
|
+
'brand-primary': _primitives.primitiveColors['blue-60'],
|
|
20
|
+
'brand-hover': _primitives.primitiveColors['blue-70'],
|
|
21
|
+
'brand-pressed': _primitives.primitiveColors['blue-20'],
|
|
22
|
+
'brand-disabled': _primitives.primitiveColors['blue-30'],
|
|
23
|
+
'brand-focus': _primitives.primitiveColors['blue-10'],
|
|
24
|
+
'brand-inverted': _primitives.primitiveColors['grey-00'],
|
|
25
|
+
'brand-subtle': _primitives.primitiveColors['blue-10'],
|
|
26
|
+
// Subtle
|
|
27
|
+
'subtle-primary': _primitives.primitiveColors['grey-50'],
|
|
28
|
+
'subtle-hover': _primitives.primitiveColors['grey-30'],
|
|
29
|
+
'subtle-pressed': _primitives.primitiveColors['grey-10'],
|
|
30
|
+
'subtle-disabled': _primitives.primitiveColors['grey-30'],
|
|
31
|
+
'subtle-inverted': _primitives.primitiveColors['grey-98'],
|
|
32
|
+
// Danger
|
|
33
|
+
'danger-primary': _primitives.primitiveColors['red-60'],
|
|
34
|
+
'danger-hover': _primitives.primitiveColors['red-70'],
|
|
35
|
+
'danger-pressed': _primitives.primitiveColors['red-30'],
|
|
36
|
+
'danger-disabled': _primitives.primitiveColors['red-10'],
|
|
37
|
+
'danger-focus': _primitives.primitiveColors['red-20'],
|
|
38
|
+
'danger-subtle': _primitives.primitiveColors['red-10'],
|
|
39
|
+
// Success
|
|
40
|
+
'success-primary': _primitives.primitiveColors['green-60'],
|
|
41
|
+
'success-hover': _primitives.primitiveColors['green-70'],
|
|
42
|
+
'success-pressed': _primitives.primitiveColors['green-30'],
|
|
43
|
+
'success-disabled': _primitives.primitiveColors['green-10'],
|
|
44
|
+
'success-focus': _primitives.primitiveColors['green-20'],
|
|
45
|
+
// Warning
|
|
46
|
+
'warning-primary': _primitives.primitiveColors['yellow-60'],
|
|
47
|
+
'warning-hover': _primitives.primitiveColors['yellow-70'],
|
|
48
|
+
'warning-pressed': _primitives.primitiveColors['yellow-30'],
|
|
49
|
+
'warning-disabled': _primitives.primitiveColors['yellow-10'],
|
|
50
|
+
'warning-focus': _primitives.primitiveColors['yellow-20'],
|
|
51
|
+
//High
|
|
52
|
+
'high-primary': _primitives.primitiveColors['orange-60'],
|
|
53
|
+
'high-hover': _primitives.primitiveColors['orange-70'],
|
|
54
|
+
'high-pressed': _primitives.primitiveColors['orange-30'],
|
|
55
|
+
'high-disabled': _primitives.primitiveColors['orange-10'],
|
|
56
|
+
// Info
|
|
57
|
+
'info-primary': _primitives.primitiveColors['blue-60'],
|
|
58
|
+
'info-hover': _primitives.primitiveColors['blue-70'],
|
|
59
|
+
'info-pressed': _primitives.primitiveColors['blue-30'],
|
|
60
|
+
'info-disabled': _primitives.primitiveColors['blue-10'],
|
|
61
|
+
'info-inverted': _primitives.primitiveColors['white'],
|
|
62
|
+
// Attention
|
|
63
|
+
'attention-primary': _primitives.primitiveColors['purple-60'],
|
|
64
|
+
'attention-hover': _primitives.primitiveColors['purple-70'],
|
|
65
|
+
'attention-pressed': _primitives.primitiveColors['purple-30'],
|
|
66
|
+
'attention-disabled': _primitives.primitiveColors['purple-10'],
|
|
67
|
+
'attention-focus': _primitives.primitiveColors['purple-20'],
|
|
68
|
+
// Navigation
|
|
69
|
+
'navigation-top-primary': _primitives.primitiveColors['grey-20'],
|
|
70
|
+
'navigation-text': _primitives.primitiveColors['grey-70'],
|
|
71
|
+
'navigation-text-pressed': _primitives.primitiveColors['grey-70']
|
|
72
|
+
});
|
|
73
|
+
var darkCodacyThemeColors = exports.darkCodacyThemeColors = functionalColors;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare const textColors: {
|
|
2
|
+
'text-primary': string;
|
|
3
|
+
'text-secondary': string;
|
|
4
|
+
'text-tertiary': string;
|
|
5
|
+
'text-disabled': string;
|
|
6
|
+
'text-inverted': string;
|
|
7
|
+
'text-subtle-enabled': string;
|
|
8
|
+
'text-subtle-hover': string;
|
|
9
|
+
'text-subtle-focus': string;
|
|
10
|
+
'text-subtle-pressed': string;
|
|
11
|
+
'text-subtle-disabled': string;
|
|
12
|
+
'text-subtle-inverted': string;
|
|
13
|
+
'text-code-subtle-enabled': string;
|
|
14
|
+
'text-code-subtle-disabled': string;
|
|
15
|
+
'text-link-enabled': string;
|
|
16
|
+
'text-link-hover': string;
|
|
17
|
+
'text-link-focus': string;
|
|
18
|
+
'text-link-pressed': string;
|
|
19
|
+
'text-link-disabled': string;
|
|
20
|
+
'text-brand-enabled': string;
|
|
21
|
+
'text-brand-hover': string;
|
|
22
|
+
'text-brand-focus': string;
|
|
23
|
+
'text-brand-pressed': string;
|
|
24
|
+
'text-brand-disabled': string;
|
|
25
|
+
'text-info-enabled': string;
|
|
26
|
+
'text-minor-enabled': string;
|
|
27
|
+
'text-minor-disabled': string;
|
|
28
|
+
'text-code-brand-enabled': string;
|
|
29
|
+
'text-code-brand-disabled': string;
|
|
30
|
+
'text-danger-enabled': string;
|
|
31
|
+
'text-danger-hover': string;
|
|
32
|
+
'text-danger-focus': string;
|
|
33
|
+
'text-danger-pressed': string;
|
|
34
|
+
'text-danger-disabled': string;
|
|
35
|
+
'text-critical-enabled': string;
|
|
36
|
+
'text-critical-disabled': string;
|
|
37
|
+
'text-code-danger': string;
|
|
38
|
+
'text-warning-enabled': string;
|
|
39
|
+
'text-medium-enabled': string;
|
|
40
|
+
'text-medium-disabled': string;
|
|
41
|
+
'text-success-enabled': string;
|
|
42
|
+
'text-high-enabled': string;
|
|
43
|
+
'text-high-disabled': string;
|
|
44
|
+
"background-high": string;
|
|
45
|
+
"background-medium": string;
|
|
46
|
+
"background-success": string;
|
|
47
|
+
"background-danger": string;
|
|
48
|
+
"background-warning": string;
|
|
49
|
+
"background-info": string;
|
|
50
|
+
"background-attention": string;
|
|
51
|
+
"background-critical": string;
|
|
52
|
+
"background-minor": string;
|
|
53
|
+
"border-high": string;
|
|
54
|
+
"border-medium": string;
|
|
55
|
+
"border-success": string;
|
|
56
|
+
"border-danger": string;
|
|
57
|
+
"border-warning": string;
|
|
58
|
+
"border-info": string;
|
|
59
|
+
"border-attention": string;
|
|
60
|
+
"border-critical": string;
|
|
61
|
+
"border-minor": string;
|
|
62
|
+
"text-high": string;
|
|
63
|
+
"text-medium": string;
|
|
64
|
+
"text-success": string;
|
|
65
|
+
"text-danger": string;
|
|
66
|
+
"text-warning": string;
|
|
67
|
+
"text-info": string;
|
|
68
|
+
"text-attention": string;
|
|
69
|
+
"text-critical": string;
|
|
70
|
+
"text-minor": string;
|
|
71
|
+
"icon-high": string;
|
|
72
|
+
"icon-medium": string;
|
|
73
|
+
"icon-success": string;
|
|
74
|
+
"icon-danger": string;
|
|
75
|
+
"icon-warning": string;
|
|
76
|
+
"icon-info": string;
|
|
77
|
+
"icon-attention": string;
|
|
78
|
+
"icon-critical": string;
|
|
79
|
+
"icon-minor": string;
|
|
80
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.textColors = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _primitives = require("../primitives");
|
|
10
|
+
var _semantics = require("../semantics");
|
|
11
|
+
var textColors = exports.textColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _semantics.semanticFunctionalColorsFx)('text', 60)), {}, {
|
|
12
|
+
'text-primary': _primitives.primitiveColors['grey-98'],
|
|
13
|
+
'text-secondary': _primitives.primitiveColors['grey-80'],
|
|
14
|
+
'text-tertiary': _primitives.primitiveColors['grey-60'],
|
|
15
|
+
'text-disabled': _primitives.primitiveColors['grey-30'],
|
|
16
|
+
'text-inverted': _primitives.primitiveColors['grey-98'],
|
|
17
|
+
'text-subtle-enabled': _primitives.primitiveColors['grey-20'],
|
|
18
|
+
'text-subtle-hover': _primitives.primitiveColors['grey-30'],
|
|
19
|
+
'text-subtle-focus': _primitives.primitiveColors['grey-30'],
|
|
20
|
+
'text-subtle-pressed': _primitives.primitiveColors['grey-50'],
|
|
21
|
+
'text-subtle-disabled': _primitives.primitiveColors['grey-20'],
|
|
22
|
+
'text-subtle-inverted': _primitives.primitiveColors['grey-10'],
|
|
23
|
+
'text-code-subtle-enabled': _primitives.primitiveColors['grey-20'],
|
|
24
|
+
'text-code-subtle-disabled': _primitives.primitiveColors['grey-60'],
|
|
25
|
+
// Text - Link and Brand
|
|
26
|
+
'text-link-enabled': _primitives.primitiveColors['blue-60'],
|
|
27
|
+
'text-link-hover': _primitives.primitiveColors['blue-70'],
|
|
28
|
+
'text-link-focus': _primitives.primitiveColors['blue-70'],
|
|
29
|
+
'text-link-pressed': _primitives.primitiveColors['blue-30'],
|
|
30
|
+
'text-link-disabled': _primitives.primitiveColors['blue-20'],
|
|
31
|
+
'text-brand-enabled': _primitives.primitiveColors['blue-50'],
|
|
32
|
+
'text-brand-hover': _primitives.primitiveColors['blue-60'],
|
|
33
|
+
'text-brand-focus': _primitives.primitiveColors['blue-60'],
|
|
34
|
+
'text-brand-pressed': _primitives.primitiveColors['blue-30'],
|
|
35
|
+
'text-brand-disabled': _primitives.primitiveColors['blue-20'],
|
|
36
|
+
// Text - Semantic
|
|
37
|
+
// blue
|
|
38
|
+
'text-info-enabled': _primitives.primitiveColors['blue-60'],
|
|
39
|
+
'text-minor-enabled': _primitives.primitiveColors['blue-50'],
|
|
40
|
+
'text-minor-disabled': _primitives.primitiveColors['blue-20'],
|
|
41
|
+
'text-code-brand-enabled': _primitives.primitiveColors['blue-20'],
|
|
42
|
+
'text-code-brand-disabled': _primitives.primitiveColors['blue-60'],
|
|
43
|
+
// red
|
|
44
|
+
'text-danger-enabled': _primitives.primitiveColors['red-60'],
|
|
45
|
+
'text-danger-hover': _primitives.primitiveColors['red-70'],
|
|
46
|
+
'text-danger-focus': _primitives.primitiveColors['red-70'],
|
|
47
|
+
'text-danger-pressed': _primitives.primitiveColors['red-80'],
|
|
48
|
+
'text-danger-disabled': _primitives.primitiveColors['red-20'],
|
|
49
|
+
'text-critical-enabled': _primitives.primitiveColors['red-60'],
|
|
50
|
+
'text-critical-disabled': _primitives.primitiveColors['red-30'],
|
|
51
|
+
'text-code-danger': _primitives.primitiveColors['red-60'],
|
|
52
|
+
// yellow
|
|
53
|
+
'text-warning-enabled': _primitives.primitiveColors['yellow-60'],
|
|
54
|
+
'text-medium-enabled': _primitives.primitiveColors['yellow-50'],
|
|
55
|
+
'text-medium-disabled': _primitives.primitiveColors['yellow-20'],
|
|
56
|
+
// green
|
|
57
|
+
'text-success-enabled': _primitives.primitiveColors['green-60'],
|
|
58
|
+
// orange
|
|
59
|
+
'text-high-enabled': _primitives.primitiveColors['orange-40'],
|
|
60
|
+
'text-high-disabled': _primitives.primitiveColors['orange-20']
|
|
61
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _light = require("./light");
|
|
7
|
+
Object.keys(_light).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _light[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _light[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _dark = require("./dark");
|
|
18
|
+
Object.keys(_dark).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _dark[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _dark[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _types = require("./types");
|
|
29
|
+
Object.keys(_types).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _types[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _primitives = require("./primitives");
|
|
40
|
+
Object.keys(_primitives).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _primitives[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _primitives[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _semantics = require("./semantics");
|
|
51
|
+
Object.keys(_semantics).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _semantics[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _semantics[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const backgroundColors: {
|
|
2
|
+
'background-brand': string;
|
|
3
|
+
'background-brand-enabled': string;
|
|
4
|
+
'background-brand-hover': string;
|
|
5
|
+
'background-brand-focus': string;
|
|
6
|
+
'background-brand-pressed': string;
|
|
7
|
+
'background-brand-disabled': string;
|
|
8
|
+
'background-brand-inverted': string;
|
|
9
|
+
'background-subtle-enabled': string;
|
|
10
|
+
'background-subtle-hover': string;
|
|
11
|
+
'background-subtle-focus': string;
|
|
12
|
+
'background-subtle-pressed': string;
|
|
13
|
+
'background-subtle-disabled': string;
|
|
14
|
+
'background-info-enabled': string;
|
|
15
|
+
'background-minor-enabled': string;
|
|
16
|
+
'background-minor-disabled': string;
|
|
17
|
+
'background-danger-enabled': string;
|
|
18
|
+
'background-danger-hover': string;
|
|
19
|
+
'background-danger-focus': string;
|
|
20
|
+
'background-danger-pressed': string;
|
|
21
|
+
'background-danger-disabled': string;
|
|
22
|
+
'background-critical-enabled': string;
|
|
23
|
+
'background-critical-disabled': string;
|
|
24
|
+
'background-success-enabled': string;
|
|
25
|
+
'background-success-disabled': string;
|
|
26
|
+
'background-warning-enabled': string;
|
|
27
|
+
'background-medium-enabled': string;
|
|
28
|
+
'background-medium-disabled': string;
|
|
29
|
+
'background-attention-enabled': string;
|
|
30
|
+
'background-high-enabled': string;
|
|
31
|
+
'background-high-disabled': string;
|
|
32
|
+
"background-high": string;
|
|
33
|
+
"background-medium": string;
|
|
34
|
+
"background-success": string;
|
|
35
|
+
"background-danger": string;
|
|
36
|
+
"background-warning": string;
|
|
37
|
+
"background-info": string;
|
|
38
|
+
"background-attention": string;
|
|
39
|
+
"background-critical": string;
|
|
40
|
+
"background-minor": string;
|
|
41
|
+
"border-high": string;
|
|
42
|
+
"border-medium": string;
|
|
43
|
+
"border-success": string;
|
|
44
|
+
"border-danger": string;
|
|
45
|
+
"border-warning": string;
|
|
46
|
+
"border-info": string;
|
|
47
|
+
"border-attention": string;
|
|
48
|
+
"border-critical": string;
|
|
49
|
+
"border-minor": string;
|
|
50
|
+
"text-high": string;
|
|
51
|
+
"text-medium": string;
|
|
52
|
+
"text-success": string;
|
|
53
|
+
"text-danger": string;
|
|
54
|
+
"text-warning": string;
|
|
55
|
+
"text-info": string;
|
|
56
|
+
"text-attention": string;
|
|
57
|
+
"text-critical": string;
|
|
58
|
+
"text-minor": string;
|
|
59
|
+
"icon-high": string;
|
|
60
|
+
"icon-medium": string;
|
|
61
|
+
"icon-success": string;
|
|
62
|
+
"icon-danger": string;
|
|
63
|
+
"icon-warning": string;
|
|
64
|
+
"icon-info": string;
|
|
65
|
+
"icon-attention": string;
|
|
66
|
+
"icon-critical": string;
|
|
67
|
+
"icon-minor": string;
|
|
68
|
+
'background-primary': string;
|
|
69
|
+
'background-secondary': string;
|
|
70
|
+
'background-subtle': string;
|
|
71
|
+
'background-brand-subtle': string;
|
|
72
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.backgroundColors = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _primitives = require("../primitives");
|
|
10
|
+
var _semantics = require("../semantics");
|
|
11
|
+
var backgroundColors = exports.backgroundColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
|
|
12
|
+
'background-primary': _primitives.primitiveColors['white'],
|
|
13
|
+
'background-secondary': _primitives.primitiveColors['grey-98'],
|
|
14
|
+
'background-subtle': _primitives.primitiveColors['blue-98'],
|
|
15
|
+
'background-brand-subtle': _primitives.primitiveColors['blue-95']
|
|
16
|
+
}, (0, _semantics.semanticFunctionalColorsFx)('background', 95)), {}, {
|
|
17
|
+
'background-brand': _primitives.primitiveColors['blue-95'],
|
|
18
|
+
'background-brand-enabled': _primitives.primitiveColors['blue-40'],
|
|
19
|
+
'background-brand-hover': _primitives.primitiveColors['blue-30'],
|
|
20
|
+
'background-brand-focus': _primitives.primitiveColors['blue-30'],
|
|
21
|
+
'background-brand-pressed': _primitives.primitiveColors['blue-20'],
|
|
22
|
+
'background-brand-disabled': _primitives.primitiveColors['blue-70'],
|
|
23
|
+
'background-brand-inverted': _primitives.primitiveColors['white'],
|
|
24
|
+
'background-subtle-enabled': _primitives.primitiveColors['grey-40'],
|
|
25
|
+
'background-subtle-hover': _primitives.primitiveColors['grey-30'],
|
|
26
|
+
'background-subtle-focus': _primitives.primitiveColors['grey-30'],
|
|
27
|
+
'background-subtle-pressed': _primitives.primitiveColors['grey-10'],
|
|
28
|
+
'background-subtle-disabled': _primitives.primitiveColors['grey-70'],
|
|
29
|
+
// blue
|
|
30
|
+
'background-info-enabled': _primitives.primitiveColors['blue-40'],
|
|
31
|
+
'background-minor-enabled': _primitives.primitiveColors['blue-40'],
|
|
32
|
+
'background-minor-disabled': _primitives.primitiveColors['blue-70'],
|
|
33
|
+
// red
|
|
34
|
+
'background-danger-enabled': _primitives.primitiveColors['red-40'],
|
|
35
|
+
'background-danger-hover': _primitives.primitiveColors['red-30'],
|
|
36
|
+
'background-danger-focus': _primitives.primitiveColors['red-30'],
|
|
37
|
+
'background-danger-pressed': _primitives.primitiveColors['red-20'],
|
|
38
|
+
'background-danger-disabled': _primitives.primitiveColors['red-70'],
|
|
39
|
+
'background-critical-enabled': _primitives.primitiveColors['red-40'],
|
|
40
|
+
'background-critical-disabled': _primitives.primitiveColors['red-70'],
|
|
41
|
+
// green
|
|
42
|
+
'background-success-enabled': _primitives.primitiveColors['green-40'],
|
|
43
|
+
'background-success-disabled': _primitives.primitiveColors['green-70'],
|
|
44
|
+
// yellow
|
|
45
|
+
'background-warning-enabled': _primitives.primitiveColors['yellow-40'],
|
|
46
|
+
'background-medium-enabled': _primitives.primitiveColors['yellow-50'],
|
|
47
|
+
'background-medium-disabled': _primitives.primitiveColors['yellow-70'],
|
|
48
|
+
// purple
|
|
49
|
+
'background-attention-enabled': _primitives.primitiveColors['purple-40'],
|
|
50
|
+
// orange
|
|
51
|
+
'background-high-enabled': _primitives.primitiveColors['orange-40'],
|
|
52
|
+
'background-high-disabled': _primitives.primitiveColors['orange-70']
|
|
53
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const borderColors: {
|
|
2
|
+
'border-brand-subtle': string;
|
|
3
|
+
'border-brand-enabled': string;
|
|
4
|
+
'border-brand-pressed': string;
|
|
5
|
+
'border-brand-hover': string;
|
|
6
|
+
'border-brand-primary': string;
|
|
7
|
+
'border-brand-disabled': string;
|
|
8
|
+
'border-info-enabled': string;
|
|
9
|
+
'border-minor-enabled': string;
|
|
10
|
+
'border-minor-disabled': string;
|
|
11
|
+
'border-danger-subtle': string;
|
|
12
|
+
'border-danger-enabled': string;
|
|
13
|
+
'border-danger-hover': string;
|
|
14
|
+
'border-danger-focus': string;
|
|
15
|
+
'border-danger-pressed': string;
|
|
16
|
+
'border-critical-enabled': string;
|
|
17
|
+
'border-critical-disabled': string;
|
|
18
|
+
'border-warning-enabled': string;
|
|
19
|
+
'border-medium-enabled': string;
|
|
20
|
+
'border-medium-disabled': string;
|
|
21
|
+
'border-success-enabled': string;
|
|
22
|
+
'border-success-subtle': string;
|
|
23
|
+
'border-attention-enabled': string;
|
|
24
|
+
'border-attention-disabled': string;
|
|
25
|
+
'border-high-enabled': string;
|
|
26
|
+
'border-high-disabled': string;
|
|
27
|
+
"background-high": string;
|
|
28
|
+
"background-medium": string;
|
|
29
|
+
"background-success": string;
|
|
30
|
+
"background-danger": string;
|
|
31
|
+
"background-warning": string;
|
|
32
|
+
"background-info": string;
|
|
33
|
+
"background-attention": string;
|
|
34
|
+
"background-critical": string;
|
|
35
|
+
"background-minor": string;
|
|
36
|
+
"border-high": string;
|
|
37
|
+
"border-medium": string;
|
|
38
|
+
"border-success": string;
|
|
39
|
+
"border-danger": string;
|
|
40
|
+
"border-warning": string;
|
|
41
|
+
"border-info": string;
|
|
42
|
+
"border-attention": string;
|
|
43
|
+
"border-critical": string;
|
|
44
|
+
"border-minor": string;
|
|
45
|
+
"text-high": string;
|
|
46
|
+
"text-medium": string;
|
|
47
|
+
"text-success": string;
|
|
48
|
+
"text-danger": string;
|
|
49
|
+
"text-warning": string;
|
|
50
|
+
"text-info": string;
|
|
51
|
+
"text-attention": string;
|
|
52
|
+
"text-critical": string;
|
|
53
|
+
"text-minor": string;
|
|
54
|
+
"icon-high": string;
|
|
55
|
+
"icon-medium": string;
|
|
56
|
+
"icon-success": string;
|
|
57
|
+
"icon-danger": string;
|
|
58
|
+
"icon-warning": string;
|
|
59
|
+
"icon-info": string;
|
|
60
|
+
"icon-attention": string;
|
|
61
|
+
"icon-critical": string;
|
|
62
|
+
"icon-minor": string;
|
|
63
|
+
'border-inverted': string;
|
|
64
|
+
'border-primary': string;
|
|
65
|
+
'border-subtle-enabled': string;
|
|
66
|
+
'border-subtle-hover': string;
|
|
67
|
+
'border-subtle-focus': string;
|
|
68
|
+
'border-subtle-pressed': string;
|
|
69
|
+
'border-subtle-disabled': string;
|
|
70
|
+
};
|