@landtrustinc/design-system 1.2.30-beta.0 → 1.2.32
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.d.ts +0 -15
- package/dist/index.js +30 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1113,21 +1113,6 @@ type TopMatchingFieldNoteProps = {
|
|
|
1113
1113
|
* Children content (used when rendering from markdown)
|
|
1114
1114
|
*/
|
|
1115
1115
|
children?: React__default.ReactNode;
|
|
1116
|
-
/**
|
|
1117
|
-
* Whether to use Bytescale image optimization
|
|
1118
|
-
* @default true
|
|
1119
|
-
*/
|
|
1120
|
-
isBytescaleImage?: boolean;
|
|
1121
|
-
/**
|
|
1122
|
-
* Image width for Bytescale optimization
|
|
1123
|
-
* @default 376
|
|
1124
|
-
*/
|
|
1125
|
-
width?: number;
|
|
1126
|
-
/**
|
|
1127
|
-
* Image height for Bytescale optimization
|
|
1128
|
-
* @default 275
|
|
1129
|
-
*/
|
|
1130
|
-
height?: number;
|
|
1131
1116
|
};
|
|
1132
1117
|
declare const TopMatchingFieldNote: FC<TopMatchingFieldNoteProps>;
|
|
1133
1118
|
|
package/dist/index.js
CHANGED
|
@@ -5230,13 +5230,6 @@ var imageStyles = import_react17.css`
|
|
|
5230
5230
|
|
|
5231
5231
|
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.tsx
|
|
5232
5232
|
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5233
|
-
var BYTESCALE_ACCOUNT_ID = "12a1yC2";
|
|
5234
|
-
var getImageUrl = (path, width2, height, useBytescale) => {
|
|
5235
|
-
if (useBytescale) {
|
|
5236
|
-
return `https://upcdn.io/${BYTESCALE_ACCOUNT_ID}/image${path}?w=${width2}&h=${height}&f=auto&cache_perm=auto&cache_ttl=31536000`;
|
|
5237
|
-
}
|
|
5238
|
-
return path;
|
|
5239
|
-
};
|
|
5240
5233
|
var TopMatchingFieldNote = ({
|
|
5241
5234
|
author,
|
|
5242
5235
|
datePosted,
|
|
@@ -5244,10 +5237,7 @@ var TopMatchingFieldNote = ({
|
|
|
5244
5237
|
images,
|
|
5245
5238
|
title = "Top matching field note",
|
|
5246
5239
|
className,
|
|
5247
|
-
children
|
|
5248
|
-
isBytescaleImage = true,
|
|
5249
|
-
width: width2 = 376,
|
|
5250
|
-
height = 275
|
|
5240
|
+
children
|
|
5251
5241
|
}) => {
|
|
5252
5242
|
let parsedImages = [];
|
|
5253
5243
|
try {
|
|
@@ -5281,12 +5271,12 @@ var TopMatchingFieldNote = ({
|
|
|
5281
5271
|
className,
|
|
5282
5272
|
children: [
|
|
5283
5273
|
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: displayContent }),
|
|
5284
|
-
parsedImages.length > 0 &&
|
|
5274
|
+
parsedImages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5285
5275
|
"div",
|
|
5286
5276
|
{
|
|
5287
5277
|
css: imageStyles,
|
|
5288
5278
|
style: {
|
|
5289
|
-
backgroundImage: `url('${
|
|
5279
|
+
backgroundImage: `url('${parsedImages[0]}')`
|
|
5290
5280
|
}
|
|
5291
5281
|
}
|
|
5292
5282
|
),
|
|
@@ -9007,7 +8997,11 @@ var ScrollingCarousel = ({
|
|
|
9007
8997
|
{
|
|
9008
8998
|
"aria-label": "Previous",
|
|
9009
8999
|
type: "button",
|
|
9010
|
-
onClick:
|
|
9000
|
+
onClick: (e) => {
|
|
9001
|
+
e.preventDefault();
|
|
9002
|
+
e.stopPropagation();
|
|
9003
|
+
back(e);
|
|
9004
|
+
},
|
|
9011
9005
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
9012
9006
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
9013
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 }) })
|
|
@@ -9018,7 +9012,11 @@ var ScrollingCarousel = ({
|
|
|
9018
9012
|
{
|
|
9019
9013
|
"aria-label": "Next",
|
|
9020
9014
|
type: "button",
|
|
9021
|
-
onClick:
|
|
9015
|
+
onClick: (e) => {
|
|
9016
|
+
e.preventDefault();
|
|
9017
|
+
e.stopPropagation();
|
|
9018
|
+
next(e);
|
|
9019
|
+
},
|
|
9022
9020
|
css: buttonRight(buttonsPosition),
|
|
9023
9021
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
9024
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 }) })
|
|
@@ -9065,7 +9063,15 @@ ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
|
9065
9063
|
|
|
9066
9064
|
// src/PackageCard/PackageCard.styles.ts
|
|
9067
9065
|
var import_react58 = require("@emotion/react");
|
|
9068
|
-
var cardContainerStyles3 = (orientation, hasContentBackground) => import_react58.css`
|
|
9066
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react58.css`
|
|
9067
|
+
${hasClickHandler && `
|
|
9068
|
+
cursor: pointer;
|
|
9069
|
+
|
|
9070
|
+
&:hover {
|
|
9071
|
+
box-shadow: 0 5px 30px 0 rgba(0,0,0,.1);
|
|
9072
|
+
}
|
|
9073
|
+
`}
|
|
9074
|
+
|
|
9069
9075
|
color: var(--text-primary);
|
|
9070
9076
|
position: relative;
|
|
9071
9077
|
width: 100%;
|
|
@@ -9086,6 +9092,12 @@ var cardContainerStyles3 = (orientation, hasContentBackground) => import_react58
|
|
|
9086
9092
|
gap: var(--spacing-4);
|
|
9087
9093
|
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
9088
9094
|
rgba(17, 17, 17, 0.1);
|
|
9095
|
+
|
|
9096
|
+
${hasClickHandler && `
|
|
9097
|
+
&:hover {
|
|
9098
|
+
box-shadow: 0 5px 30px 0 rgba(0,0,0,.1);
|
|
9099
|
+
}
|
|
9100
|
+
`}
|
|
9089
9101
|
}
|
|
9090
9102
|
`}
|
|
9091
9103
|
|
|
@@ -9229,8 +9241,9 @@ var PackageCard = ({
|
|
|
9229
9241
|
Box_default,
|
|
9230
9242
|
{
|
|
9231
9243
|
position: "relative",
|
|
9232
|
-
css: cardContainerStyles3(orientation, hasContentBackground),
|
|
9244
|
+
css: cardContainerStyles3(orientation, hasContentBackground, !!onClick),
|
|
9233
9245
|
className,
|
|
9246
|
+
onClick,
|
|
9234
9247
|
...rest,
|
|
9235
9248
|
children: [
|
|
9236
9249
|
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
@@ -9261,7 +9274,6 @@ var PackageCard = ({
|
|
|
9261
9274
|
ScrollingCarouselStep,
|
|
9262
9275
|
{
|
|
9263
9276
|
parentId: carouselId,
|
|
9264
|
-
onClick,
|
|
9265
9277
|
children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9266
9278
|
Box_default,
|
|
9267
9279
|
{
|
|
@@ -9315,7 +9327,6 @@ var PackageCard = ({
|
|
|
9315
9327
|
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9316
9328
|
Box_default,
|
|
9317
9329
|
{
|
|
9318
|
-
onClick,
|
|
9319
9330
|
display: "flex",
|
|
9320
9331
|
flexDirection: "column",
|
|
9321
9332
|
gap: "var(--spacing-1)",
|