@epam/ai-dial-catalog 1.3.5 → 1.3.6
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/components/CardGrid/Card.d.ts.map +1 -1
- package/index.js +38 -37
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2BzD,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2BzD,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA8R9B,CAAC"}
|
package/index.js
CHANGED
|
@@ -355,27 +355,37 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
355
355
|
U(() => {
|
|
356
356
|
v(r);
|
|
357
357
|
}, [e.id, r]);
|
|
358
|
-
let { ref: b, isClamped: x } = de(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C =
|
|
359
|
-
p:
|
|
360
|
-
ul:
|
|
361
|
-
ol:
|
|
362
|
-
h1:
|
|
363
|
-
h2:
|
|
364
|
-
h3:
|
|
365
|
-
h4:
|
|
366
|
-
h5:
|
|
367
|
-
h6:
|
|
368
|
-
|
|
369
|
-
|
|
358
|
+
let { ref: b, isClamped: x } = de(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = G(() => ({
|
|
359
|
+
p: S,
|
|
360
|
+
ul: S,
|
|
361
|
+
ol: S,
|
|
362
|
+
h1: S,
|
|
363
|
+
h2: S,
|
|
364
|
+
h3: S,
|
|
365
|
+
h4: S,
|
|
366
|
+
h5: S,
|
|
367
|
+
h6: S
|
|
368
|
+
}), [S]), w = d?.typography?.featuredChipClassName, E = d?.typography?.folderLabelClassName ?? "dial-tiny-text", D = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", O = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", k = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", A = G(() => ({
|
|
369
|
+
p: O,
|
|
370
|
+
ul: O,
|
|
371
|
+
ol: O,
|
|
372
|
+
h1: O,
|
|
373
|
+
h2: O,
|
|
374
|
+
h3: O,
|
|
375
|
+
h4: O,
|
|
376
|
+
h5: O,
|
|
377
|
+
h6: O,
|
|
378
|
+
strong: k
|
|
379
|
+
}), [O, k]), j = B({
|
|
370
380
|
"--cg-description-text": d?.colors?.textSecondary,
|
|
371
381
|
"--cg-selected-border": d?.colors?.selectedBorder,
|
|
372
382
|
"--cg-selected-bg": d?.colors?.selectedBackground,
|
|
373
383
|
"--cg-check-icon": d?.colors?.checkIcon,
|
|
374
384
|
"--cg-footer-border": d?.colors?.footerBorder,
|
|
375
385
|
"--cg-focus-outline": d?.colors?.focusOutline
|
|
376
|
-
}),
|
|
386
|
+
}), M = !m && e.isFeatured === !0, N = !m && a?.(e) !== !1, P = !m || e.folder.length > 0, F = n ? (t) => {
|
|
377
387
|
!Hn(t) && !Un(t) && n(e);
|
|
378
|
-
} : void 0,
|
|
388
|
+
} : void 0, I = H((t) => {
|
|
379
389
|
t.stopPropagation();
|
|
380
390
|
let n = !_;
|
|
381
391
|
v(n), i?.(e.id, n);
|
|
@@ -385,22 +395,22 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
385
395
|
e.id
|
|
386
396
|
]);
|
|
387
397
|
return /* @__PURE__ */ Q(Te, {
|
|
388
|
-
onClick:
|
|
398
|
+
onClick: F,
|
|
389
399
|
"aria-label": e.name,
|
|
390
|
-
style:
|
|
391
|
-
className: V("box-border cursor-pointer gap-3 p-3", On.card,
|
|
400
|
+
style: j,
|
|
401
|
+
className: V("box-border cursor-pointer gap-3 p-3", On.card, M ? On.featuredCard : void 0, l ? On.selectedCard : void 0, u, mn.card),
|
|
392
402
|
children: [
|
|
393
403
|
n && /* @__PURE__ */ Z("button", {
|
|
394
404
|
type: "button",
|
|
395
405
|
className: V("sr-only", On.cardButton),
|
|
396
406
|
children: e.name
|
|
397
407
|
}),
|
|
398
|
-
|
|
408
|
+
M && /* @__PURE__ */ Z("div", {
|
|
399
409
|
className: "absolute inset-e-[22px] top-0 -translate-y-1/2",
|
|
400
410
|
children: /* @__PURE__ */ Z(re, {
|
|
401
411
|
label: o,
|
|
402
412
|
type: y,
|
|
403
|
-
className:
|
|
413
|
+
className: w,
|
|
404
414
|
style: d?.colors?.featuredChipStyle
|
|
405
415
|
})
|
|
406
416
|
}),
|
|
@@ -429,7 +439,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
429
439
|
contentClassName: "max-h-[calc(100dvh-16px)] overflow-y-auto",
|
|
430
440
|
content: e.description && /* @__PURE__ */ Z(R, {
|
|
431
441
|
content: e.description,
|
|
432
|
-
classNames:
|
|
442
|
+
classNames: A,
|
|
433
443
|
components: Vn,
|
|
434
444
|
...h
|
|
435
445
|
}),
|
|
@@ -438,18 +448,9 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
438
448
|
className: V(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word", On.description),
|
|
439
449
|
children: e.description && /* @__PURE__ */ Z(R, {
|
|
440
450
|
content: e.description,
|
|
441
|
-
classNames:
|
|
442
|
-
p: S,
|
|
443
|
-
ul: S,
|
|
444
|
-
ol: S,
|
|
445
|
-
h1: S,
|
|
446
|
-
h2: S,
|
|
447
|
-
h3: S,
|
|
448
|
-
h4: S,
|
|
449
|
-
h5: S,
|
|
450
|
-
h6: S
|
|
451
|
-
},
|
|
451
|
+
classNames: C,
|
|
452
452
|
components: Vn,
|
|
453
|
+
isRawHtmlEnabled: e.description.includes("<"),
|
|
453
454
|
...h
|
|
454
455
|
})
|
|
455
456
|
})
|
|
@@ -458,7 +459,7 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
458
459
|
className: "mt-auto flex items-center gap-2",
|
|
459
460
|
children: /* @__PURE__ */ Z(Bn, { topics: e.topics })
|
|
460
461
|
}),
|
|
461
|
-
|
|
462
|
+
P && /* @__PURE__ */ Z("div", {
|
|
462
463
|
className: V("pt-3", !m && V("border-t", On.footer)),
|
|
463
464
|
children: /* @__PURE__ */ Q("div", {
|
|
464
465
|
className: "flex items-center gap-2",
|
|
@@ -466,16 +467,16 @@ var rn = /* @__PURE__ */ function(e) {
|
|
|
466
467
|
className: "min-w-0 flex-1",
|
|
467
468
|
children: e.folder.length > 0 ? /* @__PURE__ */ Z(Le, {
|
|
468
469
|
segments: e.folder,
|
|
469
|
-
labelClassName:
|
|
470
|
-
leafClassName:
|
|
470
|
+
labelClassName: E,
|
|
471
|
+
leafClassName: D
|
|
471
472
|
}) : /* @__PURE__ */ Z("span", {
|
|
472
|
-
className: V(
|
|
473
|
+
className: V(E, On.description),
|
|
473
474
|
children: p
|
|
474
475
|
})
|
|
475
|
-
}),
|
|
476
|
+
}), N && /* @__PURE__ */ Z(Fn, {
|
|
476
477
|
isStarred: _,
|
|
477
478
|
size: Me.Small,
|
|
478
|
-
onClick:
|
|
479
|
+
onClick: I,
|
|
479
480
|
ariaLabel: _ ? c : s,
|
|
480
481
|
className: V(!_ && On.emptyStarHidden)
|
|
481
482
|
})]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-catalog",
|
|
3
3
|
"description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.6",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@tabler/icons-react": "^3.50.0",
|
|
30
30
|
"ag-grid-community": "^35.3.0",
|
|
31
|
-
"@epam/ai-dial-publish-panel": "1.3.
|
|
31
|
+
"@epam/ai-dial-publish-panel": "1.3.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.3.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.3.6",
|
|
36
36
|
"@epam/ai-dial-ui-kit": "^0.16.0"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|