@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.cjs
CHANGED
|
@@ -3355,10 +3355,7 @@ var ResourcesGridList = ({
|
|
|
3355
3355
|
onSelect: handleSelectCategory
|
|
3356
3356
|
}
|
|
3357
3357
|
),
|
|
3358
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx15__default.default(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item
|
|
3359
|
-
var _a2;
|
|
3360
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ResourceCardItem, { item, view }, (_a2 = item.href) != null ? _a2 : i);
|
|
3361
|
-
}) })
|
|
3358
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx15__default.default(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item) => /* @__PURE__ */ jsxRuntime.jsx(ResourceCardItem, { item, view }, item.id)) })
|
|
3362
3359
|
] }),
|
|
3363
3360
|
totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3364
3361
|
Pagination,
|
|
@@ -3626,6 +3623,7 @@ var NewsCardList_module_default = {
|
|
|
3626
3623
|
"news-card-list": "NewsCardList_module_news-card-list",
|
|
3627
3624
|
container: "NewsCardList_module_container",
|
|
3628
3625
|
wrapper: "NewsCardList_module_wrapper",
|
|
3626
|
+
"card-wrapper": "NewsCardList_module_card-wrapper",
|
|
3629
3627
|
"search-input": "NewsCardList_module_search-input",
|
|
3630
3628
|
"end-action-button": "NewsCardList_module_end-action-button",
|
|
3631
3629
|
pagination: "NewsCardList_module_pagination"
|
|
@@ -3660,7 +3658,7 @@ var NewsCardList = ({
|
|
|
3660
3658
|
className: clsx15__default.default("search-input", NewsCardList_module_default["search-input"]),
|
|
3661
3659
|
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search" }),
|
|
3662
3660
|
placeholder: "Search News",
|
|
3663
|
-
endAction: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3661
|
+
endAction: searchValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3664
3662
|
Button,
|
|
3665
3663
|
{
|
|
3666
3664
|
variant: "nofillblack",
|
|
@@ -3669,23 +3667,25 @@ var NewsCardList = ({
|
|
|
3669
3667
|
onClick: onSearchSubmit ? () => onSearchSubmit(searchValue || "") : void 0,
|
|
3670
3668
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "rightBlack" })
|
|
3671
3669
|
}
|
|
3672
|
-
),
|
|
3670
|
+
) : null,
|
|
3673
3671
|
value: searchValue,
|
|
3674
3672
|
onChange: onSearchChange ? (e) => {
|
|
3675
3673
|
onSearchChange(e.target.value);
|
|
3676
3674
|
} : void 0
|
|
3677
3675
|
}, searchInputProps)
|
|
3678
3676
|
),
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3677
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx15__default.default("card-wrapper", NewsCardList_module_default["card-wrapper"]), children: [
|
|
3678
|
+
currentPage === 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3679
|
+
FeaturedNewsHighlights2,
|
|
3680
|
+
{
|
|
3681
|
+
items: featuredCards,
|
|
3682
|
+
backgroundColor: "#fff",
|
|
3683
|
+
hasContainer: false,
|
|
3684
|
+
renderLink
|
|
3685
|
+
}
|
|
3686
|
+
),
|
|
3687
|
+
/* @__PURE__ */ jsxRuntime.jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
|
|
3688
|
+
] })
|
|
3689
3689
|
] }),
|
|
3690
3690
|
totalPages ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3691
3691
|
Pagination,
|
|
@@ -3810,7 +3810,7 @@ var BlogSearchResultsList = ({
|
|
|
3810
3810
|
className: clsx15__default.default("search-input", BlogSearchResultsList_module_default["search-input"]),
|
|
3811
3811
|
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search" }),
|
|
3812
3812
|
placeholder: "Search News",
|
|
3813
|
-
endAction: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3813
|
+
endAction: searchValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3814
3814
|
Button,
|
|
3815
3815
|
{
|
|
3816
3816
|
variant: "nofillblack",
|
|
@@ -3819,7 +3819,7 @@ var BlogSearchResultsList = ({
|
|
|
3819
3819
|
onClick: () => onSearchSubmit(searchValue),
|
|
3820
3820
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "rightBlack" })
|
|
3821
3821
|
}
|
|
3822
|
-
),
|
|
3822
|
+
) : null,
|
|
3823
3823
|
value: searchValue,
|
|
3824
3824
|
onChange: (e) => {
|
|
3825
3825
|
onSearchChange(e.target.value);
|