@veracity/vui 2.0.2 → 2.0.3
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.
|
@@ -22,7 +22,7 @@ const utils_1 = require("../utils");
|
|
|
22
22
|
const context_1 = require("./context");
|
|
23
23
|
const Badge = core_1.styled.spanBox `
|
|
24
24
|
align-items: center;
|
|
25
|
-
background-color:
|
|
25
|
+
background-color: hsl(357, 83%, 60%);
|
|
26
26
|
border-radius: round;
|
|
27
27
|
color: white;
|
|
28
28
|
display: flex;
|
|
@@ -41,7 +41,7 @@ exports.HeaderNotifications = (0, core_1.vui)((props, ref) => {
|
|
|
41
41
|
const { children, className, count = 0, url } = props, rest = __rest(props, ["children", "className", "count", "url"]);
|
|
42
42
|
const { links } = (_a = (0, context_1.useHeaderContext)()) !== null && _a !== void 0 ? _a : {};
|
|
43
43
|
const styles = (0, core_1.useStyleConfig)('Header', (0, context_1.useHeaderContext)()).notifications;
|
|
44
|
-
return (react_1.default.createElement(button_1.default, Object.assign({ as: "a", className: (0, utils_1.cs)('vui-headerNotifications', className), href: url !== null && url !== void 0 ? url : links.notifications, minW: 0, ml: 1, position: "relative", px: "7px", ref: ref, title: "Notifications", variant: "
|
|
44
|
+
return (react_1.default.createElement(button_1.default, Object.assign({ as: "a", className: (0, utils_1.cs)('vui-headerNotifications', className), href: url !== null && url !== void 0 ? url : links.notifications, minW: 0, ml: 1, position: "relative", px: "7px", ref: ref, title: "Notifications", variant: "tertiaryDark" }, styles.container, rest), children !== null && children !== void 0 ? children : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
45
45
|
react_1.default.createElement(button_1.default.Icon, { name: "falBell" }),
|
|
46
46
|
count > 0 && react_1.default.createElement(Badge, null, count < 100 ? count : '99+')))));
|
|
47
47
|
});
|
|
@@ -5,7 +5,7 @@ import { cs } from '../utils';
|
|
|
5
5
|
import { useHeaderContext } from './context';
|
|
6
6
|
const Badge = styled.spanBox `
|
|
7
7
|
align-items: center;
|
|
8
|
-
background-color:
|
|
8
|
+
background-color: hsl(357, 83%, 60%);
|
|
9
9
|
border-radius: round;
|
|
10
10
|
color: white;
|
|
11
11
|
display: flex;
|
|
@@ -23,7 +23,7 @@ export const HeaderNotifications = vui((props, ref) => {
|
|
|
23
23
|
const { children, className, count = 0, url, ...rest } = props;
|
|
24
24
|
const { links } = useHeaderContext() ?? {};
|
|
25
25
|
const styles = useStyleConfig('Header', useHeaderContext()).notifications;
|
|
26
|
-
return (React.createElement(Button, { as: "a", className: cs('vui-headerNotifications', className), href: url ?? links.notifications, minW: 0, ml: 1, position: "relative", px: "7px", ref: ref, title: "Notifications", variant: "
|
|
26
|
+
return (React.createElement(Button, { as: "a", className: cs('vui-headerNotifications', className), href: url ?? links.notifications, minW: 0, ml: 1, position: "relative", px: "7px", ref: ref, title: "Notifications", variant: "tertiaryDark", ...styles.container, ...rest }, children ?? (React.createElement(React.Fragment, null,
|
|
27
27
|
React.createElement(Button.Icon, { name: "falBell" }),
|
|
28
28
|
count > 0 && React.createElement(Badge, null, count < 100 ? count : '99+')))));
|
|
29
29
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -8,7 +8,7 @@ import { HeaderNotificationsProps } from './header.types'
|
|
|
8
8
|
|
|
9
9
|
const Badge = styled.spanBox`
|
|
10
10
|
align-items: center;
|
|
11
|
-
background-color:
|
|
11
|
+
background-color: hsl(357, 83%, 60%);
|
|
12
12
|
border-radius: round;
|
|
13
13
|
color: white;
|
|
14
14
|
display: flex;
|
|
@@ -39,7 +39,7 @@ export const HeaderNotifications = vui<'a', HeaderNotificationsProps>((props, re
|
|
|
39
39
|
px="7px"
|
|
40
40
|
ref={ref}
|
|
41
41
|
title="Notifications"
|
|
42
|
-
variant="
|
|
42
|
+
variant="tertiaryDark"
|
|
43
43
|
{...styles.container}
|
|
44
44
|
{...rest}
|
|
45
45
|
>
|