@synerise/ds-menu 1.4.12 → 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.
- package/CHANGELOG.md +4 -0
- package/dist/Elements/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/Elements/Breadcrumb/Breadcrumb.js +53 -74
- package/dist/Elements/Breadcrumb/Breadcrumb.styles.d.ts +10 -10
- package/dist/Elements/Breadcrumb/Breadcrumb.styles.js +45 -60
- package/dist/Elements/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/Elements/Breadcrumb/Breadcrumb.types.js +1 -1
- package/dist/Elements/Divider/Divider.d.ts +3 -3
- package/dist/Elements/Divider/Divider.js +8 -9
- package/dist/Elements/Divider/Divider.styles.d.ts +2 -2
- package/dist/Elements/Divider/Divider.styles.js +7 -8
- package/dist/Elements/Header/Header.d.ts +2 -2
- package/dist/Elements/Header/Header.js +15 -15
- package/dist/Elements/Header/Header.styles.d.ts +2 -2
- package/dist/Elements/Header/Header.styles.js +9 -9
- package/dist/Elements/Header/Header.types.js +1 -1
- package/dist/Elements/Item/Danger/Danger.d.ts +2 -3
- package/dist/Elements/Item/Danger/Danger.js +10 -10
- package/dist/Elements/Item/Danger/Danger.styles.d.ts +2 -2
- package/dist/Elements/Item/Danger/Danger.styles.js +28 -33
- package/dist/Elements/Item/MenuItem.d.ts +2 -3
- package/dist/Elements/Item/MenuItem.js +45 -89
- package/dist/Elements/Item/Select/Select.d.ts +2 -3
- package/dist/Elements/Item/Select/Select.js +12 -16
- package/dist/Elements/Item/Select/Select.styles.d.ts +2 -2
- package/dist/Elements/Item/Select/Select.styles.js +13 -18
- package/dist/Elements/Item/SubmenuText/SubmenuText.d.ts +2 -3
- package/dist/Elements/Item/SubmenuText/SubmenuText.js +15 -24
- package/dist/Elements/Item/SubmenuText/SubmenuText.styles.d.ts +3 -3
- package/dist/Elements/Item/SubmenuText/SubmenuText.styles.js +18 -23
- package/dist/Elements/Item/Text/DynamicLabel.d.ts +1 -1
- package/dist/Elements/Item/Text/DynamicLabel.js +15 -10
- package/dist/Elements/Item/Text/Text.const.d.ts +1 -1
- package/dist/Elements/Item/Text/Text.const.js +13 -6
- package/dist/Elements/Item/Text/Text.d.ts +2 -2
- package/dist/Elements/Item/Text/Text.js +131 -196
- package/dist/Elements/Item/Text/Text.styles.d.ts +15 -15
- package/dist/Elements/Item/Text/Text.styles.js +68 -112
- package/dist/Elements/Item/Text/Text.types.d.ts +3 -3
- package/dist/Elements/Item/Text/Text.types.js +1 -1
- package/dist/Elements/SubMenu/SubMenu.d.ts +2 -3
- package/dist/Elements/SubMenu/SubMenu.js +44 -89
- package/dist/Elements/index.js +4 -1
- package/dist/Menu.d.ts +6 -8
- package/dist/Menu.js +71 -136
- package/dist/Menu.styles.d.ts +4 -4
- package/dist/Menu.styles.js +26 -76
- package/dist/Menu.types.d.ts +4 -4
- package/dist/Menu.types.js +22 -22
- package/dist/assets/style/index-tn0RQdqM.css +0 -0
- package/dist/hooks/useTemporaryLabel.d.ts +1 -1
- package/dist/hooks/useTemporaryLabel.js +12 -13
- package/dist/index.js +25 -18
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/dist/utils/getCopyConfig.d.ts +2 -2
- package/dist/utils/getCopyConfig.js +21 -17
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
|
|
6
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)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-menu
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
40
|
+
const attachActiveClassName = useCallback((index) => {
|
|
45
41
|
if (compact) {
|
|
46
|
-
return !!highlightActivePath && index === 0 ?
|
|
42
|
+
return !!highlightActivePath && index === 0 ? "active" : "";
|
|
47
43
|
}
|
|
48
|
-
return !!highlightActivePath && index === path.length - 1 ?
|
|
44
|
+
return !!highlightActivePath && index === path.length - 1 ? "active" : "";
|
|
49
45
|
}, [highlightActivePath, path, compact]);
|
|
50
|
-
|
|
46
|
+
const shouldRenderArrow = (breadCrumbPath, index) => {
|
|
51
47
|
if (!breadCrumbPath || !breadCrumbPath.length) {
|
|
52
48
|
return false;
|
|
53
49
|
}
|
|
54
|
-
|
|
50
|
+
const nextBreadcrumb = breadCrumbPath[index + 1];
|
|
55
51
|
if (!nextBreadcrumb) {
|
|
56
52
|
return !!startWithArrow;
|
|
57
53
|
}
|
|
58
54
|
return true;
|
|
59
55
|
};
|
|
60
|
-
|
|
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
|
-
|
|
62
|
+
const isOverflown = (elementRef) => {
|
|
67
63
|
if (elementRef !== null && elementRef.current !== null) {
|
|
68
|
-
|
|
64
|
+
const element = elementRef.current;
|
|
69
65
|
return element.scrollWidth > element.clientWidth;
|
|
70
66
|
}
|
|
71
67
|
return false;
|
|
72
68
|
};
|
|
73
|
-
useEffect(
|
|
74
|
-
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
const shouldRenderGradientOverlap = gradientOverlap && isOverflown(contentRef);
|
|
75
71
|
setGradient(!!shouldRenderGradientOverlap);
|
|
76
72
|
}, [path, contentRef, gradientOverlap]);
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
export declare const ArrowRight: import(
|
|
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(
|
|
7
|
+
export declare const BreadcrumbContent: import('styled-components').StyledComponent<"div", any, {
|
|
8
8
|
prefixel?: boolean;
|
|
9
9
|
}, never>;
|
|
10
|
-
export declare const Description: import(
|
|
11
|
-
export declare const ContentWrapper: import(
|
|
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(
|
|
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(
|
|
19
|
-
export declare const BreadcrumbRoute: import(
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;}"],
|
|
13
|
-
|
|
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
|
-
|
|
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;"],
|
|
23
|
-
|
|
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:", ";}"],
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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;}"],
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 {
|
|
2
|
-
export declare const MenuDivider: import(
|
|
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
|
|
2
|
-
import DSDivider from
|
|
3
|
-
|
|
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:", " ", ";"],
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 {
|
|
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
|
|
2
|
-
import Icon, { InfoFillS } from
|
|
3
|
-
import Tooltip from
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
title: tooltip || headerText
|
|
12
|
-
}
|
|
13
|
-
|
|
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(
|
|
2
|
-
export declare const HeaderIconWrapper: import(
|
|
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
|
|
2
|
-
|
|
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;"],
|
|
6
|
-
|
|
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:", ";}"],
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
})(["& > .ds-icon > svg{fill:", ";}"], (props) => props.theme.palette["grey-400"]);
|
|
10
|
+
export {
|
|
11
|
+
HeaderIconWrapper,
|
|
12
|
+
MenuHeader
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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(
|
|
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>;
|
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
disabled = _ref.disabled,
|
|
12
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
|
-
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
14
|
-
disabled: disabled
|
|
15
|
-
}, rest), children);
|
|
16
|
-
}).withConfig({
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { IconContainer } from "@synerise/ds-icon";
|
|
4
|
+
import Text from "../Text/Text.js";
|
|
5
|
+
import { ContentWrapper, PrefixelWrapper } from "../Text/Text.styles.js";
|
|
6
|
+
const DangerItem = /* @__PURE__ */ styled(({
|
|
7
|
+
children,
|
|
8
|
+
disabled,
|
|
9
|
+
...rest
|
|
10
|
+
}) => /* @__PURE__ */ jsx(Text, { disabled, ...rest, children })).withConfig({
|
|
17
11
|
displayName: "Dangerstyles__DangerItem",
|
|
18
12
|
componentId: "sc-1n4dcl2-0"
|
|
19
|
-
})(["&&&{&.ant-menu-submenu-disabled,&.-submenu-disabled{color:", ";svg{fill:", ";}}color:", ";", "{color:", ";}", "{.ds-icon > svg{", "}}&:hover{", "}&:focus{", "}&:focus:active{", "}}"],
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
})(["&&&{&.ant-menu-submenu-disabled,&.-submenu-disabled{color:", ";svg{fill:", ";}}color:", ";", "{color:", ";}", "{.ds-icon > svg{", "}}&:hover{", "}&:focus{", "}&:focus:active{", "}}"], (props) => props.theme.palette["red-600"], (props) => props.theme.palette["red-600"], (props) => props.theme.palette["red-600"], ContentWrapper, (props) => props.theme.palette["red-600"], PrefixelWrapper, (props) => `
|
|
14
|
+
fill: ${props.theme.palette["red-600"]};
|
|
15
|
+
`, (props) => !props.disabled && `
|
|
16
|
+
${PrefixelWrapper} > ${IconContainer} > svg {
|
|
17
|
+
fill: ${props.theme.palette["red-600"]} !important;
|
|
18
|
+
}
|
|
19
|
+
background: ${props.theme.palette["red-050"]};
|
|
20
|
+
`, (props) => !props.disabled && `
|
|
21
|
+
${PrefixelWrapper} > ${IconContainer} > svg {
|
|
22
|
+
fill: ${props.theme.palette["red-600"]} !important;
|
|
23
|
+
}
|
|
24
|
+
background: ${props.theme.palette["red-050"]} !important;
|
|
25
|
+
`, (props) => !props.disabled && `
|
|
26
|
+
background: ${props.theme.palette["red-100"]} !important;
|
|
27
|
+
`);
|
|
28
|
+
export {
|
|
29
|
+
DangerItem
|
|
30
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '
|
|
3
|
-
import { type MenuDividerProps, type MenuItemProps, type SubMenuProps } from '../../Menu.types';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MenuDividerProps, MenuItemProps, SubMenuProps } from '../../Menu.types';
|
|
4
3
|
declare const MenuItem: ({ prefixel, suffixel, ordered, disabled, danger, text, description, subMenu, children, type, indentLevel, timeToHideTooltip, onClick, menuItemKey, onTitleClick, ...rest }: Omit<SubMenuProps, "ItemComponent"> & MenuItemProps & MenuDividerProps) => React.JSX.Element;
|
|
5
4
|
export default MenuItem;
|