@synerise/ds-navbar 1.0.42 → 1.0.44
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 +8 -0
- package/dist/Navbar.d.ts +3 -4
- package/dist/Navbar.js +33 -22
- package/dist/Navbar.styles.d.ts +7 -8
- package/dist/Navbar.styles.js +20 -19
- package/dist/Navbar.types.d.ts +1 -2
- package/dist/Navbar.types.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +5 -5
- package/dist/Navbar.d.ts.map +0 -1
- package/dist/Navbar.styles.d.ts.map +0 -1
- package/dist/Navbar.types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [1.0.44](https://github.com/Synerise/synerise-design/compare/@synerise/ds-navbar@1.0.43...@synerise/ds-navbar@1.0.44) (2026-04-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-navbar
|
|
9
|
+
|
|
10
|
+
## [1.0.43](https://github.com/Synerise/synerise-design/compare/@synerise/ds-navbar@1.0.42...@synerise/ds-navbar@1.0.43) (2026-03-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-navbar
|
|
13
|
+
|
|
6
14
|
## [1.0.42](https://github.com/Synerise/synerise-design/compare/@synerise/ds-navbar@1.0.41...@synerise/ds-navbar@1.0.42) (2026-03-20)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-navbar
|
package/dist/Navbar.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NavbarProps } from './Navbar.types';
|
|
3
3
|
declare const Navbar: {
|
|
4
4
|
({ className, color, logo, description, children, actions, additionalNodes, alertNotification, }: NavbarProps): React.JSX.Element;
|
|
5
|
-
Divider: import(
|
|
5
|
+
Divider: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
6
|
};
|
|
7
7
|
export default Navbar;
|
|
8
|
-
//# sourceMappingURL=Navbar.d.ts.map
|
package/dist/Navbar.js
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Navbar as Navbar$1, NavbarDivider, NavbarDescription, NavbarAlertNotification, AdditionalNode, NavbarActions, NavbarActionsWrapper } from "./Navbar.styles.js";
|
|
3
|
+
const Navbar = ({
|
|
4
|
+
className,
|
|
5
|
+
color,
|
|
6
|
+
logo,
|
|
7
|
+
description,
|
|
8
|
+
children,
|
|
9
|
+
actions,
|
|
10
|
+
additionalNodes,
|
|
11
|
+
alertNotification
|
|
12
|
+
}) => {
|
|
13
|
+
return /* @__PURE__ */ jsxs(Navbar$1, { className: `ds-navbar ${className || ""}`, color, children: [
|
|
14
|
+
typeof logo === "string" ? /* @__PURE__ */ jsx("img", { src: logo, alt: "" }) : logo,
|
|
15
|
+
/* @__PURE__ */ jsx(NavbarDivider, {}),
|
|
16
|
+
/* @__PURE__ */ jsx(NavbarDescription, { children: description }),
|
|
17
|
+
alertNotification && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(NavbarAlertNotification, { children: alertNotification }),
|
|
19
|
+
/* @__PURE__ */ jsx(NavbarDivider, {})
|
|
20
|
+
] }),
|
|
21
|
+
additionalNodes?.map((node) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx(AdditionalNode, { children: node }),
|
|
23
|
+
/* @__PURE__ */ jsx(NavbarDivider, {})
|
|
24
|
+
] })),
|
|
25
|
+
/* @__PURE__ */ jsxs(NavbarActions, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(NavbarActionsWrapper, { children: actions }) }),
|
|
27
|
+
children
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
Navbar.Divider = NavbarDivider;
|
|
32
|
+
export {
|
|
33
|
+
Navbar as default
|
|
21
34
|
};
|
|
22
|
-
Navbar.Divider = S.NavbarDivider;
|
|
23
|
-
export default Navbar;
|
package/dist/Navbar.styles.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export declare const Navbar: import(
|
|
1
|
+
export declare const Navbar: import('styled-components').StyledComponent<"div", any, {
|
|
2
2
|
color?: string;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const NavbarDescription: import(
|
|
5
|
-
export declare const AdditionalNode: import(
|
|
6
|
-
export declare const NavbarDivider: import(
|
|
7
|
-
export declare const NavbarActions: import(
|
|
8
|
-
export declare const NavbarActionsWrapper: import(
|
|
9
|
-
export declare const NavbarAlertNotification: import(
|
|
10
|
-
//# sourceMappingURL=Navbar.styles.d.ts.map
|
|
4
|
+
export declare const NavbarDescription: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const AdditionalNode: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const NavbarDivider: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const NavbarActions: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const NavbarActionsWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const NavbarAlertNotification: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/Navbar.styles.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { macro } from
|
|
3
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { macro } from "@synerise/ds-typography";
|
|
3
|
+
const Navbar = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "Navbarstyles__Navbar",
|
|
5
5
|
componentId: "sc-ldoz41-0"
|
|
6
|
-
})(["background-color:", ";padding:16px 24px;height:56px;display:flex;flex:0 0 100%;align-items:center;color:#fff;img{max-width:100px;}"],
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
export var NavbarDescription = styled.div.withConfig({
|
|
6
|
+
})(["background-color:", ";padding:16px 24px;height:56px;display:flex;flex:0 0 100%;align-items:center;color:#fff;img{max-width:100px;}"], (props) => props.color ? props.color : props.theme.palette["blue-600"]);
|
|
7
|
+
const NavbarDescription = /* @__PURE__ */ styled.div.withConfig({
|
|
10
8
|
displayName: "Navbarstyles__NavbarDescription",
|
|
11
9
|
componentId: "sc-ldoz41-1"
|
|
12
10
|
})(["", ";color:inherit;display:flex;flex:1;padding-right:24px;"], macro.h300);
|
|
13
|
-
|
|
11
|
+
const AdditionalNode = /* @__PURE__ */ styled.div.withConfig({
|
|
14
12
|
displayName: "Navbarstyles__AdditionalNode",
|
|
15
13
|
componentId: "sc-ldoz41-2"
|
|
16
14
|
})(["display:flex;align-items:center;.ds-button:not(:last-child){margin-right:8px;}"]);
|
|
17
|
-
|
|
15
|
+
const NavbarDivider = /* @__PURE__ */ styled.div.withConfig({
|
|
18
16
|
displayName: "Navbarstyles__NavbarDivider",
|
|
19
17
|
componentId: "sc-ldoz41-3"
|
|
20
18
|
})(["width:1px;height:24px;background-color:#fff;opacity:0.3;margin:0 12px;"]);
|
|
21
|
-
|
|
19
|
+
const NavbarActions = /* @__PURE__ */ styled.div.withConfig({
|
|
22
20
|
displayName: "Navbarstyles__NavbarActions",
|
|
23
21
|
componentId: "sc-ldoz41-4"
|
|
24
22
|
})(["display:flex;align-items:center;> div{overflow:hidden;}"]);
|
|
25
|
-
|
|
23
|
+
const NavbarActionsWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
26
24
|
displayName: "Navbarstyles__NavbarActionsWrapper",
|
|
27
25
|
componentId: "sc-ldoz41-5"
|
|
28
26
|
})(["display:flex;align-items:center;margin-left:-4px;margin-right:-4px;> *{margin:0 4px;}"]);
|
|
29
|
-
|
|
27
|
+
const NavbarAlertNotification = /* @__PURE__ */ styled.div.withConfig({
|
|
30
28
|
displayName: "Navbarstyles__NavbarAlertNotification",
|
|
31
29
|
componentId: "sc-ldoz41-6"
|
|
32
|
-
})(["display:flex;align-items:center;.ds-button{margin-left:12px;}.ds-inline-alert svg{color:", ";fill:", ";}.ds-inline-alert > span{color:", ";}"],
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
})(["display:flex;align-items:center;.ds-button{margin-left:12px;}.ds-inline-alert svg{color:", ";fill:", ";}.ds-inline-alert > span{color:", ";}"], (props) => props.theme.palette.white, (props) => props.theme.palette.white, (props) => props.theme.palette.white);
|
|
31
|
+
export {
|
|
32
|
+
AdditionalNode,
|
|
33
|
+
Navbar,
|
|
34
|
+
NavbarActions,
|
|
35
|
+
NavbarActionsWrapper,
|
|
36
|
+
NavbarAlertNotification,
|
|
37
|
+
NavbarDescription,
|
|
38
|
+
NavbarDivider
|
|
39
|
+
};
|
package/dist/Navbar.types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
export type NavbarProps = {
|
|
3
3
|
className?: string;
|
|
4
4
|
color?: string;
|
|
@@ -9,4 +9,3 @@ export type NavbarProps = {
|
|
|
9
9
|
additionalNodes?: ReactNode[];
|
|
10
10
|
alertNotification?: ReactNode;
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=Navbar.types.d.ts.map
|
package/dist/Navbar.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-navbar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"description": "Navbar UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "vite build",
|
|
20
20
|
"build:css": "node ../../../scripts/style/less.js",
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
|
-
"build:watch": "
|
|
22
|
+
"build:watch": "vite build --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly --declarationMap",
|
|
24
24
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "pnpm run build",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-typography": "^1.1.
|
|
38
|
+
"@synerise/ds-typography": "^1.1.14"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"react": ">=16.9.0 <= 18.3.1",
|
|
44
44
|
"styled-components": "^5.3.3"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
|
|
47
47
|
}
|
package/dist/Navbar.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../src/Navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,QAAA,MAAM,MAAM;sGAST,WAAW;;CA4Bb,CAAC;AAGF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.styles.d.ts","sourceRoot":"","sources":["../src/Navbar.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;YAAwB,MAAM;SAahD,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,oEAM1B,CAAC;AAEF,eAAO,MAAM,aAAa,oEAMzB,CAAC;AAEF,eAAO,MAAM,aAAa,oEAOzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAShC,CAAC;AACF,eAAO,MAAM,uBAAuB,oEAanC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.types.d.ts","sourceRoot":"","sources":["../src/Navbar.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,SAAS,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,SAAS,CAAC;CAC/B,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|