orcs-design-system 3.3.7 → 3.3.8

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.
@@ -13,7 +13,7 @@ export default {
13
13
  component: Header,
14
14
  decorators: [storyFn => /*#__PURE__*/_jsx(Box, {
15
15
  height: "350px",
16
- bg: "greyLightest",
16
+ bg: "white",
17
17
  p: "r",
18
18
  children: storyFn()
19
19
  })]
@@ -61,6 +61,7 @@ const UserMenuContent = () => {
61
61
  export const defaultHeader = () => /*#__PURE__*/_jsx(Header, {
62
62
  appName: "Powercorp directory",
63
63
  logo: dummyLogo,
64
+ showLogoSeparator: true,
64
65
  userName: "Michael Jenkins (michael.jenkins@powercorp.com)",
65
66
  avatarSource: "https://api.dicebear.com/7.x/personas/svg?seed=mike",
66
67
  avatarAlt: "Avatar for Michael",
@@ -7,7 +7,7 @@ import UserMenu from "./UserMenu";
7
7
  /**
8
8
  * Header component for top of app.
9
9
  **/
10
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  const Header = _ref => {
12
12
  let {
13
13
  appName,
@@ -19,19 +19,14 @@ const Header = _ref => {
19
19
  dataTestId,
20
20
  currentWorkspace,
21
21
  logo,
22
- userMenuContent
22
+ userMenuContent,
23
+ showLogoSeparator = false
23
24
  } = _ref;
24
25
  return /*#__PURE__*/_jsxs(Bar, {
25
26
  dataTestId: dataTestId,
26
27
  children: [/*#__PURE__*/_jsxs(AppName, {
27
- children: [logo && /*#__PURE__*/_jsxs(_Fragment, {
28
- children: [/*#__PURE__*/_jsx(Flex, {
29
- alignItems: "center",
30
- justifyContent: "center",
31
- children: logo
32
- }), /*#__PURE__*/_jsx(Separator, {
33
- display: ["none", "none", "none", "block"]
34
- })]
28
+ children: [logo, showLogoSeparator && /*#__PURE__*/_jsx(Separator, {
29
+ display: ["none", "none", "none", "block"]
35
30
  }), /*#__PURE__*/_jsxs(Flex, {
36
31
  flexDirection: "column",
37
32
  children: [appName && /*#__PURE__*/_jsx(FlexItem, {
@@ -81,7 +76,9 @@ Header.propTypes = {
81
76
  /** Allows for use of the `data-testid` attribute for testing. */
82
77
  dataTestId: PropTypes.string,
83
78
  /** Allows you to pass in child components to user dropdown menu */
84
- userMenuContent: PropTypes.node
79
+ userMenuContent: PropTypes.node,
80
+ /** use this to apply separator if logo and appName or currentWorkspace exists */
81
+ showLogoSeparator: PropTypes.bool
85
82
  };
86
83
 
87
84
  /** @component */
@@ -90,6 +87,17 @@ Header.__docgenInfo = {
90
87
  "methods": [],
91
88
  "displayName": "Header",
92
89
  "props": {
90
+ "showLogoSeparator": {
91
+ "defaultValue": {
92
+ "value": "false",
93
+ "computed": false
94
+ },
95
+ "description": "use this to apply separator if logo and appName or currentWorkspace exists",
96
+ "type": {
97
+ "name": "bool"
98
+ },
99
+ "required": false
100
+ },
93
101
  "logo": {
94
102
  "description": "Logo for app. Preferably an svg logo",
95
103
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "3.3.7",
3
+ "version": "3.3.8",
4
4
  "engines": {
5
5
  "node": "20.12.2"
6
6
  },
@@ -99,7 +99,7 @@
99
99
  "@storybook/mdx1-csf": "^1.0.0",
100
100
  "@storybook/preset-create-react-app": "^8.3.3",
101
101
  "@storybook/react": "^8.1.7",
102
- "@storybook/react-webpack5": "^8.2.9",
102
+ "@storybook/react-webpack5": "^8.3.7",
103
103
  "@storybook/storybook-deployer": "2.8.16",
104
104
  "@storybook/theming": "^8.1.7",
105
105
  "@testing-library/jest-dom": "^5.11.6",
@@ -131,6 +131,7 @@
131
131
  "nodemon": "^3.1.0",
132
132
  "npm-run-all": "^4.1.5",
133
133
  "playroom": "^0.32.1",
134
+ "postcss": "8.5.2",
134
135
  "prettier": "^2.2.1",
135
136
  "react": "^18.3.1",
136
137
  "react-docgen": "^7.0.3",
@@ -149,7 +150,7 @@
149
150
  "jest": "$jest",
150
151
  "nth-check": "2.1.0",
151
152
  "parse-url": "8.1.0",
152
- "postcss": "^8.4.31",
153
+ "postcss": "8.5.2",
153
154
  "react-scripts": "5.0.1",
154
155
  "remark-parse": "10.0.2",
155
156
  "react": "^18.3.1",
@@ -158,7 +159,7 @@
158
159
  "webpack-dev-middleware": "6.1.2",
159
160
  "ws": "8.17.1",
160
161
  "express": {
161
- "path-to-regexp": "0.1.10"
162
+ "path-to-regexp": "0.1.12"
162
163
  },
163
164
  "send": "0.19.0",
164
165
  "redux": "4.2.1",