@shoplflow/base 0.27.6 → 0.28.2

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 CHANGED
@@ -2177,14 +2177,14 @@ var DropdownButton = React3.forwardRef(
2177
2177
  height: getDropdownHeightBySizeVar(sizeVar),
2178
2178
  children: /* @__PURE__ */ jsxRuntime.jsxs(StyledDropdownButton, __spreadProps(__spreadValues({ ref, onClick: handleOnClick, disabled }, rest), { sizeVar, children: [
2179
2179
  leftSource && leftSource,
2180
- value || /* @__PURE__ */ jsxRuntime.jsx(
2180
+ /* @__PURE__ */ jsxRuntime.jsx(
2181
2181
  exports.Text,
2182
2182
  {
2183
2183
  typography: getDropdownFontSizeBySizeVar(sizeVar),
2184
- color: "neutral400",
2184
+ color: value ? "neutral700" : "neutral400",
2185
2185
  textOverflow: "ellipsis",
2186
2186
  lineClamp: 1,
2187
- children: placeholder
2187
+ children: value || placeholder
2188
2188
  }
2189
2189
  ),
2190
2190
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3921,7 +3921,8 @@ var Pagination = (_a) => {
3921
3921
  nextPage,
3922
3922
  gotoPage,
3923
3923
  leftSource,
3924
- rightSource
3924
+ rightSource,
3925
+ totalCount
3925
3926
  } = _b, rest = __objRest(_b, [
3926
3927
  "currentPage",
3927
3928
  "pageCount",
@@ -3931,9 +3932,10 @@ var Pagination = (_a) => {
3931
3932
  "nextPage",
3932
3933
  "gotoPage",
3933
3934
  "leftSource",
3934
- "rightSource"
3935
+ "rightSource",
3936
+ "totalCount"
3935
3937
  ]);
3936
- const pageTotalCount = Math.ceil(itemsTotalCount / Number(pageSize));
3938
+ const pageTotalCount = totalCount != null ? totalCount : Math.ceil(itemsTotalCount / Number(pageSize));
3937
3939
  const showLeftEllipsis = currentPage > pageCount - 1;
3938
3940
  const showRightEllipsis = currentPage < pageTotalCount && Math.ceil((currentPage + 1) / pageCount) < Math.ceil(pageTotalCount / pageCount);
3939
3941
  const canPreviousPage = currentPage > 0;