@xqmsg/ui-core 0.21.4 → 0.21.6
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/README.md +1 -1
- package/dist/components/icons/index.d.ts +2 -1
- package/dist/components/icons/workspace/index.d.ts +8 -0
- package/dist/ui-core.cjs.development.js +18 -4
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +18 -5
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/banner/Banner.stories.tsx +1 -1
- package/src/components/banner/index.tsx +1 -0
- package/src/components/icons/index.tsx +2 -0
- package/src/components/icons/workspace/index.tsx +14 -0
- package/src/components/icons/workspace/workspace.png +0 -0
- package/src/components/link/index.tsx +1 -1
- package/src/components/navigation/index.tsx +1 -2
package/package.json
CHANGED
|
@@ -47,6 +47,7 @@ export const Banner: React.FC<BannerProps> = ({
|
|
|
47
47
|
<Flex
|
|
48
48
|
flexDirection={type === 'condensed' ? 'row' : 'column'}
|
|
49
49
|
alignItems={type === 'condensed' ? 'center' : ''}
|
|
50
|
+
minHeight="26px"
|
|
50
51
|
>
|
|
51
52
|
<Box pr="8px">{Icon}</Box>
|
|
52
53
|
<Box pt={type === 'condensed' ? 0 : '8px'}> {message}</Box>
|
|
@@ -33,6 +33,7 @@ import { Vault } from './vault';
|
|
|
33
33
|
import { Question } from './question';
|
|
34
34
|
import { Video } from './video';
|
|
35
35
|
import { Page } from './page';
|
|
36
|
+
import { Workspace } from './workspace';
|
|
36
37
|
|
|
37
38
|
export {
|
|
38
39
|
Checkmark,
|
|
@@ -70,4 +71,5 @@ export {
|
|
|
70
71
|
Vault,
|
|
71
72
|
Video,
|
|
72
73
|
Warning,
|
|
74
|
+
Workspace,
|
|
73
75
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from '@chakra-ui/react';
|
|
3
|
+
import path from './workspace.png';
|
|
4
|
+
|
|
5
|
+
export interface WorkspaceProps {
|
|
6
|
+
boxSize: number | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A functional React component utilized to render the `Workspace` icon component
|
|
11
|
+
*/
|
|
12
|
+
export const Workspace: React.FC<WorkspaceProps> = ({ boxSize }) => {
|
|
13
|
+
return <Image src={path} boxSize={boxSize} />;
|
|
14
|
+
};
|
|
Binary file
|
|
@@ -24,7 +24,7 @@ export const Link: React.FC<LinkProps> = ({ variant, text, onClick }) => {
|
|
|
24
24
|
}, [variant]);
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<Flex alignItems="
|
|
27
|
+
<Flex alignItems="flex-start" cursor="pointer" onClick={onClick}>
|
|
28
28
|
{getIcon}
|
|
29
29
|
<Text variant="description-large" pl="2px" color={colors.fill.action}>
|
|
30
30
|
{text}
|
|
@@ -74,9 +74,8 @@ export const NavigationMenu: React.FC<NavigationMenuProps> = ({
|
|
|
74
74
|
<NavigationMenuItem
|
|
75
75
|
{...bottomMenuItem}
|
|
76
76
|
key={bottomMenuItem.label}
|
|
77
|
-
isSelected
|
|
77
|
+
isSelected
|
|
78
78
|
onClick={() => {
|
|
79
|
-
setSelectedMenuItem(bottomMenuItem.label);
|
|
80
79
|
if (bottomMenuItem.onClick) {
|
|
81
80
|
bottomMenuItem.onClick();
|
|
82
81
|
}
|