pebble-web 2.7.1 → 2.8.0

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.
@@ -1876,12 +1876,13 @@
1876
1876
  _ref$showRipple = _ref.showRipple,
1877
1877
  showRipple = _ref$showRipple === void 0 ? true : _ref$showRipple,
1878
1878
  loading = _ref.loading,
1879
+ filled = _ref.filled,
1879
1880
  _ref$size = _ref.size,
1880
1881
  size = _ref$size === void 0 ? "small" : _ref$size,
1881
1882
  buttonProps = _ref.buttonProps;
1882
1883
  var disableAction = disabled || loading;
1883
- var filled = size !== "x-small";
1884
- var _className = cx(getButtonStyle(size, type, !!showShadow, filled), className);
1884
+ var _filled = size !== "x-small" && filled !== false;
1885
+ var _className = cx(getButtonStyle(size, type, !!showShadow, _filled), className);
1885
1886
  return /*#__PURE__*/React.createElement("button", Object.assign({
1886
1887
  className: _className,
1887
1888
  onClick: !disableAction ? onClick : undefined,
@@ -11205,9 +11206,14 @@
11205
11206
  placeholder = _this$props.placeholder,
11206
11207
  propsValue = _this$props.value,
11207
11208
  disabled = _this$props.disabled,
11208
- errorMessage = _this$props.errorMessage;
11209
+ errorMessage = _this$props.errorMessage,
11210
+ placement = _this$props.placement,
11211
+ wrapperClassName = _this$props.wrapperClassName,
11212
+ initiallyOpen = _this$props.initiallyOpen;
11213
+ var _wrapperClassName = cx(wrapperStyle$3, wrapperClassName);
11214
+ var _dropDownClassName = cx(dropDownClassName, this.props.dropDownClassName);
11209
11215
  return /*#__PURE__*/React.createElement(DropDown, {
11210
- dropDownClassName: dropDownClassName,
11216
+ dropDownClassName: _dropDownClassName,
11211
11217
  labelComponent: function labelComponent(_ref) {
11212
11218
  var toggleDropdown = _ref.toggleDropdown;
11213
11219
  return /*#__PURE__*/React.createElement(Rifm, {
@@ -11221,7 +11227,7 @@
11221
11227
  onChange: noop,
11222
11228
  type: "tel",
11223
11229
  value: value,
11224
- placeholder: placeholder,
11230
+ placeholder: "".concat(placeholder, " DD/MM/YYYY"),
11225
11231
  onClick: function onClick() {
11226
11232
  if (disabled) return;
11227
11233
  toggleDropdown();
@@ -11238,9 +11244,10 @@
11238
11244
  }));
11239
11245
  });
11240
11246
  },
11241
- className: wrapperStyle$3,
11242
- placement: "bottom-start",
11243
- modifiers: modifiers$1
11247
+ className: _wrapperClassName,
11248
+ placement: placement,
11249
+ modifiers: modifiers$1,
11250
+ initiallyOpen: initiallyOpen
11244
11251
  }, function (_ref3) {
11245
11252
  var toggle = _ref3.toggle;
11246
11253
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Calendar, Object.assign({
@@ -11273,6 +11280,9 @@
11273
11280
  }]);
11274
11281
  return DateInput;
11275
11282
  }(React.PureComponent);
11283
+ DateInput.defaultProps = {
11284
+ placement: "bottom-start"
11285
+ };
11276
11286
  function checkDateInputSupport() {
11277
11287
  try {
11278
11288
  var input = document.createElement("input");
@@ -13508,7 +13518,7 @@
13508
13518
  }), /*#__PURE__*/React.createElement(Ink, null)), /*#__PURE__*/React.createElement("div", {
13509
13519
  style: {
13510
13520
  overflowY: "scroll",
13511
- height: "100vh"
13521
+ height: "100%"
13512
13522
  }
13513
13523
  }, children)));
13514
13524
  });