@open-tender/utils 0.1.114 → 0.1.116

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
@@ -49,10 +49,11 @@ const paddingToPixels = (padding) => {
49
49
  return `${(0, exports.remsToPixels)(top)} ${(0, exports.remsToPixels)(horizontal)} ${(0, exports.remsToPixels)(bottom)}`;
50
50
  };
51
51
  const boxRemsToPixels = (box) => {
52
- return box
52
+ const pixels = box
53
53
  .split(' ')
54
54
  .map(i => (0, exports.remsToPixels)(i))
55
55
  .join(' ');
56
+ return pixels === '0 0 0 0' ? '0px' : pixels;
56
57
  };
57
58
  const buttonToPixels = (button) => {
58
59
  return Object.assign(Object.assign({}, button), { borderRadius: (0, exports.remsToPixels)(button.borderRadius), borderWidth: (0, exports.remsToPixels)(button.borderWidth), borderWidthApp: button.borderWidthApp
@@ -40,10 +40,11 @@ const paddingToPixels = (padding) => {
40
40
  return `${remsToPixels(top)} ${remsToPixels(horizontal)} ${remsToPixels(bottom)}`;
41
41
  };
42
42
  const boxRemsToPixels = (box) => {
43
- return box
43
+ const pixels = box
44
44
  .split(' ')
45
45
  .map(i => remsToPixels(i))
46
46
  .join(' ');
47
+ return pixels === '0 0 0 0' ? '0px' : pixels;
47
48
  };
48
49
  const buttonToPixels = (button) => {
49
50
  return Object.assign(Object.assign({}, button), { borderRadius: remsToPixels(button.borderRadius), borderWidth: remsToPixels(button.borderWidth), borderWidthApp: button.borderWidthApp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.1.114",
3
+ "version": "0.1.116",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",