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.
@@ -9278,6 +9278,8 @@
9278
9278
  placeholder = _this$props.placeholder,
9279
9279
  className = _this$props.className,
9280
9280
  inputClassName = _this$props.inputClassName,
9281
+ highlightClassName = _this$props.highlightClassName,
9282
+ loadingClassName = _this$props.loadingClassName,
9281
9283
  fixLabelAtTop = _this$props.fixLabelAtTop,
9282
9284
  value = _this$props.value,
9283
9285
  readOnly = _this$props.readOnly,
@@ -9300,18 +9302,19 @@
9300
9302
  readOnly: readOnly,
9301
9303
  value: value || ""
9302
9304
  };
9303
- var highlightClassName = cx(highlightStyle, {
9305
+ var _highlightClassName = cx(highlightStyle, {
9304
9306
  _pebble_input_highlight_focused: !!isFocused,
9305
9307
  _pebble_input_highlight_state: !!errorMessage || !!successMessage,
9306
9308
  _pebble_input_highlight_read_only: !!readOnly,
9307
9309
  _pebble_input_highlight_disabled: !!disabled
9308
- });
9310
+ }, highlightClassName);
9309
9311
  var labelClassName = cx(labelStyle, {
9310
9312
  _pebble_input_label_focused: !!(isFocused || !!value || fixLabelAtTop)
9311
9313
  });
9312
9314
  var _wrapperStyle = cx(wrapperStyle$2, {
9313
9315
  _pebble_input_wrapper_textarea: !!textArea
9314
9316
  }, className);
9317
+ var _loadingStyle = cx(loadingStyle, loadingClassName);
9315
9318
  return /*#__PURE__*/React.createElement("div", {
9316
9319
  className: _wrapperStyle,
9317
9320
  onFocus: this.addFocus,
@@ -9319,21 +9322,21 @@
9319
9322
  onClick: onClick
9320
9323
  }, this.props.textArea ? /*#__PURE__*/React.createElement("textarea", Object.assign({}, _inputProps, this.props.inputProps)) : /*#__PURE__*/React.createElement("input", Object.assign({
9321
9324
  type: type
9322
- }, _inputProps, this.props.inputProps)), /*#__PURE__*/React.createElement("label", {
9325
+ }, _inputProps, this.props.inputProps)), !!placeholder && /*#__PURE__*/React.createElement("label", {
9323
9326
  className: labelClassName
9324
9327
  }, placeholder, required && /*#__PURE__*/React.createElement("span", {
9325
9328
  style: {
9326
9329
  color: colors.red.base
9327
9330
  }
9328
9331
  }, "\xA0*")), /*#__PURE__*/React.createElement("div", {
9329
- className: highlightClassName,
9332
+ className: _highlightClassName,
9330
9333
  style: {
9331
9334
  backgroundColor: getColor(errorMessage, successMessage, true)
9332
9335
  }
9333
9336
  }), loading && /*#__PURE__*/React.createElement(Loader, {
9334
9337
  color: colors.violet.base,
9335
9338
  scale: 0.6,
9336
- className: loadingStyle
9339
+ className: _loadingStyle
9337
9340
  }), _message && /*#__PURE__*/React.createElement("div", {
9338
9341
  className: messageStyle,
9339
9342
  style: {
@@ -11232,7 +11235,7 @@
11232
11235
  onChange: noop,
11233
11236
  type: "tel",
11234
11237
  value: value,
11235
- placeholder: "".concat(placeholder, " DD/MM/YYYY"),
11238
+ placeholder: placeholder,
11236
11239
  onClick: function onClick() {
11237
11240
  if (disabled) return;
11238
11241
  toggleDropdown();
@@ -11616,8 +11619,8 @@
11616
11619
  };
11617
11620
 
11618
11621
  var modalContainer = /*#__PURE__*/css( {
11619
- name: "6onlkt-modalContainer",
11620
- 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;"
11622
+ name: "ts3alg-modalContainer",
11623
+ 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;"
11621
11624
  } );
11622
11625
 
11623
11626
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
@@ -12498,6 +12501,7 @@
12498
12501
  errorMessage = props.errorMessage,
12499
12502
  value = props.value,
12500
12503
  dropdownClassName = props.dropdownClassName,
12504
+ arrowClassName = props.arrowClassName,
12501
12505
  inputProps = props.inputProps,
12502
12506
  fullWidthDropdown = props.fullWidthDropdown,
12503
12507
  _props$onDropdownTogg = props.onDropdownToggle,
@@ -12516,9 +12520,9 @@
12516
12520
  labelComponent: function labelComponent(_ref) {
12517
12521
  var toggleDropdown = _ref.toggleDropdown,
12518
12522
  isOpen = _ref.isOpen;
12519
- var chevron = cx(chevronStyle, "pi", "pi-arrow-drop-down", {
12523
+ var chevron = cx(chevronStyle, "pi pi-arrow-drop-down", {
12520
12524
  __pebble__select__open: isOpen
12521
- });
12525
+ }, arrowClassName);
12522
12526
  return /*#__PURE__*/React.createElement("div", {
12523
12527
  className: cx(inputWrapper, disabled && disabledSelect),
12524
12528
  onClick: disabled ? undefined : function () {
@@ -13522,7 +13526,7 @@
13522
13526
  className: "pi pi-close"
13523
13527
  }), /*#__PURE__*/React.createElement(Ink, null)), /*#__PURE__*/React.createElement("div", {
13524
13528
  style: {
13525
- overflowY: "scroll",
13529
+ overflowY: "auto",
13526
13530
  height: "100%"
13527
13531
  }
13528
13532
  }, children)));