@synerise/ds-app-menu 2.0.11 → 2.1.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-app-menu@2.0.11...@synerise/ds-app-menu@2.1.0) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-app-menu@2.0.10...@synerise/ds-app-menu@2.0.11) (2026-10-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-app-menu
|
package/CLAUDE.md
CHANGED
|
@@ -85,7 +85,7 @@ Styled `h3` (`macro.h600`). Accepts `children` only (it is a styled-component, n
|
|
|
85
85
|
|
|
86
86
|
### `AppMenu.SubMenu.SubTitle`
|
|
87
87
|
|
|
88
|
-
Styled `h4` (`macro.h100`). Uppercase,
|
|
88
|
+
Styled `h4` (`macro.h100`). Uppercase, `--ds-divider-header-text-color` text, dashed top border. Accepts `children` only.
|
|
89
89
|
|
|
90
90
|
### `AppMenu.SubMenu.Item`
|
|
91
91
|
|
|
@@ -149,7 +149,7 @@ Two contexts are used internally — no external Provider is needed:
|
|
|
149
149
|
|
|
150
150
|
## Styling
|
|
151
151
|
|
|
152
|
-
All styles in `*.styles.ts` files.
|
|
152
|
+
All styles in `*.styles.ts` files. Colours come from `var(--ds-*)` tokens, mostly the `--ds-app-menu-*` module tokens (no hardcoded colours). Notable specifics:
|
|
153
153
|
|
|
154
154
|
- `MenuWrapper`: `position: fixed; left: 0; width: 60px` → `width: 322px` on `.menu--opened`, with a `cubic-bezier` transition and `0.25s` delay.
|
|
155
155
|
- `SubMenu` panel: `position: absolute; left: 61px; width: 262px`. Child elements stagger in using a generated array of 100 `transition-delay` CSS rules.
|
package/dist/AppMenu.styles.js
CHANGED
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
const MenuWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "AppMenustyles__MenuWrapper",
|
|
4
4
|
componentId: "sc-3a0k9p-0"
|
|
5
|
-
})(["background:
|
|
5
|
+
})(["background:var(--ds-app-menu-container-bg);height:calc(100% - ", "px);position:fixed;left:0;top:", "px;width:60px;box-shadow:var(--ds-app-menu-container-shadow);display:flex;flex-flow:column;align-items:center;padding-top:12px;transition:all 0.25s cubic-bezier(0.95,0.17,0.27,0.79);transition-delay:0.25s;overflow:hidden;&.menu--opened{transition-delay:0s;width:322px;}"], (props) => props.top, (props) => props.top);
|
|
6
6
|
const ItemsWrapper = /* @__PURE__ */ styled.ul.withConfig({
|
|
7
7
|
displayName: "AppMenustyles__ItemsWrapper",
|
|
8
8
|
componentId: "sc-3a0k9p-1"
|
|
@@ -10,7 +10,7 @@ const ItemsWrapper = /* @__PURE__ */ styled.ul.withConfig({
|
|
|
10
10
|
const ItemsDivider = /* @__PURE__ */ styled.div.withConfig({
|
|
11
11
|
displayName: "AppMenustyles__ItemsDivider",
|
|
12
12
|
componentId: "sc-3a0k9p-2"
|
|
13
|
-
})(["width:40px;border-bottom:1px solid
|
|
13
|
+
})(["width:40px;border-bottom:1px solid var(--ds-app-menu-separator-color);flex:1 1 auto;"]);
|
|
14
14
|
export {
|
|
15
15
|
ItemsDivider,
|
|
16
16
|
ItemsWrapper,
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Iconstyles__Wrapper",
|
|
4
4
|
componentId: "sc-1gdlsp-0"
|
|
5
|
-
})(["position:relative;height:24px;width:24px;color:
|
|
5
|
+
})(["position:relative;height:24px;width:24px;color:var(--ds-app-menu-icon-default);.item__icon{position:absolute;transition:opacity 0.3s ease-in-out;}"]);
|
|
6
6
|
export {
|
|
7
7
|
Wrapper,
|
|
8
8
|
Wrapper as default
|
package/dist/Item/Item.styles.js
CHANGED
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
const ItemLink = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Itemstyles__ItemLink",
|
|
4
4
|
componentId: "sc-1hq0xvl-0"
|
|
5
|
-
})(["position:relative;display:flex;align-items:center;align-content:center;justify-content:center;height:40px;width:40px;padding:8px;margin:12px 0;cursor:pointer;border-radius:50%;transition:all 0.3s ease-in-out;.item__icon--active{opacity:0;}.item__icon--in-active{opacity:1;}&:hover,&.menu__item--active{.item__icon--active{opacity:1;}.item__icon--in-active{opacity:0;}}&:hover{background:
|
|
5
|
+
})(["position:relative;display:flex;align-items:center;align-content:center;justify-content:center;height:40px;width:40px;padding:8px;margin:12px 0;cursor:pointer;border-radius:50%;transition:all 0.3s ease-in-out;.item__icon--active{opacity:0;}.item__icon--in-active{opacity:1;}&:hover,&.menu__item--active{.item__icon--active{opacity:1;}.item__icon--in-active{opacity:0;}}&:hover{background:var(--ds-app-menu-icon-bg-hover);}> a{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;}"]);
|
|
6
6
|
const ItemWrapper = /* @__PURE__ */ styled.li.withConfig({
|
|
7
7
|
displayName: "Itemstyles__ItemWrapper",
|
|
8
8
|
componentId: "sc-1hq0xvl-1"
|
|
@@ -7,7 +7,7 @@ const ItemAction = /* @__PURE__ */ styled.span.withConfig({
|
|
|
7
7
|
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
8
8
|
displayName: "Itemstyles__Wrapper",
|
|
9
9
|
componentId: "sc-15s98w8-1"
|
|
10
|
-
})(["", ";width:100%;padding:8px 12px;margin:0 0 1px;border-radius:3px;transition:all 0.3s ease-in-out;cursor:pointer;&:hover,&.sub-menu__item--active{background:
|
|
10
|
+
})(["", ";width:100%;padding:8px 12px;margin:0 0 1px;border-radius:3px;transition:all 0.3s ease-in-out;cursor:pointer;&:hover,&.sub-menu__item--active{background:var(--ds-app-menu-icon-bg-hover);color:var(--ds-color-text-brand-default);opacity:1;", "{opacity:1;}}"], macro.h200, ItemAction);
|
|
11
11
|
export {
|
|
12
12
|
ItemAction,
|
|
13
13
|
Wrapper
|
|
@@ -3,7 +3,7 @@ import { macro } from "@synerise/ds-typography";
|
|
|
3
3
|
const MenuGroupWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "SubMenustyles__MenuGroupWrapper",
|
|
5
5
|
componentId: "sc-dperxu-0"
|
|
6
|
-
})(["background:
|
|
6
|
+
})(["background:var(--ds-app-menu-container-bg);width:262px;position:absolute;left:61px;top:0px;height:100%;border-left:1px solid var(--ds-app-menu-container-border-color);padding:12px;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;transition-delay:0.1s;overflow-y:auto;display:flex;flex-flow:column;&.menu__sub-menu--active{visibility:visible;opacity:1;> *{opacity:1;top:0px !important;}}a:hover{text-decoration:none;}> *{opacity:0;transition:all 0.3s ease-in-out;position:relative;top:-10px;}", " &:hover{> *{transition-delay:0s;}}"], [...Array(100).keys()].map((k) => css(["> *:nth-child(", "){transition-delay:", "s;}"], k, 0.1 + k * 10 / 500)));
|
|
7
7
|
const MenuGroupTitle = /* @__PURE__ */ styled.h3.withConfig({
|
|
8
8
|
displayName: "SubMenustyles__MenuGroupTitle",
|
|
9
9
|
componentId: "sc-dperxu-1"
|
|
@@ -11,7 +11,7 @@ const MenuGroupTitle = /* @__PURE__ */ styled.h3.withConfig({
|
|
|
11
11
|
const MenuGroupSubTitle = /* @__PURE__ */ styled.h4.withConfig({
|
|
12
12
|
displayName: "SubMenustyles__MenuGroupSubTitle",
|
|
13
13
|
componentId: "sc-dperxu-2"
|
|
14
|
-
})(["", ";letter-spacing:0.1px;color:
|
|
14
|
+
})(["", ";letter-spacing:0.1px;color:var(--ds-divider-header-text-color);border-top:1px dashed var(--ds-app-menu-container-border-color);margin:12px 12px 12px;padding-top:12px;text-transform:uppercase;"], macro.h100);
|
|
15
15
|
export {
|
|
16
16
|
MenuGroupSubTitle,
|
|
17
17
|
MenuGroupTitle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-app-menu",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "AppMenu UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-icon": "^2.
|
|
46
|
-
"@synerise/ds-tooltip": "^2.0
|
|
47
|
-
"@synerise/ds-typography": "^2.0
|
|
48
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-icon": "^2.3.0",
|
|
46
|
+
"@synerise/ds-tooltip": "^2.1.0",
|
|
47
|
+
"@synerise/ds-typography": "^2.1.0",
|
|
48
|
+
"@synerise/ds-utils": "^2.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"vitest": "4"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"react": ">=16.9.0 <= 18.3.1",
|
|
56
56
|
"styled-components": "^5.3.3"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
59
59
|
}
|