@foodpilot/foods 2.11.9 → 2.11.11

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.
@@ -6,5 +6,5 @@ type FoodsGridProps<TData extends MRT_RowData> = {
6
6
  columns: MRT_ColumnDef<TData>[];
7
7
  data: TData[];
8
8
  };
9
- export declare const FoodsGrid: <TData extends MRT_RowData>(props: FoodsGridProps<TData>) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const FoodsGrid: <TData extends MRT_RowData>(_props: FoodsGridProps<TData>) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,15 +1,15 @@
1
1
  import { PaginationProps, PaginationRenderItemParams } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
- export type Page = {
3
+ export type PaginationPage = {
4
4
  label: string | undefined;
5
5
  isCompleteLabel?: string;
6
6
  isComplete?: boolean;
7
7
  };
8
8
  type FoodsPaginationProps = {
9
- pages: Page[];
9
+ pages: PaginationPage[];
10
10
  page?: number;
11
11
  setPage?: (v: number) => void;
12
- renderItem?: (params: PaginationRenderItemParams, currentPage: Page | null) => ReactNode;
12
+ renderItem?: (params: PaginationRenderItemParams, currentPage: PaginationPage | null) => ReactNode;
13
13
  PaginationProps?: Omit<PaginationProps, "renderItem">;
14
14
  };
15
15
  export declare const FoodsPagination: (props: FoodsPaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { PaginationItemProps } from '@mui/material';
2
2
  import { ElementType } from 'react';
3
- import { Page } from './FoodsPagination';
3
+ import { PaginationPage } from './FoodsPagination';
4
4
  export type FoodsPaginationItemProps<D extends ElementType = "div", P = {}> = PaginationItemProps<D, P> & {
5
- currentPage?: Page | null;
5
+ currentPage?: PaginationPage | null;
6
6
  };
7
7
  export declare const FoodsPaginationItem: <D extends ElementType = "div", P = {}>(props: FoodsPaginationItemProps<D, P>) => import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,6 @@ const PageItem = (props) => {
6
6
  const theme = useTheme();
7
7
  const { selected, currentPage } = props;
8
8
  const { isComplete = false } = currentPage || {};
9
- console.log({ currentPage });
10
9
  const completedSx = isComplete === false ? {} : {
11
10
  background: theme.custom.green[600],
12
11
  "&.Mui-selected": {
@@ -0,0 +1,3 @@
1
+ export * from './EllipsisItem';
2
+ export * from './PageItem';
3
+ export * from './PageUpAndDownItem';
@@ -1 +1,3 @@
1
- export { FoodsPagination } from './FoodsPagination';
1
+ export * from './FoodsPagination';
2
+ export * from './FoodsPaginationItem';
3
+ export * from './PageItems';
@@ -56,6 +56,9 @@ const SpecialTab = styled((props) => {
56
56
  margin: "4px",
57
57
  background: "linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",
58
58
  border: `1px solid ${theme.custom.grey[600]}`,
59
+ ":hover": {
60
+ background: theme.custom.grey[300]
61
+ },
59
62
  // This is applied on the base value if selected
60
63
  "&.Mui-selected": {
61
64
  color: "white",
package/dist/main.js CHANGED
@@ -108,6 +108,10 @@ import { DefaultUserAction } from "./components/Navigation/FoodsNavBar/Plugin/De
108
108
  import { NumberWithUnit } from "./components/Number/NumberWithUnit.js";
109
109
  import { Score } from "./components/Number/Score.js";
110
110
  import { FoodsPagination } from "./components/Pagination/FoodsPagination.js";
111
+ import { FoodsPaginationItem } from "./components/Pagination/FoodsPaginationItem.js";
112
+ import { EllipsisItem } from "./components/Pagination/PageItems/EllipsisItem.js";
113
+ import { PageItem } from "./components/Pagination/PageItems/PageItem.js";
114
+ import { PageUpAndDownItem } from "./components/Pagination/PageItems/PageUpAndDownItem.js";
111
115
  import { AnchoredPopover, HeadlessPopover, ThemedPopover } from "./components/Popover/AnchoredPopover.js";
112
116
  import { BigPopoverLayout } from "./components/Popover/BigPopoverLayout.js";
113
117
  import { OptionsPopover } from "./components/Popover/OptionsPopover.js";
@@ -189,6 +193,7 @@ export {
189
193
  DrawerAction,
190
194
  EcoScoreCell,
191
195
  EditHeader,
196
+ EllipsisItem,
192
197
  EmptyForm,
193
198
  EvolutionChart,
194
199
  FixedMultiValueFilter,
@@ -202,6 +207,7 @@ export {
202
207
  FoodsIllustrations,
203
208
  FoodsNavbar,
204
209
  FoodsPagination,
210
+ FoodsPaginationItem,
205
211
  FoodsRadioList,
206
212
  FoodsSearch,
207
213
  FoodsSelect,
@@ -248,6 +254,8 @@ export {
248
254
  NumberField,
249
255
  NumberWithUnit,
250
256
  OptionsPopover,
257
+ PageItem,
258
+ PageUpAndDownItem,
251
259
  FoodsPills as Pills,
252
260
  PointsCell,
253
261
  PolymorphicChart,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "2.11.9",
4
+ "version": "2.11.11",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "module": "./dist/main.js",