@codacy/ui-components 0.64.18 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Banner/Banner.js +7 -7
- package/lib/Banner/Banner.styles.d.ts +2 -1
- package/lib/Banner/Banner.styles.js +8 -11
- package/lib/Banner/Banner.types.d.ts +4 -2
- package/lib/theme/ColorSchemes/codacy.d.ts +28 -8
- package/lib/theme/ColorSchemes/codacy.js +24 -14
- package/lib/theme/ColorSchemes/pulse.js +4 -4
- package/package.json +1 -1
package/lib/Banner/Banner.js
CHANGED
|
@@ -13,9 +13,8 @@ var _Flexbox = require("../Flexbox");
|
|
|
13
13
|
var _Icon = require("../Icon");
|
|
14
14
|
var _Symbols = require("../Icons/Symbols");
|
|
15
15
|
var _Typography = require("../Typography");
|
|
16
|
-
var _react2 = require("@emotion/react");
|
|
17
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var _excluded = ["title", "icon", "description", "onDismiss"];
|
|
17
|
+
var _excluded = ["title", "icon", "description", "onDismiss", "variant"];
|
|
19
18
|
/**
|
|
20
19
|
* Description for Banner
|
|
21
20
|
*/
|
|
@@ -24,11 +23,12 @@ var Banner = exports.Banner = function Banner(_ref) {
|
|
|
24
23
|
icon = _ref.icon,
|
|
25
24
|
description = _ref.description,
|
|
26
25
|
onDismiss = _ref.onDismiss,
|
|
26
|
+
_ref$variant = _ref.variant,
|
|
27
|
+
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
27
28
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
28
|
-
var theme = (0, _react2.useTheme)();
|
|
29
29
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Banner.StyledBanner, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
variant: variant,
|
|
31
|
+
p: 5
|
|
32
32
|
}, props), {}, {
|
|
33
33
|
width: "100%",
|
|
34
34
|
position: "relative",
|
|
@@ -37,7 +37,7 @@ var Banner = exports.Banner = function Banner(_ref) {
|
|
|
37
37
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
38
38
|
icon: icon || _Symbols.RocketIcon,
|
|
39
39
|
size: "lg",
|
|
40
|
-
color: "
|
|
40
|
+
color: "icon-".concat(variant)
|
|
41
41
|
})
|
|
42
42
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flexbox.Box, {
|
|
43
43
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.Subheader, {
|
|
@@ -45,7 +45,7 @@ var Banner = exports.Banner = function Banner(_ref) {
|
|
|
45
45
|
mb: 1,
|
|
46
46
|
children: title
|
|
47
47
|
}), description && typeof description === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.Paragraph, {
|
|
48
|
-
color:
|
|
48
|
+
color: "secondary",
|
|
49
49
|
children: description
|
|
50
50
|
}) : description]
|
|
51
51
|
}), onDismiss && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Banner.StyledCloseButton, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { BannerProps } from './Banner.types';
|
|
2
3
|
export declare const StyledBanner: import("@emotion/styled").StyledComponent<{
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -6,7 +7,7 @@ export declare const StyledBanner: import("@emotion/styled").StyledComponent<{
|
|
|
6
7
|
fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, import("../theme").CodacyTheme> | undefined;
|
|
7
8
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
8
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
} & import("..").FlexboxProps, {}, {}>;
|
|
10
|
+
} & import("..").FlexboxProps & Pick<BannerProps, "variant">, {}, {}>;
|
|
10
11
|
export declare const StyledCloseButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
11
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
13
|
}, {}, {}>;
|
|
@@ -8,23 +8,20 @@ exports.StyledCloseButton = exports.StyledBanner = void 0;
|
|
|
8
8
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
9
|
var _Flexbox = require("../Flexbox");
|
|
10
10
|
var _CloseButton = require("../CloseButton");
|
|
11
|
+
var _Link = require("../Link");
|
|
12
|
+
var _react = require("@emotion/react");
|
|
11
13
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
12
14
|
var StyledBanner = exports.StyledBanner = /*#__PURE__*/(0, _base["default"])(_Flexbox.Flex, process.env.NODE_ENV === "production" ? {
|
|
13
15
|
target: "e1opnk9v1"
|
|
14
16
|
} : {
|
|
15
17
|
target: "e1opnk9v1",
|
|
16
18
|
label: "codacy"
|
|
17
|
-
})(
|
|
19
|
+
})(function (_ref) {
|
|
18
20
|
var theme = _ref.theme,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return theme.colors['ui-border'];
|
|
24
|
-
}, ";border-radius:", function (_ref3) {
|
|
25
|
-
var theme = _ref3.theme;
|
|
26
|
-
return theme.radii[1];
|
|
27
|
-
}, ";position:relative;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9CYW5uZXIvQmFubmVyLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLbUQiLCJmaWxlIjoiLi4vLi4vc3JjL0Jhbm5lci9CYW5uZXIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBDb2xvciB9IGZyb20gJy4uL3RoZW1lJ1xuaW1wb3J0IHsgRmxleCwgRmxleFByb3BzIH0gZnJvbSAnLi4vRmxleGJveCdcbmltcG9ydCB7IENsb3NlQnV0dG9uIH0gZnJvbSAnLi4vQ2xvc2VCdXR0b24nXG5cbmV4cG9ydCBjb25zdCBTdHlsZWRCYW5uZXIgPSBzdHlsZWQoRmxleCk8RmxleFByb3BzPmBcbiAgYmFja2dyb3VuZDogJHsoeyB0aGVtZSwgYmFja2dyb3VuZENvbG9yIH0pID0+IHRoZW1lLmNvbG9yc1soYmFja2dyb3VuZENvbG9yIHx8ICdibGFjay01MCcpIGFzIENvbG9yXX07XG4gIGJvcmRlcjogMXB4IHNvbGlkICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuY29sb3JzWyd1aS1ib3JkZXInXX07XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucmFkaWlbMV19O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG5gXG5cbmV4cG9ydCBjb25zdCBTdHlsZWRDbG9zZUJ1dHRvbiA9IHN0eWxlZChDbG9zZUJ1dHRvbilgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAxcmVtO1xuICByaWdodDogMXJlbTtcbmBcbiJdfQ== */"));
|
|
21
|
+
_ref$variant = _ref.variant,
|
|
22
|
+
variant = _ref$variant === void 0 ? 'primary' : _ref$variant;
|
|
23
|
+
return /*#__PURE__*/(0, _react.css)("background:", theme.colors["background-".concat(variant)], ";border:1px solid ", theme.colors[variant === 'primary' ? "border-brand-primary" : "border-".concat(variant)], ";border-radius:", theme.radii[1], ";position:relative;", _Link.StyledLink, "{color:", theme.colors["accent-".concat(variant)], ";font-weight:", theme.fontWeights.bold, ";&:hover{color:", theme.colors['accent-primary-active'], ";}}" + (process.env.NODE_ENV === "production" ? "" : ";label:codacy;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9CYW5uZXIvQmFubmVyLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTMkMiLCJmaWxlIjoiLi4vLi4vc3JjL0Jhbm5lci9CYW5uZXIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBDb2xvciB9IGZyb20gJy4uL3RoZW1lJ1xuaW1wb3J0IHsgRmxleCB9IGZyb20gJy4uL0ZsZXhib3gnXG5pbXBvcnQgeyBDbG9zZUJ1dHRvbiB9IGZyb20gJy4uL0Nsb3NlQnV0dG9uJ1xuaW1wb3J0IHsgQmFubmVyUHJvcHMgfSBmcm9tICcuL0Jhbm5lci50eXBlcydcbmltcG9ydCB7IFN0eWxlZExpbmsgfSBmcm9tICcuLi9MaW5rJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmV4cG9ydCBjb25zdCBTdHlsZWRCYW5uZXIgPSBzdHlsZWQoRmxleCk8UGljazxCYW5uZXJQcm9wcywgJ3ZhcmlhbnQnPj5gXG4gICR7KHsgdGhlbWUsIHZhcmlhbnQgPSAncHJpbWFyeScgfSkgPT4gY3NzYFxuICAgIGJhY2tncm91bmQ6ICR7dGhlbWUuY29sb3JzW2BiYWNrZ3JvdW5kLSR7dmFyaWFudH1gXX07XG4gICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5jb2xvcnNbdmFyaWFudCA9PT0gJ3ByaW1hcnknID8gYGJvcmRlci1icmFuZC1wcmltYXJ5YCA6IChgYm9yZGVyLSR7dmFyaWFudH1gIGFzIENvbG9yKV19O1xuICAgIGJvcmRlci1yYWRpdXM6ICR7dGhlbWUucmFkaWlbMV19O1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICR7U3R5bGVkTGlua30ge1xuICAgICAgY29sb3I6ICR7dGhlbWUuY29sb3JzW2BhY2NlbnQtJHt2YXJpYW50fWBdfTtcbiAgICAgIGZvbnQtd2VpZ2h0OiAke3RoZW1lLmZvbnRXZWlnaHRzLmJvbGR9O1xuXG4gICAgICAmOmhvdmVyIHtcbiAgICAgICAgY29sb3I6ICR7dGhlbWUuY29sb3JzWydhY2NlbnQtcHJpbWFyeS1hY3RpdmUnXX07XG4gICAgICB9XG4gICAgfVxuICBgfVxuYFxuXG5leHBvcnQgY29uc3QgU3R5bGVkQ2xvc2VCdXR0b24gPSBzdHlsZWQoQ2xvc2VCdXR0b24pYFxuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMXJlbTtcbiAgcmlnaHQ6IDFyZW07XG5gXG4iXX0= */");
|
|
24
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9CYW5uZXIvQmFubmVyLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRc0UiLCJmaWxlIjoiLi4vLi4vc3JjL0Jhbm5lci9CYW5uZXIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBDb2xvciB9IGZyb20gJy4uL3RoZW1lJ1xuaW1wb3J0IHsgRmxleCB9IGZyb20gJy4uL0ZsZXhib3gnXG5pbXBvcnQgeyBDbG9zZUJ1dHRvbiB9IGZyb20gJy4uL0Nsb3NlQnV0dG9uJ1xuaW1wb3J0IHsgQmFubmVyUHJvcHMgfSBmcm9tICcuL0Jhbm5lci50eXBlcydcbmltcG9ydCB7IFN0eWxlZExpbmsgfSBmcm9tICcuLi9MaW5rJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmV4cG9ydCBjb25zdCBTdHlsZWRCYW5uZXIgPSBzdHlsZWQoRmxleCk8UGljazxCYW5uZXJQcm9wcywgJ3ZhcmlhbnQnPj5gXG4gICR7KHsgdGhlbWUsIHZhcmlhbnQgPSAncHJpbWFyeScgfSkgPT4gY3NzYFxuICAgIGJhY2tncm91bmQ6ICR7dGhlbWUuY29sb3JzW2BiYWNrZ3JvdW5kLSR7dmFyaWFudH1gXX07XG4gICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5jb2xvcnNbdmFyaWFudCA9PT0gJ3ByaW1hcnknID8gYGJvcmRlci1icmFuZC1wcmltYXJ5YCA6IChgYm9yZGVyLSR7dmFyaWFudH1gIGFzIENvbG9yKV19O1xuICAgIGJvcmRlci1yYWRpdXM6ICR7dGhlbWUucmFkaWlbMV19O1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICR7U3R5bGVkTGlua30ge1xuICAgICAgY29sb3I6ICR7dGhlbWUuY29sb3JzW2BhY2NlbnQtJHt2YXJpYW50fWBdfTtcbiAgICAgIGZvbnQtd2VpZ2h0OiAke3RoZW1lLmZvbnRXZWlnaHRzLmJvbGR9O1xuXG4gICAgICAmOmhvdmVyIHtcbiAgICAgICAgY29sb3I6ICR7dGhlbWUuY29sb3JzWydhY2NlbnQtcHJpbWFyeS1hY3RpdmUnXX07XG4gICAgICB9XG4gICAgfVxuICBgfVxuYFxuXG5leHBvcnQgY29uc3QgU3R5bGVkQ2xvc2VCdXR0b24gPSBzdHlsZWQoQ2xvc2VCdXR0b24pYFxuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMXJlbTtcbiAgcmlnaHQ6IDFyZW07XG5gXG4iXX0= */"));
|
|
28
25
|
var StyledCloseButton = exports.StyledCloseButton = /*#__PURE__*/(0, _base["default"])(_CloseButton.CloseButton, process.env.NODE_ENV === "production" ? {
|
|
29
26
|
target: "e1opnk9v0"
|
|
30
27
|
} : {
|
|
@@ -36,6 +33,6 @@ var StyledCloseButton = exports.StyledCloseButton = /*#__PURE__*/(0, _base["defa
|
|
|
36
33
|
} : {
|
|
37
34
|
name: "nd2ame",
|
|
38
35
|
styles: "position:absolute;top:1rem;right:1rem",
|
|
39
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
36
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9CYW5uZXIvQmFubmVyLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQm9EIiwiZmlsZSI6Ii4uLy4uL3NyYy9CYW5uZXIvQmFubmVyLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgQ29sb3IgfSBmcm9tICcuLi90aGVtZSdcbmltcG9ydCB7IEZsZXggfSBmcm9tICcuLi9GbGV4Ym94J1xuaW1wb3J0IHsgQ2xvc2VCdXR0b24gfSBmcm9tICcuLi9DbG9zZUJ1dHRvbidcbmltcG9ydCB7IEJhbm5lclByb3BzIH0gZnJvbSAnLi9CYW5uZXIudHlwZXMnXG5pbXBvcnQgeyBTdHlsZWRMaW5rIH0gZnJvbSAnLi4vTGluaydcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG5leHBvcnQgY29uc3QgU3R5bGVkQmFubmVyID0gc3R5bGVkKEZsZXgpPFBpY2s8QmFubmVyUHJvcHMsICd2YXJpYW50Jz4+YFxuICAkeyh7IHRoZW1lLCB2YXJpYW50ID0gJ3ByaW1hcnknIH0pID0+IGNzc2BcbiAgICBiYWNrZ3JvdW5kOiAke3RoZW1lLmNvbG9yc1tgYmFja2dyb3VuZC0ke3ZhcmlhbnR9YF19O1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICR7dGhlbWUuY29sb3JzW3ZhcmlhbnQgPT09ICdwcmltYXJ5JyA/IGBib3JkZXItYnJhbmQtcHJpbWFyeWAgOiAoYGJvcmRlci0ke3ZhcmlhbnR9YCBhcyBDb2xvcildfTtcbiAgICBib3JkZXItcmFkaXVzOiAke3RoZW1lLnJhZGlpWzFdfTtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG5cbiAgICAke1N0eWxlZExpbmt9IHtcbiAgICAgIGNvbG9yOiAke3RoZW1lLmNvbG9yc1tgYWNjZW50LSR7dmFyaWFudH1gXX07XG4gICAgICBmb250LXdlaWdodDogJHt0aGVtZS5mb250V2VpZ2h0cy5ib2xkfTtcblxuICAgICAgJjpob3ZlciB7XG4gICAgICAgIGNvbG9yOiAke3RoZW1lLmNvbG9yc1snYWNjZW50LXByaW1hcnktYWN0aXZlJ119O1xuICAgICAgfVxuICAgIH1cbiAgYH1cbmBcblxuZXhwb3J0IGNvbnN0IFN0eWxlZENsb3NlQnV0dG9uID0gc3R5bGVkKENsb3NlQnV0dG9uKWBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDFyZW07XG4gIHJpZ2h0OiAxcmVtO1xuYFxuIl19 */",
|
|
40
37
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
41
38
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BoxProps } from '../Flexbox';
|
|
3
2
|
import { ContainerComponentProps } from '../types';
|
|
4
3
|
import { IconFile } from '../Icon/Icon.types';
|
|
5
|
-
|
|
4
|
+
import { FlexProps } from '../Flexbox';
|
|
5
|
+
export declare type BannerVariant = 'primary' | 'danger' | 'attention';
|
|
6
|
+
export interface BannerProps extends FlexProps, ContainerComponentProps {
|
|
6
7
|
title: string;
|
|
7
8
|
description?: React.ReactNode;
|
|
8
9
|
icon?: IconFile;
|
|
9
10
|
onDismiss?: () => void;
|
|
11
|
+
variant?: BannerVariant;
|
|
10
12
|
}
|
|
@@ -48,11 +48,17 @@ export declare const baseColors: {
|
|
|
48
48
|
'turquoise-200': string;
|
|
49
49
|
'turquoise-100': string;
|
|
50
50
|
'turquoise-80': string;
|
|
51
|
-
'red-
|
|
52
|
-
'red-
|
|
53
|
-
'red-
|
|
54
|
-
'red-
|
|
51
|
+
'red-99': string;
|
|
52
|
+
'red-95': string;
|
|
53
|
+
'red-90': string;
|
|
54
|
+
'red-80': string;
|
|
55
|
+
'red-70': string;
|
|
56
|
+
'red-60': string;
|
|
55
57
|
'red-50': string;
|
|
58
|
+
'red-40': string;
|
|
59
|
+
'red-30': string;
|
|
60
|
+
'red-20': string;
|
|
61
|
+
'red-10': string;
|
|
56
62
|
'green-300': string;
|
|
57
63
|
'green-200': string;
|
|
58
64
|
'green-100': string;
|
|
@@ -112,11 +118,17 @@ export declare const functionalColorsFx: (colors: {
|
|
|
112
118
|
"turquoise-200": string;
|
|
113
119
|
"turquoise-100": string;
|
|
114
120
|
"turquoise-80": string;
|
|
115
|
-
"red-
|
|
116
|
-
"red-
|
|
117
|
-
"red-
|
|
118
|
-
"red-
|
|
121
|
+
"red-99": string;
|
|
122
|
+
"red-95": string;
|
|
123
|
+
"red-90": string;
|
|
124
|
+
"red-80": string;
|
|
125
|
+
"red-70": string;
|
|
126
|
+
"red-60": string;
|
|
119
127
|
"red-50": string;
|
|
128
|
+
"red-40": string;
|
|
129
|
+
"red-30": string;
|
|
130
|
+
"red-20": string;
|
|
131
|
+
"red-10": string;
|
|
120
132
|
"green-300": string;
|
|
121
133
|
"green-200": string;
|
|
122
134
|
"green-100": string;
|
|
@@ -177,11 +189,15 @@ export declare const functionalColorsFx: (colors: {
|
|
|
177
189
|
'ui-border': string;
|
|
178
190
|
'ui-navbar': string;
|
|
179
191
|
'ui-navbar-text': string;
|
|
192
|
+
'border-brand-primary': string;
|
|
193
|
+
'border-danger': string;
|
|
194
|
+
'border-attention': string;
|
|
180
195
|
'icon-primary': string;
|
|
181
196
|
'icon-info': string;
|
|
182
197
|
'icon-success': string;
|
|
183
198
|
'icon-warning': string;
|
|
184
199
|
'icon-danger': string;
|
|
200
|
+
'icon-attention': string;
|
|
185
201
|
'neutral-900': string;
|
|
186
202
|
'neutral-800': string;
|
|
187
203
|
'neutral-700': string;
|
|
@@ -246,11 +262,15 @@ declare const functionalColors: {
|
|
|
246
262
|
'ui-border': string;
|
|
247
263
|
'ui-navbar': string;
|
|
248
264
|
'ui-navbar-text': string;
|
|
265
|
+
'border-brand-primary': string;
|
|
266
|
+
'border-danger': string;
|
|
267
|
+
'border-attention': string;
|
|
249
268
|
'icon-primary': string;
|
|
250
269
|
'icon-info': string;
|
|
251
270
|
'icon-success': string;
|
|
252
271
|
'icon-warning': string;
|
|
253
272
|
'icon-danger': string;
|
|
273
|
+
'icon-attention': string;
|
|
254
274
|
'neutral-900': string;
|
|
255
275
|
'neutral-800': string;
|
|
256
276
|
'neutral-700': string;
|
|
@@ -63,11 +63,17 @@ var baseColors = exports.baseColors = {
|
|
|
63
63
|
'turquoise-100': '#EAF6F6',
|
|
64
64
|
'turquoise-80': '#F7F8FA',
|
|
65
65
|
// REDS
|
|
66
|
-
'red-
|
|
67
|
-
'red-
|
|
68
|
-
'red-
|
|
69
|
-
'red-
|
|
70
|
-
'red-
|
|
66
|
+
'red-99': '#FFF6F5',
|
|
67
|
+
'red-95': '#FFEDEB',
|
|
68
|
+
'red-90': '#FFDAD6',
|
|
69
|
+
'red-80': '#FFB3AD',
|
|
70
|
+
'red-70': '#FF8980',
|
|
71
|
+
'red-60': '#FB5851',
|
|
72
|
+
'red-50': '#D52E2A',
|
|
73
|
+
'red-40': '#CC292B',
|
|
74
|
+
'red-30': '#960311',
|
|
75
|
+
'red-20': '#680008',
|
|
76
|
+
'red-10': '#410003',
|
|
71
77
|
// GREENS
|
|
72
78
|
'green-300': '#1B7E37',
|
|
73
79
|
'green-200': '#25B14D',
|
|
@@ -97,11 +103,11 @@ var functionalColorsFx = exports.functionalColorsFx = function functionalColorsF
|
|
|
97
103
|
'accent-success-focus': colors['green-200'],
|
|
98
104
|
'accent-success-active': colors['green-300'],
|
|
99
105
|
'accent-success-disabled': colors['green-80'],
|
|
100
|
-
'accent-danger': colors['red-
|
|
101
|
-
'accent-danger-hover': colors['red-
|
|
102
|
-
'accent-danger-focus': colors['red-
|
|
103
|
-
'accent-danger-active': colors['red-
|
|
104
|
-
'accent-danger-disabled': colors['red-
|
|
106
|
+
'accent-danger': colors['red-40'],
|
|
107
|
+
'accent-danger-hover': colors['red-30'],
|
|
108
|
+
'accent-danger-focus': colors['red-30'],
|
|
109
|
+
'accent-danger-active': colors['red-20'],
|
|
110
|
+
'accent-danger-disabled': colors['red-80'],
|
|
105
111
|
'accent-warning': colors['orange-100'],
|
|
106
112
|
'accent-info': colors['blue-600'],
|
|
107
113
|
'accent-attention': colors['purple-400'],
|
|
@@ -113,30 +119,34 @@ var functionalColorsFx = exports.functionalColorsFx = function functionalColorsF
|
|
|
113
119
|
'text-info': colors['blue-800'],
|
|
114
120
|
'text-success': colors['green-300'],
|
|
115
121
|
'text-warning': colors['orange-200'],
|
|
116
|
-
'text-danger': colors['red-
|
|
122
|
+
'text-danger': colors['red-40'],
|
|
117
123
|
'text-attention': colors['purple-600'],
|
|
118
124
|
'background-primary': colors['white'],
|
|
119
125
|
'background-secondary': colors['black-50'],
|
|
120
126
|
'background-info': colors['blue-50'],
|
|
121
127
|
'background-success': colors['green-50'],
|
|
122
128
|
'background-warning': colors['orange-50'],
|
|
123
|
-
'background-danger': colors['red-
|
|
129
|
+
'background-danger': colors['red-95'],
|
|
124
130
|
'background-attention': colors['purple-100'],
|
|
125
131
|
'background-neutral': colors['black-80'],
|
|
126
132
|
'control-border': colors['blue-300'],
|
|
127
133
|
'control-background': colors['white'],
|
|
128
134
|
'control-active-background': colors['black-60'],
|
|
129
135
|
'control-active-border': colors['blue-700'],
|
|
130
|
-
'control-invalid-border': colors['red-
|
|
136
|
+
'control-invalid-border': colors['red-40'],
|
|
131
137
|
'control-disabled': colors['blue-100'],
|
|
132
138
|
'ui-border': colors['black-80'],
|
|
133
139
|
'ui-navbar': colors['black-700'],
|
|
134
140
|
'ui-navbar-text': colors['black-100'],
|
|
141
|
+
'border-brand-primary': colors['blue-400'],
|
|
142
|
+
'border-danger': colors['red-40'],
|
|
143
|
+
'border-attention': colors['purple-400'],
|
|
135
144
|
'icon-primary': colors['black-200'],
|
|
136
145
|
'icon-info': colors['blue-700'],
|
|
137
146
|
'icon-success': colors['green-200'],
|
|
138
147
|
'icon-warning': colors['orange-100'],
|
|
139
|
-
'icon-danger': colors['red-
|
|
148
|
+
'icon-danger': colors['red-40'],
|
|
149
|
+
'icon-attention': colors['purple-500'],
|
|
140
150
|
// NEUTRAL
|
|
141
151
|
'neutral-900': colors['black-700'],
|
|
142
152
|
'neutral-800': colors['black-600'],
|
|
@@ -32,7 +32,7 @@ var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["defaul
|
|
|
32
32
|
'text-info': baseColors['turquoise-600'],
|
|
33
33
|
// 'text-success': baseColors['green-300'],
|
|
34
34
|
// 'text-warning': baseColors['orange-200'],
|
|
35
|
-
// 'text-danger': baseColors['red-
|
|
35
|
+
// 'text-danger': baseColors['red-40'],
|
|
36
36
|
// 'text-attention': baseColors['purple-600'],
|
|
37
37
|
|
|
38
38
|
// 'background-primary': baseColors['white'],
|
|
@@ -40,7 +40,7 @@ var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["defaul
|
|
|
40
40
|
'background-info': baseColors['turquoise-80'],
|
|
41
41
|
// 'background-success': baseColors['green-50'],
|
|
42
42
|
// 'background-warning': baseColors['orange-50'],
|
|
43
|
-
// 'background-danger': baseColors['red-
|
|
43
|
+
// 'background-danger': baseColors['red-90'],
|
|
44
44
|
// 'background-attention': baseColors['purple-100'],
|
|
45
45
|
// 'background-neutral': baseColors['black-80'],
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["defaul
|
|
|
48
48
|
//'control-background': baseColors['white'],
|
|
49
49
|
'control-active-background': baseColors['white'],
|
|
50
50
|
'control-active-border': baseColors['turquoise-400'],
|
|
51
|
-
'control-invalid-border': baseColors['red-
|
|
51
|
+
'control-invalid-border': baseColors['red-90'],
|
|
52
52
|
'control-disabled': baseColors['black-80'],
|
|
53
53
|
//'ui-border': baseColors['black-80'],
|
|
54
54
|
'ui-navbar': baseColors['turquoise-80'],
|
|
@@ -57,6 +57,6 @@ var functionalColors = (0, _objectSpread2["default"])((0, _objectSpread2["defaul
|
|
|
57
57
|
'icon-info': baseColors['turquoise-400']
|
|
58
58
|
// 'icon-success': baseColors['green-200'],
|
|
59
59
|
// 'icon-warning': baseColors['orange-100'],
|
|
60
|
-
// 'icon-danger': baseColors['red-
|
|
60
|
+
// 'icon-danger': baseColors['red-40'],
|
|
61
61
|
});
|
|
62
62
|
var pulseThemeColors = exports.pulseThemeColors = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, baseColors), functionalColors);
|