@open-tender/store 0.5.11 → 0.5.13
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/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
|
-
import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
|
|
2
|
+
import { Decimal, Money, OrderType, ServiceType, TaxTypeInt, Temperature } from '../global';
|
|
3
3
|
export interface NutritionalInfo {
|
|
4
4
|
calories: number;
|
|
5
5
|
cholesterol: number;
|
|
@@ -115,6 +115,7 @@ export interface MenuCategory {
|
|
|
115
115
|
items: MenuItems;
|
|
116
116
|
large_image_url: string | null;
|
|
117
117
|
name: string;
|
|
118
|
+
order_type: OrderType;
|
|
118
119
|
pos_display_color: string;
|
|
119
120
|
pos_display_order: number;
|
|
120
121
|
pos_section_id: number;
|
|
@@ -175,6 +175,9 @@ var makeWelcomes = function (welcomes, ratio) {
|
|
|
175
175
|
mobile: makeWelcome(mobile, ratio)
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
|
+
var makeIcons = function (icons, ratio) {
|
|
179
|
+
return tslib_1.__assign(tslib_1.__assign({}, icons), { strokeWidth: Math.floor(icons.strokeWidth * ratio), strokeLinejoin: 'miter', strokeLinecap: 'square' });
|
|
180
|
+
};
|
|
178
181
|
var DEFAULT_WIDTH = 390;
|
|
179
182
|
var DEFAULT_HEIGHT = 844;
|
|
180
183
|
var makeRatio = function (width, height) {
|
|
@@ -200,6 +203,7 @@ var decorateTheme = function (theme, ratio) {
|
|
|
200
203
|
var layout = layoutToPixels(theme.layout, ratio);
|
|
201
204
|
var lineHeight = makeLineHeight(theme.lineHeight, fonts.sizes.main);
|
|
202
205
|
var welcome = makeWelcomes(theme.welcome, ratio);
|
|
203
|
-
|
|
206
|
+
var icons = makeIcons(theme.icons, ratio);
|
|
207
|
+
return tslib_1.__assign(tslib_1.__assign({}, theme), { border: border, buttons: buttons, cards: cards, counts: counts, fonts: fonts, inputs: inputs, item: item, lineHeight: lineHeight, layout: layout, welcome: welcome, icons: icons });
|
|
204
208
|
};
|
|
205
209
|
exports.decorateTheme = decorateTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
|
-
import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
|
|
2
|
+
import { Decimal, Money, OrderType, ServiceType, TaxTypeInt, Temperature } from '../global';
|
|
3
3
|
export interface NutritionalInfo {
|
|
4
4
|
calories: number;
|
|
5
5
|
cholesterol: number;
|
|
@@ -115,6 +115,7 @@ export interface MenuCategory {
|
|
|
115
115
|
items: MenuItems;
|
|
116
116
|
large_image_url: string | null;
|
|
117
117
|
name: string;
|
|
118
|
+
order_type: OrderType;
|
|
118
119
|
pos_display_color: string;
|
|
119
120
|
pos_display_order: number;
|
|
120
121
|
pos_section_id: number;
|
|
@@ -169,6 +169,9 @@ var makeWelcomes = function (welcomes, ratio) {
|
|
|
169
169
|
mobile: makeWelcome(mobile, ratio)
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
+
var makeIcons = function (icons, ratio) {
|
|
173
|
+
return __assign(__assign({}, icons), { strokeWidth: Math.floor(icons.strokeWidth * ratio), strokeLinejoin: 'miter', strokeLinecap: 'square' });
|
|
174
|
+
};
|
|
172
175
|
var DEFAULT_WIDTH = 390;
|
|
173
176
|
var DEFAULT_HEIGHT = 844;
|
|
174
177
|
export var makeRatio = function (width, height) {
|
|
@@ -191,5 +194,6 @@ export var decorateTheme = function (theme, ratio) {
|
|
|
191
194
|
var layout = layoutToPixels(theme.layout, ratio);
|
|
192
195
|
var lineHeight = makeLineHeight(theme.lineHeight, fonts.sizes.main);
|
|
193
196
|
var welcome = makeWelcomes(theme.welcome, ratio);
|
|
194
|
-
|
|
197
|
+
var icons = makeIcons(theme.icons, ratio);
|
|
198
|
+
return __assign(__assign({}, theme), { border: border, buttons: buttons, cards: cards, counts: counts, fonts: fonts, inputs: inputs, item: item, lineHeight: lineHeight, layout: layout, welcome: welcome, icons: icons });
|
|
195
199
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.13",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|