@foodpilot/foods 0.6.10 → 1.0.0

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/main.js CHANGED
@@ -32206,49 +32206,92 @@ const xxe = (e) => {
32206
32206
  }
32207
32207
  })
32208
32208
  }
32209
+ },
32210
+ MuiTypography: {
32211
+ styleOverrides: {
32212
+ h1: ({ theme: e }) => ({
32213
+ [e.breakpoints.up("md")]: {
32214
+ fontSize: "2rem",
32215
+ // 32px desktop (au lieu de 28px mobile)
32216
+ lineHeight: "3.2rem"
32217
+ // Proportionnel
32218
+ }
32219
+ }),
32220
+ h2: ({ theme: e }) => ({
32221
+ [e.breakpoints.up("md")]: {
32222
+ fontSize: "1.5rem",
32223
+ // 24px desktop (au lieu de 22px mobile)
32224
+ lineHeight: "2.4rem"
32225
+ // Proportionnel
32226
+ }
32227
+ }),
32228
+ h3: ({ theme: e }) => ({
32229
+ [e.breakpoints.up("md")]: {
32230
+ fontSize: "1.25rem",
32231
+ // 20px desktop (au lieu de 18px mobile)
32232
+ lineHeight: "2rem"
32233
+ // Proportionnel
32234
+ }
32235
+ }),
32236
+ h4: ({ theme: e }) => ({
32237
+ [e.breakpoints.up("md")]: {
32238
+ fontSize: "1.125rem",
32239
+ // 18px desktop (au lieu de 16px mobile)
32240
+ lineHeight: "1.8rem"
32241
+ // Proportionnel
32242
+ }
32243
+ })
32244
+ // H5, H6, body, big, small restent à 16px sur tous écrans
32245
+ }
32209
32246
  }
