@synerise/ds-toolbar 1.1.45 → 1.1.47
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/README.md +14 -7
- package/dist/Toolbar.d.ts +2 -2
- package/dist/Toolbar.js +10 -9
- package/dist/Toolbar.styles.d.ts +4 -4
- package/dist/Toolbar.styles.js +14 -18
- package/dist/Toolbar.types.d.ts +5 -5
- package/dist/Toolbar.types.js +1 -1
- package/dist/components/ToolbarButton/ToolbarButton.d.ts +2 -2
- package/dist/components/ToolbarButton/ToolbarButton.js +16 -17
- package/dist/components/ToolbarDivider/ToolbarDivider.d.ts +2 -2
- package/dist/components/ToolbarDivider/ToolbarDivider.js +8 -5
- package/dist/components/ToolbarGroup/ToolbarGroup.d.ts +2 -2
- package/dist/components/ToolbarGroup/ToolbarGroup.js +12 -13
- package/dist/components/ToolbarLabel/ToolbarLabel.d.ts +2 -2
- package/dist/components/ToolbarLabel/ToolbarLabel.js +11 -9
- package/dist/components/index.js +10 -4
- package/dist/index.js +12 -2
- package/package.json +8 -8
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.1.47](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toolbar@1.1.46...@synerise/ds-toolbar@1.1.47) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-toolbar
|
|
9
|
+
|
|
10
|
+
## [1.1.46](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toolbar@1.1.45...@synerise/ds-toolbar@1.1.46) (2026-03-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-toolbar
|
|
13
|
+
|
|
6
14
|
## [1.1.45](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toolbar@1.1.44...@synerise/ds-toolbar@1.1.45) (2026-03-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-toolbar
|
package/README.md
CHANGED
|
@@ -8,15 +8,13 @@ Toolbar UI Component
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
12
|
-
or
|
|
13
|
-
yarn add @synerise/ds-toolbar
|
|
11
|
+
pnpm add @synerise/ds-toolbar
|
|
14
12
|
```
|
|
15
13
|
|
|
16
14
|
## Usage
|
|
17
15
|
|
|
18
|
-
```
|
|
19
|
-
import Toolbar from '@synerise/ds-toolbar'
|
|
16
|
+
```tsx
|
|
17
|
+
import Toolbar, { ToolbarGroup, ToolbarButton, ToolbarLabel, ToolbarDivider } from '@synerise/ds-toolbar';
|
|
20
18
|
|
|
21
19
|
<Toolbar>
|
|
22
20
|
<ToolbarGroup>
|
|
@@ -28,7 +26,6 @@ import Toolbar from '@synerise/ds-toolbar'
|
|
|
28
26
|
</ToolbarButton>
|
|
29
27
|
</ToolbarGroup>
|
|
30
28
|
</Toolbar>
|
|
31
|
-
|
|
32
29
|
```
|
|
33
30
|
|
|
34
31
|
## Demo
|
|
@@ -48,7 +45,7 @@ import Toolbar from '@synerise/ds-toolbar'
|
|
|
48
45
|
| Property | Description | Type | Default |
|
|
49
46
|
| --------- | ------------------------------------------------- | --------- | ------- |
|
|
50
47
|
| children | contents of the toolbar | ReactNode | - |
|
|
51
|
-
| isCompact | compact ToolbarGroup has 0px gap between elements | boolean |
|
|
48
|
+
| isCompact | compact ToolbarGroup has 0px gap between elements | boolean | false |
|
|
52
49
|
|
|
53
50
|
### ToolbarButton
|
|
54
51
|
|
|
@@ -59,3 +56,13 @@ see ds-button for more props
|
|
|
59
56
|
| type | type of button | 'ghost-primary' / 'ghost' / 'custom-color-ghost' | - |
|
|
60
57
|
| tooltipProps | Tooltip config | TooltipProps see ds-tooltip | - |
|
|
61
58
|
| badgeProps | Badge config | BadgeProps see ds-badge | - |
|
|
59
|
+
|
|
60
|
+
### ToolbarLabel
|
|
61
|
+
|
|
62
|
+
| Property | Description | Type | Default |
|
|
63
|
+
| -------- | ---------------------------------- | --------- | ------- |
|
|
64
|
+
| children | label text rendered inside a group | ReactNode | - |
|
|
65
|
+
|
|
66
|
+
### ToolbarDivider
|
|
67
|
+
|
|
68
|
+
A vertical 1px separator for use inside a `ToolbarGroup`. Accepts standard `HTMLDivElement` attributes. No additional props.
|
package/dist/Toolbar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToolbarProps } from './Toolbar.types';
|
|
3
3
|
declare const Toolbar: ({ children, ...htmlAttributes }: ToolbarProps) => React.JSX.Element;
|
|
4
4
|
export default Toolbar;
|
package/dist/Toolbar.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ToolbarWrapper } from "./Toolbar.styles.js";
|
|
3
|
+
const Toolbar = ({
|
|
4
|
+
children,
|
|
5
|
+
...htmlAttributes
|
|
6
|
+
}) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(ToolbarWrapper, { ...htmlAttributes, children });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
Toolbar as default
|
|
9
11
|
};
|
|
10
|
-
export default Toolbar;
|
package/dist/Toolbar.styles.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ToolbarWrapper: import(
|
|
2
|
-
export declare const ToolbarDivider: import(
|
|
3
|
-
export declare const ToolbarLabel: import(
|
|
4
|
-
export declare const ToolbarGroup: import(
|
|
1
|
+
export declare const ToolbarWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const ToolbarDivider: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ToolbarLabel: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const ToolbarGroup: import('styled-components').StyledComponent<"div", any, {
|
|
5
5
|
isCompact?: boolean;
|
|
6
6
|
}, never>;
|
package/dist/Toolbar.styles.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const ToolbarWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Toolbarstyles__ToolbarWrapper",
|
|
4
4
|
componentId: "sc-1wn8say-0"
|
|
5
5
|
})(["display:flex;gap:8px;"]);
|
|
6
|
-
|
|
6
|
+
const ToolbarDivider = /* @__PURE__ */ styled.div.withConfig({
|
|
7
7
|
displayName: "Toolbarstyles__ToolbarDivider",
|
|
8
8
|
componentId: "sc-1wn8say-1"
|
|
9
|
-
})(["width:1px;height:calc(100% + 8px);margin:-4px 0;background:", ";"],
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
export var ToolbarLabel = styled.div.withConfig({
|
|
9
|
+
})(["width:1px;height:calc(100% + 8px);margin:-4px 0;background:", ";"], (props) => props.theme.palette["grey-200"]);
|
|
10
|
+
const ToolbarLabel = /* @__PURE__ */ styled.div.withConfig({
|
|
13
11
|
displayName: "Toolbarstyles__ToolbarLabel",
|
|
14
12
|
componentId: "sc-1wn8say-2"
|
|
15
|
-
})(["display:flex;align-items:center;justify-content:center;padding:0 12px;font-weight:500;color:", ";"],
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
export var ToolbarGroup = styled.div.withConfig({
|
|
13
|
+
})(["display:flex;align-items:center;justify-content:center;padding:0 12px;font-weight:500;color:", ";"], (props) => props.theme.palette["grey-600"]);
|
|
14
|
+
const ToolbarGroup = /* @__PURE__ */ styled.div.withConfig({
|
|
19
15
|
displayName: "Toolbarstyles__ToolbarGroup",
|
|
20
16
|
componentId: "sc-1wn8say-3"
|
|
21
|
-
})(["display:flex;", ";background:", ";padding:4px;border-radius:3px;align-content:center;box-shadow:0px 4px 12px 0px ", "0A;"],
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
17
|
+
})(["display:flex;", ";background:", ";padding:4px;border-radius:3px;align-content:center;box-shadow:0px 4px 12px 0px ", "0A;"], (props) => !props.isCompact && `gap: 4px`, (props) => props.theme.palette.white, (props) => props.theme.palette["grey-900"]);
|
|
18
|
+
export {
|
|
19
|
+
ToolbarDivider,
|
|
20
|
+
ToolbarGroup,
|
|
21
|
+
ToolbarLabel,
|
|
22
|
+
ToolbarWrapper
|
|
23
|
+
};
|
package/dist/Toolbar.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { BadgeProps } from '@synerise/ds-badge';
|
|
3
|
+
import { ButtonProps } from '@synerise/ds-button';
|
|
4
|
+
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
5
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
6
6
|
export type ToolbarDividerProps = HTMLAttributes<HTMLDivElement>;
|
|
7
7
|
export type ToolbarProps = WithHTMLAttributes<HTMLDivElement, {
|
|
8
8
|
children: ReactNode;
|
package/dist/Toolbar.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToolbarButtonProps } from '../../Toolbar.types';
|
|
3
3
|
export declare const ToolbarButton: ({ tooltipProps, badgeProps, ...props }: ToolbarButtonProps) => React.JSX.Element;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import Badge from "@synerise/ds-badge";
|
|
3
|
+
import Button from "@synerise/ds-button";
|
|
4
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
5
|
+
const ToolbarButton = ({
|
|
6
|
+
tooltipProps,
|
|
7
|
+
badgeProps,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const rawButton = /* @__PURE__ */ jsx(Button, { type: "ghost", ...props });
|
|
11
|
+
const button = badgeProps ? /* @__PURE__ */ jsx(Badge, { ...badgeProps, children: rawButton }) : rawButton;
|
|
12
|
+
return tooltipProps ? /* @__PURE__ */ jsx(Tooltip, { ...tooltipProps, children: button }) : button;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
ToolbarButton
|
|
16
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToolbarDividerProps } from '../../Toolbar.types';
|
|
3
3
|
export declare const ToolbarDivider: (props: ToolbarDividerProps) => React.JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
return
|
|
5
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ToolbarDivider as ToolbarDivider$1 } from "../../Toolbar.styles.js";
|
|
3
|
+
const ToolbarDivider = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(ToolbarDivider$1, { ...props });
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
ToolbarDivider
|
|
8
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToolbarGroupProps } from '../../Toolbar.types';
|
|
3
3
|
export declare const ToolbarGroup: ({ children, isCompact, ...htmlAttributes }: ToolbarGroupProps) => React.JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ToolbarGroup as ToolbarGroup$1 } from "../../Toolbar.styles.js";
|
|
3
|
+
const ToolbarGroup = ({
|
|
4
|
+
children,
|
|
5
|
+
isCompact,
|
|
6
|
+
...htmlAttributes
|
|
7
|
+
}) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(ToolbarGroup$1, { isCompact, ...htmlAttributes, children });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
ToolbarGroup
|
|
12
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToolbarLabelProps } from '../../Toolbar.types';
|
|
3
3
|
export declare const ToolbarLabel: ({ children, ...htmlAttributes }: ToolbarLabelProps) => React.JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ToolbarLabel as ToolbarLabel$1 } from "../../Toolbar.styles.js";
|
|
3
|
+
const ToolbarLabel = ({
|
|
4
|
+
children,
|
|
5
|
+
...htmlAttributes
|
|
6
|
+
}) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(ToolbarLabel$1, { ...htmlAttributes, children });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
ToolbarLabel
|
|
11
|
+
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ToolbarGroup } from "./ToolbarGroup/ToolbarGroup.js";
|
|
2
|
+
import { ToolbarButton } from "./ToolbarButton/ToolbarButton.js";
|
|
3
|
+
import { ToolbarLabel } from "./ToolbarLabel/ToolbarLabel.js";
|
|
4
|
+
import { ToolbarDivider } from "./ToolbarDivider/ToolbarDivider.js";
|
|
5
|
+
export {
|
|
6
|
+
ToolbarButton,
|
|
7
|
+
ToolbarDivider,
|
|
8
|
+
ToolbarGroup,
|
|
9
|
+
ToolbarLabel
|
|
10
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as default2 } from "./Toolbar.js";
|
|
2
|
+
import { ToolbarGroup } from "./components/ToolbarGroup/ToolbarGroup.js";
|
|
3
|
+
import { ToolbarButton } from "./components/ToolbarButton/ToolbarButton.js";
|
|
4
|
+
import { ToolbarLabel } from "./components/ToolbarLabel/ToolbarLabel.js";
|
|
5
|
+
import { ToolbarDivider } from "./components/ToolbarDivider/ToolbarDivider.js";
|
|
6
|
+
export {
|
|
7
|
+
ToolbarButton,
|
|
8
|
+
ToolbarDivider,
|
|
9
|
+
ToolbarGroup,
|
|
10
|
+
ToolbarLabel,
|
|
11
|
+
default2 as default
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-toolbar",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.47",
|
|
4
4
|
"description": "Toolbar 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",
|
|
24
24
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "pnpm run build",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-badge": "^1.0.
|
|
39
|
-
"@synerise/ds-button": "^1.5.
|
|
40
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
41
|
-
"@synerise/ds-utils": "^1.
|
|
38
|
+
"@synerise/ds-badge": "^1.0.44",
|
|
39
|
+
"@synerise/ds-button": "^1.5.18",
|
|
40
|
+
"@synerise/ds-tooltip": "^1.4.10",
|
|
41
|
+
"@synerise/ds-utils": "^1.7.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@synerise/ds-core": "*",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": ">=16.9.0 <= 18.3.1",
|
|
47
47
|
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
50
50
|
}
|