@banyan_cloud/roots 2.0.45 → 2.0.46

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/esm/index.js CHANGED
@@ -3647,10 +3647,10 @@ var getCSSVariableValue = function getCSSVariableValue(variable) {
3647
3647
  return getComputedStyle(document.documentElement).getPropertyValue(variable).trim();
3648
3648
  };
3649
3649
  var doubleDigitted = function doubleDigitted(number) {
3650
- if (!number) {
3650
+ if (number === undefined) {
3651
3651
  return '';
3652
3652
  }
3653
- return number.toString().slice(-2).padStart(2, '0');
3653
+ return number.toString().padStart(2, '0');
3654
3654
  };
3655
3655
 
3656
3656
  var getJSDateFromEpoch = function getJSDateFromEpoch(epoch) {
@@ -17089,7 +17089,7 @@ var TextField = /*#__PURE__*/forwardRef(function (props, inputRef) {
17089
17089
  }))]
17090
17090
  }), autocompleteOptions && jsx(Popover, {
17091
17091
  anchorEl: anchorEl,
17092
- open: showAutocompleteOptions,
17092
+ open: autocompleteOptions && 'open' in autocompleteOptions ? typeof autocompleteOptions.open === 'function' ? autocompleteOptions.open(String(value !== null && value !== void 0 ? value : '')) : autocompleteOptions.open : showAutocompleteOptions,
17093
17093
  placement: autocompleteOptions.placement,
17094
17094
  middlewareOptions: autocompleteOptions.middlewareOptions,
17095
17095
  withOverlay: false,