@synerise/ds-cascader 2.0.12 → 2.1.1
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 +19 -0
- package/dist/Cascader.js +1 -2
- package/dist/Cascader.styles.js +3 -3
- package/dist/Elements/BackAction/BackAction.styles.js +3 -3
- package/dist/Elements/BottomAction/BottomAction.styles.js +2 -2
- package/dist/Elements/Breadcrumb/Breadcrumb.js +1 -2
- package/dist/Elements/Breadcrumb/Breadcrumb.styles.js +6 -6
- package/dist/Elements/BreadcrumbsList/BreadcrumbsList.d.ts +1 -1
- package/dist/Elements/BreadcrumbsList/BreadcrumbsList.js +1 -2
- package/dist/Elements/CategoriesList/CategoriesList.js +1 -2
- package/dist/Elements/Navigation/Navigation.js +1 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [2.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-cascader@2.1.0...@synerise/ds-cascader@2.1.1) (2026-11-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-cascader
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-cascader@2.0.12...@synerise/ds-cascader@2.1.0) (2026-10-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.0.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-cascader@2.0.11...@synerise/ds-cascader@2.0.12) (2026-10-28)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-cascader
|
package/dist/Cascader.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useLayoutEffect, useMemo, useEffect, useCallback } from "react";
|
|
3
|
-
import { theme } from "@synerise/ds-core";
|
|
4
3
|
import Icon, { SearchM } from "@synerise/ds-icon";
|
|
5
4
|
import SearchBar from "@synerise/ds-search-bar";
|
|
6
5
|
import { useResize } from "@synerise/ds-utils";
|
|
@@ -123,7 +122,7 @@ const Cascader = ({
|
|
|
123
122
|
/* @__PURE__ */ jsx(InputWrapper, { children: /* @__PURE__ */ jsx(SearchBar, { onSearchChange: (value) => {
|
|
124
123
|
setSearchQuery(value);
|
|
125
124
|
filterPathsBySearchQuery(value);
|
|
126
|
-
}, placeholder: searchInputPlaceholder || "", value: searchQuery, iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {})
|
|
125
|
+
}, placeholder: searchInputPlaceholder || "", value: searchQuery, iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}) }), onClearInput: () => setSearchQuery(""), clearTooltip: searchClearTooltip }) }),
|
|
127
126
|
/* @__PURE__ */ jsxs(SearchResults, { visible: !isSearching || filteredPaths && filteredPaths?.length > 0, ref: searchResultsContainer, style: contentStyles, children: [
|
|
128
127
|
isSearching && filteredPaths && /* @__PURE__ */ jsx(CascaderScrollbar, { maxHeight, searching: isSearching, absolute: isSearching, onScroll: ({
|
|
129
128
|
currentTarget
|
package/dist/Cascader.styles.js
CHANGED
|
@@ -3,11 +3,11 @@ import Scrollbar from "@synerise/ds-scrollbar";
|
|
|
3
3
|
const InputWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "Cascaderstyles__InputWrapper",
|
|
5
5
|
componentId: "sc-endrj4-0"
|
|
6
|
-
})(["
|
|
6
|
+
})([""]);
|
|
7
7
|
const SearchResults = /* @__PURE__ */ styled.div.withConfig({
|
|
8
8
|
displayName: "Cascaderstyles__SearchResults",
|
|
9
9
|
componentId: "sc-endrj4-1"
|
|
10
|
-
})(["position:relative;display:", ";width:100%;background:
|
|
10
|
+
})(["position:relative;display:", ";width:100%;background:var(--ds-color-background-base-default);border-radius:0 0 3px 3px;padding:8px 0 8px 8px;z-index:10;"], (props) => !props.visible ? "none" : "block");
|
|
11
11
|
const CascaderScrollbar = /* @__PURE__ */ styled(Scrollbar).withConfig({
|
|
12
12
|
displayName: "Cascaderstyles__CascaderScrollbar",
|
|
13
13
|
componentId: "sc-endrj4-2"
|
|
@@ -15,7 +15,7 @@ const CascaderScrollbar = /* @__PURE__ */ styled(Scrollbar).withConfig({
|
|
|
15
15
|
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
16
16
|
displayName: "Cascaderstyles__Wrapper",
|
|
17
17
|
componentId: "sc-endrj4-3"
|
|
18
|
-
})([""]);
|
|
18
|
+
})(["box-shadow:var(--ds-shadows-shadow-2);"]);
|
|
19
19
|
const BreadcrumbPrefix = /* @__PURE__ */ styled.div.withConfig({
|
|
20
20
|
displayName: "Cascaderstyles__BreadcrumbPrefix",
|
|
21
21
|
componentId: "sc-endrj4-4"
|
|
@@ -2,15 +2,15 @@ import styled from "styled-components";
|
|
|
2
2
|
const Label = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "BackActionstyles__Label",
|
|
4
4
|
componentId: "sc-mg8442-0"
|
|
5
|
-
})(["font-weight:500;font-size:14px;transition:color 0.3s ease;color:
|
|
5
|
+
})(["font-weight:500;font-size:14px;transition:color 0.3s ease;color:var(--ds-color-text-base-subtle);"]);
|
|
6
6
|
const IconWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
7
7
|
displayName: "BackActionstyles__IconWrapper",
|
|
8
8
|
componentId: "sc-mg8442-1"
|
|
9
|
-
})(["margin-right:12px;
|
|
9
|
+
})(["margin-right:12px;color:var(--ds-color-text-base-subtle);transition:color 0.3s ease;"]);
|
|
10
10
|
const BackActionWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
11
11
|
displayName: "BackActionstyles__BackActionWrapper",
|
|
12
12
|
componentId: "sc-mg8442-2"
|
|
13
|
-
})(["padding:0 8px;&:hover{", "{color:
|
|
13
|
+
})(["padding:0 8px;&:hover{", "{color:var(--ds-color-text-brand-default);}", "{color:var(--ds-color-text-brand-default);}}"], Label, IconWrapper);
|
|
14
14
|
const ContentWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
15
15
|
displayName: "BackActionstyles__ContentWrapper",
|
|
16
16
|
componentId: "sc-mg8442-3"
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
const IconWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "BottomActionstyles__IconWrapper",
|
|
4
4
|
componentId: "sc-rp021x-0"
|
|
5
|
-
})(["margin-right:4px;
|
|
5
|
+
})(["margin-right:4px;color:var(--ds-color-icon-base-default);"]);
|
|
6
6
|
const TextWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
7
7
|
displayName: "BottomActionstyles__TextWrapper",
|
|
8
8
|
componentId: "sc-rp021x-1"
|
|
@@ -10,7 +10,7 @@ const TextWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
|
10
10
|
const BottomAction = /* @__PURE__ */ styled.div.withConfig({
|
|
11
11
|
displayName: "BottomActionstyles__BottomAction",
|
|
12
12
|
componentId: "sc-rp021x-2"
|
|
13
|
-
})(["background-color:
|
|
13
|
+
})(["background-color:var(--ds-color-background-base-subtle);padding:0 16px;height:52px;display:flex;align-items:center;color:var(--ds-color-text-base-muted);font-weight:500;border-width:1px 0 0 0;border-color:var(--ds-color-border-base-subtle);border-style:solid;margin-top:8px;cursor:pointer;"]);
|
|
14
14
|
export {
|
|
15
15
|
BottomAction,
|
|
16
16
|
IconWrapper,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
3
|
-
import { theme } from "@synerise/ds-core";
|
|
4
3
|
import Icon, { AngleRightS } from "@synerise/ds-icon";
|
|
5
4
|
import { renderWithHighlight } from "@synerise/ds-utils";
|
|
6
5
|
import { Breadcrumb as Breadcrumb$1, OuterWrapper, PrefixWrapper, InnerWrapper, Description, ContentWrapper, BreadcrumbContent, BreadcrumbRoute, BreadcrumbName, ArrowRight } from "./Breadcrumb.styles.js";
|
|
@@ -44,7 +43,7 @@ const Breadcrumb = ({
|
|
|
44
43
|
/* @__PURE__ */ jsx(BreadcrumbName, { className: `ds-breadcrumb-name ${attachActiveClassName(index, !!highlightActivePath, path, !!compact)}`, onClick: () => {
|
|
45
44
|
onPathClick?.(item);
|
|
46
45
|
}, children: renderWithHighlight(item, highlight) }),
|
|
47
|
-
shouldHaveArrowPlaceholder(index, path, !!compact, !!startWithArrow) && /* @__PURE__ */ jsx(ArrowRight, { className: "ds-arrow", visible: shouldRenderArrow(path, index, !!startWithArrow), children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(AngleRightS, {})
|
|
46
|
+
shouldHaveArrowPlaceholder(index, path, !!compact, !!startWithArrow) && /* @__PURE__ */ jsx(ArrowRight, { className: "ds-arrow", visible: shouldRenderArrow(path, index, !!startWithArrow), children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(AngleRightS, {}) }) })
|
|
48
47
|
] }, `${item}-${index}`)) }) })
|
|
49
48
|
] })
|
|
50
49
|
] }) });
|
|
@@ -13,7 +13,7 @@ const Highlight = /* @__PURE__ */ styled.span.withConfig({
|
|
|
13
13
|
const ArrowRight = /* @__PURE__ */ styled.div.withConfig({
|
|
14
14
|
displayName: "Breadcrumbstyles__ArrowRight",
|
|
15
15
|
componentId: "sc-1rgfkd8-2"
|
|
16
|
-
})(["transition:opacity ", "
|
|
16
|
+
})(["transition:opacity ", ",color ", ";opacity:", ";color:var(--ds-color-icon-base-default);"], TRANSITION_FN, TRANSITION_FN, (props) => props.visible ? "1" : "0");
|
|
17
17
|
const BreadcrumbContent = /* @__PURE__ */ styled.div.withConfig({
|
|
18
18
|
displayName: "Breadcrumbstyles__BreadcrumbContent",
|
|
19
19
|
componentId: "sc-1rgfkd8-3"
|
|
@@ -21,16 +21,16 @@ const BreadcrumbContent = /* @__PURE__ */ styled.div.withConfig({
|
|
|
21
21
|
const Description = /* @__PURE__ */ styled.div.withConfig({
|
|
22
22
|
displayName: "Breadcrumbstyles__Description",
|
|
23
23
|
componentId: "sc-1rgfkd8-4"
|
|
24
|
-
})(["direction:ltr;width:100%;font-weight:400;color:
|
|
24
|
+
})(["direction:ltr;width:100%;font-weight:400;color:var(--ds-color-text-base-muted);.search-highlight{font-weight:500;}text-overflow:ellipsis;overflow:hidden;"]);
|
|
25
25
|
const ContentWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
26
26
|
displayName: "Breadcrumbstyles__ContentWrapper",
|
|
27
27
|
componentId: "sc-1rgfkd8-5"
|
|
28
|
-
})(["position:relative;&::before{pointer-events:none;content:'';opacity:", ";position:absolute;display:block;width:50px;height:18px;transition:opacity ", ";background-image
|
|
28
|
+
})(["position:relative;&::before{pointer-events:none;content:'';opacity:", ";position:absolute;display:block;width:50px;height:18px;transition:opacity ", ";background-image:-webkit-linear-gradient( left,var(--ds-color-background-base-subtle) 0%,transparent 100% );}&::after{pointer-events:none;content:'';opacity:", ";position:absolute;left:0;top:0;display:block;width:50px;height:18px;transition:opacity ", ";background-image:-webkit-linear-gradient( left,var(--ds-color-background-base-default) 0%,transparent 100% );}"], (props) => props.gradientOverlap ? "1" : "0", TRANSITION_FN, (props) => props.gradientOverlap ? "1" : "0", TRANSITION_FN);
|
|
29
29
|
const BreadcrumbName = /* @__PURE__ */ styled.div.withConfig({
|
|
30
30
|
displayName: "Breadcrumbstyles__BreadcrumbName",
|
|
31
31
|
componentId: "sc-1rgfkd8-6"
|
|
32
|
-
})(["direction:ltr;font-weight:400;transition:color ", ";color:
|
|
33
|
-
const disableDefaultClickingStyles = (props) => css(["&,&:focus,&:hover{background:
|
|
32
|
+
})(["direction:ltr;font-weight:400;transition:color ", ";color:var(--ds-color-text-base-muted);.search-highlight{font-weight:500;}"], TRANSITION_FN);
|
|
33
|
+
const disableDefaultClickingStyles = (props) => css(["&,&:focus,&:hover{background:var(--ds-color-background-base-default) !important;box-shadow:inset 0 0 0 2px transparent !important;", ",", "{color:var(--ds-color-text-base-muted);}", "{color:var(--ds-color-icon-base-default);}}", ":hover,", ":hover{color:", ";}&&&:hover{", "{color:var(--ds-color-icon-base-default);}}&&&{", ":hover{color:var(--ds-color-icon-brand-default);}}"], BreadcrumbName, Description, ArrowRight, BreadcrumbName, Description, props.disabled ? "var(--ds-color-text-base-muted)" : "var(--ds-color-text-brand-default)", PrefixWrapper, PrefixWrapper);
|
|
34
34
|
const OuterWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
35
35
|
displayName: "Breadcrumbstyles__OuterWrapper",
|
|
36
36
|
componentId: "sc-1rgfkd8-7"
|
|
@@ -42,7 +42,7 @@ const InnerWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
|
42
42
|
const Breadcrumb = /* @__PURE__ */ styled(ListItem).withConfig({
|
|
43
43
|
displayName: "Breadcrumbstyles__Breadcrumb",
|
|
44
44
|
componentId: "sc-1rgfkd8-9"
|
|
45
|
-
})(["", "{direction:", ";flex-wrap:", ";}&:hover{", "::after{opacity:0;}", "::before{opacity:0;}}", " ", ""], BreadcrumbContent, (props) => props.compact ? "rtl" : "ltr", (props) => props.compact ? "no-wrap" : "wrap", ContentWrapper, ContentWrapper, (props) => props.isNavigation ? css(["&:hover,&:active,&:focus,&:focus:active{", "{background:transparent;}}", ",", "{&:hover{color:", ";}}&&&{", ":
|
|
45
|
+
})(["", "{direction:", ";flex-wrap:", ";}&:hover{", "::after{opacity:0;}", "::before{opacity:0;}}", " ", ""], BreadcrumbContent, (props) => props.compact ? "rtl" : "ltr", (props) => props.compact ? "no-wrap" : "wrap", ContentWrapper, ContentWrapper, (props) => props.isNavigation ? css(["&:hover,&:active,&:focus,&:focus:active{", "{background:transparent;}}", ",", "{&:hover{color:", ";}}&&&{", "{color:var(--ds-color-icon-base-default);}", ":hover{color:var(--ds-color-icon-brand-default);}&:focus{", "{box-shadow:none;}}}"], Inner, BreadcrumbName, Description, props.disabled ? "var(--ds-color-text-base-muted)" : "var(--ds-color-text-brand-default)", PrefixWrapper, PrefixWrapper, Inner) : css(["&:hover{background:var(--ds-color-background-base-subtle);color:var(--ds-color-text-brand-default);", "{color:", ";}", ",", "{color:", ";}}&:focus:not(:active){box-shadow:inset 0 0 0 2px var(--ds-color-border-brand-default);}&:focus:active{", "::before{background-image:", ";}}"], ArrowRight, props.disabled ? "var(--ds-color-icon-base-default)" : "var(--ds-color-icon-brand-default)", BreadcrumbName, Description, props.disabled ? "var(--ds-color-text-base-muted)" : "var(--ds-color-text-brand-default)", ContentWrapper, `-webkit-linear-gradient( left, var(--ds-color-background-base-muted) 0%, transparent 100%)`), (props) => props.clickable && !props.isNavigation && disableDefaultClickingStyles(props));
|
|
46
46
|
const BreadcrumbRoute = /* @__PURE__ */ styled.div.withConfig({
|
|
47
47
|
displayName: "Breadcrumbstyles__BreadcrumbRoute",
|
|
48
48
|
componentId: "sc-1rgfkd8-10"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Path } from '../../Cascader.types';
|
|
3
3
|
import { BreadcrumbsListProps } from './BreadcrumbsList.types';
|
|
4
|
-
export declare const BreadcrumbsList: ({ paths, highlight, width, visibleRows, onBreadCrumbClick, rowHeight, scrollTop, selectedIds, }: BreadcrumbsListProps) => React.ReactElement<import('@synerise/ds-search/dist/Elements/SearchItems/SearchItems.types').SearchItemListProps<Path>, string | React.JSXElementConstructor<any>>;
|
|
4
|
+
export declare const BreadcrumbsList: ({ paths, highlight, width, visibleRows, onBreadCrumbClick, rowHeight, scrollTop, selectedIds, }: BreadcrumbsListProps) => React.ReactElement<import('@synerise/ds-search/dist/Elements/SearchItems/SearchItems.types.js').SearchItemListProps<Path>, string | React.JSXElementConstructor<any>>;
|
|
5
5
|
export default BreadcrumbsList;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { theme } from "@synerise/ds-core";
|
|
3
2
|
import Icon, { CheckS } from "@synerise/ds-icon";
|
|
4
3
|
import { renderSearchList } from "@synerise/ds-search";
|
|
5
4
|
import { Breadcrumb } from "../Breadcrumb/Breadcrumb.js";
|
|
@@ -26,7 +25,7 @@ const BreadcrumbsList = ({
|
|
|
26
25
|
rowHeight: rowHeight || DEFAULT_ROW_HEIGHT,
|
|
27
26
|
onItemClick: onBreadCrumbClick,
|
|
28
27
|
itemRender: (item) => {
|
|
29
|
-
const tickIcon = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Icon, { color:
|
|
28
|
+
const tickIcon = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Icon, { color: "var(--ds-color-icon-success-default)", component: /* @__PURE__ */ jsx(CheckS, {}) }) });
|
|
30
29
|
return /* @__PURE__ */ jsx(Breadcrumb, { gradientOverlap: true, compact: true, path: item.path, suffixel: selectedIds.includes(item.id) ? tickIcon : void 0, description: item.path[item.path.length - 1], highlight }, `${item.id}`);
|
|
31
30
|
},
|
|
32
31
|
listProps: listPropsObject
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { theme } from "@synerise/ds-core";
|
|
5
4
|
import Icon, { CheckS } from "@synerise/ds-icon";
|
|
6
5
|
import ListItem from "@synerise/ds-list-item";
|
|
7
6
|
import { hasNestedCategories } from "../../utils.js";
|
|
@@ -23,7 +22,7 @@ const CategoriesList = ({
|
|
|
23
22
|
event.stopPropagation();
|
|
24
23
|
onSuffixelClick && onSuffixelClick(item);
|
|
25
24
|
}, [onSuffixelClick]);
|
|
26
|
-
const renderSuffix = (item) => /* @__PURE__ */ jsx(CategoriesSuffix, { onClick: (event) => onSuffixelClickHandler(item, event), children: selectedIds.includes(item.id) ? /* @__PURE__ */ jsx(Icon, { color:
|
|
25
|
+
const renderSuffix = (item) => /* @__PURE__ */ jsx(CategoriesSuffix, { onClick: (event) => onSuffixelClickHandler(item, event), children: selectedIds.includes(item.id) ? /* @__PURE__ */ jsx(Icon, { color: "var(--ds-color-icon-success-default)", component: /* @__PURE__ */ jsx(CheckS, {}) }) : suffixel });
|
|
27
26
|
return /* @__PURE__ */ jsx(Fragment, { children: (rootCategory.children ?? []).map((item) => /* @__PURE__ */ jsx(ListItem, { text: item.name, type: selectedIds.includes(item.id) ? void 0 : "select", suffixel: renderSuffix(item), parent: hasNestedCategories(item), onClick: () => onCategoryClickHandler(item) }, `${item.id}`)) });
|
|
28
27
|
};
|
|
29
28
|
export {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { theme } from "@synerise/ds-core";
|
|
3
2
|
import Divider from "@synerise/ds-divider";
|
|
4
3
|
import Icon, { HomeM } from "@synerise/ds-icon";
|
|
5
4
|
import { BreadcrumbPrefix, DividerContainer } from "../../Cascader.styles.js";
|
|
@@ -15,7 +14,7 @@ const Navigation = ({
|
|
|
15
14
|
}) => {
|
|
16
15
|
const renderBreadcrumbs = () => {
|
|
17
16
|
return breadcrumbVisible && activeCategory ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
-
/* @__PURE__ */ jsx(Breadcrumb, { isNavigation: true, path: activeCategory.path, onPathClick, gradientOverlap: true, highlightActivePath: true, prefixel: /* @__PURE__ */ jsx(BreadcrumbPrefix, { onClick: onHomeIconClick, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(HomeM, {})
|
|
17
|
+
/* @__PURE__ */ jsx(Breadcrumb, { isNavigation: true, path: activeCategory.path, onPathClick, gradientOverlap: true, highlightActivePath: true, prefixel: /* @__PURE__ */ jsx(BreadcrumbPrefix, { onClick: onHomeIconClick, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(HomeM, {}) }) }), compact: true }),
|
|
19
18
|
/* @__PURE__ */ jsx(DividerContainer, { children: /* @__PURE__ */ jsx(Divider, { dashed: true }) })
|
|
20
19
|
] }) : null;
|
|
21
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-cascader",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Cascader UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-divider": "^2.
|
|
46
|
-
"@synerise/ds-icon": "^2.
|
|
47
|
-
"@synerise/ds-list-item": "^2.
|
|
48
|
-
"@synerise/ds-scrollbar": "^2.
|
|
49
|
-
"@synerise/ds-search": "^2.
|
|
50
|
-
"@synerise/ds-search-bar": "^2.
|
|
51
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-divider": "^2.1.1",
|
|
46
|
+
"@synerise/ds-icon": "^2.3.1",
|
|
47
|
+
"@synerise/ds-list-item": "^2.4.0",
|
|
48
|
+
"@synerise/ds-scrollbar": "^2.1.1",
|
|
49
|
+
"@synerise/ds-search": "^2.1.1",
|
|
50
|
+
"@synerise/ds-search-bar": "^2.1.1",
|
|
51
|
+
"@synerise/ds-utils": "^2.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"vitest": "4"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"react": ">=16.9.0 <= 18.3.1",
|
|
59
59
|
"styled-components": "^5.3.3"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
|
|
62
62
|
}
|