@eclass/ui-kit 1.36.0 → 1.37.0

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.
@@ -29654,10 +29654,21 @@ function BtnLink({
29654
29654
  children,
29655
29655
  m: m2 = "0",
29656
29656
  onClick,
29657
- id: id2
29657
+ id: id2,
29658
+ as = "button",
29659
+ href = ""
29658
29660
  }) {
29661
+ const typeButton = {
29662
+ button: {
29663
+ onClick
29664
+ },
29665
+ a: {
29666
+ href,
29667
+ target: "_blank"
29668
+ }
29669
+ };
29659
29670
  return /* @__PURE__ */ jsx(Box, {
29660
- as: "button",
29671
+ as,
29661
29672
  id: id2,
29662
29673
  backgroundColor: "transparent",
29663
29674
  borderStyle: "none",
@@ -29672,11 +29683,11 @@ function BtnLink({
29672
29683
  textDecorationLine: "underline",
29673
29684
  color: vars("colors-main-deepSkyBlue"),
29674
29685
  m: m2,
29675
- onClick,
29676
29686
  _hover: {
29677
29687
  color: vars("colors-neutral-darkCharcoal"),
29678
29688
  cursor: "pointer"
29679
29689
  },
29690
+ ...typeButton[as],
29680
29691
  children
29681
29692
  });
29682
29693
  }