@app-studio/web 0.7.0 → 0.7.2

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.
package/dist/web.esm.js CHANGED
@@ -3537,9 +3537,7 @@ var DatePickerView = function DatePickerView(_ref) {
3537
3537
  onFocus: handleFocus,
3538
3538
  disabled: isDisabled,
3539
3539
  readOnly: isReadOnly
3540
- }, fieldStyles, props, {
3541
- value: date
3542
- }, onChangeText && {
3540
+ }, fieldStyles, props, onChangeText && {
3543
3541
  onChangeText: handleDateChange
3544
3542
  }, {
3545
3543
  onChange: handleDateChange
@@ -3847,7 +3845,7 @@ var IconSizes$4 = {
3847
3845
  xl: 16
3848
3846
  };
3849
3847
 
3850
- var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback"],
3848
+ var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
3851
3849
  _excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
3852
3850
  _excluded3$1 = ["option", "size", "removeOption"],
3853
3851
  _excluded4$1 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
@@ -3859,6 +3857,7 @@ var Item = function Item(_ref) {
3859
3857
  size = _ref$size === void 0 ? 'md' : _ref$size,
3860
3858
  _ref$callback = _ref.callback,
3861
3859
  callback = _ref$callback === void 0 ? function () {} : _ref$callback,
3860
+ style = _ref.style,
3862
3861
  props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
3863
3862
  var handleOptionClick = function handleOptionClick(option) {
3864
3863
  return callback(option);
@@ -3874,12 +3873,13 @@ var Item = function Item(_ref) {
3874
3873
  listStyleType: "none",
3875
3874
  onMouseEnter: handleHover,
3876
3875
  onMouseLeave: handleHover,
3877
- fontSize: Typography.fontSizes[size],
3878
3876
  onClick: function onClick() {
3879
3877
  return handleOptionClick(option);
3880
3878
  },
3881
3879
  backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
3882
- }, props), React.createElement(Text, null, " ", option));
3880
+ }, props), React.createElement(Text, Object.assign({
3881
+ fontSize: Typography.fontSizes[size]
3882
+ }, style), option));
3883
3883
  };
3884
3884
  var SelectBox = function SelectBox(_ref2) {
3885
3885
  var _ref2$size = _ref2.size,
@@ -4009,13 +4009,14 @@ var DropDown$1 = function DropDown(_ref4) {
4009
4009
  return React.createElement(Item, Object.assign({
4010
4010
  key: option,
4011
4011
  size: size,
4012
+ style: styles['text'],
4012
4013
  option: option,
4013
4014
  callback: handleCallback,
4014
4015
  backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
4015
4016
  onMouseEnter: function onMouseEnter() {
4016
4017
  return setHighlightedIndex(index);
4017
4018
  }
4018
- }, itemStates, styles['text']));
4019
+ }, itemStates));
4019
4020
  }));
4020
4021
  };
4021
4022
  var MultiSelect = function MultiSelect(_ref5) {