@landtrustinc/design-system 1.2.29 → 1.2.32-beta.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.
package/dist/index.js CHANGED
@@ -8997,7 +8997,11 @@ var ScrollingCarousel = ({
8997
8997
  {
8998
8998
  "aria-label": "Previous",
8999
8999
  type: "button",
9000
- onClick: back,
9000
+ onClick: (e) => {
9001
+ e.preventDefault();
9002
+ e.stopPropagation();
9003
+ back(e);
9004
+ },
9001
9005
  css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
9002
9006
  "data-testid": `scrolling-carousel-button-back-${id}`,
9003
9007
  children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
@@ -9008,7 +9012,11 @@ var ScrollingCarousel = ({
9008
9012
  {
9009
9013
  "aria-label": "Next",
9010
9014
  type: "button",
9011
- onClick: next,
9015
+ onClick: (e) => {
9016
+ e.preventDefault();
9017
+ e.stopPropagation();
9018
+ next(e);
9019
+ },
9012
9020
  css: buttonRight(buttonsPosition),
9013
9021
  "data-testid": `scrolling-carousel-button-next-${id}`,
9014
9022
  children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
@@ -9055,7 +9063,11 @@ ScrollingCarousel.displayName = "ScrollingCarousel";
9055
9063
 
9056
9064
  // src/PackageCard/PackageCard.styles.ts
9057
9065
  var import_react58 = require("@emotion/react");
9058
- var cardContainerStyles3 = (orientation, hasContentBackground) => import_react58.css`
9066
+ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react58.css`
9067
+ ${hasClickHandler && `
9068
+ cursor: pointer;
9069
+ `}
9070
+
9059
9071
  color: var(--text-primary);
9060
9072
  position: relative;
9061
9073
  width: 100%;
@@ -9219,8 +9231,9 @@ var PackageCard = ({
9219
9231
  Box_default,
9220
9232
  {
9221
9233
  position: "relative",
9222
- css: cardContainerStyles3(orientation, hasContentBackground),
9234
+ css: cardContainerStyles3(orientation, hasContentBackground, !!onClick),
9223
9235
  className,
9236
+ onClick,
9224
9237
  ...rest,
9225
9238
  children: [
9226
9239
  /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
@@ -9251,7 +9264,6 @@ var PackageCard = ({
9251
9264
  ScrollingCarouselStep,
9252
9265
  {
9253
9266
  parentId: carouselId,
9254
- onClick,
9255
9267
  children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9256
9268
  Box_default,
9257
9269
  {
@@ -9305,7 +9317,6 @@ var PackageCard = ({
9305
9317
  /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
9306
9318
  Box_default,
9307
9319
  {
9308
- onClick,
9309
9320
  display: "flex",
9310
9321
  flexDirection: "column",
9311
9322
  gap: "var(--spacing-1)",