@revisium/schema-toolkit-ui 0.6.11 → 0.6.12

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/dist/index.cjs CHANGED
@@ -2793,7 +2793,7 @@ const SHARED_STYLES = {
2793
2793
  fontSize: "inherit",
2794
2794
  fontFamily: "inherit"
2795
2795
  };
2796
- const SegmentContent = ({ segment, isHighlighted, onClick }) => {
2796
+ const SegmentContent = ({ segment, isHighlighted, isLast, onClick }) => {
2797
2797
  if (onClick) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledButton, {
2798
2798
  type: "button",
2799
2799
  ...SHARED_STYLES,
@@ -2815,7 +2815,7 @@ const SegmentContent = ({ segment, isHighlighted, onClick }) => {
2815
2815
  ...SHARED_STYLES,
2816
2816
  color: isHighlighted ? CURRENT_COLOR : SEGMENT_COLOR,
2817
2817
  fontWeight: isHighlighted ? "600" : void 0,
2818
- cursor: isHighlighted ? "text" : "default",
2818
+ cursor: isHighlighted || isLast ? "text" : "default",
2819
2819
  "aria-current": isHighlighted ? "page" : void 0,
2820
2820
  "data-testid": segment.dataTestId,
2821
2821
  children: segment.label
@@ -2848,6 +2848,7 @@ const Breadcrumbs = ({ segments, separator = "/", dataTestId, highlightLast = tr
2848
2848
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SegmentContent, {
2849
2849
  segment,
2850
2850
  isHighlighted: isLast && highlightLast,
2851
+ isLast,
2851
2852
  onClick: isLast ? void 0 : onSegmentClick ? () => onSegmentClick(segment, index) : void 0
2852
2853
  })
2853
2854
  }), (!isLast || editable) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_chakra_ui_react.Flex, {