@synerise/ds-menu 1.4.11 → 1.4.13

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +5 -5
  3. package/dist/Elements/Breadcrumb/Breadcrumb.d.ts +3 -3
  4. package/dist/Elements/Breadcrumb/Breadcrumb.js +53 -74
  5. package/dist/Elements/Breadcrumb/Breadcrumb.styles.d.ts +10 -10
  6. package/dist/Elements/Breadcrumb/Breadcrumb.styles.js +45 -60
  7. package/dist/Elements/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  8. package/dist/Elements/Breadcrumb/Breadcrumb.types.js +1 -1
  9. package/dist/Elements/Divider/Divider.d.ts +3 -3
  10. package/dist/Elements/Divider/Divider.js +8 -9
  11. package/dist/Elements/Divider/Divider.styles.d.ts +2 -2
  12. package/dist/Elements/Divider/Divider.styles.js +7 -8
  13. package/dist/Elements/Header/Header.d.ts +2 -2
  14. package/dist/Elements/Header/Header.js +15 -15
  15. package/dist/Elements/Header/Header.styles.d.ts +2 -2
  16. package/dist/Elements/Header/Header.styles.js +9 -9
  17. package/dist/Elements/Header/Header.types.js +1 -1
  18. package/dist/Elements/Item/Danger/Danger.d.ts +2 -3
  19. package/dist/Elements/Item/Danger/Danger.js +10 -10
  20. package/dist/Elements/Item/Danger/Danger.styles.d.ts +2 -2
  21. package/dist/Elements/Item/Danger/Danger.styles.js +28 -33
  22. package/dist/Elements/Item/MenuItem.d.ts +2 -3
  23. package/dist/Elements/Item/MenuItem.js +45 -89
  24. package/dist/Elements/Item/Select/Select.d.ts +2 -3
  25. package/dist/Elements/Item/Select/Select.js +12 -16
  26. package/dist/Elements/Item/Select/Select.styles.d.ts +2 -2
  27. package/dist/Elements/Item/Select/Select.styles.js +13 -18
  28. package/dist/Elements/Item/SubmenuText/SubmenuText.d.ts +2 -3
  29. package/dist/Elements/Item/SubmenuText/SubmenuText.js +15 -24
  30. package/dist/Elements/Item/SubmenuText/SubmenuText.styles.d.ts +3 -3
  31. package/dist/Elements/Item/SubmenuText/SubmenuText.styles.js +18 -23
  32. package/dist/Elements/Item/Text/DynamicLabel.d.ts +1 -1
  33. package/dist/Elements/Item/Text/DynamicLabel.js +15 -10
  34. package/dist/Elements/Item/Text/Text.const.d.ts +1 -1
  35. package/dist/Elements/Item/Text/Text.const.js +13 -6
  36. package/dist/Elements/Item/Text/Text.d.ts +2 -2
  37. package/dist/Elements/Item/Text/Text.js +131 -196
  38. package/dist/Elements/Item/Text/Text.styles.d.ts +15 -15
  39. package/dist/Elements/Item/Text/Text.styles.js +68 -112
  40. package/dist/Elements/Item/Text/Text.types.d.ts +3 -3
  41. package/dist/Elements/Item/Text/Text.types.js +1 -1
  42. package/dist/Elements/SubMenu/SubMenu.d.ts +2 -3
  43. package/dist/Elements/SubMenu/SubMenu.js +44 -89
  44. package/dist/Elements/index.js +4 -1
  45. package/dist/Menu.d.ts +6 -8
  46. package/dist/Menu.js +71 -136
  47. package/dist/Menu.styles.d.ts +4 -4
  48. package/dist/Menu.styles.js +26 -76
  49. package/dist/Menu.types.d.ts +4 -4
  50. package/dist/Menu.types.js +22 -22
  51. package/dist/assets/style/index-tn0RQdqM.css +0 -0
  52. package/dist/hooks/useTemporaryLabel.d.ts +1 -1
  53. package/dist/hooks/useTemporaryLabel.js +12 -13
  54. package/dist/index.js +25 -18
  55. package/dist/modules.d.js +1 -1
  56. package/dist/modules.d.ts +0 -0
  57. package/dist/utils/getCopyConfig.d.ts +2 -2
  58. package/dist/utils/getCopyConfig.js +21 -17
  59. package/package.json +11 -10
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.4.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.4.12...@synerise/ds-menu@1.4.13) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-menu
9
+
10
+ ## [1.4.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.4.11...@synerise/ds-menu@1.4.12) (2026-03-20)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-menu
13
+
6
14
  ## [1.4.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.4.10...@synerise/ds-menu@1.4.11) (2026-03-09)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-menu
