@codacy/ui-components 0.65.93 → 0.66.0
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 +10 -5
- package/lib/Banner/Banner.styles.d.ts +4 -2
- package/lib/Banner/Banner.styles.js +3 -3
- package/lib/Bannerol/Bannerol.js +4 -3
- package/lib/Bannerol/Bannerol.styles.d.ts +1 -1
- package/lib/Bannerol/Bannerol.styles.js +2 -2
- package/lib/Bannerol/Bannerol.types.d.ts +1 -1
- package/lib/BigTabs/BigTabs.styles.js +10 -10
- package/lib/Button/Button.js +18 -13
- package/lib/Button/styles.d.ts +3 -5
- package/lib/Button/styles.js +56 -68
- package/lib/Button/types.d.ts +5 -8
- package/lib/Checkbox/Checkbox.js +11 -8
- package/lib/Checkbox/styles.d.ts +4 -0
- package/lib/Checkbox/styles.js +73 -62
- package/lib/Checkbox/types.d.ts +1 -1
- package/lib/CloseButton/index.d.ts +3 -1
- package/lib/CloseButton/index.js +13 -6
- package/lib/Divider/Divider.styles.js +5 -5
- package/lib/Dropdown/Content/DropdownItem.js +4 -2
- package/lib/Dropdown/Dropdown.styles.js +10 -10
- package/lib/Dropdown/Dropdown.types.d.ts +2 -0
- package/lib/Dropdown/Triggers/FilterTrigger.js +30 -24
- package/lib/Dropdown/Triggers/SelectTrigger.js +1 -1
- package/lib/ExpandableBox/ExpandableBox.styles.d.ts +2 -2
- package/lib/ExpandableBox/ExpandableBox.styles.js +4 -4
- package/lib/ExpandableBox/ExpandableBox.types.d.ts +3 -3
- package/lib/Group/Group.styles.js +1 -1
- package/lib/Icon/Icon.types.d.ts +3 -3
- package/lib/Icons/Messages.d.ts +17 -5
- package/lib/Icons/Messages.js +37 -9
- package/lib/Icons/Symbols.d.ts +5 -2
- package/lib/Icons/Symbols.js +10 -4
- package/lib/InlineMessage/InlineMessage.js +22 -8
- package/lib/InlineMessage/types.d.ts +1 -1
- package/lib/Input/Input.js +6 -18
- package/lib/Input/styles.d.ts +13 -8
- package/lib/Input/styles.js +109 -50
- package/lib/Labeled/styles.js +12 -6
- package/lib/LeftMenu/LeftMenu.styles.js +10 -7
- package/lib/Link/Link.styles.js +2 -2
- package/lib/Message/Message.d.ts +2 -1
- package/lib/Message/Message.js +25 -4
- package/lib/Message/Message.styles.js +5 -5
- package/lib/Message/Message.types.d.ts +1 -1
- package/lib/Modal/ConfirmationModal.js +7 -3
- package/lib/Modal/styles.js +26 -29
- package/lib/MultiSlider/styles.d.ts +2 -2
- package/lib/MultiSlider/styles.js +2 -2
- package/lib/Panel/Panel.styles.js +1 -1
- package/lib/PillLabel/PillLabel.js +3 -5
- package/lib/PillLabel/PillLabel.styles.d.ts +1 -1
- package/lib/PillLabel/PillLabel.styles.js +2 -13
- package/lib/PillLabel/PillLabel.types.d.ts +1 -3
- package/lib/ProgressBar/styles.d.ts +3 -3
- package/lib/ProgressBar/styles.js +6 -6
- package/lib/Radio/Radio.js +1 -1
- package/lib/Radio/styles.js +9 -9
- package/lib/ScrollableContent/ScrollableContent.types.d.ts +2 -2
- package/lib/Skeleton/Skeleton.styles.js +4 -4
- package/lib/Slider/styles.d.ts +2 -2
- package/lib/Slider/styles.js +16 -16
- package/lib/StepNumber/StepNumber.js +3 -6
- package/lib/StepNumber/styles.d.ts +1 -2
- package/lib/StepNumber/styles.js +3 -4
- package/lib/StepNumber/types.d.ts +1 -6
- package/lib/Stepper/Stepper.styles.d.ts +1 -3
- package/lib/Stepper/Stepper.styles.js +11 -9
- package/lib/Switcher/Switcher.styles.js +4 -4
- package/lib/Tab/Tab.js +1 -3
- package/lib/Tab/Tab.styles.d.ts +1 -3
- package/lib/Tab/Tab.styles.js +32 -32
- package/lib/Tab/Tab.types.d.ts +0 -2
- package/lib/Table/Table.js +1 -1
- package/lib/Table/Table.styles.js +17 -17
- package/lib/Table/Table.types.d.ts +3 -3
- package/lib/TagsInput/style.js +10 -10
- package/lib/Textarea/Textarea.js +0 -7
- package/lib/Textarea/Textarea.styles.d.ts +7 -7
- package/lib/Textarea/Textarea.styles.js +85 -45
- package/lib/Toast/Toast.js +18 -7
- package/lib/Toast/styles.js +26 -14
- package/lib/Toggle/Toggle.js +1 -1
- package/lib/Toggle/styles.d.ts +1 -1
- package/lib/Toggle/styles.js +50 -55
- package/lib/Tooltip/types.d.ts +2 -2
- package/lib/Typography/Typography.styles.d.ts +2 -2
- package/lib/Typography/Typography.styles.js +11 -11
- package/lib/Typography/Typography.types.d.ts +5 -5
- package/lib/theme/ColorSchemes/components/alerts.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/alerts.js +37 -0
- package/lib/theme/ColorSchemes/components/button.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/button.js +96 -0
- package/lib/theme/ColorSchemes/components/cards.d.ts +7 -0
- package/lib/theme/ColorSchemes/components/cards.js +23 -0
- package/lib/theme/ColorSchemes/components/charts.d.ts +7 -0
- package/lib/theme/ColorSchemes/components/charts.js +96 -0
- package/lib/theme/ColorSchemes/components/checkbox-input.d.ts +7 -0
- package/lib/theme/ColorSchemes/components/checkbox-input.js +22 -0
- package/lib/theme/ColorSchemes/components/divider.d.ts +4 -0
- package/lib/theme/ColorSchemes/components/divider.js +11 -0
- package/lib/theme/ColorSchemes/components/drawer.d.ts +7 -0
- package/lib/theme/ColorSchemes/components/drawer.js +28 -0
- package/lib/theme/ColorSchemes/components/effects.d.ts +4 -0
- package/lib/theme/ColorSchemes/components/effects.js +12 -0
- package/lib/theme/ColorSchemes/components/filters.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/filters.js +19 -0
- package/lib/theme/ColorSchemes/components/index.d.ts +20 -0
- package/lib/theme/ColorSchemes/components/index.js +225 -0
- package/lib/theme/ColorSchemes/components/input.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/input.js +45 -0
- package/lib/theme/ColorSchemes/components/issues.d.ts +7 -0
- package/lib/theme/ColorSchemes/components/issues.js +34 -0
- package/lib/theme/ColorSchemes/components/label.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/label.js +40 -0
- package/lib/theme/ColorSchemes/components/list-orb.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/list-orb.js +15 -0
- package/lib/theme/ColorSchemes/components/loading.d.ts +4 -0
- package/lib/theme/ColorSchemes/components/loading.js +11 -0
- package/lib/theme/ColorSchemes/components/modals.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/modals.js +13 -0
- package/lib/theme/ColorSchemes/components/navigation.d.ts +8 -0
- package/lib/theme/ColorSchemes/components/navigation.js +21 -0
- package/lib/theme/ColorSchemes/components/selector.d.ts +7 -0
- package/lib/theme/ColorSchemes/components/selector.js +29 -0
- package/lib/theme/ColorSchemes/components/stepper.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/stepper.js +16 -0
- package/lib/theme/ColorSchemes/components/tables.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/tables.js +19 -0
- package/lib/theme/ColorSchemes/components/tabs.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/tabs.js +19 -0
- package/lib/theme/ColorSchemes/dark/background.d.ts +9 -0
- package/lib/theme/ColorSchemes/dark/border.d.ts +9 -0
- package/lib/theme/ColorSchemes/dark/icon.d.ts +9 -0
- package/lib/theme/ColorSchemes/dark/icon.js +1 -1
- package/lib/theme/ColorSchemes/dark/index.js +11 -58
- package/lib/theme/ColorSchemes/dark/text.d.ts +9 -0
- package/lib/theme/ColorSchemes/index.d.ts +0 -1
- package/lib/theme/ColorSchemes/index.js +0 -11
- package/lib/theme/ColorSchemes/light/background.d.ts +9 -0
- package/lib/theme/ColorSchemes/light/background.js +3 -3
- package/lib/theme/ColorSchemes/light/border.d.ts +9 -0
- package/lib/theme/ColorSchemes/light/border.js +1 -1
- package/lib/theme/ColorSchemes/light/icon.d.ts +9 -0
- package/lib/theme/ColorSchemes/light/icon.js +2 -2
- package/lib/theme/ColorSchemes/light/illustration.js +2 -2
- package/lib/theme/ColorSchemes/light/index.d.ts +1127 -47
- package/lib/theme/ColorSchemes/light/index.js +4 -67
- package/lib/theme/ColorSchemes/light/text.d.ts +9 -0
- package/lib/theme/ColorSchemes/light/text.js +2 -2
- package/lib/theme/ColorSchemes/primitives/blue.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/blue.js +20 -0
- package/lib/theme/ColorSchemes/primitives/green.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/green.js +20 -0
- package/lib/theme/ColorSchemes/primitives/grey.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/grey.js +23 -0
- package/lib/theme/ColorSchemes/primitives/index.d.ts +117 -0
- package/lib/theme/ColorSchemes/primitives/index.js +18 -0
- package/lib/theme/ColorSchemes/primitives/magenta.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/magenta.js +20 -0
- package/lib/theme/ColorSchemes/primitives/orange.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/orange.js +20 -0
- package/lib/theme/ColorSchemes/primitives/purple.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/purple.js +20 -0
- package/lib/theme/ColorSchemes/primitives/red.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/red.js +20 -0
- package/lib/theme/ColorSchemes/primitives/teal.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/teal.js +20 -0
- package/lib/theme/ColorSchemes/primitives/yellow.d.ts +5 -0
- package/lib/theme/ColorSchemes/primitives/yellow.js +20 -0
- package/lib/theme/ColorSchemes/semantics.d.ts +3 -4
- package/lib/theme/theme.d.ts +8 -2
- package/lib/theme/theme.js +6 -1
- package/package.json +1 -1
- package/lib/theme/ColorSchemes/primitives.d.ts +0 -6
- package/lib/theme/ColorSchemes/primitives.js +0 -95
- package/lib/theme/ColorSchemes/types.d.ts +0 -3
- package/lib/theme/ColorSchemes/types.js +0 -7
|
@@ -13,70 +13,7 @@ var _background = require("./background");
|
|
|
13
13
|
var _border = require("./border");
|
|
14
14
|
var _icon = require("./icon");
|
|
15
15
|
var _text = require("./text");
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'brand-hover': _primitives.primitiveColors['blue-30'],
|
|
21
|
-
'brand-pressed': _primitives.primitiveColors['blue-20'],
|
|
22
|
-
'brand-disabled': _primitives.primitiveColors['blue-70'],
|
|
23
|
-
'brand-focus': _primitives.primitiveColors['blue-90'],
|
|
24
|
-
'brand-inverted': _primitives.primitiveColors['white'],
|
|
25
|
-
'brand-subtle': _primitives.primitiveColors['blue-98'],
|
|
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-70'],
|
|
31
|
-
'subtle-inverted': _primitives.primitiveColors['white'],
|
|
32
|
-
// Danger
|
|
33
|
-
'danger-primary': _primitives.primitiveColors['red-40'],
|
|
34
|
-
'danger-hover': _primitives.primitiveColors['red-30'],
|
|
35
|
-
'danger-pressed': _primitives.primitiveColors['red-20'],
|
|
36
|
-
'danger-disabled': _primitives.primitiveColors['red-80'],
|
|
37
|
-
'danger-focus': _primitives.primitiveColors['red-90'],
|
|
38
|
-
'danger-subtle': _primitives.primitiveColors['red-98'],
|
|
39
|
-
// Success
|
|
40
|
-
'success-primary': _primitives.primitiveColors['green-40'],
|
|
41
|
-
'success-hover': _primitives.primitiveColors['green-30'],
|
|
42
|
-
'success-pressed': _primitives.primitiveColors['green-20'],
|
|
43
|
-
'success-disabled': _primitives.primitiveColors['green-80'],
|
|
44
|
-
'success-focus': _primitives.primitiveColors['green-90'],
|
|
45
|
-
// 'success-subtle': primitiveColors['green-98'],
|
|
46
|
-
|
|
47
|
-
// Warning
|
|
48
|
-
'warning-primary': _primitives.primitiveColors['yellow-40'],
|
|
49
|
-
'warning-hover': _primitives.primitiveColors['yellow-30'],
|
|
50
|
-
'warning-pressed': _primitives.primitiveColors['yellow-20'],
|
|
51
|
-
'warning-disabled': _primitives.primitiveColors['yellow-80'],
|
|
52
|
-
'warning-focus': _primitives.primitiveColors['yellow-90'],
|
|
53
|
-
// 'warning-subtle': primitiveColors['yellow-98'],
|
|
54
|
-
|
|
55
|
-
//High
|
|
56
|
-
'high-primary': _primitives.primitiveColors['orange-40'],
|
|
57
|
-
'high-hover': _primitives.primitiveColors['orange-30'],
|
|
58
|
-
'high-pressed': _primitives.primitiveColors['orange-20'],
|
|
59
|
-
'high-disabled': _primitives.primitiveColors['orange-80'],
|
|
60
|
-
// Info
|
|
61
|
-
'info-primary': _primitives.primitiveColors['blue-40'],
|
|
62
|
-
'info-hover': _primitives.primitiveColors['blue-30'],
|
|
63
|
-
'info-pressed': _primitives.primitiveColors['blue-20'],
|
|
64
|
-
'info-disabled': _primitives.primitiveColors['blue-80'],
|
|
65
|
-
'info-inverted': _primitives.primitiveColors['white'],
|
|
66
|
-
// 'info-focus': primitiveColors['blue-90'],
|
|
67
|
-
// 'info-subtle': primitiveColors['blue-98'],
|
|
68
|
-
|
|
69
|
-
// Attention
|
|
70
|
-
'attention-primary': _primitives.primitiveColors['purple-40'],
|
|
71
|
-
'attention-hover': _primitives.primitiveColors['purple-30'],
|
|
72
|
-
'attention-pressed': _primitives.primitiveColors['purple-20'],
|
|
73
|
-
'attention-disabled': _primitives.primitiveColors['purple-80'],
|
|
74
|
-
'attention-focus': _primitives.primitiveColors['purple-90'],
|
|
75
|
-
// 'attention-subtle': primitiveColors['purple-98'],
|
|
76
|
-
|
|
77
|
-
// Navigation
|
|
78
|
-
'navigation-top-primary': _primitives.primitiveColors['grey-10'],
|
|
79
|
-
'navigation-text': _primitives.primitiveColors['grey-80'],
|
|
80
|
-
'navigation-text-pressed': _primitives.primitiveColors['grey-80']
|
|
81
|
-
});
|
|
82
|
-
var codacyThemeColors = exports.codacyThemeColors = functionalColors;
|
|
16
|
+
var _components = require("../components");
|
|
17
|
+
var functionalColors = (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);
|
|
18
|
+
var colors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, functionalColors), (0, _components.effects)(_primitives.primitiveColors)), (0, _components.alerts)(functionalColors)), (0, _components.button)(functionalColors)), (0, _components.cards)(functionalColors)), (0, _components.charts)(functionalColors)), (0, _components.label)(functionalColors)), (0, _components.checkboxInput)(functionalColors)), (0, _components.listOrb)(functionalColors)), (0, _components.stepper)(functionalColors)), (0, _components.selector)(functionalColors)), (0, _components.input)(functionalColors)), (0, _components.loading)(functionalColors)), (0, _components.divider)(functionalColors)), (0, _components.issues)(functionalColors)), (0, _components.tabs)(functionalColors)), (0, _components.drawer)(functionalColors)), (0, _components.filters)(functionalColors)), (0, _components.modals)(functionalColors)), (0, _components.tables)(functionalColors)), (0, _components.navigation)(functionalColors));
|
|
19
|
+
var codacyThemeColors = exports.codacyThemeColors = colors;
|
|
@@ -41,6 +41,15 @@ export declare const textColors: {
|
|
|
41
41
|
'text-success-enabled': string;
|
|
42
42
|
'text-high-enabled': string;
|
|
43
43
|
'text-high-disabled': string;
|
|
44
|
+
"link-high": string;
|
|
45
|
+
"link-medium": string;
|
|
46
|
+
"link-success": string;
|
|
47
|
+
"link-danger": string;
|
|
48
|
+
"link-warning": string;
|
|
49
|
+
"link-info": string;
|
|
50
|
+
"link-attention": string;
|
|
51
|
+
"link-critical": string;
|
|
52
|
+
"link-minor": string;
|
|
44
53
|
"background-high": string;
|
|
45
54
|
"background-medium": string;
|
|
46
55
|
"background-success": string;
|
|
@@ -13,13 +13,13 @@ var textColors = exports.textColors = (0, _objectSpread2["default"])((0, _object
|
|
|
13
13
|
'text-secondary': _primitives.primitiveColors['grey-30'],
|
|
14
14
|
'text-tertiary': _primitives.primitiveColors['grey-50'],
|
|
15
15
|
'text-disabled': _primitives.primitiveColors['grey-70'],
|
|
16
|
-
'text-inverted': _primitives.primitiveColors['
|
|
16
|
+
'text-inverted': _primitives.primitiveColors['grey-100'],
|
|
17
17
|
'text-subtle-enabled': _primitives.primitiveColors['grey-50'],
|
|
18
18
|
'text-subtle-hover': _primitives.primitiveColors['grey-30'],
|
|
19
19
|
'text-subtle-focus': _primitives.primitiveColors['grey-30'],
|
|
20
20
|
'text-subtle-pressed': _primitives.primitiveColors['grey-10'],
|
|
21
21
|
'text-subtle-disabled': _primitives.primitiveColors['grey-70'],
|
|
22
|
-
'text-subtle-inverted': _primitives.primitiveColors['
|
|
22
|
+
'text-subtle-inverted': _primitives.primitiveColors['grey-100'],
|
|
23
23
|
'text-code-subtle-enabled': _primitives.primitiveColors['grey-20'],
|
|
24
24
|
'text-code-subtle-disabled': _primitives.primitiveColors['grey-60'],
|
|
25
25
|
// Text - Link and Brand
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.blue = void 0;
|
|
7
|
+
var blue = exports.blue = {
|
|
8
|
+
'blue-00': '#050B1A',
|
|
9
|
+
'blue-10': '#091E4E',
|
|
10
|
+
'blue-20': '#073683',
|
|
11
|
+
'blue-30': '#0048BD',
|
|
12
|
+
'blue-40': '#005DF0',
|
|
13
|
+
'blue-50': '#276BFC',
|
|
14
|
+
'blue-60': '#5784FF',
|
|
15
|
+
'blue-70': '#8AB7FF',
|
|
16
|
+
'blue-80': '#BDD6FF',
|
|
17
|
+
'blue-90': '#CCE0FF',
|
|
18
|
+
'blue-95': '#E5EFFF',
|
|
19
|
+
'blue-98': '#F5F9FF'
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.green = void 0;
|
|
7
|
+
var green = exports.green = {
|
|
8
|
+
'green-00': '#0A1E10',
|
|
9
|
+
'green-10': '#12351C',
|
|
10
|
+
'green-20': '#1A4B28',
|
|
11
|
+
'green-30': '#26733C',
|
|
12
|
+
'green-40': '#339950',
|
|
13
|
+
'green-50': '#40BF64',
|
|
14
|
+
'green-60': '#66CC83',
|
|
15
|
+
'green-70': '#8CD9A2',
|
|
16
|
+
'green-80': '#B3E5C1',
|
|
17
|
+
'green-90': '#D9F2E0',
|
|
18
|
+
'green-95': '#ECF9EF',
|
|
19
|
+
'green-98': '#F7FCF9'
|
|
20
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare type ColorName = 'grey';
|
|
2
|
+
declare type ColorNumber = '00' | '05' | 10 | 15 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 95 | 98 | 100;
|
|
3
|
+
declare type GreyColorType = `${ColorName}-${ColorNumber}`;
|
|
4
|
+
export declare const grey: Record<GreyColorType, string>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.grey = void 0;
|
|
7
|
+
var grey = exports.grey = {
|
|
8
|
+
'grey-00': '#0B0E13',
|
|
9
|
+
'grey-05': '#11151D',
|
|
10
|
+
'grey-10': '#171D26',
|
|
11
|
+
'grey-15': '#1D2430',
|
|
12
|
+
'grey-20': '#344056',
|
|
13
|
+
'grey-30': '#475776',
|
|
14
|
+
'grey-40': '#5A6F96',
|
|
15
|
+
'grey-50': '#7689AD',
|
|
16
|
+
'grey-60': '#96A4C0',
|
|
17
|
+
'grey-70': '#B6C0D3',
|
|
18
|
+
'grey-80': '#D6DBE6',
|
|
19
|
+
'grey-90': '#DFE4EC',
|
|
20
|
+
'grey-95': '#EFF1F5',
|
|
21
|
+
'grey-98': '#F9FAFB',
|
|
22
|
+
'grey-100': '#FFFFFF'
|
|
23
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare const primitiveColors: {
|
|
2
|
+
"yellow-10": string;
|
|
3
|
+
"yellow-20": string;
|
|
4
|
+
"yellow-00": string;
|
|
5
|
+
"yellow-30": string;
|
|
6
|
+
"yellow-40": string;
|
|
7
|
+
"yellow-50": string;
|
|
8
|
+
"yellow-60": string;
|
|
9
|
+
"yellow-70": string;
|
|
10
|
+
"yellow-80": string;
|
|
11
|
+
"yellow-90": string;
|
|
12
|
+
"yellow-95": string;
|
|
13
|
+
"yellow-98": string;
|
|
14
|
+
"teal-10": string;
|
|
15
|
+
"teal-20": string;
|
|
16
|
+
"teal-00": string;
|
|
17
|
+
"teal-30": string;
|
|
18
|
+
"teal-40": string;
|
|
19
|
+
"teal-50": string;
|
|
20
|
+
"teal-60": string;
|
|
21
|
+
"teal-70": string;
|
|
22
|
+
"teal-80": string;
|
|
23
|
+
"teal-90": string;
|
|
24
|
+
"teal-95": string;
|
|
25
|
+
"teal-98": string;
|
|
26
|
+
"red-10": string;
|
|
27
|
+
"red-20": string;
|
|
28
|
+
"red-00": string;
|
|
29
|
+
"red-30": string;
|
|
30
|
+
"red-40": string;
|
|
31
|
+
"red-50": string;
|
|
32
|
+
"red-60": string;
|
|
33
|
+
"red-70": string;
|
|
34
|
+
"red-80": string;
|
|
35
|
+
"red-90": string;
|
|
36
|
+
"red-95": string;
|
|
37
|
+
"red-98": string;
|
|
38
|
+
"purple-10": string;
|
|
39
|
+
"purple-20": string;
|
|
40
|
+
"purple-30": string;
|
|
41
|
+
"purple-40": string;
|
|
42
|
+
"purple-50": string;
|
|
43
|
+
"purple-60": string;
|
|
44
|
+
"purple-70": string;
|
|
45
|
+
"purple-80": string;
|
|
46
|
+
"purple-90": string;
|
|
47
|
+
"purple-95": string;
|
|
48
|
+
"purple-98": string;
|
|
49
|
+
"purple-08": string;
|
|
50
|
+
"orange-10": string;
|
|
51
|
+
"orange-20": string;
|
|
52
|
+
"orange-00": string;
|
|
53
|
+
"orange-30": string;
|
|
54
|
+
"orange-40": string;
|
|
55
|
+
"orange-50": string;
|
|
56
|
+
"orange-60": string;
|
|
57
|
+
"orange-70": string;
|
|
58
|
+
"orange-80": string;
|
|
59
|
+
"orange-90": string;
|
|
60
|
+
"orange-95": string;
|
|
61
|
+
"orange-98": string;
|
|
62
|
+
"magenta-10": string;
|
|
63
|
+
"magenta-20": string;
|
|
64
|
+
"magenta-00": string;
|
|
65
|
+
"magenta-30": string;
|
|
66
|
+
"magenta-40": string;
|
|
67
|
+
"magenta-50": string;
|
|
68
|
+
"magenta-60": string;
|
|
69
|
+
"magenta-70": string;
|
|
70
|
+
"magenta-80": string;
|
|
71
|
+
"magenta-90": string;
|
|
72
|
+
"magenta-95": string;
|
|
73
|
+
"magenta-98": string;
|
|
74
|
+
"grey-10": string;
|
|
75
|
+
"grey-15": string;
|
|
76
|
+
"grey-20": string;
|
|
77
|
+
"grey-00": string;
|
|
78
|
+
"grey-30": string;
|
|
79
|
+
"grey-40": string;
|
|
80
|
+
"grey-50": string;
|
|
81
|
+
"grey-60": string;
|
|
82
|
+
"grey-70": string;
|
|
83
|
+
"grey-80": string;
|
|
84
|
+
"grey-90": string;
|
|
85
|
+
"grey-95": string;
|
|
86
|
+
"grey-98": string;
|
|
87
|
+
"grey-05": string;
|
|
88
|
+
"grey-100": string;
|
|
89
|
+
"green-10": string;
|
|
90
|
+
"green-20": string;
|
|
91
|
+
"green-00": string;
|
|
92
|
+
"green-30": string;
|
|
93
|
+
"green-40": string;
|
|
94
|
+
"green-50": string;
|
|
95
|
+
"green-60": string;
|
|
96
|
+
"green-70": string;
|
|
97
|
+
"green-80": string;
|
|
98
|
+
"green-90": string;
|
|
99
|
+
"green-95": string;
|
|
100
|
+
"green-98": string;
|
|
101
|
+
"blue-10": string;
|
|
102
|
+
"blue-20": string;
|
|
103
|
+
"blue-00": string;
|
|
104
|
+
"blue-30": string;
|
|
105
|
+
"blue-40": string;
|
|
106
|
+
"blue-50": string;
|
|
107
|
+
"blue-60": string;
|
|
108
|
+
"blue-70": string;
|
|
109
|
+
"blue-80": string;
|
|
110
|
+
"blue-90": string;
|
|
111
|
+
"blue-95": string;
|
|
112
|
+
"blue-98": string;
|
|
113
|
+
};
|
|
114
|
+
export declare type PrimitiveColor = keyof typeof primitiveColors;
|
|
115
|
+
export declare type PrimitiveColorScheme = {
|
|
116
|
+
[key in PrimitiveColor]: string;
|
|
117
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.primitiveColors = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _blue = require("./blue");
|
|
10
|
+
var _green = require("./green");
|
|
11
|
+
var _grey = require("./grey");
|
|
12
|
+
var _magenta = require("./magenta");
|
|
13
|
+
var _orange = require("./orange");
|
|
14
|
+
var _purple = require("./purple");
|
|
15
|
+
var _red = require("./red");
|
|
16
|
+
var _teal = require("./teal");
|
|
17
|
+
var _yellow = require("./yellow");
|
|
18
|
+
var primitiveColors = exports.primitiveColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, _blue.blue), _green.green), _grey.grey), _magenta.magenta), _orange.orange), _purple.purple), _red.red), _teal.teal), _yellow.yellow);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.magenta = void 0;
|
|
7
|
+
var magenta = exports.magenta = {
|
|
8
|
+
'magenta-00': '#21071D',
|
|
9
|
+
'magenta-10': '#3A0D33',
|
|
10
|
+
'magenta-20': '#5C1450',
|
|
11
|
+
'magenta-30': '#851E74',
|
|
12
|
+
'magenta-40': '#AF2798',
|
|
13
|
+
'magenta-50': '#D237B8',
|
|
14
|
+
'magenta-60': '#DB61C7',
|
|
15
|
+
'magenta-70': '#E58AD5',
|
|
16
|
+
'magenta-80': '#EEB4E5',
|
|
17
|
+
'magenta-90': '#F6D5F1',
|
|
18
|
+
'magenta-95': '#FAEAF8',
|
|
19
|
+
'magenta-98': '#FDF7FD'
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.orange = void 0;
|
|
7
|
+
var orange = exports.orange = {
|
|
8
|
+
'orange-00': '#281401',
|
|
9
|
+
'orange-10': '#462301',
|
|
10
|
+
'orange-20': '#884201',
|
|
11
|
+
'orange-30': '#BB5B02',
|
|
12
|
+
'orange-40': '#ED7303',
|
|
13
|
+
'orange-50': '#FD8D26',
|
|
14
|
+
'orange-60': '#FDA858',
|
|
15
|
+
'orange-70': '#FDC28B',
|
|
16
|
+
'orange-80': '#FEDDBD',
|
|
17
|
+
'orange-90': '#FFE4CC',
|
|
18
|
+
'orange-95': '#FFF2E6',
|
|
19
|
+
'orange-98': '#FFF9F5'
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.purple = void 0;
|
|
7
|
+
var purple = exports.purple = {
|
|
8
|
+
'purple-08': '#130722',
|
|
9
|
+
'purple-10': '#290F47',
|
|
10
|
+
'purple-20': '#401971',
|
|
11
|
+
'purple-30': '#57239A',
|
|
12
|
+
'purple-40': '#6F2CC4',
|
|
13
|
+
'purple-50': '#8A4CD7',
|
|
14
|
+
'purple-60': '#A576E0',
|
|
15
|
+
'purple-70': '#C09FEA',
|
|
16
|
+
'purple-80': '#DBC9F3',
|
|
17
|
+
'purple-90': '#E4D6F5',
|
|
18
|
+
'purple-95': '#F1EAFA',
|
|
19
|
+
'purple-98': '#F9F7FD'
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.red = void 0;
|
|
7
|
+
var red = exports.red = {
|
|
8
|
+
'red-00': '#290002',
|
|
9
|
+
'red-10': '#3D0003',
|
|
10
|
+
'red-20': '#8A000B',
|
|
11
|
+
'red-30': '#B90415',
|
|
12
|
+
'red-40': '#C8282A',
|
|
13
|
+
'red-50': '#DB4B48',
|
|
14
|
+
'red-60': '#FB615A',
|
|
15
|
+
'red-70': '#FF928A',
|
|
16
|
+
'red-80': '#FFC2BD',
|
|
17
|
+
'red-90': '#FFD1CC',
|
|
18
|
+
'red-95': '#FFE8E5',
|
|
19
|
+
'red-98': '#FFF6F5'
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.teal = void 0;
|
|
7
|
+
var teal = exports.teal = {
|
|
8
|
+
'teal-00': '#0A1E1F',
|
|
9
|
+
'teal-10': '#123436',
|
|
10
|
+
'teal-20': '#194A4D',
|
|
11
|
+
'teal-30': '#266E73',
|
|
12
|
+
'teal-40': '#339499',
|
|
13
|
+
'teal-50': '#4AB0B5',
|
|
14
|
+
'teal-60': '#66C7CC',
|
|
15
|
+
'teal-70': '#94CED1',
|
|
16
|
+
'teal-80': '#B7DEE1',
|
|
17
|
+
'teal-90': '#DBEFF0',
|
|
18
|
+
'teal-95': '#ECF8F9',
|
|
19
|
+
'teal-98': '#F8FCFC'
|
|
20
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare type ColorName = 'yellow';
|
|
2
|
+
declare type ColorNumber = '00' | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90' | '95' | '98';
|
|
3
|
+
declare type YellowColorType = `${ColorName}-${ColorNumber}`;
|
|
4
|
+
export declare const yellow: Record<YellowColorType, string>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.yellow = void 0;
|
|
7
|
+
var yellow = exports.yellow = {
|
|
8
|
+
'yellow-00': '#291A00',
|
|
9
|
+
'yellow-10': '#472D00',
|
|
10
|
+
'yellow-20': '#8A5600',
|
|
11
|
+
'yellow-30': '#BD7600',
|
|
12
|
+
'yellow-40': '#F09700',
|
|
13
|
+
'yellow-50': '#FFAE24',
|
|
14
|
+
'yellow-60': '#FFC157',
|
|
15
|
+
'yellow-70': '#FFD38A',
|
|
16
|
+
'yellow-80': '#FFE6BD',
|
|
17
|
+
'yellow-90': '#FFECCC',
|
|
18
|
+
'yellow-95': '#FFF6E5',
|
|
19
|
+
'yellow-98': '#FFFBF5'
|
|
20
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
declare type PrefixName = 'text' | 'background' | 'border' | 'icon';
|
|
1
|
+
declare type FunctionalName = 'text' | 'background' | 'border' | 'icon' | 'link';
|
|
3
2
|
declare const semantics: readonly ["danger", "success", "warning", "info", "attention", "critical", "high", "medium", "minor"];
|
|
4
3
|
declare type SemanticName = (typeof semantics)[number];
|
|
5
4
|
declare type SemanticType = {
|
|
6
|
-
[key in `${
|
|
5
|
+
[key in `${FunctionalName}-${SemanticName}`]: string;
|
|
7
6
|
};
|
|
8
|
-
export declare const semanticFunctionalColorsFx: (prefix:
|
|
7
|
+
export declare const semanticFunctionalColorsFx: (prefix: FunctionalName, number: 10 | 40 | 60 | 95) => SemanticType;
|
|
9
8
|
export {};
|
package/lib/theme/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AllColorsKeys, ColorScheme } from './';
|
|
2
2
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export declare type Speed = 'fast' | 'normal' | 'slow';
|
|
4
4
|
export declare type FontSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'h' | 'xh';
|
|
@@ -9,7 +9,7 @@ export declare type CodacyTheme = {
|
|
|
9
9
|
gridSize: number;
|
|
10
10
|
remScale: number;
|
|
11
11
|
space: string[];
|
|
12
|
-
colors: Record<
|
|
12
|
+
colors: Record<AllColorsKeys, string>;
|
|
13
13
|
fonts: Record<Fonts, string>;
|
|
14
14
|
fontSizes: Record<FontSize, string>;
|
|
15
15
|
fontWeights: Record<FontWeights, string>;
|
|
@@ -18,6 +18,7 @@ export declare type CodacyTheme = {
|
|
|
18
18
|
borders: string[];
|
|
19
19
|
borderWidths: string[];
|
|
20
20
|
radii: string[];
|
|
21
|
+
/** @deprecated Use effects instead */
|
|
21
22
|
shadows: string[];
|
|
22
23
|
transitions: string[] & Record<Speed, string>;
|
|
23
24
|
breakpoints: string[];
|
|
@@ -29,6 +30,11 @@ export declare type CodacyTheme = {
|
|
|
29
30
|
borderRadius: string[];
|
|
30
31
|
/** @deprecated Use lineHeights instead */
|
|
31
32
|
baseLineHeight: string;
|
|
33
|
+
effects: {
|
|
34
|
+
elevation: string[];
|
|
35
|
+
focus: string[];
|
|
36
|
+
error: string[];
|
|
37
|
+
};
|
|
32
38
|
};
|
|
33
39
|
export declare const transition: (properties: string[], speed?: Speed, refTheme?: Pick<CodacyTheme, 'transitions'>) => string;
|
|
34
40
|
export declare const generateTheme: (scheme: ColorScheme) => CodacyTheme;
|
package/lib/theme/theme.js
CHANGED
|
@@ -159,7 +159,12 @@ var generateTheme = exports.generateTheme = function generateTheme(scheme) {
|
|
|
159
159
|
borders: borderWidths.map(function (w) {
|
|
160
160
|
return "solid ".concat(w, " ").concat(scheme['border-primary']);
|
|
161
161
|
}),
|
|
162
|
-
shadows: shadowsFx(scheme)
|
|
162
|
+
shadows: shadowsFx(scheme),
|
|
163
|
+
effects: {
|
|
164
|
+
elevation: ["0 0.1875rem 0.375rem 0 ".concat(scheme['effect-elevation-1']), "0 0.75rem 1.5rem 0 ".concat(scheme['effect-elevation-2'])],
|
|
165
|
+
focus: ["0 0 0 0.25rem ".concat(scheme['background-brand-subtle']), "0 0 0 0.25rem ".concat(scheme['background-brand-enabled'], "33")],
|
|
166
|
+
error: ["0 0 0 0.25rem ".concat(scheme['background-danger']), "0 0 0 0.25rem ".concat(scheme['background-danger-disabled'])]
|
|
167
|
+
}
|
|
163
168
|
});
|
|
164
169
|
};
|
|
165
170
|
|
package/package.json
CHANGED