@popmenu/ordering-ui 0.103.0 → 0.103.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.
|
@@ -3,6 +3,9 @@ declare type OrderingAppContextValue = {
|
|
|
3
3
|
currencySymbol?: string;
|
|
4
4
|
basePath: string;
|
|
5
5
|
restaurantId: number;
|
|
6
|
+
isCatering: boolean;
|
|
7
|
+
isOrderingEvent: boolean;
|
|
8
|
+
orderingEventSlug?: string;
|
|
6
9
|
};
|
|
7
10
|
declare type OrderingAppContextType = [OrderingAppContextValue, React.Dispatch<React.SetStateAction<OrderingAppContextValue>>];
|
|
8
11
|
export declare const OrderingAppContext: React.Context<OrderingAppContextType | null>;
|
package/build/index.es.js
CHANGED
|
@@ -1284,9 +1284,9 @@ makeStyles$1(function () { return ({
|
|
|
1284
1284
|
|
|
1285
1285
|
var ReactionCounter = function (props) {
|
|
1286
1286
|
var count = props.count, icon = props.icon;
|
|
1287
|
-
return (React__default.createElement(Box, { display: "flex", alignItems: "center", gridGap: 6 },
|
|
1288
|
-
React__default.createElement(Icon, { icon: icon, size: "large" }),
|
|
1289
|
-
React__default.createElement(Typography, { variant: "body2" }, count)));
|
|
1287
|
+
return (React__default.createElement(Box, { display: "flex", alignItems: "center", gridGap: 6, color: "grey.900" },
|
|
1288
|
+
React__default.createElement(Icon, { icon: icon, size: "large", color: "inherit" }),
|
|
1289
|
+
React__default.createElement(Typography, { variant: "body2", color: "grey.900" }, count)));
|
|
1290
1290
|
};
|
|
1291
1291
|
|
|
1292
1292
|
var ReactionCounterGroup = function (props) {
|
|
@@ -1915,9 +1915,6 @@ var useLocationCardStyles = makeStyles(function (theme) {
|
|
|
1915
1915
|
return (selected ? selectedBackgroundColor : backgroundColor);
|
|
1916
1916
|
},
|
|
1917
1917
|
},
|
|
1918
|
-
address: {
|
|
1919
|
-
color: grey[700],
|
|
1920
|
-
},
|
|
1921
1918
|
availability: {
|
|
1922
1919
|
color: secondary.light,
|
|
1923
1920
|
display: 'grid',
|
|
@@ -1949,9 +1946,6 @@ var useLocationCardStyles = makeStyles(function (theme) {
|
|
|
1949
1946
|
fontSize: '1.125rem',
|
|
1950
1947
|
fontWeight: 500,
|
|
1951
1948
|
},
|
|
1952
|
-
focusHighlight: {
|
|
1953
|
-
backgroundColor: 'inherit',
|
|
1954
|
-
},
|
|
1955
1949
|
};
|
|
1956
1950
|
});
|
|
1957
1951
|
|
|
@@ -1963,13 +1957,13 @@ var LocationCard = function (props) {
|
|
|
1963
1957
|
onClick(value);
|
|
1964
1958
|
};
|
|
1965
1959
|
return (React__default.createElement(Card$1, __assign$1({ className: classes.root }, muiProps),
|
|
1966
|
-
React__default.createElement(CardActionArea$1, __assign$1({ onClick: handleClick,
|
|
1960
|
+
React__default.createElement(CardActionArea$1, __assign$1({ onClick: handleClick, role: "checkbox", "aria-checked": selected }, CardActionAreaProps),
|
|
1967
1961
|
React__default.createElement(CardContent, { className: classes.content },
|
|
1968
1962
|
React__default.createElement(Box, { className: classes.locationInfo },
|
|
1969
1963
|
React__default.createElement(Box, { display: "flex", justifyContent: "space-between" },
|
|
1970
1964
|
React__default.createElement(Typography, { className: classes.name }, name),
|
|
1971
1965
|
selected && React__default.createElement(Icon, { icon: SvgCheck, size: "extra-large", className: classes.checkIcon })),
|
|
1972
|
-
address && (React__default.createElement(Typography, {
|
|
1966
|
+
address && (React__default.createElement(Typography, { color: "grey.800", variant: "body2" }, address)),
|
|
1973
1967
|
React__default.createElement(Typography, { className: classes.distance }, distance)),
|
|
1974
1968
|
anyAvailability && (React__default.createElement(Box, { className: classes.availability },
|
|
1975
1969
|
React__default.createElement(Icon, { icon: SvgClock, size: "large" }),
|
|
@@ -2296,14 +2290,7 @@ var Radio = withStyles(function (_a) {
|
|
|
2296
2290
|
|
|
2297
2291
|
var palette = {
|
|
2298
2292
|
primary: {
|
|
2299
|
-
|
|
2300
|
-
main: '#2E3042',
|
|
2301
|
-
dark: '#1A1D20',
|
|
2302
|
-
},
|
|
2303
|
-
secondary: {
|
|
2304
|
-
light: '#DA777E',
|
|
2305
|
-
main: '#F04649',
|
|
2306
|
-
dark: '#B3212B',
|
|
2293
|
+
main: '#0A202F',
|
|
2307
2294
|
},
|
|
2308
2295
|
info: {
|
|
2309
2296
|
light: '#52B7FF',
|
|
@@ -2377,6 +2364,15 @@ var overrides = {
|
|
|
2377
2364
|
minWidth: 'unset',
|
|
2378
2365
|
},
|
|
2379
2366
|
},
|
|
2367
|
+
MuiCssBaseline: {
|
|
2368
|
+
'@global': {
|
|
2369
|
+
'*:focus-visible': {
|
|
2370
|
+
outline: '2px solid #0076CB',
|
|
2371
|
+
outlineOffset: '-4px',
|
|
2372
|
+
borderRadius: 8,
|
|
2373
|
+
},
|
|
2374
|
+
},
|
|
2375
|
+
},
|
|
2380
2376
|
};
|
|
2381
2377
|
|
|
2382
2378
|
var props = {
|