32210
32247
  }, Gp = {
32211
32248
  fontFamily: ["Montserrat", "serif"].join(","),
32212
32249
  h1: {
32213
32250
  fontStyle: "normal",
32214
32251
  fontWeight: "700",
32215
- fontSize: "2rem",
32216
- lineHeight: "3.2rem",
32252
+ fontSize: "1.75rem",
32253
+ // 28px mobile (base)
32254
+ lineHeight: "2.8rem",
32217
32255
  color: we[2800]
32218
32256
  },
32219
32257
  h2: {
32220
32258
  fontStyle: "normal",
32221
32259
  fontWeight: "700",
32222
- fontSize: "1.5rem",
32223
- lineHeight: "2.4rem",
32260
+ fontSize: "1.375rem",
32261
+ // 22px mobile (base)
32262
+ lineHeight: "2.2rem",
32224
32263
  color: we[2800]
32225
32264
  },
32226
32265
  h3: {
32227
32266
  fontStyle: "normal",
32228
32267
  fontWeight: "700",
32229
32268
  fontSize: "1.125rem",
32269
+ // 18px mobile (base)
32230
32270
  lineHeight: "1.8rem",
32231
32271
  color: we[2800]
32232
32272
  },
32233
32273
  h4: {
32234
32274
  fontStyle: "normal",
32235
32275
  fontWeight: "700",
32236
- fontSize: "0.875rem",
32237
- lineHeight: "1.4rem",
32276
+ fontSize: "1rem",
32277
+ // 16px mobile (base) = body niveau
32278
+ lineHeight: "1.6rem",
32238
32279
  color: we[2800]
32239
32280
  },
32240
32281
  h5: {
32241
32282
  fontStyle: "normal",
32242
32283
  fontWeight: "700",
32243
- fontSize: "0.75rem",
32244
- lineHeight: "1.2rem",
32284
+ fontSize: "1rem",
32285
+ // 16px
32286
+ lineHeight: "1.6rem",
32245
32287
  color: we[2800]
32246
32288
  },
32247
32289
  h6: {
32248
32290
  fontStyle: "normal",
32249
32291
  fontWeight: "700",
32250
- fontSize: "0.625rem",
32251
- lineHeight: "1rem",
32292
+ fontSize: "0.875rem",
32293
+ // 14px - Minimum lisible
32294
+ lineHeight: "1.4rem",
32252
32295
  color: we[2800]
32253
32296
  },
32254
32297
  "huge-bold": {
@@ -32275,64 +32318,72 @@ const xxe = (e) => {
32275
32318
  "big-bold": {
32276
32319
  fontStyle: "normal",
32277
32320
  fontWeight: "600",
32278
- fontSize: "0.875rem",
32279
- lineHeight: "1.575rem",
32321
+ fontSize: "1rem",
32322
+ // 16px
32323
+ lineHeight: "1.8rem",
32280
32324
  color: we[2800]
32281
32325
  },
32282
32326
  "big-medium": {
32283
32327
  fontStyle: "normal",
32284
32328
  fontWeight: "500",
32285
- fontSize: "0.875rem",
32286
- lineHeight: "1.575rem",
32329
+ fontSize: "1rem",
32330
+ // 16px
32331
+ lineHeight: "1.8rem",
32287
32332
  color: we[2800]
32288
32333
  },
32289
32334
  big: {
32290
32335
  fontStyle: "normal",
32291
32336
  fontWeight: "400",
32292
- fontSize: "0.875rem",
32293
- lineHeight: "1.575rem",
32337
+ fontSize: "1rem",
32338
+ // 16px
32339
+ lineHeight: "1.8rem",
32294
32340
  color: we[2800]
32295
32341
  },
32296
32342
  "body-bold": {
32297
32343
  fontStyle: "normal",
32298
32344
  fontWeight: "600",
32299
- fontSize: "0.75rem",
32300
- lineHeight: "1.35rem",
32345
+ fontSize: "1rem",
32346
+ // 16px
32347
+ lineHeight: "1.8rem",
32301
32348
  color: we[2800]
32302
32349
  },
32303
32350
  "body-medium": {
32304
32351
  fontStyle: "normal",
32305
32352
  fontWeight: "500",
32306
- fontSize: "0.75rem",
32307
- lineHeight: "1.35rem",
32353
+ fontSize: "1rem",
32354
+ // 16px
32355
+ lineHeight: "1.8rem",
32308
32356
  color: we[2800]
32309
32357
  },
32310
32358
  body: {
32311
32359
  fontStyle: "normal",
32312
32360
  fontWeight: "400",
32313
- fontSize: "0.75rem",
32314
- lineHeight: "1.35rem",
32361
+ fontSize: "1rem",
32362
+ // 16px
32363
+ lineHeight: "1.8rem",
32315
32364
  color: we[2800]
32316
32365
  },
32317
32366
  "small-bold": {
32318
32367
  fontStyle: "normal",
32319
32368
  fontWeight: 600,
32320
- fontSize: "0.625rem",
32321
- lineHeight: "1.125rem",
32369
+ fontSize: "0.875rem",
32370
+ // 14px
32371
+ lineHeight: "1.575rem",
32322
32372
  color: we[2800]
32323
32373
  },
32324
32374
  "small-medium": {
32325
32375
  fontStyle: "normal",
32326
32376
  fontWeight: 500,
32327
- fontSize: "0.625rem",
32328
- lineHeight: "1.125rem",
32377
+ fontSize: "0.875rem",
32378
+ // 14px
32379
+ lineHeight: "1.575rem",
32329
32380
  color: we[2800]
32330
32381
  },
32331
32382
  small: {
32332
32383
  fontStyle: "normal",
32333
32384
  fontWeight: 400,
32334
- fontSize: "0.625rem",
32335
- lineHeight: "1.125rem",
32385
+ fontSize: "0.875rem",
32386
+ // 14px
32336
32387
  color: we[2800]
32337
32388
  },
32338
32389
  "number-big": {
@@ -32352,15 +32403,16 @@ const xxe = (e) => {
32352
32403
  "number-small": {
32353
32404
  fontStyle: "normal",
32354
32405
  fontWeight: 700,
32355
- fontSize: "0.875rem",
32406
+ fontSize: "1rem",
32356
32407
  lineHeight: "1.4rem",
32357
32408
  color: we[2800]
32358
32409
  },
32359
32410
  "number-micro": {
32360
32411
  fontStyle: "normal",
32361
32412
  fontWeight: 700,
32362
- fontSize: "0.625rem",
32363
- lineHeight: "1rem",
32413
+ fontSize: "0.875rem",
32414
+ // 14px
32415
+ lineHeight: "1.4rem",
32364
32416
  color: we[2800]
32365
32417
  }
32366
32418
  }, Kp = (e) => `${8 * e}px`, Yp = {
@@ -49619,22 +49671,16 @@ const Pse = (e) => {
49619
49671
  );
49620
49672
  }, zse = () => {
49621
49673
  const { selectedPage: e, selectedPageIndex: t, isLoading: n } = x2(), o = e.icon ?? t + 1, r = e.title, i = e.subtitle;
49622
- return n ? /* @__PURE__ */ f.jsx(Wse, {}) : /* @__PURE__ */ f.jsx(fe, { direction: "column", alignItems: "center", children: /* @__PURE__ */ f.jsxs(
49623
- "div",
49624
- {
49625
- style: { maxWidth: "1024px" },
49626
- children: [
49627
- /* @__PURE__ */ f.jsxs(fe, { direction: "column", marginTop: "44px", marginBottom: "36px", gap: "2rem", children: [
49628
- r && /* @__PURE__ */ f.jsx(Fk, { title: r, badge: o }),
49629
- i && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
49630
- /* @__PURE__ */ f.jsx(ne, { variant: "h4", children: i }),
49631
- /* @__PURE__ */ f.jsx(go, {})
49632
- ] })
49633
- ] }),
49634
- e.content
49635
- ]
49636
- }
49637
- ) });
49674
+ return n ? /* @__PURE__ */ f.jsx(Wse, {}) : /* @__PURE__ */ f.jsx(fe, { direction: "column", alignItems: "center", children: /* @__PURE__ */ f.jsxs("div", { style: { width: "100%", maxWidth: "1024px" }, children: [
49675
+ /* @__PURE__ */ f.jsxs(fe, { direction: "column", marginTop: "44px", marginBottom: "36px", gap: "2rem", children: [
49676
+ r && /* @__PURE__ */ f.jsx(Fk, { title: r, badge: o }),
49677
+ i && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
49678
+ /* @__PURE__ */ f.jsx(ne, { variant: "h4", children: i }),
49679
+ /* @__PURE__ */ f.jsx(go, {})
49680
+ ] })
49681
+ ] }),
49682
+ e.content
49683
+ ] }) });
49638
49684
  }, Wse = () => /* @__PURE__ */ f.jsx(
49639
49685
  Y,
49640
49686
  {