@open-tender/store 0.5.12 → 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
@@ -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
- 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 });
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;
@@ -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
- return __assign(__assign({}, theme), { border: border, buttons: buttons, cards: cards, counts: counts, fonts: fonts, inputs: inputs, item: item, lineHeight: lineHeight, layout: layout, welcome: welcome });
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.12",
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",