@codacy/ui-components 0.66.25 → 0.66.27
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 -26
- 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 -37
- package/lib/Popup/types.js +1 -5
- package/lib/ProgressBar/ProgressBar.js +19 -34
- package/lib/ProgressBar/index.js +2 -27
- package/lib/ProgressBar/styles.js +21 -35
- 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 +61 -91
- 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.d.ts +1 -0
- package/lib/hooks/index.js +4 -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.js +23 -258
- 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.js +5 -13
- 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.js +6 -14
- 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 -31
- 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 +54 -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,16 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'listOrb-primary-text': colors['text-primary'],
|
|
11
|
-
'listOrb-secondary-text': colors['text-secondary'],
|
|
12
|
-
'listOrb-primary-icon': colors['icon-brand-enabled'],
|
|
13
|
-
'listOrb-primary-background': colors['background-brand'],
|
|
14
|
-
'listOrb-secondary-background': colors['background-subtle']
|
|
15
|
-
});
|
|
16
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const listOrb = colors => validateKeys()({
|
|
3
|
+
'listOrb-primary-text': colors['text-primary'],
|
|
4
|
+
'listOrb-secondary-text': colors['text-secondary'],
|
|
5
|
+
'listOrb-primary-icon': colors['icon-brand-enabled'],
|
|
6
|
+
'listOrb-primary-background': colors['background-brand'],
|
|
7
|
+
'listOrb-secondary-background': colors['background-subtle']
|
|
8
|
+
});
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.loading = void 0;
|
|
7
|
-
var _utils = require("./utils");
|
|
8
|
-
var loading = exports.loading = function loading(colors) {
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'loading-background': colors['background-brand']
|
|
11
|
-
});
|
|
12
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const loading = colors => validateKeys()({
|
|
3
|
+
'loading-background': colors['background-brand']
|
|
4
|
+
});
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _utils = require("./utils");
|
|
8
|
-
var logo = exports.logo = function logo(colors) {
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'logo-brand': colors['icon-brand-enabled'],
|
|
11
|
-
'logo-inverted': colors['icon-inverted'],
|
|
12
|
-
'logo-primary': colors['icon-subtle-pressed']
|
|
13
|
-
});
|
|
14
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const logo = colors => validateKeys()({
|
|
3
|
+
'logo-brand': colors['icon-brand-enabled'],
|
|
4
|
+
'logo-inverted': colors['icon-inverted'],
|
|
5
|
+
'logo-primary': colors['icon-subtle-pressed']
|
|
6
|
+
});
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _utils = require("./utils");
|
|
8
|
-
var modals = exports.modals = function modals(colors) {
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'modal-body-text': colors['text-primary'],
|
|
11
|
-
'modal-body-background': colors['background-primary'],
|
|
12
|
-
'modal-backdrop-background': colors['background-subtle-enabled']
|
|
13
|
-
});
|
|
14
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const modals = colors => validateKeys()({
|
|
3
|
+
'modal-body-text': colors['text-primary'],
|
|
4
|
+
'modal-body-background': colors['background-primary'],
|
|
5
|
+
'modal-backdrop-background': colors['background-subtle-enabled']
|
|
6
|
+
});
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'navigation-left-menu-wrapper-background-enabled': colors['background-secondary'],
|
|
19
|
-
'navigation-top-bar-item-text-enabled': colors['text-tertiary'],
|
|
20
|
-
'navigation-top-bar-item-background-hover': colors['background-subtle-disabled'],
|
|
21
|
-
'navigation-top-bar-logo': colors['icon-focus'],
|
|
22
|
-
'navigation-top-bar-wrapper-text-enabled': colors['text-tertiary'],
|
|
23
|
-
'navigation-top-bar-wrapper-background-enabled': colors['background-subtle']
|
|
24
|
-
});
|
|
25
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const navigation = colors => validateKeys()({
|
|
3
|
+
'navigation-left-menu-item-text-enabled': colors['text-secondary'],
|
|
4
|
+
'navigation-left-menu-item-text-active': colors['text-brand-enabled'],
|
|
5
|
+
'navigation-left-menu-item-text-hover': colors['text-brand-hover'],
|
|
6
|
+
'navigation-left-menu-item-icon-enabled': colors['icon-enabled'],
|
|
7
|
+
'navigation-left-menu-item-icon-active': colors['icon-brand-enabled'],
|
|
8
|
+
'navigation-left-menu-item-background-enabled': colors['background-secondary'],
|
|
9
|
+
'navigation-left-menu-item-background-active': colors['background-brand'],
|
|
10
|
+
'navigation-left-menu-wrapper-text-enabled': colors['text-disabled'],
|
|
11
|
+
'navigation-left-menu-wrapper-background-enabled': colors['background-secondary'],
|
|
12
|
+
'navigation-top-bar-item-text-enabled': colors['text-tertiary'],
|
|
13
|
+
'navigation-top-bar-item-background-hover': colors['background-subtle-disabled'],
|
|
14
|
+
'navigation-top-bar-logo': colors['icon-focus'],
|
|
15
|
+
'navigation-top-bar-wrapper-text-enabled': colors['text-tertiary'],
|
|
16
|
+
'navigation-top-bar-wrapper-background-enabled': colors['background-subtle']
|
|
17
|
+
});
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.progressBar = void 0;
|
|
7
|
-
var _utils = require("./utils");
|
|
8
|
-
var progressBar = exports.progressBar = function progressBar(colors) {
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'progress-bar-background': colors['background-subtle'],
|
|
11
|
-
'progress-bar-indicator': colors['background-brand-enabled']
|
|
12
|
-
});
|
|
13
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const progressBar = colors => validateKeys()({
|
|
3
|
+
'progress-bar-background': colors['background-subtle'],
|
|
4
|
+
'progress-bar-indicator': colors['background-brand-enabled']
|
|
5
|
+
});
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'selector-base-border-unselected': colors['border-subtle-disabled'],
|
|
22
|
-
'selector-base-border-disabled': colors['border-brand-disabled'],
|
|
23
|
-
'selector-base-border-hover': colors['border-brand-enabled'],
|
|
24
|
-
'selector-base-icon-enabled': colors['icon-brand-enabled'],
|
|
25
|
-
'selector-base-icon-unselected': colors['background-subtle-enabled'],
|
|
26
|
-
'selector-base-icon-disabled': colors['icon-brand-disabled']
|
|
27
|
-
});
|
|
28
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const selector = colors => validateKeys()({
|
|
3
|
+
'selector-base-background-enabled': colors['background-brand-inverted'],
|
|
4
|
+
'selector-base-background-unselected': colors['background-brand-inverted'],
|
|
5
|
+
'selector-base-background-disabled': colors['background-brand'],
|
|
6
|
+
'selector-base-background-hover': colors['background-brand'],
|
|
7
|
+
'selector-slider-background-enabled': colors['background-brand-enabled'],
|
|
8
|
+
'selector-slider-background-unselected': colors['background-brand'],
|
|
9
|
+
'selector-slider-background-disabled': colors['background-brand-disabled'],
|
|
10
|
+
'selector-slider-background-hover': colors['background-brand-hover'],
|
|
11
|
+
'selector-base-text-enabled': colors['text-primary'],
|
|
12
|
+
'selector-base-text-disabled': colors['text-disabled'],
|
|
13
|
+
'selector-base-border-enabled': colors['border-brand-subtle'],
|
|
14
|
+
'selector-base-border-unselected': colors['border-subtle-disabled'],
|
|
15
|
+
'selector-base-border-disabled': colors['border-brand-disabled'],
|
|
16
|
+
'selector-base-border-hover': colors['border-brand-enabled'],
|
|
17
|
+
'selector-base-icon-enabled': colors['icon-brand-enabled'],
|
|
18
|
+
'selector-base-icon-unselected': colors['background-subtle-enabled'],
|
|
19
|
+
'selector-base-icon-disabled': colors['icon-brand-disabled']
|
|
20
|
+
});
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
'stepper-text-complete': colors['text-tertiary'],
|
|
11
|
-
'stepper-icon-complete': colors['icon-brand-disabled'],
|
|
12
|
-
'stepper-text-current': colors['text-primary'],
|
|
13
|
-
'stepper-icon-current': colors['icon-brand-enabled'],
|
|
14
|
-
'stepper-text-incomplete': colors['text-tertiary'],
|
|
15
|
-
'stepper-icon-incomplete': colors['icon-subtle-enabled']
|
|
16
|
-
});
|
|
17
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const stepper = colors => validateKeys()({
|
|
3
|
+
'stepper-text-complete': colors['text-tertiary'],
|
|
4
|
+
'stepper-icon-complete': colors['icon-brand-disabled'],
|
|
5
|
+
'stepper-text-current': colors['text-primary'],
|
|
6
|
+
'stepper-icon-current': colors['icon-brand-enabled'],
|
|
7
|
+
'stepper-text-incomplete': colors['text-tertiary'],
|
|
8
|
+
'stepper-icon-incomplete': colors['icon-subtle-enabled']
|
|
9
|
+
});
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
'tables-background-hover': colors['background-secondary'],
|
|
14
|
-
'tables-border-enabled': colors['border-primary'],
|
|
15
|
-
'tables-icon-enabled': colors['icon-disabled'],
|
|
16
|
-
'tables-icon-active': colors['icon-brand-enabled'],
|
|
17
|
-
'tables-link-enabled': colors['text-primary'],
|
|
18
|
-
'tables-link-hover': colors['text-link-enabled']
|
|
19
|
-
});
|
|
20
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const tables = colors => validateKeys()({
|
|
3
|
+
'tables-text-enabled': colors['text-tertiary'],
|
|
4
|
+
'tables-text-active': colors['text-brand-enabled'],
|
|
5
|
+
'tables-background-enabled': colors['background-primary'],
|
|
6
|
+
'tables-background-hover': colors['background-secondary'],
|
|
7
|
+
'tables-border-enabled': colors['border-primary'],
|
|
8
|
+
'tables-icon-enabled': colors['icon-disabled'],
|
|
9
|
+
'tables-icon-active': colors['icon-brand-enabled'],
|
|
10
|
+
'tables-link-enabled': colors['text-primary'],
|
|
11
|
+
'tables-link-hover': colors['text-link-enabled']
|
|
12
|
+
});
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'tabs-border-disabled': colors['border-primary'],
|
|
15
|
-
'tabs-border-active': colors['border-brand-enabled'],
|
|
16
|
-
'tabs-border-inactive': colors['border-subtle-disabled'],
|
|
17
|
-
'tabs-icon-enabled': colors['icon-enabled'],
|
|
18
|
-
'tabs-icon-disabled': colors['icon-disabled'],
|
|
19
|
-
'tabs-icon-active': colors['icon-brand-enabled']
|
|
20
|
-
});
|
|
21
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const tabs = colors => validateKeys()({
|
|
3
|
+
'tabs-text-enabled': colors['text-secondary'],
|
|
4
|
+
'tabs-text-disabled': colors['text-disabled'],
|
|
5
|
+
'tabs-text-active': colors['text-brand-enabled'],
|
|
6
|
+
'tabs-border-enabled': colors['border-primary'],
|
|
7
|
+
'tabs-border-disabled': colors['border-primary'],
|
|
8
|
+
'tabs-border-active': colors['border-brand-enabled'],
|
|
9
|
+
'tabs-border-inactive': colors['border-subtle-disabled'],
|
|
10
|
+
'tabs-icon-enabled': colors['icon-enabled'],
|
|
11
|
+
'tabs-icon-disabled': colors['icon-disabled'],
|
|
12
|
+
'tabs-icon-active': colors['icon-brand-enabled']
|
|
13
|
+
});
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _utils = require("./utils");
|
|
8
|
-
var tooltip = exports.tooltip = function tooltip(colors) {
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'tooltip-text': colors['text-secondary'],
|
|
11
|
-
'tooltip-border': colors['border-primary'],
|
|
12
|
-
'tooltip-background': colors['background-primary']
|
|
13
|
-
});
|
|
14
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const tooltip = colors => validateKeys()({
|
|
3
|
+
'tooltip-text': colors['text-secondary'],
|
|
4
|
+
'tooltip-border': colors['border-primary'],
|
|
5
|
+
'tooltip-background': colors['background-primary']
|
|
6
|
+
});
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.validateKeys = void 0;
|
|
7
|
-
var validateKeys = exports.validateKeys = function validateKeys() {
|
|
8
|
-
return function (obj) {
|
|
9
|
-
return obj;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
export const validateKeys = () => obj => obj;
|
|
@@ -32,51 +32,51 @@ export declare const backgroundColors: {
|
|
|
32
32
|
'background-attention-disabled': string;
|
|
33
33
|
'background-high-enabled': string;
|
|
34
34
|
'background-high-disabled': string;
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"background-high": string;
|
|
45
|
-
"background-medium": string;
|
|
46
|
-
"background-success": string;
|
|
35
|
+
"text-danger": string;
|
|
36
|
+
"text-success": string;
|
|
37
|
+
"text-warning": string;
|
|
38
|
+
"text-info": string;
|
|
39
|
+
"text-attention": string;
|
|
40
|
+
"text-critical": string;
|
|
41
|
+
"text-high": string;
|
|
42
|
+
"text-medium": string;
|
|
43
|
+
"text-minor": string;
|
|
47
44
|
"background-danger": string;
|
|
45
|
+
"background-success": string;
|
|
48
46
|
"background-warning": string;
|
|
49
47
|
"background-info": string;
|
|
50
48
|
"background-attention": string;
|
|
51
49
|
"background-critical": string;
|
|
50
|
+
"background-high": string;
|
|
51
|
+
"background-medium": string;
|
|
52
52
|
"background-minor": string;
|
|
53
|
-
"border-high": string;
|
|
54
|
-
"border-medium": string;
|
|
55
|
-
"border-success": string;
|
|
56
53
|
"border-danger": string;
|
|
54
|
+
"border-success": string;
|
|
57
55
|
"border-warning": string;
|
|
58
56
|
"border-info": string;
|
|
59
57
|
"border-attention": string;
|
|
60
58
|
"border-critical": string;
|
|
59
|
+
"border-high": string;
|
|
60
|
+
"border-medium": string;
|
|
61
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
62
|
"icon-danger": string;
|
|
63
|
+
"icon-success": string;
|
|
75
64
|
"icon-warning": string;
|
|
76
65
|
"icon-info": string;
|
|
77
66
|
"icon-attention": string;
|
|
78
67
|
"icon-critical": string;
|
|
68
|
+
"icon-high": string;
|
|
69
|
+
"icon-medium": string;
|
|
79
70
|
"icon-minor": string;
|
|
71
|
+
"link-danger": string;
|
|
72
|
+
"link-success": string;
|
|
73
|
+
"link-warning": string;
|
|
74
|
+
"link-info": string;
|
|
75
|
+
"link-attention": string;
|
|
76
|
+
"link-critical": string;
|
|
77
|
+
"link-high": string;
|
|
78
|
+
"link-medium": string;
|
|
79
|
+
"link-minor": string;
|
|
80
80
|
'background-primary': string;
|
|
81
81
|
'background-secondary': string;
|
|
82
82
|
'background-subtle': string;
|
|
@@ -1,56 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'background-
|
|
13
|
-
'background-
|
|
14
|
-
'background-
|
|
15
|
-
'background-brand-
|
|
16
|
-
|
|
17
|
-
'background-
|
|
18
|
-
'background-
|
|
19
|
-
'background-
|
|
20
|
-
'background-
|
|
21
|
-
'background-brand-pressed': _primitives.primitiveColors['blue-30'],
|
|
22
|
-
'background-brand-disabled': _primitives.primitiveColors['blue-20'],
|
|
23
|
-
'background-brand-inverted': _primitives.primitiveColors['grey-00'],
|
|
24
|
-
'background-subtle-enabled': _primitives.primitiveColors['grey-70'],
|
|
25
|
-
'background-subtle-hover': _primitives.primitiveColors['grey-50'],
|
|
26
|
-
'background-subtle-focus': _primitives.primitiveColors['grey-60'],
|
|
27
|
-
'background-subtle-pressed': _primitives.primitiveColors['grey-50'],
|
|
28
|
-
'background-subtle-disabled': _primitives.primitiveColors['grey-20'],
|
|
1
|
+
import { primitiveColors } from '../primitives';
|
|
2
|
+
import { semanticFunctionalColorsFx } from '../semantics';
|
|
3
|
+
export const backgroundColors = {
|
|
4
|
+
'background-primary': primitiveColors['grey-00'],
|
|
5
|
+
'background-secondary': primitiveColors['grey-05'],
|
|
6
|
+
'background-subtle': primitiveColors['grey-15'],
|
|
7
|
+
'background-brand-subtle': primitiveColors['blue-10'],
|
|
8
|
+
...semanticFunctionalColorsFx('background', 10),
|
|
9
|
+
'background-brand': primitiveColors['blue-10'],
|
|
10
|
+
'background-brand-enabled': primitiveColors['blue-50'],
|
|
11
|
+
'background-brand-hover': primitiveColors['blue-60'],
|
|
12
|
+
'background-brand-focus': primitiveColors['blue-60'],
|
|
13
|
+
'background-brand-pressed': primitiveColors['blue-30'],
|
|
14
|
+
'background-brand-disabled': primitiveColors['blue-20'],
|
|
15
|
+
'background-brand-inverted': primitiveColors['grey-00'],
|
|
16
|
+
'background-subtle-enabled': primitiveColors['grey-70'],
|
|
17
|
+
'background-subtle-hover': primitiveColors['grey-50'],
|
|
18
|
+
'background-subtle-focus': primitiveColors['grey-60'],
|
|
19
|
+
'background-subtle-pressed': primitiveColors['grey-50'],
|
|
20
|
+
'background-subtle-disabled': primitiveColors['grey-20'],
|
|
29
21
|
// blue
|
|
30
|
-
'background-info-enabled':
|
|
31
|
-
'background-info-disabled':
|
|
32
|
-
'background-minor-enabled':
|
|
33
|
-
'background-minor-disabled':
|
|
22
|
+
'background-info-enabled': primitiveColors['blue-60'],
|
|
23
|
+
'background-info-disabled': primitiveColors['blue-30'],
|
|
24
|
+
'background-minor-enabled': primitiveColors['blue-40'],
|
|
25
|
+
'background-minor-disabled': primitiveColors['blue-30'],
|
|
34
26
|
// red
|
|
35
|
-
'background-danger-enabled':
|
|
36
|
-
'background-danger-hover':
|
|
37
|
-
'background-danger-focus':
|
|
38
|
-
'background-danger-pressed':
|
|
39
|
-
'background-danger-disabled':
|
|
40
|
-
'background-critical-enabled':
|
|
41
|
-
'background-critical-disabled':
|
|
27
|
+
'background-danger-enabled': primitiveColors['red-60'],
|
|
28
|
+
'background-danger-hover': primitiveColors['red-50'],
|
|
29
|
+
'background-danger-focus': primitiveColors['red-50'],
|
|
30
|
+
'background-danger-pressed': primitiveColors['red-80'],
|
|
31
|
+
'background-danger-disabled': primitiveColors['red-10'],
|
|
32
|
+
'background-critical-enabled': primitiveColors['red-50'],
|
|
33
|
+
'background-critical-disabled': primitiveColors['red-30'],
|
|
42
34
|
// green
|
|
43
|
-
'background-success-enabled':
|
|
44
|
-
'background-success-disabled':
|
|
35
|
+
'background-success-enabled': primitiveColors['green-50'],
|
|
36
|
+
'background-success-disabled': primitiveColors['green-30'],
|
|
45
37
|
// yellow
|
|
46
|
-
'background-warning-enabled':
|
|
47
|
-
'background-warning-disabled':
|
|
48
|
-
'background-medium-enabled':
|
|
49
|
-
'background-medium-disabled':
|
|
38
|
+
'background-warning-enabled': primitiveColors['yellow-50'],
|
|
39
|
+
'background-warning-disabled': primitiveColors['yellow-30'],
|
|
40
|
+
'background-medium-enabled': primitiveColors['yellow-60'],
|
|
41
|
+
'background-medium-disabled': primitiveColors['yellow-30'],
|
|
50
42
|
// purple
|
|
51
|
-
'background-attention-enabled':
|
|
52
|
-
'background-attention-disabled':
|
|
43
|
+
'background-attention-enabled': primitiveColors['purple-50'],
|
|
44
|
+
'background-attention-disabled': primitiveColors['purple-30'],
|
|
53
45
|
// orange
|
|
54
|
-
'background-high-enabled':
|
|
55
|
-
'background-high-disabled':
|
|
56
|
-
}
|
|
46
|
+
'background-high-enabled': primitiveColors['orange-40'],
|
|
47
|
+
'background-high-disabled': primitiveColors['orange-30']
|
|
48
|
+
};
|
|
@@ -24,51 +24,51 @@ export declare const borderColors: {
|
|
|
24
24
|
'border-attention-disabled': string;
|
|
25
25
|
'border-high-enabled': string;
|
|
26
26
|
'border-high-disabled': string;
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"background-high": string;
|
|
37
|
-
"background-medium": string;
|
|
38
|
-
"background-success": string;
|
|
27
|
+
"text-danger": string;
|
|
28
|
+
"text-success": string;
|
|
29
|
+
"text-warning": string;
|
|
30
|
+
"text-info": string;
|
|
31
|
+
"text-attention": string;
|
|
32
|
+
"text-critical": string;
|
|
33
|
+
"text-high": string;
|
|
34
|
+
"text-medium": string;
|
|
35
|
+
"text-minor": string;
|
|
39
36
|
"background-danger": string;
|
|
37
|
+
"background-success": string;
|
|
40
38
|
"background-warning": string;
|
|
41
39
|
"background-info": string;
|
|
42
40
|
"background-attention": string;
|
|
43
41
|
"background-critical": string;
|
|
42
|
+
"background-high": string;
|
|
43
|
+
"background-medium": string;
|
|
44
44
|
"background-minor": string;
|
|
45
|
-
"border-high": string;
|
|
46
|
-
"border-medium": string;
|
|
47
|
-
"border-success": string;
|
|
48
45
|
"border-danger": string;
|
|
46
|
+
"border-success": string;
|
|
49
47
|
"border-warning": string;
|
|
50
48
|
"border-info": string;
|
|
51
49
|
"border-attention": string;
|
|
52
50
|
"border-critical": string;
|
|
51
|
+
"border-high": string;
|
|
52
|
+
"border-medium": string;
|
|
53
53
|
"border-minor": string;
|
|
54
|
-
"text-high": string;
|
|
55
|
-
"text-medium": string;
|
|
56
|
-
"text-success": string;
|
|
57
|
-
"text-danger": string;
|
|
58
|
-
"text-warning": string;
|
|
59
|
-
"text-info": string;
|
|
60
|
-
"text-attention": string;
|
|
61
|
-
"text-critical": string;
|
|
62
|
-
"text-minor": string;
|
|
63
|
-
"icon-high": string;
|
|
64
|
-
"icon-medium": string;
|
|
65
|
-
"icon-success": string;
|
|
66
54
|
"icon-danger": string;
|
|
55
|
+
"icon-success": string;
|
|
67
56
|
"icon-warning": string;
|
|
68
57
|
"icon-info": string;
|
|
69
58
|
"icon-attention": string;
|
|
70
59
|
"icon-critical": string;
|
|
60
|
+
"icon-high": string;
|
|
61
|
+
"icon-medium": string;
|
|
71
62
|
"icon-minor": string;
|
|
63
|
+
"link-danger": string;
|
|
64
|
+
"link-success": string;
|
|
65
|
+
"link-warning": string;
|
|
66
|
+
"link-info": string;
|
|
67
|
+
"link-attention": string;
|
|
68
|
+
"link-critical": string;
|
|
69
|
+
"link-high": string;
|
|
70
|
+
"link-medium": string;
|
|
71
|
+
"link-minor": string;
|
|
72
72
|
'border-inverted': string;
|
|
73
73
|
'border-primary': string;
|
|
74
74
|
'border-subtle-enabled': string;
|