@ctlyst.id/internal-ui 3.1.22 → 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
  {
@@ -359,7 +359,6 @@ var BreadCrumb = (props) => {
359
359
  display: "flex",
360
360
  justifyContent: "space-between",
361
361
  alignItems: "center",
362
- paddingY: 2,
363
362
  children: [
364
363
  /* @__PURE__ */ jsxs(Box4, { display: "flex", alignItems: "center", children: [
365
364
  !hideTitle && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -396,9 +395,11 @@ var BreadCrumb = (props) => {
396
395
  /* @__PURE__ */ jsx14(BreadcrumbItem, { children: /* @__PURE__ */ jsx14(
397
396
  BreadcrumbLink,
398
397
  {
398
+ "data-test-id": "",
399
399
  alignItems: "center",
400
- href: !disableHome ? "/" : void 0,
400
+ href: homeButton || disableHome ? void 0 : "/",
401
401
  style: { ...disableHome && { cursor: "default" } },
402
+ onClick: homeButton,
402
403
  children: /* @__PURE__ */ jsx14(Box4, { boxSize: "3.5", children: /* @__PURE__ */ jsx14(Home, { size: 3.5, color: "primary.500" }) })
403
404
  }
404
405
  ) }),
@@ -406,7 +407,7 @@ var BreadCrumb = (props) => {
406
407
  BreadcrumbLink,
407
408
  {
408
409
  "data-test-id": "",
409
- href: !val.disable ? val.link : void 0,
410
+ href: !val.disable && val.link ? val.link : void 0,
410
411
  onClick: val.onClick,
411
412
  style: {
412
413
  ...val.disable && {