pebble-web 2.9.1 → 2.9.3

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.
@@ -1333,6 +1333,8 @@ var Input = /*#__PURE__*/function (_React$PureComponent) {
1333
1333
  placeholder = _this$props.placeholder,
1334
1334
  className = _this$props.className,
1335
1335
  inputClassName = _this$props.inputClassName,
1336
+ highlightClassName = _this$props.highlightClassName,
1337
+ loadingClassName = _this$props.loadingClassName,
1336
1338
  fixLabelAtTop = _this$props.fixLabelAtTop,
1337
1339
  value = _this$props.value,
1338
1340
  readOnly = _this$props.readOnly,
@@ -1355,18 +1357,19 @@ var Input = /*#__PURE__*/function (_React$PureComponent) {
1355
1357
  readOnly: readOnly,
1356
1358
  value: value || ""
1357
1359
  };
1358
- var highlightClassName = emotion.cx(highlightStyle, {
1360
+ var _highlightClassName = emotion.cx(highlightStyle, {
1359
1361
  _pebble_input_highlight_focused: !!isFocused,
1360
1362
  _pebble_input_highlight_state: !!errorMessage || !!successMessage,
1361
1363
  _pebble_input_highlight_read_only: !!readOnly,
1362
1364
  _pebble_input_highlight_disabled: !!disabled
1363
- });
1365
+ }, highlightClassName);
1364
1366
  var labelClassName = emotion.cx(labelStyle, {
1365
1367
  _pebble_input_label_focused: !!(isFocused || !!value || fixLabelAtTop)
1366
1368
  });
1367
1369
  var _wrapperStyle = emotion.cx(wrapperStyle$2, {
1368
1370
  _pebble_input_wrapper_textarea: !!textArea
1369
1371
  }, className);
1372
+ var _loadingStyle = emotion.cx(loadingStyle, loadingClassName);
1370
1373
  return /*#__PURE__*/React.createElement("div", {
1371
1374
  className: _wrapperStyle,
1372
1375
  onFocus: this.addFocus,
@@ -1374,21 +1377,21 @@ var Input = /*#__PURE__*/function (_React$PureComponent) {
1374
1377
  onClick: onClick
1375
1378
  }, this.props.textArea ? /*#__PURE__*/React.createElement("textarea", Object.assign({}, _inputProps, this.props.inputProps)) : /*#__PURE__*/React.createElement("input", Object.assign({
1376
1379
  type: type
1377
- }, _inputProps, this.props.inputProps)), /*#__PURE__*/React.createElement("label", {
1380
+ }, _inputProps, this.props.inputProps)), !!placeholder && /*#__PURE__*/React.createElement("label", {
1378
1381
  className: labelClassName
1379
1382
  }, placeholder, required && /*#__PURE__*/React.createElement("span", {
1380
1383
  style: {
1381
1384
  color: pebbleShared.colors.red.base
1382
1385
  }
1383
1386
  }, "\xA0*")), /*#__PURE__*/React.createElement("div", {
1384
- className: highlightClassName,
1387
+ className: _highlightClassName,
1385
1388
  style: {
1386
1389
  backgroundColor: getColor(errorMessage, successMessage, true)
1387
1390
  }
1388
1391
  }), loading && /*#__PURE__*/React.createElement(Loader, {
1389
1392
  color: pebbleShared.colors.violet.base,
1390
1393
  scale: 0.6,
1391
- className: loadingStyle
1394
+ className: _loadingStyle
1392
1395
  }), _message && /*#__PURE__*/React.createElement("div", {
1393
1396
  className: messageStyle,
1394
1397
  style: {
@@ -1556,7 +1559,7 @@ var DateInput = /*#__PURE__*/function (_React$PureComponent) {
1556
1559
  onChange: noop,
1557
1560
  type: "tel",
1558
1561
  value: value,
1559
- placeholder: "".concat(placeholder, " DD/MM/YYYY"),
1562
+ placeholder: placeholder,
1560
1563
  onClick: function onClick() {
1561
1564
  if (disabled) return;
1562
1565
  toggleDropdown();
@@ -1938,8 +1941,8 @@ var Message = function Message(_ref) {
1938
1941
  };
1939
1942
 
1940
1943
  var modalContainer = /*#__PURE__*/emotion.css( {
1941
- name: "6onlkt-modalContainer",
1942
- styles: "position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,0.4);overflow-y:scroll;-webkit-overflow-scrolling:touch;z-index:99998;;label:modalContainer;"
1944
+ name: "ts3alg-modalContainer",
1945
+ styles: "position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,0.4);overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:99998;;label:modalContainer;"
1943
1946
  } );
1944
1947
 
1945
1948
  function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -2602,6 +2605,7 @@ function Select(props) {
2602
2605
  errorMessage = props.errorMessage,
2603
2606
  value = props.value,
2604
2607
  dropdownClassName = props.dropdownClassName,
2608
+ arrowClassName = props.arrowClassName,
2605
2609
  inputProps = props.inputProps,
2606
2610
  fullWidthDropdown = props.fullWidthDropdown,
2607
2611
  _props$onDropdownTogg = props.onDropdownToggle,
@@ -2620,9 +2624,9 @@ function Select(props) {
2620
2624
  labelComponent: function labelComponent(_ref) {
2621
2625
  var toggleDropdown = _ref.toggleDropdown,
2622
2626
  isOpen = _ref.isOpen;
2623
- var chevron = emotion.cx(chevronStyle, "pi", "pi-arrow-drop-down", {
2627
+ var chevron = emotion.cx(chevronStyle, "pi pi-arrow-drop-down", {
2624
2628
  __pebble__select__open: isOpen
2625
- });
2629
+ }, arrowClassName);
2626
2630
  return /*#__PURE__*/React.createElement("div", {
2627
2631
  className: emotion.cx(inputWrapper, disabled && disabledSelect),
2628
2632
  onClick: disabled ? undefined : function () {
@@ -3626,7 +3630,7 @@ var SideBar = /*#__PURE__*/function (_React$PureComponent) {
3626
3630
  className: "pi pi-close"
3627
3631
  }), /*#__PURE__*/React.createElement(Ink, null)), /*#__PURE__*/React.createElement("div", {
3628
3632
  style: {
3629
- overflowY: "scroll",
3633
+ overflowY: "auto",
3630
3634
  height: "100%"
3631
3635
  }
3632
3636
  }, children)));