@codacy/ui-components 0.65.31 → 0.65.33
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/Banner/Banner.js +2 -2
- package/lib/Banner/Banner.styles.js +4 -4
- package/lib/Banner/Banner.types.d.ts +1 -1
- package/lib/Button/styles.js +8 -7
- package/lib/Button/types.d.ts +2 -2
- package/lib/Checkbox/styles.js +12 -12
- package/lib/CloseButton/index.js +3 -3
- package/lib/Divider/Divider.styles.js +4 -4
- package/lib/Dropdown/Dropdown.styles.js +10 -10
- package/lib/Dropdown/Triggers/FilterTrigger.js +3 -3
- package/lib/Dropdown/Triggers/SelectTrigger.js +1 -1
- package/lib/InlineMessage/InlineMessage.js +1 -1
- package/lib/Input/Input.js +3 -3
- package/lib/Input/styles.js +14 -14
- package/lib/Link/Link.styles.js +2 -2
- package/lib/Message/Message.styles.js +2 -2
- package/lib/Modal/styles.js +14 -14
- package/lib/MoreInfo/MoreInfo.js +1 -1
- package/lib/Panel/Panel.styles.js +2 -2
- package/lib/PillLabel/PillLabel.styles.js +7 -7
- package/lib/Popup/styles.js +3 -3
- package/lib/ProgressBar/styles.js +6 -6
- package/lib/Radio/Radio.js +1 -1
- package/lib/Radio/styles.js +8 -8
- package/lib/Skeleton/Skeleton.styles.js +4 -4
- package/lib/Slider/styles.js +10 -10
- package/lib/StepNumber/StepNumber.js +1 -1
- package/lib/StepNumber/styles.js +2 -2
- package/lib/Stepper/Stepper.js +2 -2
- package/lib/Stepper/Stepper.styles.js +7 -7
- package/lib/Switcher/Switcher.styles.js +5 -5
- package/lib/Tab/Tab.styles.js +6 -6
- package/lib/Table/NewSelectableTable.d.ts +1 -0
- package/lib/Table/NewSelectableTable.js +38 -20
- package/lib/Table/Table.js +1 -1
- package/lib/Table/Table.styles.js +14 -14
- package/lib/TagsInput/style.js +5 -5
- package/lib/Textarea/Textarea.styles.js +11 -11
- package/lib/Toggle/Toggle.js +1 -1
- package/lib/Toggle/styles.js +16 -16
- package/lib/Tooltip/styles.js +6 -6
- package/lib/Typography/Typography.types.d.ts +1 -1
- package/lib/theme/ColorSchemes/codacy.d.ts +209 -201
- package/lib/theme/ColorSchemes/codacy.js +154 -123
- package/lib/theme/ColorSchemes/security.d.ts +2 -0
- package/lib/theme/ColorSchemes/security.js +28 -0
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/index.js +4 -4
- package/lib/theme/theme.d.ts +1 -1
- package/lib/theme/theme.js +4 -4
- package/package.json +1 -1
- package/lib/theme/ColorSchemes/pulse.d.ts +0 -2
- package/lib/theme/ColorSchemes/pulse.js +0 -62
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.functionalColorsFx = exports.codacyThemeColors = exports.baseColors = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
9
|
var baseColors = exports.baseColors = {
|
|
10
|
-
// BLUE
|
|
10
|
+
// BLUE - Quality
|
|
11
11
|
'blue-99': '#F0F6FF',
|
|
12
12
|
'blue-95': '#E5EFFF',
|
|
13
13
|
'blue-90': '#DBE9FF',
|
|
@@ -19,55 +19,45 @@ var baseColors = exports.baseColors = {
|
|
|
19
19
|
'blue-30': '#004AC2',
|
|
20
20
|
'blue-20': '#004AC2',
|
|
21
21
|
'blue-10': '#00174A',
|
|
22
|
-
//
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
22
|
+
// ORANGE - Security
|
|
23
|
+
'orange-99': '#FFFCFA',
|
|
24
|
+
'orange-95': '#FFF2E6',
|
|
25
|
+
'orange-90': '#FEE5CD',
|
|
26
|
+
'orange-80': '#FECA9A',
|
|
27
|
+
'orange-70': '#FDB068',
|
|
28
|
+
'orange-60': '#FD9535',
|
|
29
|
+
'orange-50': '#FD881C',
|
|
30
|
+
'orange-40': '#F47603',
|
|
31
|
+
'orange-30': '#C56002',
|
|
32
|
+
'orange-20': '#653101',
|
|
33
|
+
'orange-10': '#321901',
|
|
34
|
+
// PURPLE - Codacy
|
|
35
|
+
'purple-99': '#FCFBFE',
|
|
36
|
+
'purple-95': '#F1EAFA',
|
|
37
|
+
'purple-90': '#E4D5F6',
|
|
38
|
+
'purple-80': '#C8ACEC',
|
|
39
|
+
'purple-70': '#AD82E3',
|
|
40
|
+
'purple-60': '#9F6DDE',
|
|
41
|
+
'purple-50': '#8443D5',
|
|
42
|
+
'purple-40': '#712DC8',
|
|
43
|
+
'purple-30': '#532192',
|
|
44
|
+
'purple-20': '#421A75',
|
|
45
|
+
'purple-10': '#18092A',
|
|
46
|
+
// GREY - Neutral
|
|
47
|
+
'grey-99': '#F4F6FB',
|
|
48
|
+
'grey-95': '#E8EDF7',
|
|
49
|
+
'grey-90': '#DAE2F1',
|
|
50
|
+
'grey-80': '#C8D2E4',
|
|
51
|
+
'grey-70': '#B9C5DA',
|
|
52
|
+
'grey-60': '#99A7C2',
|
|
53
|
+
'grey-50': '#798CAF',
|
|
54
|
+
'grey-40': '#5C7199',
|
|
55
|
+
'grey-30': '#415986',
|
|
56
|
+
'grey-20': '#2C4168',
|
|
57
|
+
'grey-10': '#182949',
|
|
33
58
|
// WHITE
|
|
34
59
|
white: '#FFFFFF',
|
|
35
|
-
//
|
|
36
|
-
'purple-100': '#FAF7FD',
|
|
37
|
-
'purple-200': '#DECDF4',
|
|
38
|
-
'purple-300': '#C3A3EB',
|
|
39
|
-
'purple-400': '#A77AE1',
|
|
40
|
-
'purple-500': '#8C50D8',
|
|
41
|
-
'purple-600': '#712DC8',
|
|
42
|
-
'purple-700': '#5A239E',
|
|
43
|
-
'purple-800': '#421A75',
|
|
44
|
-
'purple-900': '#2A114B',
|
|
45
|
-
// MAGENTA
|
|
46
|
-
'magenta-99': '#fef2fc',
|
|
47
|
-
'magenta-95': '#fcc8e9',
|
|
48
|
-
'magenta-90': '#f99dd7',
|
|
49
|
-
'magenta-80': '#ed4aa5',
|
|
50
|
-
'magenta-70': '#d5348e',
|
|
51
|
-
'magenta-60': '#b72974',
|
|
52
|
-
'magenta-50': '#97215b',
|
|
53
|
-
'magenta-40': '#731b46',
|
|
54
|
-
'magenta-30': '#4e122e',
|
|
55
|
-
'magenta-20': '#2a0b19',
|
|
56
|
-
'magenta-10': '#17060d',
|
|
57
|
-
// ORANGE
|
|
58
|
-
'orange-200': '#EE6002',
|
|
59
|
-
'orange-100': '#FFA101',
|
|
60
|
-
'orange-50': '#FFF2DF',
|
|
61
|
-
// TURQUOISE
|
|
62
|
-
'turquoise-700': '#176267',
|
|
63
|
-
'turquoise-600': '#2E7D82',
|
|
64
|
-
'turquoise-500': '#2D8E94',
|
|
65
|
-
'turquoise-400': '#35ABB2',
|
|
66
|
-
'turquoise-300': '#72C8CF',
|
|
67
|
-
'turquoise-200': '#B6E4E7',
|
|
68
|
-
'turquoise-100': '#EAF6F6',
|
|
69
|
-
'turquoise-80': '#F7F8FA',
|
|
70
|
-
// RED
|
|
60
|
+
// RED - Error
|
|
71
61
|
'red-99': '#FFF6F5',
|
|
72
62
|
'red-95': '#FFEDEB',
|
|
73
63
|
'red-90': '#FFDAD6',
|
|
@@ -79,13 +69,19 @@ var baseColors = exports.baseColors = {
|
|
|
79
69
|
'red-30': '#960311',
|
|
80
70
|
'red-20': '#680008',
|
|
81
71
|
'red-10': '#410003',
|
|
82
|
-
// GREEN
|
|
83
|
-
'green-
|
|
84
|
-
'green-
|
|
85
|
-
'green-
|
|
86
|
-
'green-80': '#
|
|
87
|
-
'green-
|
|
88
|
-
|
|
72
|
+
// GREEN - Success
|
|
73
|
+
'green-99': '#F7FCF9',
|
|
74
|
+
'green-95': '#ECF9EF',
|
|
75
|
+
'green-90': '#D9F2E0',
|
|
76
|
+
'green-80': '#B3E5C1',
|
|
77
|
+
'green-70': '#8CD9A2',
|
|
78
|
+
'green-60': '#66CC83',
|
|
79
|
+
'green-50': '#40BF64',
|
|
80
|
+
'green-40': '#339950',
|
|
81
|
+
'green-30': '#26733C',
|
|
82
|
+
'green-20': '#1A4C28',
|
|
83
|
+
'green-10': '#0D2614',
|
|
84
|
+
// YELLOW - Warning
|
|
89
85
|
'yellow-99': '#FFFDFA',
|
|
90
86
|
'yellow-95': '#FFF6E5',
|
|
91
87
|
'yellow-90': '#FFECCC',
|
|
@@ -100,80 +96,115 @@ var baseColors = exports.baseColors = {
|
|
|
100
96
|
};
|
|
101
97
|
var functionalColorsFx = exports.functionalColorsFx = function functionalColorsFx(colors) {
|
|
102
98
|
return {
|
|
99
|
+
// Brand
|
|
103
100
|
'brand-primary': colors['blue-40'],
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
101
|
+
'brand-hover': colors['blue-30'],
|
|
102
|
+
'brand-pressed': colors['blue-20'],
|
|
103
|
+
'brand-disabled': colors['blue-70'],
|
|
104
|
+
'brand-focus': colors['blue-90'],
|
|
105
|
+
'brand-inverted': colors['white'],
|
|
106
|
+
'brand-subtle': colors['blue-99'],
|
|
107
|
+
// Subtle
|
|
108
|
+
'subtle-primary': colors['grey-50'],
|
|
109
|
+
'subtle-hover': colors['grey-30'],
|
|
110
|
+
'subtle-pressed': colors['grey-10'],
|
|
111
|
+
'subtle-disabled': colors['grey-70'],
|
|
112
|
+
'subtle-inverted': colors['white'],
|
|
113
|
+
// Danger
|
|
114
|
+
'danger-primary': colors['red-40'],
|
|
115
|
+
'danger-hover': colors['red-30'],
|
|
116
|
+
'danger-pressed': colors['red-20'],
|
|
117
|
+
'danger-disabled': colors['red-80'],
|
|
118
|
+
'danger-focus': colors['red-90'],
|
|
119
|
+
'danger-subtle': colors['red-99'],
|
|
120
|
+
// Success
|
|
121
|
+
'success-primary': colors['green-40'],
|
|
122
|
+
'success-hover': colors['green-30'],
|
|
123
|
+
'success-pressed': colors['green-20'],
|
|
124
|
+
'success-disabled': colors['green-80'],
|
|
125
|
+
// 'success-focus': colors['green-90'],
|
|
126
|
+
// 'success-subtle': colors['green-99'],
|
|
127
|
+
|
|
128
|
+
// Warning
|
|
129
|
+
'warning-primary': colors['yellow-40'],
|
|
130
|
+
'warning-hover': colors['yellow-30'],
|
|
131
|
+
'warning-pressed': colors['yellow-20'],
|
|
132
|
+
'warning-disabled': colors['yellow-80'],
|
|
133
|
+
// 'warning-focus': colors['yellow-90'],
|
|
134
|
+
// 'warning-subtle': colors['yellow-99'],
|
|
135
|
+
|
|
136
|
+
// Info
|
|
137
|
+
'info-primary': colors['blue-40'],
|
|
138
|
+
'info-hover': colors['blue-30'],
|
|
139
|
+
'info-pressed': colors['blue-20'],
|
|
140
|
+
'info-disabled': colors['blue-80'],
|
|
141
|
+
'info-inverted': colors['white'],
|
|
142
|
+
// 'info-focus': colors['blue-90'],
|
|
143
|
+
// 'info-subtle': colors['blue-99'],
|
|
144
|
+
|
|
145
|
+
// Attention
|
|
146
|
+
'attention-primary': colors['purple-40'],
|
|
147
|
+
'attention-hover': colors['purple-30'],
|
|
148
|
+
'attention-pressed': colors['purple-20'],
|
|
149
|
+
'attention-disabled': colors['purple-80'],
|
|
150
|
+
// 'attention-focus': colors['purple-90'],
|
|
151
|
+
// 'attention-subtle': colors['purple-99'],
|
|
152
|
+
|
|
153
|
+
// Text
|
|
154
|
+
'text-primary': colors['grey-10'],
|
|
155
|
+
'text-secondary': colors['grey-30'],
|
|
156
|
+
'text-tertiary': colors['grey-50'],
|
|
157
|
+
'text-inverted': colors['white'],
|
|
158
|
+
'text-disabled': colors['grey-70'],
|
|
159
|
+
// Text - Semantic
|
|
135
160
|
'text-danger': colors['red-40'],
|
|
136
|
-
'text-
|
|
161
|
+
'text-success': colors['green-40'],
|
|
162
|
+
'text-warning': colors['yellow-40'],
|
|
163
|
+
'text-info': colors['blue-40'],
|
|
164
|
+
'text-attention': colors['purple-40'],
|
|
165
|
+
// Background
|
|
137
166
|
'background-primary': colors['white'],
|
|
138
|
-
'background-secondary': colors['
|
|
139
|
-
|
|
140
|
-
'background-
|
|
141
|
-
'background-
|
|
167
|
+
'background-secondary': colors['grey-99'],
|
|
168
|
+
// Background - Semantic
|
|
169
|
+
'background-brand': colors['blue-95'],
|
|
170
|
+
'background-subtle': colors['grey-95'],
|
|
142
171
|
'background-danger': colors['red-95'],
|
|
143
|
-
'background-
|
|
144
|
-
'background-
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
|
|
148
|
-
'
|
|
149
|
-
'control-invalid-border': colors['red-40'],
|
|
150
|
-
'control-disabled': colors['black-200'],
|
|
151
|
-
'ui-border': colors['black-80'],
|
|
152
|
-
'ui-navbar': colors['black-700'],
|
|
153
|
-
'ui-navbar-text': colors['black-100'],
|
|
154
|
-
'border-brand-primary': colors['blue-70'],
|
|
155
|
-
'border-warning': colors['yellow-40'],
|
|
172
|
+
'background-success': colors['green-95'],
|
|
173
|
+
'background-warning': colors['yellow-95'],
|
|
174
|
+
'background-info': colors['blue-95'],
|
|
175
|
+
'background-attention': colors['purple-95'],
|
|
176
|
+
// Border
|
|
177
|
+
'border-primary': colors['grey-95'],
|
|
156
178
|
'border-danger': colors['red-40'],
|
|
157
|
-
'border-
|
|
158
|
-
'border-
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
|
|
162
|
-
'
|
|
179
|
+
'border-success': colors['green-40'],
|
|
180
|
+
'border-info': colors['blue-40'],
|
|
181
|
+
'border-warning': colors['yellow-40'],
|
|
182
|
+
'border-attention': colors['purple-70'],
|
|
183
|
+
// Border - Brand
|
|
184
|
+
'border-brand-primary': colors['blue-70'],
|
|
185
|
+
'border-brand-hover': colors['blue-40'],
|
|
186
|
+
'border-brand-pressed': colors['blue-30'],
|
|
187
|
+
'border-brand-disabled': colors['grey-70'],
|
|
188
|
+
'navigation-top-primary': colors['grey-10'],
|
|
189
|
+
// DS UNMATCHED
|
|
190
|
+
'navigation-text': colors['grey-80'],
|
|
191
|
+
// DS UNMATCHED
|
|
192
|
+
'navigation-text-pressed': colors['grey-80'],
|
|
193
|
+
// DS UNMATCHED
|
|
194
|
+
|
|
195
|
+
'icon-enabled': colors['grey-50'],
|
|
196
|
+
'icon-hover': colors['grey-30'],
|
|
197
|
+
'icon-disabled': colors['grey-70'],
|
|
198
|
+
// NOTE TO FELIPE usage?
|
|
199
|
+
'icon-brand-enabled': colors['blue-40'],
|
|
200
|
+
'icon-brand-hover': colors['blue-30'],
|
|
201
|
+
'icon-brand-disabled': colors['blue-70'],
|
|
163
202
|
'icon-danger': colors['red-40'],
|
|
164
|
-
'icon-
|
|
165
|
-
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'neutral-600': colors['black-400'],
|
|
170
|
-
'neutral-500': colors['black-300'],
|
|
171
|
-
'neutral-400': colors['black-200'],
|
|
172
|
-
'neutral-300': colors['black-100'],
|
|
173
|
-
'neutral-200': colors['black-80'],
|
|
174
|
-
'neutral-100': colors['black-60'],
|
|
175
|
-
'neutral-50': colors['black-50'],
|
|
176
|
-
'neutral-0': colors['white']
|
|
203
|
+
'icon-success': colors['green-40'],
|
|
204
|
+
'icon-warning': colors['yellow-40'],
|
|
205
|
+
'icon-info': colors['blue-40'],
|
|
206
|
+
'icon-attention': colors['purple-50'],
|
|
207
|
+
'icon-inverted': colors['white']
|
|
177
208
|
};
|
|
178
209
|
};
|
|
179
210
|
var functionalColors = functionalColorsFx(baseColors);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.securityThemeColors = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _codacy = require("./codacy");
|
|
10
|
+
var baseColors = (0, _objectSpread2["default"])({}, _codacy.baseColors);
|
|
11
|
+
var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _codacy.functionalColorsFx)(baseColors)), {}, {
|
|
12
|
+
// UPDATE HERE FUNCTIONAL COLORS
|
|
13
|
+
|
|
14
|
+
'brand-primary': baseColors['orange-40'],
|
|
15
|
+
'brand-hover': baseColors['orange-30'],
|
|
16
|
+
'brand-pressed': baseColors['orange-20'],
|
|
17
|
+
'brand-disabled': baseColors['orange-70'],
|
|
18
|
+
'brand-focus': baseColors['orange-90'],
|
|
19
|
+
// 'brand-inverted': baseColors['white'],
|
|
20
|
+
'background-brand': baseColors['orange-95'],
|
|
21
|
+
'brand-subtle': baseColors['orange-99'],
|
|
22
|
+
// Border
|
|
23
|
+
'border-brand-primary': baseColors['orange-70'],
|
|
24
|
+
'border-brand-hover': baseColors['orange-40'],
|
|
25
|
+
'border-brand-pressed': baseColors['orange-30']
|
|
26
|
+
// 'border-brand-disabled': baseColors['grey-70'],
|
|
27
|
+
});
|
|
28
|
+
var securityThemeColors = exports.securityThemeColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, baseColors), functionalColors);
|
package/lib/theme/index.d.ts
CHANGED
package/lib/theme/index.js
CHANGED
|
@@ -14,14 +14,14 @@ Object.keys(_codacy).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var
|
|
18
|
-
Object.keys(
|
|
17
|
+
var _security = require("./ColorSchemes/security");
|
|
18
|
+
Object.keys(_security).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] ===
|
|
20
|
+
if (key in exports && exports[key] === _security[key]) return;
|
|
21
21
|
Object.defineProperty(exports, key, {
|
|
22
22
|
enumerable: true,
|
|
23
23
|
get: function get() {
|
|
24
|
-
return
|
|
24
|
+
return _security[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
package/lib/theme/theme.d.ts
CHANGED
|
@@ -32,6 +32,6 @@ export declare type CodacyTheme = {
|
|
|
32
32
|
export declare const transition: (properties: string[], speed?: Speed, refTheme?: Pick<CodacyTheme, 'transitions'>) => string;
|
|
33
33
|
export declare const generateTheme: (scheme: ColorScheme) => CodacyTheme;
|
|
34
34
|
export declare const codacyTheme: CodacyTheme;
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const securityTheme: CodacyTheme;
|
|
36
36
|
/** @deprecated Use codacyTheme instead */
|
|
37
37
|
export declare const theme: CodacyTheme;
|
package/lib/theme/theme.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.transition = exports.theme = exports.
|
|
7
|
+
exports.transition = exports.theme = exports.securityTheme = exports.generateTheme = exports.codacyTheme = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
9
|
var _ = require("./");
|
|
10
10
|
var _polished = require("polished");
|
|
@@ -77,7 +77,7 @@ var sizes = [/** size-00 */"".concat(gridSize * 9, "rem"), // 72px
|
|
|
77
77
|
];
|
|
78
78
|
var radii = ['0.125rem' /* 2px */, '0.25rem' /* 4px */, '0.5rem' /* 8px */];
|
|
79
79
|
var shadowsFx = function shadowsFx(scheme) {
|
|
80
|
-
return ["0 0.0625rem 0.125rem ".concat((0, _polished.rgba)(scheme['
|
|
80
|
+
return ["0 0.0625rem 0.125rem ".concat((0, _polished.rgba)(scheme['grey-30'], 0.2)), "0 0.125rem 0.375rem ".concat((0, _polished.rgba)(scheme['grey-30'], 0.3)), "0 0.125rem 0.375rem ".concat((0, _polished.rgba)(scheme['grey-30'], 0.2), ", 0 0.125rem 0.5rem ").concat((0, _polished.rgba)(scheme['grey-30'], 0.1)), "0 0.25rem 0.5rem ".concat((0, _polished.rgba)(scheme['grey-30'], 0.2), ", 0 0.25rem 0.75rem ").concat((0, _polished.rgba)(scheme['grey-30'], 0.1)), "0 0.75rem 1rem ".concat((0, _polished.rgba)(scheme['grey-30'], 0.2), ", 0 0.75rem 1.5rem ").concat((0, _polished.rgba)(scheme['grey-30'], 0.1))];
|
|
81
81
|
};
|
|
82
82
|
var transitions = ['0.2s ease-in-out', '0.35s ease-in-out', '0.75s ease-in-out'];
|
|
83
83
|
var breakpoints = ['85.1rem' /* > 1360px */, '90.1rem' /* > 1440px */, '105.1rem' /* > 1680px */];
|
|
@@ -143,7 +143,7 @@ var generateTheme = exports.generateTheme = function generateTheme(scheme) {
|
|
|
143
143
|
return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, baseTheme), {}, {
|
|
144
144
|
colors: scheme,
|
|
145
145
|
borders: borderWidths.map(function (w) {
|
|
146
|
-
return "solid ".concat(w, " ").concat(scheme['
|
|
146
|
+
return "solid ".concat(w, " ").concat(scheme['border-primary']);
|
|
147
147
|
}),
|
|
148
148
|
shadows: shadowsFx(scheme)
|
|
149
149
|
});
|
|
@@ -151,7 +151,7 @@ var generateTheme = exports.generateTheme = function generateTheme(scheme) {
|
|
|
151
151
|
|
|
152
152
|
// Themes
|
|
153
153
|
var codacyTheme = exports.codacyTheme = generateTheme(_.codacyThemeColors);
|
|
154
|
-
var
|
|
154
|
+
var securityTheme = exports.securityTheme = generateTheme(_.securityThemeColors);
|
|
155
155
|
|
|
156
156
|
/** @deprecated Use codacyTheme instead */
|
|
157
157
|
var theme = exports.theme = codacyTheme;
|
package/package.json
CHANGED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.pulseThemeColors = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
-
var _codacy = require("./codacy");
|
|
10
|
-
var baseColors = (0, _objectSpread2["default"])({}, _codacy.baseColors);
|
|
11
|
-
var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _codacy.functionalColorsFx)(baseColors)), {}, {
|
|
12
|
-
// UPDATE HERE FUNCTIONAL COLORS
|
|
13
|
-
|
|
14
|
-
'brand-primary': baseColors['turquoise-500'],
|
|
15
|
-
'accent-primary': baseColors['turquoise-400'],
|
|
16
|
-
'accent-primary-hover': baseColors['turquoise-500'],
|
|
17
|
-
'accent-primary-focus': baseColors['turquoise-500'],
|
|
18
|
-
'accent-primary-active': baseColors['turquoise-700'],
|
|
19
|
-
'accent-primary-disabled': baseColors['turquoise-200'],
|
|
20
|
-
// 'accent-subtle': baseColors['black-300'],
|
|
21
|
-
// 'accent-subtle-hover': baseColors['black-400'],
|
|
22
|
-
// 'accent-subtle-focus': baseColors['black-400'],
|
|
23
|
-
// 'accent-subtle-active': baseColors['black-500'],
|
|
24
|
-
// 'accent-subtle-disabled': baseColors['black-100'],
|
|
25
|
-
|
|
26
|
-
'accent-info': baseColors['turquoise-400'],
|
|
27
|
-
// 'text-primary': baseColors['black-700'],
|
|
28
|
-
// 'text-secondary': baseColors['black-400'],
|
|
29
|
-
// 'text-complementary': baseColors['black-300'],
|
|
30
|
-
// 'text-invert': baseColors['white'],
|
|
31
|
-
// 'text-placeholder': baseColors['black-200'],
|
|
32
|
-
'text-info': baseColors['turquoise-600'],
|
|
33
|
-
// 'text-success': baseColors['green-300'],
|
|
34
|
-
// 'text-warning': baseColors['orange-200'],
|
|
35
|
-
// 'text-danger': baseColors['red-40'],
|
|
36
|
-
// 'text-attention': baseColors['purple-600'],
|
|
37
|
-
|
|
38
|
-
// 'background-primary': baseColors['white'],
|
|
39
|
-
// 'background-secondary': baseColors['black-50'],
|
|
40
|
-
'background-info': baseColors['turquoise-80'],
|
|
41
|
-
// 'background-success': baseColors['green-50'],
|
|
42
|
-
// 'background-warning': baseColors['orange-50'],
|
|
43
|
-
// 'background-danger': baseColors['red-90'],
|
|
44
|
-
// 'background-attention': baseColors['purple-100'],
|
|
45
|
-
// 'background-neutral': baseColors['black-80'],
|
|
46
|
-
|
|
47
|
-
'control-border': baseColors['black-200'],
|
|
48
|
-
//'control-background': baseColors['white'],
|
|
49
|
-
'control-active-background': baseColors['white'],
|
|
50
|
-
'control-active-border': baseColors['turquoise-400'],
|
|
51
|
-
'control-invalid-border': baseColors['red-90'],
|
|
52
|
-
'control-disabled': baseColors['black-80'],
|
|
53
|
-
//'ui-border': baseColors['black-80'],
|
|
54
|
-
'ui-navbar': baseColors['turquoise-80'],
|
|
55
|
-
'ui-navbar-text': baseColors['black-500'],
|
|
56
|
-
'icon-primary': baseColors['black-300'],
|
|
57
|
-
'icon-info': baseColors['turquoise-400']
|
|
58
|
-
// 'icon-success': baseColors['green-200'],
|
|
59
|
-
// 'icon-warning': baseColors['orange-100'],
|
|
60
|
-
// 'icon-danger': baseColors['red-40'],
|
|
61
|
-
});
|
|
62
|
-
var pulseThemeColors = exports.pulseThemeColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, baseColors), functionalColors);
|