orcs-design-system 3.3.63 → 3.3.65

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.
@@ -132,8 +132,8 @@ const SideNavV2 = _ref => {
132
132
  className: "toggle-icon",
133
133
  children: /*#__PURE__*/_jsx(Icon, {
134
134
  icon: ["fas", toggleIcon],
135
- size: "xs",
136
- fontSize: "12px"
135
+ size: "sm",
136
+ fontSize: "15px"
137
137
  })
138
138
  })
139
139
  }), allItems.map((item, index) => {
@@ -6,13 +6,14 @@ import { BrowserRouter as Router, Route, Link, useLocation, matchPath, Switch, R
6
6
  import { H5, P } from "../Typography";
7
7
  import Box from "../Box";
8
8
  import { far } from "@fortawesome/free-regular-svg-icons";
9
+ import { fas } from "@fortawesome/free-solid-svg-icons";
9
10
  import { library } from "@fortawesome/fontawesome-svg-core";
10
11
  import Flex from "../Flex";
11
12
  import Spacer from "../Spacer/index";
12
13
  import Card from "../Card/index";
13
14
  import RenderCurrentViewSection from "./components/RenderCurrentViewSection";
14
15
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
- library.add(far);
16
+ library.add(far, fas);
16
17
  export default {
17
18
  title: "Components/SideNavV2",
18
19
  decorators: [storyFn => /*#__PURE__*/_jsx(Box, {
@@ -30,7 +30,8 @@ export const AvatarLink = _ref => {
30
30
  gradient
31
31
  } = _ref;
32
32
  const location = useLocation();
33
- const isActive = location.pathname === link;
33
+ // Check if current path starts with the link path to handle nested routes
34
+ const isActive = link && location.pathname.startsWith(link);
34
35
  return /*#__PURE__*/_jsxs(Link, {
35
36
  to: link || "#",
36
37
  "aria-label": name,
@@ -61,7 +61,7 @@ const ExpandedPanel = _ref => {
61
61
  return /*#__PURE__*/_jsxs(Box, {
62
62
  position: "relative",
63
63
  height: "100%",
64
- zIndex: "1",
64
+ zIndex: "15",
65
65
  children: [/*#__PURE__*/_jsxs(SideNavExpanded, {
66
66
  ref: el => {
67
67
  expandedRef.current = el;
@@ -78,13 +78,17 @@ const ExpandedPanel = _ref => {
78
78
  }), item.component()]
79
79
  }), /*#__PURE__*/_jsx(ResizeHandle, {
80
80
  onMouseDown: onResizeStart,
81
- children: /*#__PURE__*/_jsx(ToggleIcon, {
81
+ children: /*#__PURE__*/_jsxs(ToggleIcon, {
82
82
  className: "resize-icon",
83
- children: /*#__PURE__*/_jsx(Icon, {
84
- icon: isSmallScreen ? ["fas", "up-down"] : ["fas", "left-right"],
85
- size: "xs",
86
- fontSize: "12px"
87
- })
83
+ children: [/*#__PURE__*/_jsx(Icon, {
84
+ icon: isSmallScreen ? ["fas", "chevron-up"] : ["fas", "chevron-left"],
85
+ size: "sm",
86
+ fontSize: "15px"
87
+ }), /*#__PURE__*/_jsx(Icon, {
88
+ icon: isSmallScreen ? ["fas", "chevron-down"] : ["fas", "chevron-right"],
89
+ size: "sm",
90
+ fontSize: "15px"
91
+ })]
88
92
  })
89
93
  })]
90
94
  });
@@ -109,7 +109,7 @@ export const ResizeHandle = /*#__PURE__*/styled("div").withConfig({
109
109
  padding: "0 5px",
110
110
  backgroundClip: "content-box",
111
111
  height: "100%",
112
- zIndex: "10",
112
+ zIndex: "13",
113
113
  cursor: "col-resize",
114
114
  backgroundColor: "transparent",
115
115
  transition: themeGet("transition.transitionDefault")(props),
@@ -182,11 +182,11 @@ export const ToggleIcon = /*#__PURE__*/styled("div").withConfig({
182
182
  height: "28px",
183
183
  width: "28px",
184
184
  backgroundColor: themeGet("colors.white")(props),
185
- borderRadius: "50%",
185
+ borderRadius: "4px",
186
186
  display: "flex",
187
187
  alignItems: "center",
188
188
  justifyContent: "center",
189
- color: themeGet("colors.primary")(props),
189
+ color: themeGet("colors.white")(props),
190
190
  fontSize: "12px",
191
191
  fontWeight: "bold",
192
192
  transform: "translateX(-50%)",
@@ -194,7 +194,7 @@ export const ToggleIcon = /*#__PURE__*/styled("div").withConfig({
194
194
  boxShadow: "0 2px 6px rgba(0,0,0,0.15)",
195
195
  pointerEvents: "none",
196
196
  svg: {
197
- color: themeGet("colors.primary")(props)
197
+ color: themeGet("colors.white")(props)
198
198
  },
199
199
  "&.resize-icon": {
200
200
  width: "28px",
@@ -202,19 +202,25 @@ export const ToggleIcon = /*#__PURE__*/styled("div").withConfig({
202
202
  top: "20px",
203
203
  left: "50%",
204
204
  right: "auto",
205
- borderRadius: "50%",
205
+ borderRadius: "4px",
206
206
  transform: "translateX(-50%)",
207
207
  boxShadow: "0 2px 6px rgba(0,0,0,0.15)"
208
208
  },
209
209
  [`@media screen and (max-width: ${BREAKPOINTS.SMALL_SCREEN}px)`]: {
210
210
  "&.resize-icon": {
211
211
  left: "50%",
212
- top: "50%",
213
- width: "28px",
214
- height: "28px",
215
- borderRadius: "50%",
212
+ top: "6px",
213
+ flexDirection: "column",
216
214
  transform: "translate(-50%, -50%)",
217
- boxShadow: "0 2px 6px rgba(0,0,0,0.15)"
215
+ width: "93px",
216
+ borderRadius: "0 0 2px 2px",
217
+ height: "15px",
218
+ "& > span": {
219
+ height: "6px",
220
+ display: "flex",
221
+ alignItems: "center",
222
+ justifyContent: "center"
223
+ }
218
224
  }
219
225
  }
220
226
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "3.3.63",
3
+ "version": "3.3.65",
4
4
  "engines": {
5
5
  "node": "20.12.2"
6
6
  },
@@ -226,4 +226,4 @@
226
226
  "eslintConfig": {
227
227
  "extends": "react-app"
228
228
  }
229
- }
229
+ }