@ctlyst.id/internal-ui 3.1.23 → 3.1.24

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.mjs CHANGED
@@ -350,7 +350,7 @@ import { Box as Box4, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, IconButt
350
350
  import { ChevronLeft, ChevronsRight, Home } from "@ctlyst.id/internal-icon";
351
351
  import { Fragment, jsx as jsx14, jsxs } from "react/jsx-runtime";
352
352
  var BreadCrumb = (props) => {
353
- const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton, hideTitle } = props;
353
+ const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton, homeButton, hideTitle } = props;
354
354
  return /* @__PURE__ */ jsxs(
355
355
  Box4,
356
356
  {
@@ -395,9 +395,11 @@ var BreadCrumb = (props) => {
395
395
  /* @__PURE__ */ jsx14(BreadcrumbItem, { children: /* @__PURE__ */ jsx14(
396
396
  BreadcrumbLink,
397
397
  {
398
+ "data-test-id": "",
398
399
  alignItems: "center",
399
- href: !disableHome ? "/" : void 0,
400
+ href: homeButton || disableHome ? void 0 : "/",
400
401
  style: { ...disableHome && { cursor: "default" } },
402
+ onClick: homeButton,
401
403
  children: /* @__PURE__ */ jsx14(Box4, { boxSize: "3.5", children: /* @__PURE__ */ jsx14(Home, { size: 3.5, color: "primary.500" }) })
402
404
  }
403
405
  ) }),
@@ -405,7 +407,7 @@ var BreadCrumb = (props) => {
405
407
  BreadcrumbLink,
406
408
  {
407
409
  "data-test-id": "",
408
- href: !val.disable ? val.link : void 0,
410
+ href: !val.disable && val.link ? val.link : void 0,
409
411
  onClick: val.onClick,
410
412
  style: {
411
413
  ...val.disable && {