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.
@@ -1327,6 +1327,8 @@ var Input = /*#__PURE__*/function (_React$PureComponent) {
1327
1327
  placeholder = _this$props.placeholder,
1328
1328
  className = _this$props.className,
1329
1329
  inputClassName = _this$props.inputClassName,
1330
+ highlightClassName = _this$props.highlightClassName,
1331
+ loadingClassName = _this$props.loadingClassName,
1330
1332
  fixLabelAtTop = _this$props.fixLabelAtTop,
1331
1333
  value = _this$props.value,
1332
1334
  readOnly = _this$props.readOnly,
@@ -1349,18 +1351,19 @@ var Input = /*#__PURE__*/function (_React$PureComponent) {
1349
1351
  readOnly: readOnly,
1350
1352
  value: value || ""
1351
1353
  };
1352
- var highlightClassName = cx(highlightStyle, {
1354
+ var _highlightClassName = cx(highlightStyle, {
1353
1355
  _pebble_input_highlight_focused: !!isFocused,
1354
1356
  _pebble_input_highlight_state: !!errorMessage || !!successMessage,
1355
1357
  _pebble_input_highlight_read_only: !!readOnly,
1356
1358
  _pebble_input_highlight_disabled: !!disabled
1357
- });
1359
+ }, highlightClassName);
1358
1360
  var labelClassName = cx(labelStyle, {
1359
1361
  _pebble_input_label_focused: !!(isFocused || !!value || fixLabelAtTop)
1360
1362
  });
1361
1363
  var _wrapperStyle = cx(wrapperStyle$2, {
1362
1364
  _pebble_input_wrapper_textarea: !!textArea
1363
1365
  }, className);
1366
+ var _loadingStyle = cx(loadingStyle, loadingClassName);
1364
1367
  return /*#__PURE__*/createElement("div", {
1365
1368
  className: _wrapperStyle,
1366
1369
  onFocus: this.addFocus,
@@ -1368,21 +1371,21 @@ var Input = /*#__PURE__*/function (_React$PureComponent) {
1368
1371
  onClick: onClick
1369
1372
  }, this.props.textArea ? /*#__PURE__*/createElement("textarea", Object.assign({}, _inputProps, this.props.inputProps)) : /*#__PURE__*/createElement("input", Object.assign({
1370
1373
  type: type
1371
- }, _inputProps, this.props.inputProps)), /*#__PURE__*/createElement("label", {
1374
+ }, _inputProps, this.props.inputProps)), !!placeholder && /*#__PURE__*/createElement("label", {
1372
1375
  className: labelClassName
1373
1376
  }, placeholder, required && /*#__PURE__*/createElement("span", {
1374
1377
  style: {
1375
1378
  color: colors.red.base
1376
1379
  }
1377
1380
  }, "\xA0*")), /*#__PURE__*/createElement("div", {
1378
- className: highlightClassName,
1381
+ className: _highlightClassName,
1379
1382
  style: {
1380
1383
  backgroundColor: getColor(errorMessage, successMessage, true)
1381
1384
  }
1382
1385
  }), loading && /*#__PURE__*/createElement(Loader, {
1383
1386
  color: colors.violet.base,
1384
1387
  scale: 0.6,
1385
- className: loadingStyle
1388
+ className: _loadingStyle
1386
1389
  }), _message && /*#__PURE__*/createElement("div", {
1387
1390
  className: messageStyle,
1388
1391
  style: {
@@ -1550,7 +1553,7 @@ var DateInput = /*#__PURE__*/function (_React$PureComponent) {
1550
1553
  onChange: noop,
1551
1554
  type: "tel",
1552
1555
  value: value,
1553
- placeholder: "".concat(placeholder, " DD/MM/YYYY"),
1556
+ placeholder: placeholder,
1554
1557
  onClick: function onClick() {
1555
1558
  if (disabled) return;
1556
1559
  toggleDropdown();
@@ -1932,8 +1935,8 @@ var Message = function Message(_ref) {
1932
1935
  };
1933
1936
 
1934
1937
  var modalContainer = /*#__PURE__*/css( {
1935
- name: "6onlkt-modalContainer",
1936
- 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;"
1938
+ name: "ts3alg-modalContainer",
1939
+ 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;"
1937
1940
  } );
1938
1941
 
1939
1942
  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); }; }
@@ -2596,6 +2599,7 @@ function Select(props) {
2596
2599
  errorMessage = props.errorMessage,
2597
2600
  value = props.value,
2598
2601
  dropdownClassName = props.dropdownClassName,
2602
+ arrowClassName = props.arrowClassName,
2599
2603
  inputProps = props.inputProps,
2600
2604
  fullWidthDropdown = props.fullWidthDropdown,
2601
2605
  _props$onDropdownTogg = props.onDropdownToggle,
@@ -2614,9 +2618,9 @@ function Select(props) {
2614
2618
  labelComponent: function labelComponent(_ref) {
2615
2619
  var toggleDropdown = _ref.toggleDropdown,
2616
2620
  isOpen = _ref.isOpen;
2617
- var chevron = cx(chevronStyle, "pi", "pi-arrow-drop-down", {
2621
+ var chevron = cx(chevronStyle, "pi pi-arrow-drop-down", {
2618
2622
  __pebble__select__open: isOpen
2619
- });
2623
+ }, arrowClassName);
2620
2624
  return /*#__PURE__*/createElement("div", {
2621
2625
  className: cx(inputWrapper, disabled && disabledSelect),
2622
2626
  onClick: disabled ? undefined : function () {
@@ -3620,7 +3624,7 @@ var SideBar = /*#__PURE__*/function (_React$PureComponent) {
3620
3624
  className: "pi pi-close"
3621
3625
  }), /*#__PURE__*/createElement(Ink, null)), /*#__PURE__*/createElement("div", {
3622
3626
  style: {
3623
- overflowY: "scroll",
3627
+ overflowY: "auto",
3624
3628
  height: "100%"
3625
3629
  }
3626
3630
  }, children)));