@veracity/vui 2.13.3 → 2.13.4
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/dist/cjs/header/headerApplicationName.d.ts.map +1 -1
- package/dist/cjs/header/headerApplicationName.js +3 -11
- package/dist/cjs/header/headerMobileContent.js +2 -2
- package/dist/cjs/header/headerServices.d.ts.map +1 -1
- package/dist/cjs/header/headerServices.js +4 -4
- package/dist/cjs/header/headerSupport.js +1 -1
- package/dist/cjs/header/loggedInHeader.d.ts.map +1 -1
- package/dist/cjs/header/loggedInHeader.js +6 -3
- package/dist/cjs/menu/menuList.js +1 -1
- package/dist/cjs/tag/tag.d.ts.map +1 -1
- package/dist/cjs/tag/tag.js +1 -1
- package/dist/cjs/tag/tag.types.d.ts +2 -2
- package/dist/cjs/tag/tag.types.d.ts.map +1 -1
- package/dist/esm/header/headerApplicationName.d.ts.map +1 -1
- package/dist/esm/header/headerApplicationName.js +3 -11
- package/dist/esm/header/headerMobileContent.js +3 -3
- package/dist/esm/header/headerServices.d.ts.map +1 -1
- package/dist/esm/header/headerServices.js +4 -4
- package/dist/esm/header/headerSupport.js +1 -1
- package/dist/esm/header/loggedInHeader.d.ts.map +1 -1
- package/dist/esm/header/loggedInHeader.js +6 -3
- package/dist/esm/menu/menuList.js +1 -1
- package/dist/esm/tag/tag.d.ts.map +1 -1
- package/dist/esm/tag/tag.js +1 -1
- package/dist/esm/tag/tag.types.d.ts +2 -2
- package/dist/esm/tag/tag.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/header/headerApplicationName.tsx +3 -11
- package/src/header/headerMobileContent.tsx +4 -4
- package/src/header/headerServices.tsx +4 -3
- package/src/header/headerSupport.tsx +1 -1
- package/src/header/loggedInHeader.tsx +4 -11
- package/src/menu/menuList.tsx +1 -1
- package/src/tag/tag.tsx +5 -1
- package/src/tag/tag.types.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerApplicationName.d.ts","sourceRoot":"","sources":["../../../src/header/headerApplicationName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,uDAAuD;AACvD,eAAO,MAAM,qBAAqB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"headerApplicationName.d.ts","sourceRoot":"","sources":["../../../src/header/headerApplicationName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,uDAAuD;AACvD,eAAO,MAAM,qBAAqB;;;;;;;;EAgChC,CAAA;AAIF,eAAe,qBAAqB,CAAA"}
|
|
@@ -31,17 +31,9 @@ exports.HeaderApplicationName = (0, core_1.vui)((props, ref) => {
|
|
|
31
31
|
mt: 0
|
|
32
32
|
}
|
|
33
33
|
: {
|
|
34
|
-
fontSize:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
mx: '-16px',
|
|
38
|
-
w: '100%',
|
|
39
|
-
bg: 'skyBlue.97',
|
|
40
|
-
py: '8px',
|
|
41
|
-
px: '16px',
|
|
42
|
-
lineHeight: '24px',
|
|
43
|
-
borderBottom: '1px solid darkBlue.main',
|
|
44
|
-
borderTop: '1px solid darkBlue.main'
|
|
34
|
+
fontSize: 18,
|
|
35
|
+
maxW: '156px',
|
|
36
|
+
lineHeight: '21px'
|
|
45
37
|
};
|
|
46
38
|
const linkProps = url ? { as: 'a', href: url, outline: 'none', focusRing: 2 } : {};
|
|
47
39
|
return (react_1.default.createElement(box_1.Box, Object.assign({}, linkProps),
|
|
@@ -26,8 +26,8 @@ exports.HeaderMobileContent = (0, core_1.vui)((props, ref) => {
|
|
|
26
26
|
const { className } = props, rest = __rest(props, ["className"]);
|
|
27
27
|
const { isMobileOpen, mobileContentRef } = (_a = (0, context_1.useHeaderContext)()) !== null && _a !== void 0 ? _a : {};
|
|
28
28
|
const styles = (0, core_1.useStyleConfig)('Header', (0, context_1.useHeaderContext)());
|
|
29
|
-
const
|
|
30
|
-
return isMobileOpen ? (react_1.default.createElement(box_1.default, Object.assign({ bg: "white", className: (0, utils_1.cs)('vui-headerMobileContent', className), column: true, overflowX: "hidden", overflowY: "auto", position: "absolute", ref: (0, utils_1.mergeRefs)(ref, mobileContentRef), right:
|
|
29
|
+
const islargerThanTablet = (0, core_1.useUp)('lg');
|
|
30
|
+
return isMobileOpen ? (react_1.default.createElement(box_1.default, Object.assign({ bg: "white", className: (0, utils_1.cs)('vui-headerMobileContent', className), column: true, overflowX: "hidden", overflowY: "auto", position: "absolute", ref: (0, utils_1.mergeRefs)(ref, mobileContentRef), right: islargerThanTablet ? '-40px' : '-16px', shadow: 2, top: "calc(100% + 1px)", w: islargerThanTablet ? 320 : 280, zIndex: "100" }, styles.mobileContent, rest))) : null;
|
|
31
31
|
});
|
|
32
32
|
exports.HeaderMobileContent.displayName = 'HeaderMobileContent';
|
|
33
33
|
exports.default = exports.HeaderMobileContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerServices.d.ts","sourceRoot":"","sources":["../../../src/header/headerServices.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAoBpD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"headerServices.d.ts","sourceRoot":"","sources":["../../../src/header/headerServices.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAoBpD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAuCxD;yBAvCe,cAAc;;;AA2C9B,eAAe,cAAc,CAAA"}
|
|
@@ -30,15 +30,15 @@ function ListContent({ links = [] }) {
|
|
|
30
30
|
function HeaderServices(props) {
|
|
31
31
|
const { buttonProps, isApplication = false, links = [], showTopBorder = false } = props, rest = __rest(props, ["buttonProps", "isApplication", "links", "showTopBorder"]);
|
|
32
32
|
const styles = (0, core_1.useStyleConfig)('Header', (0, context_1.useHeaderContext)()).services;
|
|
33
|
-
const offsetX = isApplication ?
|
|
33
|
+
const offsetX = isApplication ? 179 : 135;
|
|
34
34
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
35
35
|
react_1.default.createElement(core_1.RenderOnScreen, { minWidth: "lg" },
|
|
36
|
-
react_1.default.createElement(menu_1.default, Object.assign({ isLazy: false, offset: [offsetX,
|
|
36
|
+
react_1.default.createElement(menu_1.default, Object.assign({ isLazy: false, offset: [offsetX, 17], placement: "bottom-end", size: "lg" }, rest),
|
|
37
37
|
react_1.default.createElement(menu_1.default.Button, Object.assign({ className: "vui-services-trigger", icon: "falTh", size: "lg", title: "My services" }, styles.button, buttonProps)),
|
|
38
|
-
react_1.default.createElement(menu_1.default.List, Object.assign({ heading: "My Services", maxH:
|
|
38
|
+
react_1.default.createElement(menu_1.default.List, Object.assign({ heading: "My Services", maxH: 295, right: 0, w: 320 }, styles.list),
|
|
39
39
|
react_1.default.createElement(ListContent, { links: links })))),
|
|
40
40
|
react_1.default.createElement(core_1.RenderOnScreen, { maxWidth: "lg" },
|
|
41
|
-
react_1.default.createElement(list_1.default, Object.assign({ heading: "My Services" }, styles.list, { borderTop: showTopBorder ? 1 : 0, borderTopColor: "sandstone.main", pt: 1 }),
|
|
41
|
+
react_1.default.createElement(list_1.default, Object.assign({ heading: "My Services" }, styles.list, { borderTop: showTopBorder ? 1 : 0, borderTopColor: "sandstone.main", maxH: 295, pt: 1 }),
|
|
42
42
|
react_1.default.createElement(ListContent, { links: links })))));
|
|
43
43
|
}
|
|
44
44
|
exports.HeaderServices = HeaderServices;
|
|
@@ -38,7 +38,7 @@ function HeaderSupport(props) {
|
|
|
38
38
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
39
39
|
react_1.default.createElement(menu_1.default, Object.assign({ isLazy: false, offset: [offsetX, 16], placement: "bottom-end", size: "lg" }, rest),
|
|
40
40
|
react_1.default.createElement(menu_1.default.Button, Object.assign({ className: "vui-app-info-trigger", color: styles.button.color, icon: "falQuestionCircle", ml: 1, size: "lg", title: "My services" }, styles.button)),
|
|
41
|
-
react_1.default.createElement(menu_1.default.List, Object.assign({ maxH:
|
|
41
|
+
react_1.default.createElement(menu_1.default.List, Object.assign({ maxH: 295, right: 0, w: isTablet ? 280 : 320 }, styles.list),
|
|
42
42
|
react_1.default.createElement(ListContent, { links: links })))));
|
|
43
43
|
}
|
|
44
44
|
exports.HeaderSupport = HeaderSupport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loggedInHeader.d.ts","sourceRoot":"","sources":["../../../src/header/loggedInHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGpE,uHAAuH;AACvH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"loggedInHeader.d.ts","sourceRoot":"","sources":["../../../src/header/loggedInHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGpE,uHAAuH;AACvH,eAAO,MAAM,cAAc,4DAoJzB,CAAA;AAIF,eAAe,cAAc,CAAA"}
|
|
@@ -33,13 +33,16 @@ exports.LoggedInHeader = (0, core_1.vui)((props, ref) => {
|
|
|
33
33
|
}
|
|
34
34
|
const userInfo = !(0, utils_1.isJsx)(account) ? (account === null || account === void 0 ? void 0 : account.userInfo) || {} : {};
|
|
35
35
|
const isSmallScreen = (0, core_1.useDown)('md');
|
|
36
|
+
const isLessThanMD = (0, core_1.useDown)('sm');
|
|
36
37
|
const servicesLinks = (0, utils_1.isJsx)(services) ? [] : (services === null || services === void 0 ? void 0 : services.links) || [];
|
|
37
38
|
const styles = (0, core_1.useStyleConfig)('Header', (0, context_1.useHeaderContext)());
|
|
38
39
|
return (react_1.default.createElement(header_1.default, Object.assign({ className: (0, utils_1.cs)('vui-loggedInHeader', isApplication ? 'vui-loggedInAppHeader' : '', className), mb: isApplication && isSmallScreen ? '41px' : 'inherited', ref: ref }, rest),
|
|
39
40
|
react_1.default.createElement(header_1.default.Content, null,
|
|
40
|
-
(
|
|
41
|
+
(!isApplication || !isLessThanMD) && react_1.default.createElement(react_1.default.Fragment, null,
|
|
42
|
+
" ",
|
|
43
|
+
(0, utils_1.isJsx)(logo) ? logo : react_1.default.createElement(header_1.default.Logo, Object.assign({}, logo))),
|
|
41
44
|
isApplication && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
42
|
-
react_1.default.createElement(core_1.RenderOnScreen, { minWidth: "
|
|
45
|
+
react_1.default.createElement(core_1.RenderOnScreen, { minWidth: "sm" },
|
|
43
46
|
react_1.default.createElement(header_1.default.Divider, { mr: 2 })),
|
|
44
47
|
react_1.default.createElement(header_1.default.ApplicationName, { title: applicationName, url: applicationUrl || '/' }))),
|
|
45
48
|
!isApplication && react_1.default.createElement(core_1.RenderOnScreen, { minWidth: "lg" }, children),
|
|
@@ -64,7 +67,7 @@ exports.LoggedInHeader = (0, core_1.vui)((props, ref) => {
|
|
|
64
67
|
return (react_1.default.createElement(list_1.default.Item, Object.assign({ iconLeft: icon, key: index, linkProps: { href: url } }, rest)));
|
|
65
68
|
})))),
|
|
66
69
|
!showServices && servicesLinks && (react_1.default.createElement(box_1.default, { column: true, w: 1 },
|
|
67
|
-
react_1.default.createElement(list_1.default, Object.assign({ heading: "My Services", maxH:
|
|
70
|
+
react_1.default.createElement(list_1.default, Object.assign({ heading: "My Services", maxH: 295, right: 0, w: 320 }, styles.services.list, { borderTop: 1, borderTopColor: "sandstone.main", pt: 1 }), servicesLinks === null || servicesLinks === void 0 ? void 0 : servicesLinks.map((_a, index) => {
|
|
68
71
|
var { url } = _a, rest = __rest(_a, ["url"]);
|
|
69
72
|
return (react_1.default.createElement(list_1.default.Item, Object.assign({ key: index, linkProps: { href: url } }, rest)));
|
|
70
73
|
})))))))),
|
|
@@ -26,7 +26,7 @@ exports.MenuList = (0, core_1.vui)((props, ref) => {
|
|
|
26
26
|
const { className, contentProps, contentRef } = props, rest = __rest(props, ["className", "contentProps", "contentRef"]);
|
|
27
27
|
const styles = (0, core_1.useStyleConfig)('Menu', (0, context_1.useMenuContext)());
|
|
28
28
|
return (react_1.default.createElement(popover_1.PopoverContent, Object.assign({ borderRadius: 0, ref: contentRef }, contentProps),
|
|
29
|
-
react_1.default.createElement(list_1.default, Object.assign({ className: (0, utils_1.cs)('vui-menuList', className), py: 1, ref: ref, w: "100%" }, styles.list, rest))));
|
|
29
|
+
react_1.default.createElement(list_1.default, Object.assign({ className: (0, utils_1.cs)('vui-menuList', className), py: 1, ref: ref, w: "100%" }, styles.list, rest, { maxH: 295 }))));
|
|
30
30
|
});
|
|
31
31
|
exports.MenuList.Divider = list_1.default.Divider;
|
|
32
32
|
exports.MenuList.Heading = list_1.default.Heading;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,YAAY,EAAE,MAAM,SAAS,CAAA;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,eAAO,MAAM,OAAO,gIAsBnB,CAAA;AACD;;;GAGG;AACH,eAAO,MAAM,GAAG;
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,YAAY,EAAE,MAAM,SAAS,CAAA;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,eAAO,MAAM,OAAO,gIAsBnB,CAAA;AACD;;;GAGG;AACH,eAAO,MAAM,GAAG;YA+FN,gBAAgB;UAClB,cAAc;UACd,cAAc;CACrB,CAAA;AAQD,eAAe,GAAG,CAAA"}
|
package/dist/cjs/tag/tag.js
CHANGED
|
@@ -107,7 +107,7 @@ exports.Tag = (0, core_1.vui)((props, ref) => {
|
|
|
107
107
|
itemLeft,
|
|
108
108
|
(0, utils_1.isString)(iconLeft) ? react_1.default.createElement(tagIcon_1.default, { mr: spaceX, name: iconLeft }) : iconLeft, children !== null && children !== void 0 ? children : ((0, utils_1.isReactText)(text) ? react_1.default.createElement(tagText_1.default, Object.assign({}, { isTruncated, text })) : text),
|
|
109
109
|
(0, utils_1.isString)(iconRight) ? react_1.default.createElement(tagIcon_1.default, { ml: spaceX, name: iconRight }) : iconRight,
|
|
110
|
-
onDelete ? react_1.default.createElement(tagButton_1.default, { disabled: disabled, isRound: isRound, ml: spaceX, onClick: onDelete }) : itemRight)))));
|
|
110
|
+
onDelete ? (react_1.default.createElement(tagButton_1.default, { disabled: disabled, isRound: isRound, ml: spaceX, onClick: e => onDelete === null || onDelete === void 0 ? void 0 : onDelete(e) })) : (itemRight))))));
|
|
111
111
|
});
|
|
112
112
|
exports.Tag.Button = tagButton_1.default;
|
|
113
113
|
exports.Tag.Icon = tagIcon_1.default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IconProp } from '../icon';
|
|
3
3
|
import { SystemProps, TypographyProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
@@ -26,7 +26,7 @@ export type TagInnerProps = {
|
|
|
26
26
|
/** Socket displaying a custom item on right left. */
|
|
27
27
|
itemRight?: React.ReactNode;
|
|
28
28
|
/** If provided, displays a remove button with this function as onClick. */
|
|
29
|
-
onDelete?: () => void;
|
|
29
|
+
onDelete?: (nativeEvent?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
30
30
|
/** Socket displaying text as alternative to children. */
|
|
31
31
|
text?: React.ReactNode;
|
|
32
32
|
/** Alias for fontWeight prop. @deprecated */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,MAAM,aAAa,GAAG;IAC1B,gDAAgD;IAChD,MAAM,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAA;IACzC,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAA;IACvE,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IACjC,gDAAgD;IAChD,SAAS,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAClC,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iKAAiK;IACjK,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IAClF,yDAAyD;IACzD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerApplicationName.d.ts","sourceRoot":"","sources":["../../../src/header/headerApplicationName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,uDAAuD;AACvD,eAAO,MAAM,qBAAqB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"headerApplicationName.d.ts","sourceRoot":"","sources":["../../../src/header/headerApplicationName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,uDAAuD;AACvD,eAAO,MAAM,qBAAqB;;;;;;;;EAgChC,CAAA;AAIF,eAAe,qBAAqB,CAAA"}
|
|
@@ -14,17 +14,9 @@ export const HeaderApplicationName = vui((props, ref) => {
|
|
|
14
14
|
mt: 0
|
|
15
15
|
}
|
|
16
16
|
: {
|
|
17
|
-
fontSize:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
mx: '-16px',
|
|
21
|
-
w: '100%',
|
|
22
|
-
bg: 'skyBlue.97',
|
|
23
|
-
py: '8px',
|
|
24
|
-
px: '16px',
|
|
25
|
-
lineHeight: '24px',
|
|
26
|
-
borderBottom: '1px solid darkBlue.main',
|
|
27
|
-
borderTop: '1px solid darkBlue.main'
|
|
17
|
+
fontSize: 18,
|
|
18
|
+
maxW: '156px',
|
|
19
|
+
lineHeight: '21px'
|
|
28
20
|
};
|
|
29
21
|
const linkProps = url ? { as: 'a', href: url, outline: 'none', focusRing: 2 } : {};
|
|
30
22
|
return (React.createElement(Box, { ...linkProps },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Box from '../box';
|
|
3
|
-
import {
|
|
3
|
+
import { useStyleConfig, useUp, vui } from '../core';
|
|
4
4
|
import { cs, mergeRefs } from '../utils';
|
|
5
5
|
import { useHeaderContext } from './context';
|
|
6
6
|
/** Displays part of the Header content when on a mobile screen. */
|
|
@@ -8,8 +8,8 @@ export const HeaderMobileContent = vui((props, ref) => {
|
|
|
8
8
|
const { className, ...rest } = props;
|
|
9
9
|
const { isMobileOpen, mobileContentRef } = useHeaderContext() ?? {};
|
|
10
10
|
const styles = useStyleConfig('Header', useHeaderContext());
|
|
11
|
-
const
|
|
12
|
-
return isMobileOpen ? (React.createElement(Box, { bg: "white", className: cs('vui-headerMobileContent', className), column: true, overflowX: "hidden", overflowY: "auto", position: "absolute", ref: mergeRefs(ref, mobileContentRef), right:
|
|
11
|
+
const islargerThanTablet = useUp('lg');
|
|
12
|
+
return isMobileOpen ? (React.createElement(Box, { bg: "white", className: cs('vui-headerMobileContent', className), column: true, overflowX: "hidden", overflowY: "auto", position: "absolute", ref: mergeRefs(ref, mobileContentRef), right: islargerThanTablet ? '-40px' : '-16px', shadow: 2, top: "calc(100% + 1px)", w: islargerThanTablet ? 320 : 280, zIndex: "100", ...styles.mobileContent, ...rest })) : null;
|
|
13
13
|
});
|
|
14
14
|
HeaderMobileContent.displayName = 'HeaderMobileContent';
|
|
15
15
|
export default HeaderMobileContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerServices.d.ts","sourceRoot":"","sources":["../../../src/header/headerServices.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAoBpD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"headerServices.d.ts","sourceRoot":"","sources":["../../../src/header/headerServices.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAoBpD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAuCxD;yBAvCe,cAAc;;;AA2C9B,eAAe,cAAc,CAAA"}
|
|
@@ -13,15 +13,15 @@ function ListContent({ links = [] }) {
|
|
|
13
13
|
export function HeaderServices(props) {
|
|
14
14
|
const { buttonProps, isApplication = false, links = [], showTopBorder = false, ...rest } = props;
|
|
15
15
|
const styles = useStyleConfig('Header', useHeaderContext()).services;
|
|
16
|
-
const offsetX = isApplication ?
|
|
16
|
+
const offsetX = isApplication ? 179 : 135;
|
|
17
17
|
return (React.createElement(React.Fragment, null,
|
|
18
18
|
React.createElement(RenderOnScreen, { minWidth: "lg" },
|
|
19
|
-
React.createElement(Menu, { isLazy: false, offset: [offsetX,
|
|
19
|
+
React.createElement(Menu, { isLazy: false, offset: [offsetX, 17], placement: "bottom-end", size: "lg", ...rest },
|
|
20
20
|
React.createElement(Menu.Button, { className: "vui-services-trigger", icon: "falTh", size: "lg", title: "My services", ...styles.button, ...buttonProps }),
|
|
21
|
-
React.createElement(Menu.List, { heading: "My Services", maxH:
|
|
21
|
+
React.createElement(Menu.List, { heading: "My Services", maxH: 295, right: 0, w: 320, ...styles.list },
|
|
22
22
|
React.createElement(ListContent, { links: links })))),
|
|
23
23
|
React.createElement(RenderOnScreen, { maxWidth: "lg" },
|
|
24
|
-
React.createElement(List, { heading: "My Services", ...styles.list, borderTop: showTopBorder ? 1 : 0, borderTopColor: "sandstone.main", pt: 1 },
|
|
24
|
+
React.createElement(List, { heading: "My Services", ...styles.list, borderTop: showTopBorder ? 1 : 0, borderTopColor: "sandstone.main", maxH: 295, pt: 1 },
|
|
25
25
|
React.createElement(ListContent, { links: links })))));
|
|
26
26
|
}
|
|
27
27
|
HeaderServices.displayName = 'HeaderServices';
|
|
@@ -21,7 +21,7 @@ export function HeaderSupport(props) {
|
|
|
21
21
|
return (React.createElement(React.Fragment, null,
|
|
22
22
|
React.createElement(Menu, { isLazy: false, offset: [offsetX, 16], placement: "bottom-end", size: "lg", ...rest },
|
|
23
23
|
React.createElement(Menu.Button, { className: "vui-app-info-trigger", color: styles.button.color, icon: "falQuestionCircle", ml: 1, size: "lg", title: "My services", ...styles.button }),
|
|
24
|
-
React.createElement(Menu.List, { maxH:
|
|
24
|
+
React.createElement(Menu.List, { maxH: 295, right: 0, w: isTablet ? 280 : 320, ...styles.list },
|
|
25
25
|
React.createElement(ListContent, { links: links })))));
|
|
26
26
|
}
|
|
27
27
|
HeaderSupport.displayName = 'HeaderSupport';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loggedInHeader.d.ts","sourceRoot":"","sources":["../../../src/header/loggedInHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGpE,uHAAuH;AACvH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"loggedInHeader.d.ts","sourceRoot":"","sources":["../../../src/header/loggedInHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGpE,uHAAuH;AACvH,eAAO,MAAM,cAAc,4DAoJzB,CAAA;AAIF,eAAe,cAAc,CAAA"}
|
|
@@ -16,13 +16,16 @@ export const LoggedInHeader = vui((props, ref) => {
|
|
|
16
16
|
}
|
|
17
17
|
const userInfo = !isJsx(account) ? account?.userInfo || {} : {};
|
|
18
18
|
const isSmallScreen = useDown('md');
|
|
19
|
+
const isLessThanMD = useDown('sm');
|
|
19
20
|
const servicesLinks = isJsx(services) ? [] : services?.links || [];
|
|
20
21
|
const styles = useStyleConfig('Header', useHeaderContext());
|
|
21
22
|
return (React.createElement(Header, { className: cs('vui-loggedInHeader', isApplication ? 'vui-loggedInAppHeader' : '', className), mb: isApplication && isSmallScreen ? '41px' : 'inherited', ref: ref, ...rest },
|
|
22
23
|
React.createElement(Header.Content, null,
|
|
23
|
-
|
|
24
|
+
(!isApplication || !isLessThanMD) && React.createElement(React.Fragment, null,
|
|
25
|
+
" ",
|
|
26
|
+
isJsx(logo) ? logo : React.createElement(Header.Logo, { ...logo })),
|
|
24
27
|
isApplication && (React.createElement(React.Fragment, null,
|
|
25
|
-
React.createElement(RenderOnScreen, { minWidth: "
|
|
28
|
+
React.createElement(RenderOnScreen, { minWidth: "sm" },
|
|
26
29
|
React.createElement(Header.Divider, { mr: 2 })),
|
|
27
30
|
React.createElement(Header.ApplicationName, { title: applicationName, url: applicationUrl || '/' }))),
|
|
28
31
|
!isApplication && React.createElement(RenderOnScreen, { minWidth: "lg" }, children),
|
|
@@ -44,7 +47,7 @@ export const LoggedInHeader = vui((props, ref) => {
|
|
|
44
47
|
isJsx(mainLinks) ? (mainLinks) : (React.createElement(Box, { column: true, w: 1 },
|
|
45
48
|
React.createElement(List, { py: 1 }, mainLinks?.map(({ icon, url, ...rest }, index) => (React.createElement(List.Item, { iconLeft: icon, key: index, linkProps: { href: url }, ...rest })))))),
|
|
46
49
|
!showServices && servicesLinks && (React.createElement(Box, { column: true, w: 1 },
|
|
47
|
-
React.createElement(List, { heading: "My Services", maxH:
|
|
50
|
+
React.createElement(List, { heading: "My Services", maxH: 295, right: 0, w: 320, ...styles.services.list, borderTop: 1, borderTopColor: "sandstone.main", pt: 1 }, servicesLinks?.map(({ url, ...rest }, index) => (React.createElement(List.Item, { key: index, linkProps: { href: url }, ...rest })))))))))),
|
|
48
51
|
showServices && services && (React.createElement(React.Fragment, null, isJsx(services) ? services : React.createElement(Header.Services, { isApplication: isApplication, ...services })))),
|
|
49
52
|
React.createElement(Header.Support, { ...supportLinks }))),
|
|
50
53
|
!isApplication && (React.createElement(RenderOnScreen, { minWidth: "lg" },
|
|
@@ -9,7 +9,7 @@ export const MenuList = vui((props, ref) => {
|
|
|
9
9
|
const { className, contentProps, contentRef, ...rest } = props;
|
|
10
10
|
const styles = useStyleConfig('Menu', useMenuContext());
|
|
11
11
|
return (React.createElement(PopoverContent, { borderRadius: 0, ref: contentRef, ...contentProps },
|
|
12
|
-
React.createElement(List, { className: cs('vui-menuList', className), py: 1, ref: ref, w: "100%", ...styles.list, ...rest })));
|
|
12
|
+
React.createElement(List, { className: cs('vui-menuList', className), py: 1, ref: ref, w: "100%", ...styles.list, ...rest, maxH: 295 })));
|
|
13
13
|
});
|
|
14
14
|
MenuList.Divider = List.Divider;
|
|
15
15
|
MenuList.Heading = List.Heading;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,YAAY,EAAE,MAAM,SAAS,CAAA;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,eAAO,MAAM,OAAO,gIAsBnB,CAAA;AACD;;;GAGG;AACH,eAAO,MAAM,GAAG;
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,YAAY,EAAE,MAAM,SAAS,CAAA;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,eAAO,MAAM,OAAO,gIAsBnB,CAAA;AACD;;;GAGG;AACH,eAAO,MAAM,GAAG;YA+FN,gBAAgB;UAClB,cAAc;UACd,cAAc;CACrB,CAAA;AAQD,eAAe,GAAG,CAAA"}
|
package/dist/esm/tag/tag.js
CHANGED
|
@@ -68,7 +68,7 @@ export const Tag = vui((props, ref) => {
|
|
|
68
68
|
isString(iconLeft) ? React.createElement(TagIcon, { mr: spaceX, name: iconLeft }) : iconLeft,
|
|
69
69
|
children ?? (isReactText(text) ? React.createElement(TagText, { ...{ isTruncated, text } }) : text),
|
|
70
70
|
isString(iconRight) ? React.createElement(TagIcon, { ml: spaceX, name: iconRight }) : iconRight,
|
|
71
|
-
onDelete ? React.createElement(TagButton, { disabled: disabled, isRound: isRound, ml: spaceX, onClick: onDelete }) : itemRight)))));
|
|
71
|
+
onDelete ? (React.createElement(TagButton, { disabled: disabled, isRound: isRound, ml: spaceX, onClick: e => onDelete?.(e) })) : (itemRight))))));
|
|
72
72
|
});
|
|
73
73
|
Tag.Button = TagButton;
|
|
74
74
|
Tag.Icon = TagIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IconProp } from '../icon';
|
|
3
3
|
import { SystemProps, TypographyProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
@@ -26,7 +26,7 @@ export type TagInnerProps = {
|
|
|
26
26
|
/** Socket displaying a custom item on right left. */
|
|
27
27
|
itemRight?: React.ReactNode;
|
|
28
28
|
/** If provided, displays a remove button with this function as onClick. */
|
|
29
|
-
onDelete?: () => void;
|
|
29
|
+
onDelete?: (nativeEvent?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
30
30
|
/** Socket displaying text as alternative to children. */
|
|
31
31
|
text?: React.ReactNode;
|
|
32
32
|
/** Alias for fontWeight prop. @deprecated */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.types.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,MAAM,aAAa,GAAG;IAC1B,gDAAgD;IAChD,MAAM,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAA;IACzC,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAA;IACvE,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IACjC,gDAAgD;IAChD,SAAS,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAClC,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iKAAiK;IACjK,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IAClF,yDAAyD;IACzD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.4",
|
|
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",
|
|
@@ -20,17 +20,9 @@ export const HeaderApplicationName = vui<'div', HeadingProps & { url?: string }>
|
|
|
20
20
|
mt: 0
|
|
21
21
|
}
|
|
22
22
|
: {
|
|
23
|
-
fontSize:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
mx: '-16px',
|
|
27
|
-
w: '100%',
|
|
28
|
-
bg: 'skyBlue.97',
|
|
29
|
-
py: '8px',
|
|
30
|
-
px: '16px',
|
|
31
|
-
lineHeight: '24px',
|
|
32
|
-
borderBottom: '1px solid darkBlue.main',
|
|
33
|
-
borderTop: '1px solid darkBlue.main'
|
|
23
|
+
fontSize: 18,
|
|
24
|
+
maxW: '156px',
|
|
25
|
+
lineHeight: '21px'
|
|
34
26
|
}
|
|
35
27
|
|
|
36
28
|
const linkProps = url ? { as: 'a', href: url, outline: 'none', focusRing: 2 } : {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import Box, { BoxProps } from '../box'
|
|
4
|
-
import {
|
|
4
|
+
import { useStyleConfig, useUp, vui } from '../core'
|
|
5
5
|
import { cs, mergeRefs } from '../utils'
|
|
6
6
|
import { useHeaderContext } from './context'
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export const HeaderMobileContent = vui<'div', BoxProps>((props, ref) => {
|
|
|
10
10
|
const { className, ...rest } = props
|
|
11
11
|
const { isMobileOpen, mobileContentRef } = useHeaderContext() ?? {}
|
|
12
12
|
const styles = useStyleConfig('Header', useHeaderContext())
|
|
13
|
-
const
|
|
13
|
+
const islargerThanTablet = useUp('lg')
|
|
14
14
|
|
|
15
15
|
return isMobileOpen ? (
|
|
16
16
|
<Box
|
|
@@ -21,10 +21,10 @@ export const HeaderMobileContent = vui<'div', BoxProps>((props, ref) => {
|
|
|
21
21
|
overflowY="auto"
|
|
22
22
|
position="absolute"
|
|
23
23
|
ref={mergeRefs(ref, mobileContentRef)}
|
|
24
|
-
right={
|
|
24
|
+
right={islargerThanTablet ? '-40px' : '-16px'}
|
|
25
25
|
shadow={2}
|
|
26
26
|
top="calc(100% + 1px)"
|
|
27
|
-
w={
|
|
27
|
+
w={islargerThanTablet ? 320 : 280}
|
|
28
28
|
zIndex="100"
|
|
29
29
|
{...styles.mobileContent}
|
|
30
30
|
{...rest}
|
|
@@ -29,12 +29,12 @@ export function HeaderServices(props: HeaderServicesProps) {
|
|
|
29
29
|
const { buttonProps, isApplication = false, links = [], showTopBorder = false, ...rest } = props
|
|
30
30
|
const styles = useStyleConfig('Header', useHeaderContext()).services
|
|
31
31
|
|
|
32
|
-
const offsetX = isApplication ?
|
|
32
|
+
const offsetX = isApplication ? 179 : 135
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<>
|
|
36
36
|
<RenderOnScreen minWidth="lg">
|
|
37
|
-
<Menu isLazy={false} offset={[offsetX,
|
|
37
|
+
<Menu isLazy={false} offset={[offsetX, 17]} placement="bottom-end" size="lg" {...rest}>
|
|
38
38
|
<Menu.Button
|
|
39
39
|
className="vui-services-trigger"
|
|
40
40
|
icon="falTh"
|
|
@@ -44,7 +44,7 @@ export function HeaderServices(props: HeaderServicesProps) {
|
|
|
44
44
|
{...buttonProps}
|
|
45
45
|
/>
|
|
46
46
|
|
|
47
|
-
<Menu.List heading="My Services" maxH={
|
|
47
|
+
<Menu.List heading="My Services" maxH={295} right={0} w={320} {...styles.list}>
|
|
48
48
|
<ListContent links={links} />
|
|
49
49
|
</Menu.List>
|
|
50
50
|
</Menu>
|
|
@@ -56,6 +56,7 @@ export function HeaderServices(props: HeaderServicesProps) {
|
|
|
56
56
|
{...styles.list}
|
|
57
57
|
borderTop={showTopBorder ? 1 : 0}
|
|
58
58
|
borderTopColor="sandstone.main"
|
|
59
|
+
maxH={295}
|
|
59
60
|
pt={1}
|
|
60
61
|
>
|
|
61
62
|
<ListContent links={links} />
|
|
@@ -65,7 +65,7 @@ export function HeaderSupport(props: HeaderSupportProps) {
|
|
|
65
65
|
{...styles.button}
|
|
66
66
|
/>
|
|
67
67
|
|
|
68
|
-
<Menu.List maxH={
|
|
68
|
+
<Menu.List maxH={295} right={0} w={isTablet ? 280 : 320} {...styles.list}>
|
|
69
69
|
<ListContent links={links} />
|
|
70
70
|
</Menu.List>
|
|
71
71
|
</Menu>
|
|
@@ -37,6 +37,7 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
|
|
|
37
37
|
|
|
38
38
|
const userInfo = !isJsx(account) ? account?.userInfo || {} : {}
|
|
39
39
|
const isSmallScreen = useDown('md')
|
|
40
|
+
const isLessThanMD = useDown('sm')
|
|
40
41
|
|
|
41
42
|
const servicesLinks: HeaderLinkData[] = isJsx(services) ? [] : services?.links || []
|
|
42
43
|
const styles = useStyleConfig('Header', useHeaderContext())
|
|
@@ -49,22 +50,18 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
|
|
|
49
50
|
{...rest}
|
|
50
51
|
>
|
|
51
52
|
<Header.Content>
|
|
52
|
-
{isJsx(logo) ? logo : <Header.Logo {...logo} />}
|
|
53
|
-
|
|
53
|
+
{(!isApplication || !isLessThanMD) && <> {isJsx(logo) ? logo : <Header.Logo {...logo} />}</>}
|
|
54
54
|
{isApplication && (
|
|
55
55
|
<>
|
|
56
|
-
<RenderOnScreen minWidth="
|
|
56
|
+
<RenderOnScreen minWidth="sm">
|
|
57
57
|
<Header.Divider mr={2} />
|
|
58
58
|
</RenderOnScreen>
|
|
59
59
|
|
|
60
60
|
<Header.ApplicationName title={applicationName} url={applicationUrl || '/'} />
|
|
61
61
|
</>
|
|
62
62
|
)}
|
|
63
|
-
|
|
64
63
|
{!isApplication && <RenderOnScreen minWidth="lg">{children}</RenderOnScreen>}
|
|
65
|
-
|
|
66
64
|
<Box ml="auto" />
|
|
67
|
-
|
|
68
65
|
{isApplication && (
|
|
69
66
|
<>
|
|
70
67
|
<RenderOnScreen minWidth="lg">
|
|
@@ -107,7 +104,7 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
|
|
|
107
104
|
<Box column w={1}>
|
|
108
105
|
<List
|
|
109
106
|
heading="My Services"
|
|
110
|
-
maxH={
|
|
107
|
+
maxH={295}
|
|
111
108
|
right={0}
|
|
112
109
|
w={320}
|
|
113
110
|
{...styles.services.list}
|
|
@@ -133,7 +130,6 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
|
|
|
133
130
|
<Header.Support {...supportLinks} />
|
|
134
131
|
</>
|
|
135
132
|
)}
|
|
136
|
-
|
|
137
133
|
{!isApplication && (
|
|
138
134
|
<RenderOnScreen minWidth="lg">
|
|
139
135
|
{isJsx(mainLinks) ? mainLinks : <Header.MainLinks links={mainLinks} />}
|
|
@@ -143,11 +139,8 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
|
|
|
143
139
|
{isJsx(services) ? services : <Header.Services {...services} />}
|
|
144
140
|
</RenderOnScreen>
|
|
145
141
|
)}
|
|
146
|
-
|
|
147
142
|
{isJsx(notifications) ? notifications : <Header.Notifications {...notifications} />}
|
|
148
|
-
|
|
149
143
|
{isJsx(account) ? account : <Header.Account {...account} />}
|
|
150
|
-
|
|
151
144
|
<RenderOnScreen maxWidth="lg">
|
|
152
145
|
{isApplication && <Header.Divider ml={1} />}
|
|
153
146
|
{!isApplication && (account !== undefined || notifications !== undefined) && <Header.Divider ml={1} />}
|
package/src/menu/menuList.tsx
CHANGED
|
@@ -14,7 +14,7 @@ export const MenuList = vui<'ul', MenuListProps>((props, ref) => {
|
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
16
|
<PopoverContent borderRadius={0} ref={contentRef} {...contentProps}>
|
|
17
|
-
<List className={cs('vui-menuList', className)} py={1} ref={ref} w="100%" {...styles.list} {...rest} />
|
|
17
|
+
<List className={cs('vui-menuList', className)} py={1} ref={ref} w="100%" {...styles.list} {...rest} maxH={295} />
|
|
18
18
|
</PopoverContent>
|
|
19
19
|
)
|
|
20
20
|
}) as VuiComponent<'ul', MenuListProps> & {
|
package/src/tag/tag.tsx
CHANGED
|
@@ -119,7 +119,11 @@ export const Tag = vui<'span', TagProps>((props, ref) => {
|
|
|
119
119
|
|
|
120
120
|
{isString(iconRight) ? <TagIcon ml={spaceX} name={iconRight} /> : iconRight}
|
|
121
121
|
|
|
122
|
-
{onDelete ?
|
|
122
|
+
{onDelete ? (
|
|
123
|
+
<TagButton disabled={disabled} isRound={isRound} ml={spaceX} onClick={e => onDelete?.(e)} />
|
|
124
|
+
) : (
|
|
125
|
+
itemRight
|
|
126
|
+
)}
|
|
123
127
|
</>
|
|
124
128
|
)}
|
|
125
129
|
</TagBase>
|
package/src/tag/tag.types.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
1
3
|
import { IconProp } from '../icon'
|
|
2
4
|
import { SystemProps, TypographyProps } from '../system'
|
|
3
5
|
import { ThemingProps } from '../theme'
|
|
@@ -26,7 +28,7 @@ export type TagInnerProps = {
|
|
|
26
28
|
/** Socket displaying a custom item on right left. */
|
|
27
29
|
itemRight?: React.ReactNode
|
|
28
30
|
/** If provided, displays a remove button with this function as onClick. */
|
|
29
|
-
onDelete?: () => void
|
|
31
|
+
onDelete?: (nativeEvent?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void
|
|
30
32
|
/** Socket displaying text as alternative to children. */
|
|
31
33
|
text?: React.ReactNode
|
|
32
34
|
/** Alias for fontWeight prop. @deprecated */
|