@digital-b2c/coreui-kit 0.11.7 → 0.11.9
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.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +18 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +18 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -3347,10 +3347,7 @@ var ResourcesGridList = ({
|
|
|
3347
3347
|
onSelect: handleSelectCategory
|
|
3348
3348
|
}
|
|
3349
3349
|
),
|
|
3350
|
-
/* @__PURE__ */ jsx("div", { className: clsx15(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item
|
|
3351
|
-
var _a2;
|
|
3352
|
-
return /* @__PURE__ */ jsx(ResourceCardItem, { item, view }, (_a2 = item.href) != null ? _a2 : i);
|
|
3353
|
-
}) })
|
|
3350
|
+
/* @__PURE__ */ jsx("div", { className: clsx15(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item) => /* @__PURE__ */ jsx(ResourceCardItem, { item, view }, item.id)) })
|
|
3354
3351
|
] }),
|
|
3355
3352
|
totalPages > 1 && /* @__PURE__ */ jsx(
|
|
3356
3353
|
Pagination,
|
|
@@ -3618,6 +3615,7 @@ var NewsCardList_module_default = {
|
|
|
3618
3615
|
"news-card-list": "NewsCardList_module_news-card-list",
|
|
3619
3616
|
container: "NewsCardList_module_container",
|
|
3620
3617
|
wrapper: "NewsCardList_module_wrapper",
|
|
3618
|
+
"card-wrapper": "NewsCardList_module_card-wrapper",
|
|
3621
3619
|
"search-input": "NewsCardList_module_search-input",
|
|
3622
3620
|
"end-action-button": "NewsCardList_module_end-action-button",
|
|
3623
3621
|
pagination: "NewsCardList_module_pagination"
|
|
@@ -3652,7 +3650,7 @@ var NewsCardList = ({
|
|
|
3652
3650
|
className: clsx15("search-input", NewsCardList_module_default["search-input"]),
|
|
3653
3651
|
startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
|
|
3654
3652
|
placeholder: "Search News",
|
|
3655
|
-
endAction: /* @__PURE__ */ jsx(
|
|
3653
|
+
endAction: searchValue ? /* @__PURE__ */ jsx(
|
|
3656
3654
|
Button,
|
|
3657
3655
|
{
|
|
3658
3656
|
variant: "nofillblack",
|
|
@@ -3661,23 +3659,25 @@ var NewsCardList = ({
|
|
|
3661
3659
|
onClick: onSearchSubmit ? () => onSearchSubmit(searchValue || "") : void 0,
|
|
3662
3660
|
children: /* @__PURE__ */ jsx(Icon, { type: "rightBlack" })
|
|
3663
3661
|
}
|
|
3664
|
-
),
|
|
3662
|
+
) : null,
|
|
3665
3663
|
value: searchValue,
|
|
3666
3664
|
onChange: onSearchChange ? (e) => {
|
|
3667
3665
|
onSearchChange(e.target.value);
|
|
3668
3666
|
} : void 0
|
|
3669
3667
|
}, searchInputProps)
|
|
3670
3668
|
),
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3669
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("card-wrapper", NewsCardList_module_default["card-wrapper"]), children: [
|
|
3670
|
+
currentPage === 1 && /* @__PURE__ */ jsx(
|
|
3671
|
+
FeaturedNewsHighlights2,
|
|
3672
|
+
{
|
|
3673
|
+
items: featuredCards,
|
|
3674
|
+
backgroundColor: "#fff",
|
|
3675
|
+
hasContainer: false,
|
|
3676
|
+
renderLink
|
|
3677
|
+
}
|
|
3678
|
+
),
|
|
3679
|
+
/* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
|
|
3680
|
+
] })
|
|
3681
3681
|
] }),
|
|
3682
3682
|
totalPages ? /* @__PURE__ */ jsx(
|
|
3683
3683
|
Pagination,
|
|
@@ -3802,7 +3802,7 @@ var BlogSearchResultsList = ({
|
|
|
3802
3802
|
className: clsx15("search-input", BlogSearchResultsList_module_default["search-input"]),
|
|
3803
3803
|
startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
|
|
3804
3804
|
placeholder: "Search News",
|
|
3805
|
-
endAction: /* @__PURE__ */ jsx(
|
|
3805
|
+
endAction: searchValue ? /* @__PURE__ */ jsx(
|
|
3806
3806
|
Button,
|
|
3807
3807
|
{
|
|
3808
3808
|
variant: "nofillblack",
|
|
@@ -3811,7 +3811,7 @@ var BlogSearchResultsList = ({
|
|
|
3811
3811
|
onClick: () => onSearchSubmit(searchValue),
|
|
3812
3812
|
children: /* @__PURE__ */ jsx(Icon, { type: "rightBlack" })
|
|
3813
3813
|
}
|
|
3814
|
-
),
|
|
3814
|
+
) : null,
|
|
3815
3815
|
value: searchValue,
|
|
3816
3816
|
onChange: (e) => {
|
|
3817
3817
|
onSearchChange(e.target.value);
|