@codacy/ui-components 0.66.24 → 0.66.26
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 +20 -28
- package/lib/Avatar/Avatar.types.js +1 -5
- package/lib/Avatar/gravatar.js +14 -22
- package/lib/Avatar/index.js +1 -16
- package/lib/Banner/Banner.js +33 -50
- package/lib/Banner/Banner.styles.d.ts +1 -1
- package/lib/Banner/Banner.styles.js +11 -20
- package/lib/Banner/Banner.types.js +1 -5
- package/lib/Banner/index.js +2 -27
- package/lib/Bannerol/Bannerol.js +44 -61
- package/lib/Bannerol/Bannerol.styles.js +9 -18
- package/lib/Bannerol/Bannerol.types.js +1 -5
- package/lib/Bannerol/index.js +3 -38
- package/lib/BigTabs/BigTabs.js +39 -54
- package/lib/BigTabs/BigTabs.styles.js +79 -107
- package/lib/BigTabs/BigTabs.types.js +1 -5
- package/lib/BigTabs/index.js +1 -16
- package/lib/Button/Button.js +45 -67
- package/lib/Button/index.js +2 -27
- package/lib/Button/styles.js +101 -130
- package/lib/Button/types.js +1 -5
- package/lib/Checkbox/Checkbox.js +55 -68
- package/lib/Checkbox/CheckboxFilterList.js +33 -66
- package/lib/Checkbox/index.js +3 -38
- package/lib/Checkbox/styles.js +64 -86
- package/lib/Checkbox/types.js +1 -5
- package/lib/CloseButton/index.d.ts +1 -1
- package/lib/CloseButton/index.js +24 -36
- package/lib/Divider/Divider.js +14 -25
- package/lib/Divider/Divider.styles.d.ts +1 -1
- package/lib/Divider/Divider.styles.js +24 -38
- package/lib/Divider/Divider.types.js +1 -5
- package/lib/Divider/index.js +1 -16
- package/lib/Dropdown/Content/DropdownInput.js +10 -20
- package/lib/Dropdown/Content/DropdownItem.js +22 -36
- package/lib/Dropdown/Content/DropdownSeparator.js +8 -19
- package/lib/Dropdown/Content/DropdownTitle.js +8 -22
- package/lib/Dropdown/Content/index.js +4 -49
- package/lib/Dropdown/Dropdown.js +74 -102
- package/lib/Dropdown/Dropdown.styles.d.ts +1 -1
- package/lib/Dropdown/Dropdown.styles.js +60 -82
- package/lib/Dropdown/Dropdown.types.js +1 -5
- package/lib/Dropdown/Triggers/DropdownButtonTrigger.js +19 -32
- package/lib/Dropdown/Triggers/DropdownItemTrigger.js +18 -30
- package/lib/Dropdown/Triggers/FilterTrigger.js +66 -93
- package/lib/Dropdown/Triggers/InputTrigger.js +15 -24
- package/lib/Dropdown/Triggers/SelectTrigger.js +12 -21
- package/lib/Dropdown/Triggers/hooks.js +17 -26
- package/lib/Dropdown/Triggers/index.js +6 -71
- package/lib/Dropdown/Triggers/types.js +1 -5
- package/lib/Dropdown/index.js +4 -49
- package/lib/ExpandableBox/ExpandableBox.js +28 -43
- package/lib/ExpandableBox/ExpandableBox.styles.d.ts +2 -2
- package/lib/ExpandableBox/ExpandableBox.styles.js +27 -40
- package/lib/ExpandableBox/ExpandableBox.types.js +1 -5
- package/lib/ExpandableBox/index.js +1 -16
- package/lib/Flexbox/Flexbox.js +14 -21
- package/lib/Flexbox/index.js +1 -16
- package/lib/Group/Group.js +7 -18
- package/lib/Group/Group.styles.js +8 -16
- package/lib/Group/Group.types.js +1 -5
- package/lib/Group/index.js +1 -16
- package/lib/Icon/Icon.js +15 -26
- package/lib/Icon/Icon.styles.d.ts +1 -1
- package/lib/Icon/Icon.styles.js +57 -50
- package/lib/Icon/Icon.types.js +1 -5
- package/lib/Icon/index.js +1 -16
- package/lib/IconAndText/IconAndText.js +23 -36
- package/lib/IconAndText/IconAndText.styles.js +19 -29
- package/lib/IconAndText/IconAndText.types.js +1 -5
- package/lib/IconAndText/index.js +1 -16
- package/lib/Icons/Chevrons.js +45 -65
- package/lib/Icons/CodacyIcon.js +9 -20
- package/lib/Icons/Ellipsis.js +18 -29
- package/lib/Icons/Messages.js +58 -79
- package/lib/Icons/Search.js +8 -19
- package/lib/Icons/Severities.js +113 -149
- package/lib/Icons/Sorting.js +15 -29
- package/lib/Icons/Spinner.js +11 -22
- package/lib/Icons/Symbols.js +67 -90
- package/lib/Icons/index.js +8 -93
- package/lib/Img/Img.js +26 -45
- package/lib/Img/Img.styles.d.ts +2 -2
- package/lib/Img/Img.styles.js +21 -29
- package/lib/Img/Img.types.js +1 -5
- package/lib/Img/index.js +1 -16
- package/lib/InlineMessage/InlineMessage.js +43 -70
- package/lib/InlineMessage/index.js +1 -16
- package/lib/InlineMessage/types.js +1 -5
- package/lib/Input/Input.js +115 -143
- package/lib/Input/hooks.js +107 -208
- package/lib/Input/index.js +2 -27
- package/lib/Input/styles.d.ts +2 -2
- package/lib/Input/styles.js +116 -151
- package/lib/Input/types.js +1 -5
- package/lib/Labeled/Labeled.js +22 -35
- package/lib/Labeled/index.js +1 -16
- package/lib/Labeled/styles.js +23 -37
- package/lib/Labeled/types.js +1 -5
- package/lib/LeftMenu/LeftMenu.js +10 -21
- package/lib/LeftMenu/LeftMenu.styles.js +25 -43
- package/lib/LeftMenu/LeftMenu.types.js +1 -5
- package/lib/LeftMenu/index.js +1 -16
- package/lib/Link/Link.js +32 -50
- package/lib/Link/Link.styles.js +11 -23
- package/lib/Link/Link.types.js +1 -5
- package/lib/Link/index.js +3 -38
- package/lib/Message/Message.js +31 -42
- package/lib/Message/Message.styles.js +18 -31
- package/lib/Message/Message.types.js +1 -5
- package/lib/Message/index.js +1 -16
- package/lib/Modal/ConfirmationModal.js +40 -67
- package/lib/Modal/Modal.js +107 -137
- package/lib/Modal/index.js +2 -27
- package/lib/Modal/styles.js +44 -62
- package/lib/Modal/types.js +1 -5
- package/lib/MoreInfo/MoreInfo.js +41 -53
- package/lib/MoreInfo/index.js +1 -16
- package/lib/MoreInfo/types.js +1 -5
- package/lib/MultiSlider/MultiSlider.js +17 -31
- package/lib/MultiSlider/index.js +1 -16
- package/lib/MultiSlider/styles.js +18 -34
- package/lib/MultiSlider/types.js +1 -5
- package/lib/Panel/Panel.js +9 -19
- package/lib/Panel/Panel.styles.js +15 -22
- package/lib/Panel/Panel.types.js +1 -5
- package/lib/Panel/index.js +2 -27
- package/lib/PillLabel/PillLabel.js +35 -49
- package/lib/PillLabel/PillLabel.styles.js +33 -44
- package/lib/PillLabel/PillLabel.types.js +1 -5
- package/lib/PillLabel/index.js +1 -16
- package/lib/Popup/Popup.js +43 -61
- package/lib/Popup/index.js +1 -16
- package/lib/Popup/styles.js +22 -34
- package/lib/Popup/types.js +1 -5
- package/lib/ProgressBar/ProgressBar.js +19 -35
- package/lib/ProgressBar/index.js +2 -27
- package/lib/ProgressBar/styles.d.ts +2 -2
- package/lib/ProgressBar/styles.js +21 -37
- package/lib/ProgressBar/types.d.ts +0 -3
- package/lib/ProgressBar/types.js +1 -5
- package/lib/Radio/Radio.js +47 -59
- package/lib/Radio/index.js +1 -16
- package/lib/Radio/styles.js +48 -72
- package/lib/Radio/types.js +1 -5
- package/lib/ScrollableContent/ScrollableContent.js +27 -40
- package/lib/ScrollableContent/ScrollableContent.styles.js +22 -39
- package/lib/ScrollableContent/ScrollableContent.types.js +1 -5
- package/lib/ScrollableContent/index.js +2 -27
- package/lib/ScrollableContent/useScrollContainer.js +35 -50
- package/lib/Skeleton/Skeleton.js +25 -45
- package/lib/Skeleton/Skeleton.styles.js +28 -25
- package/lib/Skeleton/Skeleton.types.js +1 -5
- package/lib/Skeleton/index.js +2 -20
- package/lib/Slider/Slider.js +32 -56
- package/lib/Slider/index.js +1 -16
- package/lib/Slider/styles.js +41 -60
- package/lib/Slider/types.js +1 -5
- package/lib/StepNumber/StepNumber.js +26 -40
- package/lib/StepNumber/index.js +1 -16
- package/lib/StepNumber/styles.js +13 -24
- package/lib/StepNumber/types.js +1 -5
- package/lib/Stepper/Stepper.js +45 -62
- package/lib/Stepper/Stepper.styles.js +27 -44
- package/lib/Stepper/Stepper.types.js +1 -5
- package/lib/Stepper/index.js +1 -16
- package/lib/Switcher/Switcher.js +22 -34
- package/lib/Switcher/Switcher.styles.js +27 -42
- package/lib/Switcher/Switcher.types.js +1 -5
- package/lib/Switcher/index.js +1 -16
- package/lib/Tab/Tab.js +21 -33
- package/lib/Tab/Tab.styles.js +34 -50
- package/lib/Tab/Tab.types.js +1 -5
- package/lib/Tab/index.js +1 -16
- package/lib/Table/NewSelectableTable.js +59 -97
- package/lib/Table/SelectableTable.js +142 -189
- package/lib/Table/Table.js +110 -155
- package/lib/Table/Table.styles.js +67 -90
- package/lib/Table/Table.types.js +1 -5
- package/lib/Table/index.js +2 -27
- package/lib/TagsInput/TagsInput.js +32 -46
- package/lib/TagsInput/index.js +1 -16
- package/lib/TagsInput/style.js +45 -71
- package/lib/TagsInput/types.js +1 -5
- package/lib/Textarea/Textarea.js +52 -71
- package/lib/Textarea/Textarea.styles.js +91 -126
- package/lib/Textarea/Textarea.types.js +1 -5
- package/lib/Textarea/index.js +1 -16
- package/lib/ThemeProvider/ThemeProvider.js +41 -65
- package/lib/ThemeProvider/index.js +1 -16
- package/lib/Toast/Toast.js +53 -68
- package/lib/Toast/index.js +1 -16
- package/lib/Toast/styles.js +29 -49
- package/lib/Toast/types.js +1 -5
- package/lib/Toggle/Toggle.js +48 -65
- package/lib/Toggle/index.js +1 -16
- package/lib/Toggle/styles.d.ts +1 -1
- package/lib/Toggle/styles.js +66 -101
- package/lib/Toggle/types.js +1 -5
- package/lib/Tooltip/Tooltip.js +84 -121
- package/lib/Tooltip/index.js +2 -27
- package/lib/Tooltip/styles.js +63 -93
- package/lib/Tooltip/types.js +1 -5
- package/lib/Typography/Typography.js +78 -116
- package/lib/Typography/Typography.styles.js +61 -78
- package/lib/Typography/Typography.types.js +1 -5
- package/lib/Typography/index.js +3 -38
- package/lib/emotion.d.js +1 -3
- package/lib/hooks/index.js +3 -38
- package/lib/hooks/useForwardedRef.js +5 -11
- package/lib/hooks/useInfiniteScroll.js +13 -25
- package/lib/hooks/useStatefulRef.js +10 -23
- package/lib/index.js +49 -544
- package/lib/system-props/color.js +3 -9
- package/lib/system-props/index.js +2 -27
- package/lib/system-props/types.js +1 -5
- package/lib/theme/ColorSchemes/components/alerts.js +30 -38
- package/lib/theme/ColorSchemes/components/button.js +89 -97
- package/lib/theme/ColorSchemes/components/cards.js +16 -24
- package/lib/theme/ColorSchemes/components/charts.js +93 -101
- package/lib/theme/ColorSchemes/components/checkbox-input.js +13 -21
- package/lib/theme/ColorSchemes/components/divider.js +4 -12
- package/lib/theme/ColorSchemes/components/drawer.js +21 -29
- package/lib/theme/ColorSchemes/components/effects.js +5 -13
- package/lib/theme/ColorSchemes/components/filters.js +12 -20
- package/lib/theme/ColorSchemes/components/index.d.ts +2 -0
- package/lib/theme/ColorSchemes/components/index.js +23 -236
- package/lib/theme/ColorSchemes/components/input.js +38 -46
- package/lib/theme/ColorSchemes/components/issues.js +27 -35
- package/lib/theme/ColorSchemes/components/label.js +33 -41
- package/lib/theme/ColorSchemes/components/list-orb.js +8 -16
- package/lib/theme/ColorSchemes/components/loading.js +4 -12
- package/lib/theme/ColorSchemes/components/logo.js +6 -14
- package/lib/theme/ColorSchemes/components/modals.js +6 -14
- package/lib/theme/ColorSchemes/components/navigation.js +17 -25
- package/lib/theme/ColorSchemes/components/progress-bar.d.ts +5 -0
- package/lib/theme/ColorSchemes/components/progress-bar.js +5 -0
- package/lib/theme/ColorSchemes/components/selector.js +20 -28
- package/lib/theme/ColorSchemes/components/stepper.js +9 -17
- package/lib/theme/ColorSchemes/components/tables.js +12 -20
- package/lib/theme/ColorSchemes/components/tabs.js +13 -21
- package/lib/theme/ColorSchemes/components/tooltip.d.ts +6 -0
- package/lib/theme/ColorSchemes/components/tooltip.js +6 -0
- package/lib/theme/ColorSchemes/components/utils.js +1 -11
- package/lib/theme/ColorSchemes/dark/background.d.ts +27 -27
- package/lib/theme/ColorSchemes/dark/background.js +42 -50
- package/lib/theme/ColorSchemes/dark/border.d.ts +27 -27
- package/lib/theme/ColorSchemes/dark/border.js +37 -45
- package/lib/theme/ColorSchemes/dark/data.js +18 -24
- package/lib/theme/ColorSchemes/dark/icon.d.ts +27 -27
- package/lib/theme/ColorSchemes/dark/icon.js +40 -48
- package/lib/theme/ColorSchemes/dark/illustration.js +11 -17
- package/lib/theme/ColorSchemes/dark/index.js +60 -26
- package/lib/theme/ColorSchemes/dark/text.d.ts +27 -27
- package/lib/theme/ColorSchemes/dark/text.js +47 -54
- package/lib/theme/ColorSchemes/index.js +4 -49
- package/lib/theme/ColorSchemes/light/background.d.ts +27 -27
- package/lib/theme/ColorSchemes/light/background.js +42 -50
- package/lib/theme/ColorSchemes/light/border.d.ts +27 -27
- package/lib/theme/ColorSchemes/light/border.js +37 -45
- package/lib/theme/ColorSchemes/light/data.js +18 -24
- package/lib/theme/ColorSchemes/light/icon.d.ts +27 -27
- package/lib/theme/ColorSchemes/light/icon.js +40 -48
- package/lib/theme/ColorSchemes/light/illustration.js +11 -17
- package/lib/theme/ColorSchemes/light/index.d.ts +59 -54
- package/lib/theme/ColorSchemes/light/index.js +43 -19
- package/lib/theme/ColorSchemes/light/text.d.ts +27 -27
- package/lib/theme/ColorSchemes/light/text.js +47 -54
- package/lib/theme/ColorSchemes/primitives/blue.js +1 -7
- package/lib/theme/ColorSchemes/primitives/green.js +1 -7
- package/lib/theme/ColorSchemes/primitives/grey.js +1 -7
- package/lib/theme/ColorSchemes/primitives/index.d.ts +9 -9
- package/lib/theme/ColorSchemes/primitives/index.js +20 -18
- package/lib/theme/ColorSchemes/primitives/magenta.js +1 -7
- package/lib/theme/ColorSchemes/primitives/orange.js +1 -7
- package/lib/theme/ColorSchemes/primitives/purple.js +1 -7
- package/lib/theme/ColorSchemes/primitives/red.js +1 -7
- package/lib/theme/ColorSchemes/primitives/teal.js +1 -7
- package/lib/theme/ColorSchemes/primitives/yellow.js +1 -7
- package/lib/theme/ColorSchemes/semantics.js +7 -13
- package/lib/theme/index.js +2 -27
- package/lib/theme/theme.js +68 -77
- package/lib/types.js +1 -5
- package/lib/utils/hash.js +3 -9
- package/lib/utils/reactNodeToText.js +9 -17
- package/package.json +21 -11
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'illustration-
|
|
10
|
-
'illustration-
|
|
11
|
-
'illustration-
|
|
12
|
-
'illustration-neutral4': _primitives.primitiveColors['grey-100'],
|
|
13
|
-
'illustration-brand1': _primitives.primitiveColors['blue-40'],
|
|
14
|
-
'illustration-brand2': _primitives.primitiveColors['blue-30'],
|
|
15
|
-
'illustration-brand3': _primitives.primitiveColors['blue-70'],
|
|
16
|
-
'illustration-brand4': _primitives.primitiveColors['blue-98'],
|
|
17
|
-
'illustration-brand-inverted': _primitives.primitiveColors['grey-100']
|
|
1
|
+
import { primitiveColors } from '../primitives';
|
|
2
|
+
export const illustrationColors = {
|
|
3
|
+
'illustration-neutral1': primitiveColors['grey-10'],
|
|
4
|
+
'illustration-neutral2': primitiveColors['grey-50'],
|
|
5
|
+
'illustration-neutral3': primitiveColors['grey-95'],
|
|
6
|
+
'illustration-neutral4': primitiveColors['grey-100'],
|
|
7
|
+
'illustration-brand1': primitiveColors['blue-40'],
|
|
8
|
+
'illustration-brand2': primitiveColors['blue-30'],
|
|
9
|
+
'illustration-brand3': primitiveColors['blue-70'],
|
|
10
|
+
'illustration-brand4': primitiveColors['blue-98'],
|
|
11
|
+
'illustration-brand-inverted': primitiveColors['grey-100']
|
|
18
12
|
};
|
|
@@ -47,51 +47,51 @@ declare const functionalColors: {
|
|
|
47
47
|
'icon-high-enabled': string;
|
|
48
48
|
'icon-high-disabled': string;
|
|
49
49
|
'icon-attention-enabled': string;
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"background-high": string;
|
|
60
|
-
"background-medium": string;
|
|
61
|
-
"background-success": string;
|
|
50
|
+
"text-danger": string;
|
|
51
|
+
"text-success": string;
|
|
52
|
+
"text-warning": string;
|
|
53
|
+
"text-info": string;
|
|
54
|
+
"text-attention": string;
|
|
55
|
+
"text-critical": string;
|
|
56
|
+
"text-high": string;
|
|
57
|
+
"text-medium": string;
|
|
58
|
+
"text-minor": string;
|
|
62
59
|
"background-danger": string;
|
|
60
|
+
"background-success": string;
|
|
63
61
|
"background-warning": string;
|
|
64
62
|
"background-info": string;
|
|
65
63
|
"background-attention": string;
|
|
66
64
|
"background-critical": string;
|
|
65
|
+
"background-high": string;
|
|
66
|
+
"background-medium": string;
|
|
67
67
|
"background-minor": string;
|
|
68
|
-
"border-high": string;
|
|
69
|
-
"border-medium": string;
|
|
70
|
-
"border-success": string;
|
|
71
68
|
"border-danger": string;
|
|
69
|
+
"border-success": string;
|
|
72
70
|
"border-warning": string;
|
|
73
71
|
"border-info": string;
|
|
74
72
|
"border-attention": string;
|
|
75
73
|
"border-critical": string;
|
|
74
|
+
"border-high": string;
|
|
75
|
+
"border-medium": string;
|
|
76
76
|
"border-minor": string;
|
|
77
|
-
"text-high": string;
|
|
78
|
-
"text-medium": string;
|
|
79
|
-
"text-success": string;
|
|
80
|
-
"text-danger": string;
|
|
81
|
-
"text-warning": string;
|
|
82
|
-
"text-info": string;
|
|
83
|
-
"text-attention": string;
|
|
84
|
-
"text-critical": string;
|
|
85
|
-
"text-minor": string;
|
|
86
|
-
"icon-high": string;
|
|
87
|
-
"icon-medium": string;
|
|
88
|
-
"icon-success": string;
|
|
89
77
|
"icon-danger": string;
|
|
78
|
+
"icon-success": string;
|
|
90
79
|
"icon-warning": string;
|
|
91
80
|
"icon-info": string;
|
|
92
81
|
"icon-attention": string;
|
|
93
82
|
"icon-critical": string;
|
|
83
|
+
"icon-high": string;
|
|
84
|
+
"icon-medium": string;
|
|
94
85
|
"icon-minor": string;
|
|
86
|
+
"link-danger": string;
|
|
87
|
+
"link-success": string;
|
|
88
|
+
"link-warning": string;
|
|
89
|
+
"link-info": string;
|
|
90
|
+
"link-attention": string;
|
|
91
|
+
"link-critical": string;
|
|
92
|
+
"link-high": string;
|
|
93
|
+
"link-medium": string;
|
|
94
|
+
"link-minor": string;
|
|
95
95
|
'icon-enabled': string;
|
|
96
96
|
'icon-hover': string;
|
|
97
97
|
'icon-disabled': string;
|
|
@@ -221,6 +221,11 @@ export declare type FunctionalColorScheme = {
|
|
|
221
221
|
[key in FunctionalColor]: string;
|
|
222
222
|
};
|
|
223
223
|
declare const colors: {
|
|
224
|
+
'progress-bar-background': string;
|
|
225
|
+
'progress-bar-indicator': string;
|
|
226
|
+
'tooltip-text': string;
|
|
227
|
+
'tooltip-border': string;
|
|
228
|
+
'tooltip-background': string;
|
|
224
229
|
'logo-brand': string;
|
|
225
230
|
'logo-inverted': string;
|
|
226
231
|
'logo-primary': string;
|
|
@@ -676,51 +681,51 @@ declare const colors: {
|
|
|
676
681
|
'icon-high-enabled': string;
|
|
677
682
|
'icon-high-disabled': string;
|
|
678
683
|
'icon-attention-enabled': string;
|
|
679
|
-
"
|
|
680
|
-
"
|
|
681
|
-
"
|
|
682
|
-
"
|
|
683
|
-
"
|
|
684
|
-
"
|
|
685
|
-
"
|
|
686
|
-
"
|
|
687
|
-
"
|
|
688
|
-
"background-high": string;
|
|
689
|
-
"background-medium": string;
|
|
690
|
-
"background-success": string;
|
|
684
|
+
"text-danger": string;
|
|
685
|
+
"text-success": string;
|
|
686
|
+
"text-warning": string;
|
|
687
|
+
"text-info": string;
|
|
688
|
+
"text-attention": string;
|
|
689
|
+
"text-critical": string;
|
|
690
|
+
"text-high": string;
|
|
691
|
+
"text-medium": string;
|
|
692
|
+
"text-minor": string;
|
|
691
693
|
"background-danger": string;
|
|
694
|
+
"background-success": string;
|
|
692
695
|
"background-warning": string;
|
|
693
696
|
"background-info": string;
|
|
694
697
|
"background-attention": string;
|
|
695
698
|
"background-critical": string;
|
|
699
|
+
"background-high": string;
|
|
700
|
+
"background-medium": string;
|
|
696
701
|
"background-minor": string;
|
|
697
|
-
"border-high": string;
|
|
698
|
-
"border-medium": string;
|
|
699
|
-
"border-success": string;
|
|
700
702
|
"border-danger": string;
|
|
703
|
+
"border-success": string;
|
|
701
704
|
"border-warning": string;
|
|
702
705
|
"border-info": string;
|
|
703
706
|
"border-attention": string;
|
|
704
707
|
"border-critical": string;
|
|
708
|
+
"border-high": string;
|
|
709
|
+
"border-medium": string;
|
|
705
710
|
"border-minor": string;
|
|
706
|
-
"text-high": string;
|
|
707
|
-
"text-medium": string;
|
|
708
|
-
"text-success": string;
|
|
709
|
-
"text-danger": string;
|
|
710
|
-
"text-warning": string;
|
|
711
|
-
"text-info": string;
|
|
712
|
-
"text-attention": string;
|
|
713
|
-
"text-critical": string;
|
|
714
|
-
"text-minor": string;
|
|
715
|
-
"icon-high": string;
|
|
716
|
-
"icon-medium": string;
|
|
717
|
-
"icon-success": string;
|
|
718
711
|
"icon-danger": string;
|
|
712
|
+
"icon-success": string;
|
|
719
713
|
"icon-warning": string;
|
|
720
714
|
"icon-info": string;
|
|
721
715
|
"icon-attention": string;
|
|
722
716
|
"icon-critical": string;
|
|
717
|
+
"icon-high": string;
|
|
718
|
+
"icon-medium": string;
|
|
723
719
|
"icon-minor": string;
|
|
720
|
+
"link-danger": string;
|
|
721
|
+
"link-success": string;
|
|
722
|
+
"link-warning": string;
|
|
723
|
+
"link-info": string;
|
|
724
|
+
"link-attention": string;
|
|
725
|
+
"link-critical": string;
|
|
726
|
+
"link-high": string;
|
|
727
|
+
"link-medium": string;
|
|
728
|
+
"link-minor": string;
|
|
724
729
|
'icon-enabled': string;
|
|
725
730
|
'icon-hover': string;
|
|
726
731
|
'icon-disabled': string;
|
|
@@ -1,19 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { primitiveColors } from '../primitives';
|
|
2
|
+
import { illustrationColors } from './illustration';
|
|
3
|
+
import { dataColors } from './data';
|
|
4
|
+
import { backgroundColors } from './background';
|
|
5
|
+
import { borderColors } from './border';
|
|
6
|
+
import { iconColors } from './icon';
|
|
7
|
+
import { textColors } from './text';
|
|
8
|
+
import { alerts, button, cards, charts, checkboxInput, input, label, listOrb, selector, stepper, loading, effects, divider, issues, tabs, drawer, filters, modals, tables, navigation, logo, tooltip, progressBar } from '../components';
|
|
9
|
+
const functionalColors = {
|
|
10
|
+
...textColors,
|
|
11
|
+
...backgroundColors,
|
|
12
|
+
...borderColors,
|
|
13
|
+
...iconColors,
|
|
14
|
+
...illustrationColors,
|
|
15
|
+
...dataColors
|
|
16
|
+
};
|
|
17
|
+
const colors = {
|
|
18
|
+
...functionalColors,
|
|
19
|
+
...effects(primitiveColors),
|
|
20
|
+
...alerts(functionalColors),
|
|
21
|
+
...button(functionalColors),
|
|
22
|
+
...cards(functionalColors),
|
|
23
|
+
...charts(functionalColors),
|
|
24
|
+
...label(functionalColors),
|
|
25
|
+
...checkboxInput(functionalColors),
|
|
26
|
+
...listOrb(functionalColors),
|
|
27
|
+
...stepper(functionalColors),
|
|
28
|
+
...selector(functionalColors),
|
|
29
|
+
...input(functionalColors),
|
|
30
|
+
...loading(functionalColors),
|
|
31
|
+
...divider(functionalColors),
|
|
32
|
+
...issues(functionalColors),
|
|
33
|
+
...tabs(functionalColors),
|
|
34
|
+
...drawer(functionalColors),
|
|
35
|
+
...filters(functionalColors),
|
|
36
|
+
...modals(functionalColors),
|
|
37
|
+
...tables(functionalColors),
|
|
38
|
+
...navigation(functionalColors),
|
|
39
|
+
...logo(functionalColors),
|
|
40
|
+
...tooltip(functionalColors),
|
|
41
|
+
...progressBar(functionalColors)
|
|
42
|
+
};
|
|
43
|
+
export const codacyThemeColors = colors;
|
|
@@ -41,49 +41,49 @@ export declare const textColors: {
|
|
|
41
41
|
'text-success-enabled': string;
|
|
42
42
|
'text-high-enabled': string;
|
|
43
43
|
'text-high-disabled': string;
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"background-high": string;
|
|
54
|
-
"background-medium": string;
|
|
55
|
-
"background-success": string;
|
|
44
|
+
"text-danger": string;
|
|
45
|
+
"text-success": string;
|
|
46
|
+
"text-warning": string;
|
|
47
|
+
"text-info": string;
|
|
48
|
+
"text-attention": string;
|
|
49
|
+
"text-critical": string;
|
|
50
|
+
"text-high": string;
|
|
51
|
+
"text-medium": string;
|
|
52
|
+
"text-minor": string;
|
|
56
53
|
"background-danger": string;
|
|
54
|
+
"background-success": string;
|
|
57
55
|
"background-warning": string;
|
|
58
56
|
"background-info": string;
|
|
59
57
|
"background-attention": string;
|
|
60
58
|
"background-critical": string;
|
|
59
|
+
"background-high": string;
|
|
60
|
+
"background-medium": string;
|
|
61
61
|
"background-minor": string;
|
|
62
|
-
"border-high": string;
|
|
63
|
-
"border-medium": string;
|
|
64
|
-
"border-success": string;
|
|
65
62
|
"border-danger": string;
|
|
63
|
+
"border-success": string;
|
|
66
64
|
"border-warning": string;
|
|
67
65
|
"border-info": string;
|
|
68
66
|
"border-attention": string;
|
|
69
67
|
"border-critical": string;
|
|
68
|
+
"border-high": string;
|
|
69
|
+
"border-medium": string;
|
|
70
70
|
"border-minor": string;
|
|
71
|
-
"text-high": string;
|
|
72
|
-
"text-medium": string;
|
|
73
|
-
"text-success": string;
|
|
74
|
-
"text-danger": string;
|
|
75
|
-
"text-warning": string;
|
|
76
|
-
"text-info": string;
|
|
77
|
-
"text-attention": string;
|
|
78
|
-
"text-critical": string;
|
|
79
|
-
"text-minor": string;
|
|
80
|
-
"icon-high": string;
|
|
81
|
-
"icon-medium": string;
|
|
82
|
-
"icon-success": string;
|
|
83
71
|
"icon-danger": string;
|
|
72
|
+
"icon-success": string;
|
|
84
73
|
"icon-warning": string;
|
|
85
74
|
"icon-info": string;
|
|
86
75
|
"icon-attention": string;
|
|
87
76
|
"icon-critical": string;
|
|
77
|
+
"icon-high": string;
|
|
78
|
+
"icon-medium": string;
|
|
88
79
|
"icon-minor": string;
|
|
80
|
+
"link-danger": string;
|
|
81
|
+
"link-success": string;
|
|
82
|
+
"link-warning": string;
|
|
83
|
+
"link-info": string;
|
|
84
|
+
"link-attention": string;
|
|
85
|
+
"link-critical": string;
|
|
86
|
+
"link-high": string;
|
|
87
|
+
"link-medium": string;
|
|
88
|
+
"link-minor": string;
|
|
89
89
|
};
|
|
@@ -1,61 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'text-
|
|
13
|
-
'text-
|
|
14
|
-
'text-
|
|
15
|
-
'text-
|
|
16
|
-
'text-
|
|
17
|
-
'text-subtle-
|
|
18
|
-
'text-subtle-hover': _primitives.primitiveColors['grey-30'],
|
|
19
|
-
'text-subtle-focus': _primitives.primitiveColors['grey-30'],
|
|
20
|
-
'text-subtle-pressed': _primitives.primitiveColors['grey-10'],
|
|
21
|
-
'text-subtle-disabled': _primitives.primitiveColors['grey-70'],
|
|
22
|
-
'text-subtle-inverted': _primitives.primitiveColors['grey-100'],
|
|
23
|
-
'text-code-subtle-enabled': _primitives.primitiveColors['grey-20'],
|
|
24
|
-
'text-code-subtle-disabled': _primitives.primitiveColors['grey-60'],
|
|
1
|
+
import { primitiveColors } from '../primitives';
|
|
2
|
+
import { semanticFunctionalColorsFx } from '../semantics';
|
|
3
|
+
export const textColors = {
|
|
4
|
+
...semanticFunctionalColorsFx('text', 40),
|
|
5
|
+
'text-primary': primitiveColors['grey-10'],
|
|
6
|
+
'text-secondary': primitiveColors['grey-30'],
|
|
7
|
+
'text-tertiary': primitiveColors['grey-50'],
|
|
8
|
+
'text-disabled': primitiveColors['grey-70'],
|
|
9
|
+
'text-inverted': primitiveColors['grey-100'],
|
|
10
|
+
'text-subtle-enabled': primitiveColors['grey-50'],
|
|
11
|
+
'text-subtle-hover': primitiveColors['grey-30'],
|
|
12
|
+
'text-subtle-focus': primitiveColors['grey-30'],
|
|
13
|
+
'text-subtle-pressed': primitiveColors['grey-10'],
|
|
14
|
+
'text-subtle-disabled': primitiveColors['grey-70'],
|
|
15
|
+
'text-subtle-inverted': primitiveColors['grey-100'],
|
|
16
|
+
'text-code-subtle-enabled': primitiveColors['grey-20'],
|
|
17
|
+
'text-code-subtle-disabled': primitiveColors['grey-60'],
|
|
25
18
|
// Text - Link and Brand
|
|
26
|
-
'text-link-enabled':
|
|
27
|
-
'text-link-hover':
|
|
28
|
-
'text-link-focus':
|
|
29
|
-
'text-link-pressed':
|
|
30
|
-
'text-link-disabled':
|
|
31
|
-
'text-brand-enabled':
|
|
32
|
-
'text-brand-hover':
|
|
33
|
-
'text-brand-focus':
|
|
34
|
-
'text-brand-pressed':
|
|
35
|
-
'text-brand-disabled':
|
|
19
|
+
'text-link-enabled': primitiveColors['blue-40'],
|
|
20
|
+
'text-link-hover': primitiveColors['blue-30'],
|
|
21
|
+
'text-link-focus': primitiveColors['blue-30'],
|
|
22
|
+
'text-link-pressed': primitiveColors['blue-20'],
|
|
23
|
+
'text-link-disabled': primitiveColors['blue-70'],
|
|
24
|
+
'text-brand-enabled': primitiveColors['blue-40'],
|
|
25
|
+
'text-brand-hover': primitiveColors['blue-30'],
|
|
26
|
+
'text-brand-focus': primitiveColors['blue-30'],
|
|
27
|
+
'text-brand-pressed': primitiveColors['blue-20'],
|
|
28
|
+
'text-brand-disabled': primitiveColors['blue-70'],
|
|
36
29
|
// Text - Semantic
|
|
37
30
|
// blue
|
|
38
|
-
'text-info-enabled':
|
|
39
|
-
'text-minor-enabled':
|
|
40
|
-
'text-minor-disabled':
|
|
41
|
-
'text-code-brand-enabled':
|
|
42
|
-
'text-code-brand-disabled':
|
|
31
|
+
'text-info-enabled': primitiveColors['blue-40'],
|
|
32
|
+
'text-minor-enabled': primitiveColors['blue-40'],
|
|
33
|
+
'text-minor-disabled': primitiveColors['blue-70'],
|
|
34
|
+
'text-code-brand-enabled': primitiveColors['blue-20'],
|
|
35
|
+
'text-code-brand-disabled': primitiveColors['blue-60'],
|
|
43
36
|
// red
|
|
44
|
-
'text-danger-enabled':
|
|
45
|
-
'text-danger-hover':
|
|
46
|
-
'text-danger-focus':
|
|
47
|
-
'text-danger-pressed':
|
|
48
|
-
'text-danger-disabled':
|
|
49
|
-
'text-critical-enabled':
|
|
50
|
-
'text-critical-disabled':
|
|
51
|
-
'text-code-danger':
|
|
37
|
+
'text-danger-enabled': primitiveColors['red-40'],
|
|
38
|
+
'text-danger-hover': primitiveColors['red-30'],
|
|
39
|
+
'text-danger-focus': primitiveColors['red-30'],
|
|
40
|
+
'text-danger-pressed': primitiveColors['red-20'],
|
|
41
|
+
'text-danger-disabled': primitiveColors['red-70'],
|
|
42
|
+
'text-critical-enabled': primitiveColors['red-40'],
|
|
43
|
+
'text-critical-disabled': primitiveColors['red-70'],
|
|
44
|
+
'text-code-danger': primitiveColors['red-60'],
|
|
52
45
|
// yellow
|
|
53
|
-
'text-warning-enabled':
|
|
54
|
-
'text-medium-enabled':
|
|
55
|
-
'text-medium-disabled':
|
|
46
|
+
'text-warning-enabled': primitiveColors['yellow-40'],
|
|
47
|
+
'text-medium-enabled': primitiveColors['yellow-50'],
|
|
48
|
+
'text-medium-disabled': primitiveColors['yellow-70'],
|
|
56
49
|
// green
|
|
57
|
-
'text-success-enabled':
|
|
50
|
+
'text-success-enabled': primitiveColors['green-40'],
|
|
58
51
|
// orange
|
|
59
|
-
'text-high-enabled':
|
|
60
|
-
'text-high-disabled':
|
|
61
|
-
}
|
|
52
|
+
'text-high-enabled': primitiveColors['orange-40'],
|
|
53
|
+
'text-high-disabled': primitiveColors['orange-70']
|
|
54
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const primitiveColors: {
|
|
2
|
+
"yellow-00": string;
|
|
2
3
|
"yellow-10": string;
|
|
3
4
|
"yellow-20": string;
|
|
4
|
-
"yellow-00": string;
|
|
5
5
|
"yellow-30": string;
|
|
6
6
|
"yellow-40": string;
|
|
7
7
|
"yellow-50": string;
|
|
@@ -11,9 +11,9 @@ export declare const primitiveColors: {
|
|
|
11
11
|
"yellow-90": string;
|
|
12
12
|
"yellow-95": string;
|
|
13
13
|
"yellow-98": string;
|
|
14
|
+
"teal-00": string;
|
|
14
15
|
"teal-10": string;
|
|
15
16
|
"teal-20": string;
|
|
16
|
-
"teal-00": string;
|
|
17
17
|
"teal-30": string;
|
|
18
18
|
"teal-40": string;
|
|
19
19
|
"teal-50": string;
|
|
@@ -23,9 +23,9 @@ export declare const primitiveColors: {
|
|
|
23
23
|
"teal-90": string;
|
|
24
24
|
"teal-95": string;
|
|
25
25
|
"teal-98": string;
|
|
26
|
+
"red-00": string;
|
|
26
27
|
"red-10": string;
|
|
27
28
|
"red-20": string;
|
|
28
|
-
"red-00": string;
|
|
29
29
|
"red-30": string;
|
|
30
30
|
"red-40": string;
|
|
31
31
|
"red-50": string;
|
|
@@ -47,9 +47,9 @@ export declare const primitiveColors: {
|
|
|
47
47
|
"purple-95": string;
|
|
48
48
|
"purple-98": string;
|
|
49
49
|
"purple-08": string;
|
|
50
|
+
"orange-00": string;
|
|
50
51
|
"orange-10": string;
|
|
51
52
|
"orange-20": string;
|
|
52
|
-
"orange-00": string;
|
|
53
53
|
"orange-30": string;
|
|
54
54
|
"orange-40": string;
|
|
55
55
|
"orange-50": string;
|
|
@@ -59,9 +59,9 @@ export declare const primitiveColors: {
|
|
|
59
59
|
"orange-90": string;
|
|
60
60
|
"orange-95": string;
|
|
61
61
|
"orange-98": string;
|
|
62
|
+
"magenta-00": string;
|
|
62
63
|
"magenta-10": string;
|
|
63
64
|
"magenta-20": string;
|
|
64
|
-
"magenta-00": string;
|
|
65
65
|
"magenta-30": string;
|
|
66
66
|
"magenta-40": string;
|
|
67
67
|
"magenta-50": string;
|
|
@@ -71,10 +71,9 @@ export declare const primitiveColors: {
|
|
|
71
71
|
"magenta-90": string;
|
|
72
72
|
"magenta-95": string;
|
|
73
73
|
"magenta-98": string;
|
|
74
|
+
"grey-00": string;
|
|
74
75
|
"grey-10": string;
|
|
75
|
-
"grey-15": string;
|
|
76
76
|
"grey-20": string;
|
|
77
|
-
"grey-00": string;
|
|
78
77
|
"grey-30": string;
|
|
79
78
|
"grey-40": string;
|
|
80
79
|
"grey-50": string;
|
|
@@ -85,10 +84,11 @@ export declare const primitiveColors: {
|
|
|
85
84
|
"grey-95": string;
|
|
86
85
|
"grey-98": string;
|
|
87
86
|
"grey-05": string;
|
|
87
|
+
"grey-15": string;
|
|
88
88
|
"grey-100": string;
|
|
89
|
+
"green-00": string;
|
|
89
90
|
"green-10": string;
|
|
90
91
|
"green-20": string;
|
|
91
|
-
"green-00": string;
|
|
92
92
|
"green-30": string;
|
|
93
93
|
"green-40": string;
|
|
94
94
|
"green-50": string;
|
|
@@ -98,9 +98,9 @@ export declare const primitiveColors: {
|
|
|
98
98
|
"green-90": string;
|
|
99
99
|
"green-95": string;
|
|
100
100
|
"green-98": string;
|
|
101
|
+
"blue-00": string;
|
|
101
102
|
"blue-10": string;
|
|
102
103
|
"blue-20": string;
|
|
103
|
-
"blue-00": string;
|
|
104
104
|
"blue-30": string;
|
|
105
105
|
"blue-40": string;
|
|
106
106
|
"blue-50": string;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { blue } from './blue';
|
|
2
|
+
import { green } from './green';
|
|
3
|
+
import { grey } from './grey';
|
|
4
|
+
import { magenta } from './magenta';
|
|
5
|
+
import { orange } from './orange';
|
|
6
|
+
import { purple } from './purple';
|
|
7
|
+
import { red } from './red';
|
|
8
|
+
import { teal } from './teal';
|
|
9
|
+
import { yellow } from './yellow';
|
|
10
|
+
export const primitiveColors = {
|
|
11
|
+
...blue,
|
|
12
|
+
...green,
|
|
13
|
+
...grey,
|
|
14
|
+
...magenta,
|
|
15
|
+
...orange,
|
|
16
|
+
...purple,
|
|
17
|
+
...red,
|
|
18
|
+
...teal,
|
|
19
|
+
...yellow
|
|
20
|
+
};
|