@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,29 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'drawer-item-background-hover': colors['background-brand-subtle'],
|
|
23
|
-
'drawer-item-background-active': colors['background-brand'],
|
|
24
|
-
'drawer-item-icon-enabled': colors['icon-hover'],
|
|
25
|
-
'drawer-item-icon-disabled': colors['icon-disabled'],
|
|
26
|
-
'drawer-item-icon-hover': colors['icon-hover'],
|
|
27
|
-
'drawer-item-icon-active': colors['icon-brand-enabled']
|
|
28
|
-
});
|
|
29
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const drawer = colors => validateKeys()({
|
|
3
|
+
'drawer-body-text-enabled': colors['text-secondary'],
|
|
4
|
+
'drawer-body-text-disabled': colors['text-disabled'],
|
|
5
|
+
'drawer-body-background-enabled': colors['background-primary'],
|
|
6
|
+
'drawer-body-border-enabled': colors['border-brand-enabled'],
|
|
7
|
+
'drawer-body-icon-enabled': colors['icon-hover'],
|
|
8
|
+
'drawer-body-icon-disabled': colors['icon-disabled'],
|
|
9
|
+
'drawer-item-text-enabled': colors['text-secondary'],
|
|
10
|
+
'drawer-item-text-disabled': colors['text-disabled'],
|
|
11
|
+
'drawer-item-text-hover': colors['text-secondary'],
|
|
12
|
+
'drawer-item-text-active': colors['text-brand-enabled'],
|
|
13
|
+
'drawer-item-background-enabled': colors['background-primary'],
|
|
14
|
+
'drawer-item-background-disabled': colors['background-primary'],
|
|
15
|
+
'drawer-item-background-hover': colors['background-brand-subtle'],
|
|
16
|
+
'drawer-item-background-active': colors['background-brand'],
|
|
17
|
+
'drawer-item-icon-enabled': colors['icon-hover'],
|
|
18
|
+
'drawer-item-icon-disabled': colors['icon-disabled'],
|
|
19
|
+
'drawer-item-icon-hover': colors['icon-hover'],
|
|
20
|
+
'drawer-item-icon-active': colors['icon-brand-enabled']
|
|
21
|
+
});
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.effects = void 0;
|
|
7
|
-
var _utils = require("./utils");
|
|
8
|
-
var effects = exports.effects = function effects(colors) {
|
|
9
|
-
return (0, _utils.validateKeys)()({
|
|
10
|
-
'effect-elevation-1': "".concat(colors['grey-30'], "26"),
|
|
11
|
-
'effect-elevation-2': "".concat(colors['grey-30'], "33")
|
|
12
|
-
});
|
|
13
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const effects = colors => validateKeys()({
|
|
3
|
+
'effect-elevation-1': `${colors['grey-30']}26`,
|
|
4
|
+
'effect-elevation-2': `${colors['grey-30']}33`
|
|
5
|
+
});
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
'filter-background-disabled': colors['background-secondary'],
|
|
14
|
-
'filter-border-enabled': colors['border-brand-subtle'],
|
|
15
|
-
'filter-border-disabled': colors['border-subtle-disabled'],
|
|
16
|
-
'filter-border-active': colors['border-brand-pressed'],
|
|
17
|
-
'filter-icon-enabled': colors['icon-enabled'],
|
|
18
|
-
'filter-icon-disabled': colors['icon-disabled']
|
|
19
|
-
});
|
|
20
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const filters = colors => validateKeys()({
|
|
3
|
+
'filter-text-enabled': colors['text-secondary'],
|
|
4
|
+
'filter-text-disabled': colors['text-disabled'],
|
|
5
|
+
'filter-background-enabled': colors['background-primary'],
|
|
6
|
+
'filter-background-disabled': colors['background-secondary'],
|
|
7
|
+
'filter-border-enabled': colors['border-brand-subtle'],
|
|
8
|
+
'filter-border-disabled': colors['border-subtle-disabled'],
|
|
9
|
+
'filter-border-active': colors['border-brand-pressed'],
|
|
10
|
+
'filter-icon-enabled': colors['icon-enabled'],
|
|
11
|
+
'filter-icon-disabled': colors['icon-disabled']
|
|
12
|
+
});
|
|
@@ -1,236 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return _button[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _cards = require("./cards");
|
|
29
|
-
Object.keys(_cards).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _cards[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function get() {
|
|
35
|
-
return _cards[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _charts = require("./charts");
|
|
40
|
-
Object.keys(_charts).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _charts[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _charts[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _label = require("./label");
|
|
51
|
-
Object.keys(_label).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _label[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _label[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _checkboxInput = require("./checkbox-input");
|
|
62
|
-
Object.keys(_checkboxInput).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _checkboxInput[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function get() {
|
|
68
|
-
return _checkboxInput[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
var _listOrb = require("./list-orb");
|
|
73
|
-
Object.keys(_listOrb).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _listOrb[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function get() {
|
|
79
|
-
return _listOrb[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _stepper = require("./stepper");
|
|
84
|
-
Object.keys(_stepper).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _stepper[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function get() {
|
|
90
|
-
return _stepper[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
var _selector = require("./selector");
|
|
95
|
-
Object.keys(_selector).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _selector[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function get() {
|
|
101
|
-
return _selector[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
var _input = require("./input");
|
|
106
|
-
Object.keys(_input).forEach(function (key) {
|
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
|
108
|
-
if (key in exports && exports[key] === _input[key]) return;
|
|
109
|
-
Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function get() {
|
|
112
|
-
return _input[key];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
var _loading = require("./loading");
|
|
117
|
-
Object.keys(_loading).forEach(function (key) {
|
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
|
119
|
-
if (key in exports && exports[key] === _loading[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return _loading[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
var _effects = require("./effects");
|
|
128
|
-
Object.keys(_effects).forEach(function (key) {
|
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
|
130
|
-
if (key in exports && exports[key] === _effects[key]) return;
|
|
131
|
-
Object.defineProperty(exports, key, {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function get() {
|
|
134
|
-
return _effects[key];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
var _divider = require("./divider");
|
|
139
|
-
Object.keys(_divider).forEach(function (key) {
|
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] === _divider[key]) return;
|
|
142
|
-
Object.defineProperty(exports, key, {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function get() {
|
|
145
|
-
return _divider[key];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
var _issues = require("./issues");
|
|
150
|
-
Object.keys(_issues).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _issues[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function get() {
|
|
156
|
-
return _issues[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
var _tabs = require("./tabs");
|
|
161
|
-
Object.keys(_tabs).forEach(function (key) {
|
|
162
|
-
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] === _tabs[key]) return;
|
|
164
|
-
Object.defineProperty(exports, key, {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function get() {
|
|
167
|
-
return _tabs[key];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
var _drawer = require("./drawer");
|
|
172
|
-
Object.keys(_drawer).forEach(function (key) {
|
|
173
|
-
if (key === "default" || key === "__esModule") return;
|
|
174
|
-
if (key in exports && exports[key] === _drawer[key]) return;
|
|
175
|
-
Object.defineProperty(exports, key, {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function get() {
|
|
178
|
-
return _drawer[key];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
var _filters = require("./filters");
|
|
183
|
-
Object.keys(_filters).forEach(function (key) {
|
|
184
|
-
if (key === "default" || key === "__esModule") return;
|
|
185
|
-
if (key in exports && exports[key] === _filters[key]) return;
|
|
186
|
-
Object.defineProperty(exports, key, {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function get() {
|
|
189
|
-
return _filters[key];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
var _modals = require("./modals");
|
|
194
|
-
Object.keys(_modals).forEach(function (key) {
|
|
195
|
-
if (key === "default" || key === "__esModule") return;
|
|
196
|
-
if (key in exports && exports[key] === _modals[key]) return;
|
|
197
|
-
Object.defineProperty(exports, key, {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function get() {
|
|
200
|
-
return _modals[key];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
var _tables = require("./tables");
|
|
205
|
-
Object.keys(_tables).forEach(function (key) {
|
|
206
|
-
if (key === "default" || key === "__esModule") return;
|
|
207
|
-
if (key in exports && exports[key] === _tables[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function get() {
|
|
211
|
-
return _tables[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
var _navigation = require("./navigation");
|
|
216
|
-
Object.keys(_navigation).forEach(function (key) {
|
|
217
|
-
if (key === "default" || key === "__esModule") return;
|
|
218
|
-
if (key in exports && exports[key] === _navigation[key]) return;
|
|
219
|
-
Object.defineProperty(exports, key, {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function get() {
|
|
222
|
-
return _navigation[key];
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
var _logo = require("./logo");
|
|
227
|
-
Object.keys(_logo).forEach(function (key) {
|
|
228
|
-
if (key === "default" || key === "__esModule") return;
|
|
229
|
-
if (key in exports && exports[key] === _logo[key]) return;
|
|
230
|
-
Object.defineProperty(exports, key, {
|
|
231
|
-
enumerable: true,
|
|
232
|
-
get: function get() {
|
|
233
|
-
return _logo[key];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
1
|
+
export * from './alerts';
|
|
2
|
+
export * from './button';
|
|
3
|
+
export * from './cards';
|
|
4
|
+
export * from './charts';
|
|
5
|
+
export * from './label';
|
|
6
|
+
export * from './checkbox-input';
|
|
7
|
+
export * from './list-orb';
|
|
8
|
+
export * from './stepper';
|
|
9
|
+
export * from './selector';
|
|
10
|
+
export * from './input';
|
|
11
|
+
export * from './loading';
|
|
12
|
+
export * from './effects';
|
|
13
|
+
export * from './divider';
|
|
14
|
+
export * from './issues';
|
|
15
|
+
export * from './tabs';
|
|
16
|
+
export * from './drawer';
|
|
17
|
+
export * from './filters';
|
|
18
|
+
export * from './modals';
|
|
19
|
+
export * from './tables';
|
|
20
|
+
export * from './navigation';
|
|
21
|
+
export * from './logo';
|
|
22
|
+
export * from './tooltip';
|
|
23
|
+
export * from './progress-bar';
|
|
@@ -1,46 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'input-helper-error': colors['text-danger-enabled'],
|
|
40
|
-
'input-label-enabled': colors['text-secondary'],
|
|
41
|
-
'input-label-hover': colors['text-secondary'],
|
|
42
|
-
'input-label-focus': colors['text-secondary'],
|
|
43
|
-
'input-label-disabled': colors['text-disabled'],
|
|
44
|
-
'input-label-error': colors['text-secondary']
|
|
45
|
-
});
|
|
46
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const input = colors => validateKeys()({
|
|
3
|
+
'input-icon-enabled': colors['icon-enabled'],
|
|
4
|
+
'input-icon-hover': colors['icon-enabled'],
|
|
5
|
+
'input-icon-focus': colors['icon-enabled'],
|
|
6
|
+
'input-icon-disabled': colors['icon-disabled'],
|
|
7
|
+
'input-icon-error': colors['icon-enabled'],
|
|
8
|
+
'input-border-enabled': colors['border-brand-subtle'],
|
|
9
|
+
'input-border-hover': colors['border-brand-enabled'],
|
|
10
|
+
'input-border-focus': colors['border-brand-enabled'],
|
|
11
|
+
'input-border-disabled': colors['border-subtle-disabled'],
|
|
12
|
+
'input-border-error': colors['border-danger-enabled'],
|
|
13
|
+
'input-background-enabled': colors['background-primary'],
|
|
14
|
+
'input-background-hover': colors['background-primary'],
|
|
15
|
+
'input-background-focus': colors['background-primary'],
|
|
16
|
+
'input-background-disabled': colors['background-primary'],
|
|
17
|
+
'input-background-error': colors['background-primary'],
|
|
18
|
+
'input-text-enabled': colors['text-primary'],
|
|
19
|
+
'input-text-hover': colors['text-primary'],
|
|
20
|
+
'input-text-focus': colors['text-primary'],
|
|
21
|
+
'input-text-disabled': colors['text-disabled'],
|
|
22
|
+
'input-text-error': colors['text-primary'],
|
|
23
|
+
'input-placeholder-enabled': colors['text-tertiary'],
|
|
24
|
+
'input-placeholder-hover': colors['text-tertiary'],
|
|
25
|
+
'input-placeholder-focus': colors['text-tertiary'],
|
|
26
|
+
'input-placeholder-disabled': colors['text-disabled'],
|
|
27
|
+
'input-placeholder-error': colors['text-tertiary'],
|
|
28
|
+
'input-helper-enabled': colors['text-secondary'],
|
|
29
|
+
'input-helper-hover': colors['text-secondary'],
|
|
30
|
+
'input-helper-focus': colors['text-secondary'],
|
|
31
|
+
'input-helper-disabled': colors['text-disabled'],
|
|
32
|
+
'input-helper-error': colors['text-danger-enabled'],
|
|
33
|
+
'input-label-enabled': colors['text-secondary'],
|
|
34
|
+
'input-label-hover': colors['text-secondary'],
|
|
35
|
+
'input-label-focus': colors['text-secondary'],
|
|
36
|
+
'input-label-disabled': colors['text-disabled'],
|
|
37
|
+
'input-label-error': colors['text-secondary']
|
|
38
|
+
});
|
|
@@ -1,35 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'issues-high-line-collapsed': colors['text-disabled'],
|
|
29
|
-
'issues-high-line-expanded': colors['text-inverted'],
|
|
30
|
-
'issues-medium-line-collapsed': colors['text-disabled'],
|
|
31
|
-
'issues-medium-line-expanded': colors['text-inverted'],
|
|
32
|
-
'issues-minor-line-collapsed': colors['text-disabled'],
|
|
33
|
-
'issues-minor-line-expanded': colors['text-inverted']
|
|
34
|
-
});
|
|
35
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const issues = colors => validateKeys()({
|
|
3
|
+
'issues-critical-border-collapsed': colors['border-critical-enabled'],
|
|
4
|
+
'issues-critical-border-expanded': colors['border-critical-disabled'],
|
|
5
|
+
'issues-high-border-collapsed': colors['border-high-enabled'],
|
|
6
|
+
'issues-high-border-expanded': colors['border-high-disabled'],
|
|
7
|
+
'issues-medium-border-collapsed': colors['border-medium-enabled'],
|
|
8
|
+
'issues-medium-border-expanded': colors['border-medium-disabled'],
|
|
9
|
+
'issues-minor-border-collapsed': colors['border-minor-enabled'],
|
|
10
|
+
'issues-minor-border-expanded': colors['border-minor-disabled'],
|
|
11
|
+
'issues-critical-code-collapsed': colors['background-secondary'],
|
|
12
|
+
'issues-critical-code-expanded': colors['background-critical'],
|
|
13
|
+
'issues-high-code-collapsed': colors['background-secondary'],
|
|
14
|
+
'issues-high-code-expanded': colors['background-high'],
|
|
15
|
+
'issues-medium-code-collapsed': colors['background-secondary'],
|
|
16
|
+
'issues-medium-code-expanded': colors['background-medium'],
|
|
17
|
+
'issues-minor-code-collapsed': colors['background-secondary'],
|
|
18
|
+
'issues-minor-code-expanded': colors['background-minor'],
|
|
19
|
+
'issues-critical-line-collapsed': colors['text-disabled'],
|
|
20
|
+
'issues-critical-line-expanded': colors['text-inverted'],
|
|
21
|
+
'issues-high-line-collapsed': colors['text-disabled'],
|
|
22
|
+
'issues-high-line-expanded': colors['text-inverted'],
|
|
23
|
+
'issues-medium-line-collapsed': colors['text-disabled'],
|
|
24
|
+
'issues-medium-line-expanded': colors['text-inverted'],
|
|
25
|
+
'issues-minor-line-collapsed': colors['text-disabled'],
|
|
26
|
+
'issues-minor-line-expanded': colors['text-inverted']
|
|
27
|
+
});
|
|
@@ -1,41 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'label-medium-icon': colors['icon-medium-enabled'],
|
|
35
|
-
'label-medium-text': colors['text-medium-enabled'],
|
|
36
|
-
'label-medium-background': colors['background-medium'],
|
|
37
|
-
'label-minor-icon': colors['icon-minor-enabled'],
|
|
38
|
-
'label-minor-text': colors['text-minor-enabled'],
|
|
39
|
-
'label-minor-background': colors['background-minor']
|
|
40
|
-
});
|
|
41
|
-
};
|
|
1
|
+
import { validateKeys } from './utils';
|
|
2
|
+
export const label = colors => validateKeys()({
|
|
3
|
+
'label-default-icon': colors['icon-enabled'],
|
|
4
|
+
'label-default-text': colors['text-secondary'],
|
|
5
|
+
'label-default-background': colors['background-subtle'],
|
|
6
|
+
'label-danger-icon': colors['icon-danger-enabled'],
|
|
7
|
+
'label-danger-text': colors['text-danger-enabled'],
|
|
8
|
+
'label-danger-background': colors['background-danger'],
|
|
9
|
+
'label-success-icon': colors['icon-success-enabled'],
|
|
10
|
+
'label-success-text': colors['text-success-enabled'],
|
|
11
|
+
'label-success-background': colors['background-success'],
|
|
12
|
+
'label-warning-icon': colors['icon-warning-enabled'],
|
|
13
|
+
'label-warning-text': colors['text-warning-enabled'],
|
|
14
|
+
'label-warning-background': colors['background-warning'],
|
|
15
|
+
'label-info-icon': colors['icon-info-enabled'],
|
|
16
|
+
'label-info-text': colors['text-info-enabled'],
|
|
17
|
+
'label-info-background': colors['background-info'],
|
|
18
|
+
'label-attention-icon': colors['icon-attention-enabled'],
|
|
19
|
+
'label-attention-text': colors['text-attention'],
|
|
20
|
+
'label-attention-background': colors['background-attention'],
|
|
21
|
+
'label-critical-icon': colors['icon-critical-enabled'],
|
|
22
|
+
'label-critical-text': colors['text-critical-enabled'],
|
|
23
|
+
'label-critical-background': colors['background-critical'],
|
|
24
|
+
'label-high-icon': colors['icon-high-enabled'],
|
|
25
|
+
'label-high-text': colors['text-high-enabled'],
|
|
26
|
+
'label-high-background': colors['background-high'],
|
|
27
|
+
'label-medium-icon': colors['icon-medium-enabled'],
|
|
28
|
+
'label-medium-text': colors['text-medium-enabled'],
|
|
29
|
+
'label-medium-background': colors['background-medium'],
|
|
30
|
+
'label-minor-icon': colors['icon-minor-enabled'],
|
|
31
|
+
'label-minor-text': colors['text-minor-enabled'],
|
|
32
|
+
'label-minor-background': colors['background-minor']
|
|
33
|
+
});
|
|
@@ -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
|
+
});
|