@synerise/ds-toolbar 1.1.46 → 1.1.48

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,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.48](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toolbar@1.1.47...@synerise/ds-toolbar@1.1.48) (2026-04-01)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-toolbar
9
+
10
+ ## [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)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-toolbar
13
+
6
14
  ## [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)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-toolbar
package/dist/Toolbar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import type { ToolbarProps } from './Toolbar.types';
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
- var _excluded = ["children"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
- import React from 'react';
4
- import * as S from './Toolbar.styles';
5
- var Toolbar = function Toolbar(_ref) {
6
- var children = _ref.children,
7
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
8
- return /*#__PURE__*/React.createElement(S.ToolbarWrapper, htmlAttributes, children);
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;
@@ -1,6 +1,6 @@
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, {
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>;
@@ -1,27 +1,23 @@
1
- import styled from 'styled-components';
2
- export var ToolbarWrapper = styled.div.withConfig({
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
- export var ToolbarDivider = styled.div.withConfig({
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:", ";"], function (props) {
10
- return props.theme.palette['grey-200'];
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:", ";"], function (props) {
16
- return props.theme.palette['grey-600'];
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;"], function (props) {
22
- return !props.isCompact && "gap: 4px";
23
- }, function (props) {
24
- return props.theme.palette.white;
25
- }, function (props) {
26
- return props.theme.palette['grey-900'];
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
+ };
@@ -1,8 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
2
- import type { BadgeProps } from '@synerise/ds-badge';
3
- import type { ButtonProps } from '@synerise/ds-button';
4
- import type { TooltipProps } from '@synerise/ds-tooltip';
5
- import type { WithHTMLAttributes } from '@synerise/ds-utils';
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;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import type { ToolbarButtonProps } from '../../Toolbar.types';
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
- var _excluded = ["tooltipProps", "badgeProps"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import React from 'react';
5
- import Badge from '@synerise/ds-badge';
6
- import Button from '@synerise/ds-button';
7
- import Tooltip from '@synerise/ds-tooltip';
8
- export var ToolbarButton = function ToolbarButton(_ref) {
9
- var tooltipProps = _ref.tooltipProps,
10
- badgeProps = _ref.badgeProps,
11
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
12
- var rawButton = /*#__PURE__*/React.createElement(Button, _extends({
13
- type: "ghost"
14
- }, props));
15
- var button = badgeProps ? /*#__PURE__*/React.createElement(Badge, badgeProps, rawButton) : rawButton;
16
- return tooltipProps ? /*#__PURE__*/React.createElement(Tooltip, tooltipProps, button) : button;
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 type { ToolbarDividerProps } from '../../Toolbar.types';
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 React from 'react';
2
- import * as S from '../../Toolbar.styles';
3
- export var ToolbarDivider = function ToolbarDivider(props) {
4
- return /*#__PURE__*/React.createElement(S.ToolbarDivider, props);
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 type { ToolbarGroupProps } from '../../Toolbar.types';
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
- var _excluded = ["children", "isCompact"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import React from 'react';
5
- import * as S from '../../Toolbar.styles';
6
- export var ToolbarGroup = function ToolbarGroup(_ref) {
7
- var children = _ref.children,
8
- isCompact = _ref.isCompact,
9
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
10
- return /*#__PURE__*/React.createElement(S.ToolbarGroup, _extends({
11
- isCompact: isCompact
12
- }, htmlAttributes), children);
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 type { ToolbarLabelProps } from '../../Toolbar.types';
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
- var _excluded = ["children"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
- import React from 'react';
4
- import * as S from '../../Toolbar.styles';
5
- export var ToolbarLabel = function ToolbarLabel(_ref) {
6
- var children = _ref.children,
7
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
8
- return /*#__PURE__*/React.createElement(S.ToolbarLabel, htmlAttributes, children);
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
+ };
@@ -1,4 +1,10 @@
1
- export * from './ToolbarGroup/ToolbarGroup';
2
- export * from './ToolbarButton/ToolbarButton';
3
- export * from './ToolbarLabel/ToolbarLabel';
4
- export * from './ToolbarDivider/ToolbarDivider';
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
- export { default } from './Toolbar';
2
- export * from './components';
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.46",
3
+ "version": "1.1.48",
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": "pnpm run build:js && pnpm run build:css && pnpm run defs",
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": "pnpm run build:js -- --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.43",
39
- "@synerise/ds-button": "^1.5.17",
40
- "@synerise/ds-tooltip": "^1.4.9",
41
- "@synerise/ds-utils": "^1.7.0"
38
+ "@synerise/ds-badge": "^1.0.45",
39
+ "@synerise/ds-button": "^1.5.19",
40
+ "@synerise/ds-tooltip": "^1.4.11",
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": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
49
+ "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
50
50
  }