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.
@@ -460,12 +460,13 @@ const Button = ({
460
460
  className,
461
461
  showRipple = true,
462
462
  loading,
463
+ filled,
463
464
  size = "small",
464
465
  buttonProps
465
466
  }) => {
466
467
  const disableAction = disabled || loading;
467
- const filled = size !== "x-small";
468
- const _className = cx(getButtonStyle(size, type, !!showShadow, filled), className);
468
+ const _filled = size !== "x-small" && filled !== false;
469
+ const _className = cx(getButtonStyle(size, type, !!showShadow, _filled), className);
469
470
  return /*#__PURE__*/createElement("button", Object.assign({
470
471
  className: _className,
471
472
  onClick: !disableAction ? onClick : undefined,
@@ -1431,10 +1432,15 @@ class DateInput extends PureComponent {
1431
1432
  placeholder,
1432
1433
  value: propsValue,
1433
1434
  disabled,
1434
- errorMessage
1435
+ errorMessage,
1436
+ placement,
1437
+ wrapperClassName,
1438
+ initiallyOpen
1435
1439
  } = this.props;
1440
+ const _wrapperClassName = cx(wrapperStyle$3, wrapperClassName);
1441
+ const _dropDownClassName = cx(dropDownClassName, this.props.dropDownClassName);
1436
1442
  return /*#__PURE__*/createElement(DropDown, {
1437
- dropDownClassName: dropDownClassName,
1443
+ dropDownClassName: _dropDownClassName,
1438
1444
  labelComponent: ({
1439
1445
  toggleDropdown
1440
1446
  }) => /*#__PURE__*/createElement(Rifm, {
@@ -1448,7 +1454,7 @@ class DateInput extends PureComponent {
1448
1454
  onChange: noop,
1449
1455
  type: "tel",
1450
1456
  value: value,
1451
- placeholder: placeholder,
1457
+ placeholder: `${placeholder} DD/MM/YYYY`,
1452
1458
  onClick: () => {
1453
1459
  if (disabled) return;
1454
1460
  toggleDropdown();
@@ -1463,9 +1469,10 @@ class DateInput extends PureComponent {
1463
1469
  className: cx(inputStyle$1, inputProps && inputProps.className),
1464
1470
  disabled: disabled
1465
1471
  }))),
1466
- className: wrapperStyle$3,
1467
- placement: "bottom-start",
1468
- modifiers: modifiers
1472
+ className: _wrapperClassName,
1473
+ placement: placement,
1474
+ modifiers: modifiers,
1475
+ initiallyOpen: initiallyOpen
1469
1476
  }, ({
1470
1477
  toggle
1471
1478
  }) => /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Calendar, Object.assign({
@@ -1483,6 +1490,9 @@ class DateInput extends PureComponent {
1483
1490
  }, errorMessage)));
1484
1491
  }
1485
1492
  }
1493
+ DateInput.defaultProps = {
1494
+ placement: "bottom-start"
1495
+ };
1486
1496
  function checkDateInputSupport() {
1487
1497
  try {
1488
1498
  const input = document.createElement("input");
@@ -3291,7 +3301,7 @@ class SideBar extends PureComponent {
3291
3301
  }), /*#__PURE__*/createElement(Ink, null)), /*#__PURE__*/createElement("div", {
3292
3302
  style: {
3293
3303
  overflowY: "scroll",
3294
- height: "100vh"
3304
+ height: "100%"
3295
3305
  }
3296
3306
  }, children))));
3297
3307
  }