@digital-b2c/coreui-kit 0.11.7 → 0.11.8

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.mjs CHANGED
@@ -3618,6 +3618,7 @@ var NewsCardList_module_default = {
3618
3618
  "news-card-list": "NewsCardList_module_news-card-list",
3619
3619
  container: "NewsCardList_module_container",
3620
3620
  wrapper: "NewsCardList_module_wrapper",
3621
+ "card-wrapper": "NewsCardList_module_card-wrapper",
3621
3622
  "search-input": "NewsCardList_module_search-input",
3622
3623
  "end-action-button": "NewsCardList_module_end-action-button",
3623
3624
  pagination: "NewsCardList_module_pagination"
@@ -3652,7 +3653,7 @@ var NewsCardList = ({
3652
3653
  className: clsx15("search-input", NewsCardList_module_default["search-input"]),
3653
3654
  startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
3654
3655
  placeholder: "Search News",
3655
- endAction: /* @__PURE__ */ jsx(
3656
+ endAction: searchValue ? /* @__PURE__ */ jsx(
3656
3657
  Button,
3657
3658
  {
3658
3659
  variant: "nofillblack",
@@ -3661,23 +3662,25 @@ var NewsCardList = ({
3661
3662
  onClick: onSearchSubmit ? () => onSearchSubmit(searchValue || "") : void 0,
3662
3663
  children: /* @__PURE__ */ jsx(Icon, { type: "rightBlack" })
3663
3664
  }
3664
- ),
3665
+ ) : null,
3665
3666
  value: searchValue,
3666
3667
  onChange: onSearchChange ? (e) => {
3667
3668
  onSearchChange(e.target.value);
3668
3669
  } : void 0
3669
3670
  }, searchInputProps)
3670
3671
  ),
3671
- currentPage === 1 && /* @__PURE__ */ jsx(
3672
- FeaturedNewsHighlights2,
3673
- {
3674
- items: featuredCards,
3675
- backgroundColor: "#fff",
3676
- hasContainer: false,
3677
- renderLink
3678
- }
3679
- ),
3680
- /* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
3672
+ /* @__PURE__ */ jsxs("div", { className: clsx15("card-wrapper", NewsCardList_module_default["card-wrapper"]), children: [
3673
+ currentPage === 1 && /* @__PURE__ */ jsx(
3674
+ FeaturedNewsHighlights2,
3675
+ {
3676
+ items: featuredCards,
3677
+ backgroundColor: "#fff",
3678
+ hasContainer: false,
3679
+ renderLink
3680
+ }
3681
+ ),
3682
+ /* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
3683
+ ] })
3681
3684
  ] }),
3682
3685
  totalPages ? /* @__PURE__ */ jsx(
3683
3686
  Pagination,
@@ -3802,7 +3805,7 @@ var BlogSearchResultsList = ({
3802
3805
  className: clsx15("search-input", BlogSearchResultsList_module_default["search-input"]),
3803
3806
  startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
3804
3807
  placeholder: "Search News",
3805
- endAction: /* @__PURE__ */ jsx(
3808
+ endAction: searchValue ? /* @__PURE__ */ jsx(
3806
3809
  Button,
3807
3810
  {
3808
3811
  variant: "nofillblack",
@@ -3811,7 +3814,7 @@ var BlogSearchResultsList = ({
3811
3814
  onClick: () => onSearchSubmit(searchValue),
3812
3815
  children: /* @__PURE__ */ jsx(Icon, { type: "rightBlack" })
3813
3816
  }
3814
- ),
3817
+ ) : null,
3815
3818
  value: searchValue,
3816
3819
  onChange: (e) => {
3817
3820
  onSearchChange(e.target.value);