@invoicebox/ui 0.1.0-alpha.290 → 0.1.0-alpha.291

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.
@@ -42,7 +42,7 @@ var CoreCurrencyInput = exports.CoreCurrencyInput = function CoreCurrencyInput(_
42
42
  var palette = (0, _palette.useComponentPalette)('pureInput');
43
43
  var inputLabel = (0, _react.useMemo)(function () {
44
44
  if (useModernStyles) {
45
- if (defaultValue || inFocus || value) {
45
+ if (typeof defaultValue === 'number' || inFocus || typeof value === 'number') {
46
46
  return label;
47
47
  } else {
48
48
  return undefined;
@@ -52,7 +52,7 @@ var CoreCurrencyInput = exports.CoreCurrencyInput = function CoreCurrencyInput(_
52
52
  }
53
53
  }, [useModernStyles, defaultValue, inFocus, label, value]);
54
54
  var paddingOptions = (0, _react.useMemo)(function () {
55
- if ((defaultValue || value || inFocus) && useModernStyles && inputLabel) {
55
+ if ((typeof defaultValue === 'number' || typeof value === 'number' || inFocus) && useModernStyles && inputLabel) {
56
56
  return _constants.MODERN_STYLE_SIZE_PARAMS_MAP[size];
57
57
  } else {
58
58
  return _constants.SIZE_PARAMS_MAP[size];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.290",
3
+ "version": "0.1.0-alpha.291",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {