@foodpilot/foods 2.11.5 → 2.11.6

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.
@@ -102,17 +102,17 @@ const components = {
102
102
  MuiButton: {
103
103
  defaultProps: {
104
104
  // Changes default arguments for Buttons in the entire app.
105
- disableRipple: true,
106
- variant: "primary"
105
+ disableRipple: true
106
+ // variant: "primary",
107
107
  },
108
108
  styleOverrides: {
109
109
  // Modifications here affect all <Button /> in our app.
110
110
  root: ({ theme, ownerState }) => {
111
111
  var _a;
112
- const variant = ownerState.variant ?? "primary";
112
+ const variant = ownerState.variant;
113
113
  const isDataviz = (_a = ownerState.variant) == null ? void 0 : _a.startsWith("dataviz");
114
114
  if (isDataviz) {
115
- const colorIndex = parseInt(variant.split("-")[1]);
115
+ const colorIndex = parseInt((variant ?? "").split("-")[1]);
116
116
  const dataviz = theme.custom.dataviz.colorsWithExtra[colorIndex];
117
117
  if (dataviz !== void 0) {
118
118
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "2.11.5",
4
+ "version": "2.11.6",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "module": "./dist/main.js",