package/README.md CHANGED
@@ -53,7 +53,7 @@ const items = [
53
53
 
54
54
  | Property | Description | Type | Default |
55
55
  | --------------- | ---------------------------------------------------------------------------- | --------------- | ------- |
56
- | asDropdownwMenu | Add additional styles for dropdown menu | boolean | `false` |
56
+ | asDropdownMenu | Add additional styles for dropdown menu | boolean | `false` |
57
57
  | dataSource | Array of items to display in menu | MenuItemProps[] | - |
58
58
  | ordered | Determines if items should be displayed with index prefix (starting from 01) | boolean | `false` |
59
59
  | maxToShowItems | limits the number of items rendered. remaining are shown after button click | number | - |
@@ -64,10 +64,10 @@ const items = [
64
64
  | Property | Description | Type | Default |
65
65
  | ----------------------- | -------------------------------------------------------------- | ------------------------------------------------------- | --------- |
66
66
  | children | Children of the item | React.ReactNode | |
67
- | copyable | Boolean to enable option of copying the value to the clipboard | boolean | `false` |
68
- | copyHint | Text displayed on hovering copyable item | string | |
69
- | copyValue | Value to be copied to clipboard when copyable item is clicked | string | |
70
- | copyTooltip | Tooltip to be displayed when copyable item is clicked | string / React.ReactNode | |
67
+ | copyable | Enables copy-to-clipboard; pass `Copyable` object for full control | `boolean` (deprecated) \| `Copyable` | - |
68
+ | copyValue | **@deprecated** use `copyable: Copyable` instead | string | |
69
+ | copyHint | **@deprecated** no longer shown | string | |
70
+ | copyTooltip | **@deprecated** no longer shown | string \| React.ReactNode | |
71
71
  | disabled | Disable an item element | boolean | `false` |
72
72
  | description | Additional description displayed inside the item | string / React.ReactNode | |
73
73
  | highlight | Text to be highlighted inside the item | string | |
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { type MenuItemProps } from '../../Menu.types';
3
- import { type BreadcrumbProps } from './Breadcrumb.types';
1
+ import { default as React } from 'react';
2
+ import { MenuItemProps } from '../../Menu.types';
3
+ import { BreadcrumbProps } from './Breadcrumb.types';
4
4
  declare const Breadcrumb: ({ path, disabled, highlight, description, onPathClick, compact, startWithArrow, gradientOverlap, highlightActivePath, ...rest }: BreadcrumbProps & MenuItemProps) => React.JSX.Element;
5
5
  export default Breadcrumb;
@@ -1,106 +1,85 @@
1
- var _excluded = ["path", "disabled", "highlight", "description", "onPathClick", "compact", "startWithArrow", "gradientOverlap", "highlightActivePath"];
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, { useCallback, useEffect, useRef, useState } from 'react';
5
- import { theme } from '@synerise/ds-core';
6
- import Icon, { AngleRightS } from '@synerise/ds-icon';
7
- import { escapeRegEx } from '@synerise/ds-utils';
8
- import * as S from './Breadcrumb.styles';
9
- var Breadcrumb = function Breadcrumb(_ref) {
10
- var path = _ref.path,
11
- disabled = _ref.disabled,
12
- highlight = _ref.highlight,
13
- description = _ref.description,
14
- onPathClick = _ref.onPathClick,
15
- compact = _ref.compact,
16
- startWithArrow = _ref.startWithArrow,
17
- gradientOverlap = _ref.gradientOverlap,
18
- highlightActivePath = _ref.highlightActivePath,
19
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
20
- var prefixel = rest.prefixel;
21
- var breadcrumbsArray = [].concat(path);
22
- var pathToDisplay = compact ? breadcrumbsArray.reverse() : breadcrumbsArray;
23
- var contentRef = useRef(null);
24
- var _useState = useState(false),
25
- gradient = _useState[0],
26
- setGradient = _useState[1];
27
- var renderWithHighlighting = useCallback(function (name) {
28
- if (highlight && typeof name === 'string') {
29
- var index = name.toLocaleLowerCase().indexOf(highlight.toLocaleLowerCase());
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useRef, useState, useCallback, useEffect } from "react";
3
+ import { theme } from "@synerise/ds-core";
4
+ import Icon, { AngleRightS } from "@synerise/ds-icon";
5
+ import { escapeRegEx } from "@synerise/ds-utils";
6
+ import { Breadcrumb as Breadcrumb$1, Description, ContentWrapper, BreadcrumbContent, BreadcrumbRoute, BreadcrumbName, ArrowRight } from "./Breadcrumb.styles.js";
7
+ const Breadcrumb = ({
8
+ path,
9
+ disabled,
10
+ highlight,
11
+ description,
12
+ onPathClick,
13
+ compact,
14
+ startWithArrow,
15
+ gradientOverlap,
16
+ highlightActivePath,
17
+ ...rest
18
+ }) => {
19
+ const {
20
+ prefixel
21
+ } = rest;
22
+ const breadcrumbsArray = [...path];
23
+ const pathToDisplay = compact ? breadcrumbsArray.reverse() : breadcrumbsArray;
24
+ const contentRef = useRef(null);
25
+ const [gradient, setGradient] = useState(false);
26
+ const renderWithHighlighting = useCallback((name) => {
27
+ if (highlight && typeof name === "string") {
28
+ const index = name.toLocaleLowerCase().indexOf(highlight.toLocaleLowerCase());
30
29
  if (index === -1) {
31
30
  return name;
32
31
  }
33
- var escapedHighlight = escapeRegEx(highlight);
34
- var startOfQuery = name.toLowerCase().search(escapedHighlight.toLowerCase());
35
- var endOfQuery = startOfQuery + highlight.length;
36
- var resultArray = [name.substring(0, startOfQuery), /*#__PURE__*/React.createElement("span", {
37
- key: name,
38
- className: "search-highlight"
39
- }, name.substring(startOfQuery, endOfQuery)), name.substring(endOfQuery, name.length)];
32
+ const escapedHighlight = escapeRegEx(highlight);
33
+ const startOfQuery = name.toLowerCase().search(escapedHighlight.toLowerCase());
34
+ const endOfQuery = startOfQuery + highlight.length;
35
+ const resultArray = [name.substring(0, startOfQuery), /* @__PURE__ */ jsx("span", { className: "search-highlight", children: name.substring(startOfQuery, endOfQuery) }, name), name.substring(endOfQuery, name.length)];
40
36
  return resultArray;
41
37
  }
42
38
  return name;
43
39
  }, [highlight]);
44
- var attachActiveClassName = useCallback(function (index) {
40
+ const attachActiveClassName = useCallback((index) => {
45
41
  if (compact) {
46
- return !!highlightActivePath && index === 0 ? 'active' : '';
42
+ return !!highlightActivePath && index === 0 ? "active" : "";
47
43
  }
48
- return !!highlightActivePath && index === path.length - 1 ? 'active' : '';
44
+ return !!highlightActivePath && index === path.length - 1 ? "active" : "";
49
45
  }, [highlightActivePath, path, compact]);
50
- var shouldRenderArrow = function shouldRenderArrow(breadCrumbPath, index) {
46
+ const shouldRenderArrow = (breadCrumbPath, index) => {
51
47
  if (!breadCrumbPath || !breadCrumbPath.length) {
52
48
  return false;
53
49
  }
54
- var nextBreadcrumb = breadCrumbPath[index + 1];
50
+ const nextBreadcrumb = breadCrumbPath[index + 1];
55
51
  if (!nextBreadcrumb) {
56
52
  return !!startWithArrow;
57
53
  }
58
54
  return true;
59
55
  };
60
- var shouldHaveArrowPlaceholder = function shouldHaveArrowPlaceholder(index) {
56
+ const shouldHaveArrowPlaceholder = (index) => {
61
57
  if (compact) {
62
58
  return startWithArrow || index < path.length - 1 && path.length > 1;
63
59
  }
64
60
  return startWithArrow || path.length > 1 || index > 0;
65
61
  };
66
- var isOverflown = function isOverflown(elementRef) {
62
+ const isOverflown = (elementRef) => {
67
63
  if (elementRef !== null && elementRef.current !== null) {
68
- var element = elementRef.current;
64
+ const element = elementRef.current;
69
65
  return element.scrollWidth > element.clientWidth;
70
66
  }
71
67
  return false;
72
68
  };
73
- useEffect(function () {
74
- var shouldRenderGradientOverlap = gradientOverlap && isOverflown(contentRef);
69
+ useEffect(() => {
70
+ const shouldRenderGradientOverlap = gradientOverlap && isOverflown(contentRef);
75
71
  setGradient(!!shouldRenderGradientOverlap);
76
72
  }, [path, contentRef, gradientOverlap]);
77
- return /*#__PURE__*/React.createElement(S.Breadcrumb, _extends({
78
- className: "ds-breadcrumb",
79
- disabled: disabled,
80
- compact: compact,
81
- onPathClick: onPathClick
82
- }, rest), !!description && /*#__PURE__*/React.createElement(S.Description, null, renderWithHighlighting(description)), /*#__PURE__*/React.createElement(S.ContentWrapper, {
83
- gradientOverlap: gradient
84
- }, /*#__PURE__*/React.createElement(S.BreadcrumbContent, {
85
- className: "breadcrumb-content",
86
- prefixel: !!prefixel,
87
- ref: contentRef
88
- }, pathToDisplay.map(function (item, index) {
89
- return /*#__PURE__*/React.createElement(S.BreadcrumbRoute, {
90
- className: "route",
91
- key: item + "-" + index
92
- }, /*#__PURE__*/React.createElement(S.BreadcrumbName, {
93
- className: "ds-breadcrumb-name " + attachActiveClassName(index),
94
- onClick: function onClick() {
73
+ return /* @__PURE__ */ jsxs(Breadcrumb$1, { className: "ds-breadcrumb", disabled, compact, onPathClick, ...rest, children: [
74
+ !!description && /* @__PURE__ */ jsx(Description, { children: renderWithHighlighting(description) }),
75
+ /* @__PURE__ */ jsx(ContentWrapper, { gradientOverlap: gradient, children: /* @__PURE__ */ jsx(BreadcrumbContent, { className: "breadcrumb-content", prefixel: !!prefixel, ref: contentRef, children: pathToDisplay.map((item, index) => /* @__PURE__ */ jsxs(BreadcrumbRoute, { className: "route", children: [
76
+ /* @__PURE__ */ jsx(BreadcrumbName, { className: `ds-breadcrumb-name ${attachActiveClassName(index)}`, onClick: () => {
95
77
  onPathClick && onPathClick(item);
96
- }
97
- }, renderWithHighlighting(item)), shouldHaveArrowPlaceholder(index) && /*#__PURE__*/React.createElement(S.ArrowRight, {
98
- className: "ds-arrow",
99
- visible: shouldRenderArrow(path, index)
100
- }, /*#__PURE__*/React.createElement(Icon, {
101
- component: /*#__PURE__*/React.createElement(AngleRightS, null),
102
- color: theme.palette['grey-600']
103
- })));
104
- }))));
78
+ }, children: renderWithHighlighting(item) }),
79
+ shouldHaveArrowPlaceholder(index) && /* @__PURE__ */ jsx(ArrowRight, { className: "ds-arrow", visible: shouldRenderArrow(path, index), children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(AngleRightS, {}), color: theme.palette["grey-600"] }) })
80
+ ] }, `${item}-${index}`)) }) })
81
+ ] });
82
+ };
83
+ export {
84
+ Breadcrumb as default
105
85
  };
106
- export default Breadcrumb;
@@ -1,19 +1,19 @@
1
- import React from 'react';
2
- import { type FlattenSimpleInterpolation } from 'styled-components';
3
- import { type ThemeProps } from '@synerise/ds-core';
4
- export declare const ArrowRight: import("styled-components").StyledComponent<"div", any, {
1
+ import { default as React } from 'react';
2
+ import { FlattenSimpleInterpolation } from 'styled-components';
3
+ import { ThemeProps } from '@synerise/ds-core';
4
+ export declare const ArrowRight: import('styled-components').StyledComponent<"div", any, {
5
5
  visible: boolean;
6
6
  }, never>;
7
- export declare const BreadcrumbContent: import("styled-components").StyledComponent<"div", any, {
7
+ export declare const BreadcrumbContent: import('styled-components').StyledComponent<"div", any, {
8
8
  prefixel?: boolean;
9
9
  }, never>;
10
- export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {
10
+ export declare const Description: import('styled-components').StyledComponent<"div", any, {}, never>;
11
+ export declare const ContentWrapper: import('styled-components').StyledComponent<"div", any, {
12
12
  gradientOverlap?: boolean;
13
13
  }, never>;
14
- export declare const BreadcrumbName: import("styled-components").StyledComponent<"div", any, {}, never>;
14
+ export declare const BreadcrumbName: import('styled-components').StyledComponent<"div", any, {}, never>;
15
15
  export declare const disableDefaultClickingStyles: (props: ThemeProps & {
16
16
  disabled?: boolean;
17
17
  }) => FlattenSimpleInterpolation;
18
- export declare const Breadcrumb: import("styled-components").StyledComponent<({ children, disabled, onPathClick, compact, ...rest }: any) => React.JSX.Element, any, {}, never>;
19
- export declare const BreadcrumbRoute: import("styled-components").StyledComponent<"div", any, {}, never>;
18
+ export declare const Breadcrumb: import('styled-components').StyledComponent<({ children, disabled, onPathClick, compact, ...rest }: any) => React.JSX.Element, any, {}, never>;
19
+ export declare const BreadcrumbRoute: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,75 +1,60 @@
1
- var _excluded = ["children", "disabled", "onPathClick", "compact"];
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 styled, { css } from 'styled-components';
6
- import Text from '../Item/Text/Text';
7
- import { PrefixelWrapper } from '../Item/Text/Text.styles';
8
- var NOOP = function NOOP() {};
9
- export var ArrowRight = styled.div.withConfig({
1
+ import { jsx } from "react/jsx-runtime";
2
+ import styled, { css } from "styled-components";
3
+ import Text from "../Item/Text/Text.js";
4
+ import { PrefixelWrapper } from "../Item/Text/Text.styles.js";
5
+ const NOOP = () => {
6
+ };
7
+ const ArrowRight = /* @__PURE__ */ styled.div.withConfig({
10
8
  displayName: "Breadcrumbstyles__ArrowRight",
11
9
  componentId: "sc-gvmxah-0"
12
- })(["transition:opacity 0.3s ease-in-out;opacity:", ";svg{transition:fill 0.3s ease-in-out;}"], function (props) {
13
- return props.visible ? '1' : '0';
14
- });
15
- export var BreadcrumbContent = styled.div.withConfig({
10
+ })(["transition:opacity 0.3s ease-in-out;opacity:", ";svg{transition:fill 0.3s ease-in-out;}"], (props) => props.visible ? "1" : "0");
11
+ const BreadcrumbContent = /* @__PURE__ */ styled.div.withConfig({
16
12
  displayName: "Breadcrumbstyles__BreadcrumbContent",
17
13
  componentId: "sc-gvmxah-1"
18
14
  })(["display:flex;"]);
19
- export var Description = styled.div.withConfig({
15
+ const Description = /* @__PURE__ */ styled.div.withConfig({
20
16
  displayName: "Breadcrumbstyles__Description",
21
17
  componentId: "sc-gvmxah-2"
22
- })(["direction:ltr;width:100%;font-weight:400;color:", ";.search-highlight{font-weight:500;}text-overflow:ellipsis;overflow:hidden;"], function (props) {
23
- return props.theme.palette['grey-600'];
24
- });
25
- export var ContentWrapper = styled.div.withConfig({
18
+ })(["direction:ltr;width:100%;font-weight:400;color:", ";.search-highlight{font-weight:500;}text-overflow:ellipsis;overflow:hidden;"], (props) => props.theme.palette["grey-600"]);
19
+ const ContentWrapper = /* @__PURE__ */ styled.div.withConfig({
26
20
  displayName: "Breadcrumbstyles__ContentWrapper",
27
21
  componentId: "sc-gvmxah-3"
28
- })(["position:relative;&::before{pointer-events:none;content:", ";position:absolute;display:block;width:50px;height:18px;transition:opacity 0.3s ease-in-out;background-image:", ";}&::after{pointer-events:none;content:", ";position:absolute;left:0;top:0;display:block;width:50px;height:18px;transition:opacity 0.3s ease-in-out;background-image:", ";}"], function (props) {
29
- return props.gradientOverlap ? "''" : 'none';
30
- }, function (props) {
31
- return "-webkit-linear-gradient( left,\n " + props.theme.palette['grey-050'] + " 0%,\n rgba(255,255,255,0) 100%\n )";
32
- }, function (props) {
33
- return props.gradientOverlap ? "''" : 'none';
34
- }, function (props) {
35
- return "-webkit-linear-gradient( left,\n " + props.theme.palette.white + " 0%,\n rgba(255,255,255,0) 100%\n )";
36
- });
37
- export var BreadcrumbName = styled.div.withConfig({
22
+ })(["position:relative;&::before{pointer-events:none;content:", ";position:absolute;display:block;width:50px;height:18px;transition:opacity 0.3s ease-in-out;background-image:", ";}&::after{pointer-events:none;content:", ";position:absolute;left:0;top:0;display:block;width:50px;height:18px;transition:opacity 0.3s ease-in-out;background-image:", ";}"], (props) => props.gradientOverlap ? `''` : "none", (props) => `-webkit-linear-gradient( left,
23
+ ${props.theme.palette["grey-050"]} 0%,
24
+ rgba(255,255,255,0) 100%
25
+ )`, (props) => props.gradientOverlap ? `''` : "none", (props) => `-webkit-linear-gradient( left,
26
+ ${props.theme.palette.white} 0%,
27
+ rgba(255,255,255,0) 100%
28
+ )`);
29
+ const BreadcrumbName = /* @__PURE__ */ styled.div.withConfig({
38
30
  displayName: "Breadcrumbstyles__BreadcrumbName",
39
31
  componentId: "sc-gvmxah-4"
40
- })(["direction:ltr;font-weight:400;transition:color 0.3s ease-in-out;color:", ";.search-highlight{font-weight:500;}"], function (props) {
41
- return props.theme.palette['grey-600'];
42
- });
43
- export var disableDefaultClickingStyles = function disableDefaultClickingStyles(props) {
44
- return css(["&,&:focus,&:hover{background:", " !important;box-shadow:inset 0 0 0 2px transparent !important;", ",", "{color:", ";}", " > .ds-icon > svg{fill:", ";}}", ":hover,", ":hover{color:", ";}&&&:hover{", "{.ds-icon > svg{fill:", " !important;}}}&&&{", ":hover{.ds-icon > svg{fill:", " !important;}}"], props.theme.palette.white, BreadcrumbName, Description, props.theme.palette['grey-600'], ArrowRight, props.theme.palette['grey-600'], BreadcrumbName, Description, props.disabled ? props.theme.palette['grey-600'] : props.theme.palette['blue-600'], PrefixelWrapper, props.theme.palette['grey-600'], PrefixelWrapper, props.theme.palette['blue-600']);
45
- };
46
- export var Breadcrumb = styled(function (_ref) {
47
- var children = _ref.children,
48
- disabled = _ref.disabled,
49
- onPathClick = _ref.onPathClick,
50
- compact = _ref.compact,
51
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
52
- return /*#__PURE__*/React.createElement(Text, _extends({
53
- disabled: disabled,
54
- onClick: NOOP
55
- }, rest), children);
56
- }).withConfig({
32
+ })(["direction:ltr;font-weight:400;transition:color 0.3s ease-in-out;color:", ";.search-highlight{font-weight:500;}"], (props) => props.theme.palette["grey-600"]);
33
+ const disableDefaultClickingStyles = (props) => css(["&,&:focus,&:hover{background:", " !important;box-shadow:inset 0 0 0 2px transparent !important;", ",", "{color:", ";}", " > .ds-icon > svg{fill:", ";}}", ":hover,", ":hover{color:", ";}&&&:hover{", "{.ds-icon > svg{fill:", " !important;}}}&&&{", ":hover{.ds-icon > svg{fill:", " !important;}}"], props.theme.palette.white, BreadcrumbName, Description, props.theme.palette["grey-600"], ArrowRight, props.theme.palette["grey-600"], BreadcrumbName, Description, props.disabled ? props.theme.palette["grey-600"] : props.theme.palette["blue-600"], PrefixelWrapper, props.theme.palette["grey-600"], PrefixelWrapper, props.theme.palette["blue-600"]);
34
+ const Breadcrumb = /* @__PURE__ */ styled(({
35
+ children,
36
+ disabled,
37
+ onPathClick,
38
+ compact,
39
+ ...rest
40
+ }) => /* @__PURE__ */ jsx(Text, { disabled, onClick: NOOP, ...rest, children })).withConfig({
57
41
  displayName: "Breadcrumbstyles__Breadcrumb",
58
42
  componentId: "sc-gvmxah-5"
59
- })(["min-height:50px;", "{direction:", ";flex-wrap:", ";}&:hover{", " > .ds-icon > svg{fill:", ";}", ",", "{color:", ";}", "::after{opacity:0;}", "::before{opacity:0;}}&:focus:active{", "::before{background-image:", ";}}", ""], BreadcrumbContent, function (props) {
60
- return props.compact ? 'rtl' : 'ltr';
61
- }, function (props) {
62
- return props.compact ? 'no-wrap' : 'wrap';
63
- }, ArrowRight, function (props) {
64
- return props.disabled ? props.theme.palette['grey-600'] : props.theme.palette['blue-600'];
65
- }, BreadcrumbName, Description, function (props) {
66
- return props.disabled ? props.theme.palette['grey-600'] : props.theme.palette['blue-600'];
67
- }, ContentWrapper, ContentWrapper, ContentWrapper, function (props) {
68
- return "-webkit-linear-gradient( left,\n " + props.theme.palette['grey-100'] + " 0%,\n rgba(255,255,255,0) 100%\n )";
69
- }, function (props) {
70
- return !!props.onPathClick && disableDefaultClickingStyles(props);
71
- });
72
- export var BreadcrumbRoute = styled.div.withConfig({
43
+ })(["min-height:50px;", "{direction:", ";flex-wrap:", ";}&:hover{", " > .ds-icon > svg{fill:", ";}", ",", "{color:", ";}", "::after{opacity:0;}", "::before{opacity:0;}}&:focus:active{", "::before{background-image:", ";}}", ""], BreadcrumbContent, (props) => props.compact ? "rtl" : "ltr", (props) => props.compact ? "no-wrap" : "wrap", ArrowRight, (props) => props.disabled ? props.theme.palette["grey-600"] : props.theme.palette["blue-600"], BreadcrumbName, Description, (props) => props.disabled ? props.theme.palette["grey-600"] : props.theme.palette["blue-600"], ContentWrapper, ContentWrapper, ContentWrapper, (props) => `-webkit-linear-gradient( left,
44
+ ${props.theme.palette["grey-100"]} 0%,
45
+ rgba(255,255,255,0) 100%
46
+ )`, (props) => !!props.onPathClick && disableDefaultClickingStyles(props));
47
+ const BreadcrumbRoute = /* @__PURE__ */ styled.div.withConfig({
73
48
  displayName: "Breadcrumbstyles__BreadcrumbRoute",
74
49
  componentId: "sc-gvmxah-6"
75
- })(["display:flex;padding-top:height:18px;.active{font-weight:500;}"]);
50
+ })(["display:flex;padding-top:height:18px;.active{font-weight:500;}"]);
51
+ export {
52
+ ArrowRight,
53
+ Breadcrumb,
54
+ BreadcrumbContent,
55
+ BreadcrumbName,
56
+ BreadcrumbRoute,
57
+ ContentWrapper,
58
+ Description,
59
+ disableDefaultClickingStyles
60
+ };
@@ -1,4 +1,4 @@
1
- import type React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface BreadcrumbProps {
3
3
  prefixel?: React.ReactNode;
4
4
  disabled?: boolean;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type WithHTMLAttributes } from '@synerise/ds-utils';
3
- import { type MenuDividerProps } from '../../Menu.types';
1
+ import { default as React } from 'react';
2
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
3
+ import { MenuDividerProps } from '../../Menu.types';
4
4
  export declare const Divider: (props: WithHTMLAttributes<HTMLDivElement, MenuDividerProps>) => React.JSX.Element;
@@ -1,9 +1,8 @@
1
- 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); }
2
- import React from 'react';
3
- import * as S from './Divider.styles';
4
- export var Divider = function Divider(props) {
5
- return /*#__PURE__*/React.createElement(S.MenuDivider, _extends({
6
- withSideMargin: true,
7
- dashed: true
8
- }, props));
9
- };
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { MenuDivider } from "./Divider.styles.js";
3
+ const Divider = (props) => {
4
+ return /* @__PURE__ */ jsx(MenuDivider, { withSideMargin: true, dashed: true, ...props });
5
+ };
6
+ export {
7
+ Divider
8
+ };
@@ -1,2 +1,2 @@
1
- import { type MenuDividerProps } from '../../Menu.types';
2
- export declare const MenuDivider: import("styled-components").StyledComponent<(props: import("@synerise/ds-divider").DividerProps) => React.JSX.Element, any, MenuDividerProps, never>;
1
+ import { MenuDividerProps } from '../../Menu.types';
2
+ export declare const MenuDivider: import('styled-components').StyledComponent<(props: import('@synerise/ds-divider').DividerProps) => React.JSX.Element, any, MenuDividerProps, never>;
@@ -1,10 +1,9 @@
1
- import styled from 'styled-components';
2
- import DSDivider from '@synerise/ds-divider';
3
- export var MenuDivider = styled(DSDivider).withConfig({
1
+ import styled from "styled-components";
2
+ import DSDivider from "@synerise/ds-divider";
3
+ const MenuDivider = /* @__PURE__ */ styled(DSDivider).withConfig({
4
4
  displayName: "Dividerstyles__MenuDivider",
5
5
  componentId: "sc-1gajr0l-0"
6
- })(["height:1px;width:auto;display:flex;margin:", " ", ";"], function (props) {
7
- return props.higher ? '16px' : '8px';
8
- }, function (props) {
9
- return props != null && props.level && (props == null ? void 0 : props.level) > 1 ? '35px' : '12px';
10
- });
6
+ })(["height:1px;width:auto;display:flex;margin:", " ", ";"], (props) => props.higher ? "16px" : "8px", (props) => props?.level && props?.level > 1 ? "35px" : "12px");
7
+ export {
8
+ MenuDivider
9
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type HeaderProps } from './Header.types';
1
+ import { default as React } from 'react';
2
+ import { HeaderProps } from './Header.types';
3
3
  declare const MenuHeader: ({ headerText, tooltip }: HeaderProps) => React.JSX.Element;
4
4
  export default MenuHeader;
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import Icon, { InfoFillS } from '@synerise/ds-icon';
3
- import Tooltip from '@synerise/ds-tooltip';
4
- import * as S from './Header.styles';
5
- var MenuHeader = function MenuHeader(_ref) {
6
- var headerText = _ref.headerText,
7
- tooltip = _ref.tooltip;
8
- return /*#__PURE__*/React.createElement(S.MenuHeader, null, headerText, tooltip && /*#__PURE__*/React.createElement(Tooltip, {
9
- type: "default",
10
- trigger: "hover",
11
- title: tooltip || headerText
12
- }, /*#__PURE__*/React.createElement(S.HeaderIconWrapper, null, /*#__PURE__*/React.createElement(Icon, {
13
- component: /*#__PURE__*/React.createElement(InfoFillS, null)
14
- }))));
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import Icon, { InfoFillS } from "@synerise/ds-icon";
3
+ import Tooltip from "@synerise/ds-tooltip";
4
+ import { MenuHeader as MenuHeader$1, HeaderIconWrapper } from "./Header.styles.js";
5
+ const MenuHeader = ({
6
+ headerText,
7
+ tooltip
8
+ }) => {
9
+ return /* @__PURE__ */ jsxs(MenuHeader$1, { children: [
10
+ headerText,
11
+ tooltip && /* @__PURE__ */ jsx(Tooltip, { type: "default", trigger: "hover", title: tooltip || headerText, children: /* @__PURE__ */ jsx(HeaderIconWrapper, { children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(InfoFillS, {}) }) }) })
12
+ ] });
13
+ };
14
+ export {
15
+ MenuHeader as default
15
16
  };
16
- export default MenuHeader;
@@ -1,2 +1,2 @@
1
- export declare const MenuHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const HeaderIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const MenuHeader: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const HeaderIconWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,13 +1,13 @@
1
- import styled from 'styled-components';
2
- export var MenuHeader = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ const MenuHeader = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "Headerstyles__MenuHeader",
4
4
  componentId: "sc-xecv8y-0"
5
- })(["display:flex;align-items:center;font-size:10px;font-weight:500;text-transform:uppercase;color:", ";height:16px;margin:12px;line-height:1.6;letter-spacing:0.1px;"], function (props) {
6
- return props.theme.palette['grey-500'];
7
- });
8
- export var HeaderIconWrapper = styled.div.withConfig({
5
+ })(["display:flex;align-items:center;font-size:10px;font-weight:500;text-transform:uppercase;color:", ";height:16px;margin:12px;line-height:1.6;letter-spacing:0.1px;"], (props) => props.theme.palette["grey-500"]);
6
+ const HeaderIconWrapper = /* @__PURE__ */ styled.div.withConfig({
9
7
  displayName: "Headerstyles__HeaderIconWrapper",
10
8
  componentId: "sc-xecv8y-1"
11
- })(["& > .ds-icon > svg{fill:", ";}"], function (props) {
12
- return props.theme.palette['grey-400'];
13
- });
9
+ })(["& > .ds-icon > svg{fill:", ";}"], (props) => props.theme.palette["grey-400"]);
10
+ export {
11
+ HeaderIconWrapper,
12
+ MenuHeader
13
+ };
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import '@synerise/ds-core/dist/js/style';
3
- import { type BasicItemProps } from '../Text/Text.types';
1
+ import { default as React } from 'react';
2
+ import { BasicItemProps } from '../Text/Text.types';
4
3
  declare const Danger: ({ children, ...rest }: BasicItemProps) => React.JSX.Element;
5
4
  export default Danger;
@@ -1,11 +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 '@synerise/ds-core/dist/js/style';
5
- import * as S from './Danger.styles';
6
- var Danger = function Danger(_ref) {
7
- var children = _ref.children,
8
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
9
- return /*#__PURE__*/React.createElement(S.DangerItem, rest, children);
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { DangerItem } from "./Danger.styles.js";
3
+ const Danger = ({
4
+ children,
5
+ ...rest
6
+ }) => {
7
+ return /* @__PURE__ */ jsx(DangerItem, { ...rest, children });
8
+ };
9
+ export {
10
+ Danger as default
10
11
  };
11
- export default Danger;
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const DangerItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => React.JSX.Element, any, {}, never>;
1
+ import { default as React } from 'react';
2
+ export declare const DangerItem: import('styled-components').StyledComponent<({ children, disabled, ...rest }: any) => React.JSX.Element, any, {}, never>;