@app-studio/web 0.7.0 → 0.7.1

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.
@@ -168,6 +168,10 @@ export interface ItemProps {
168
168
  * To set the item's fontSize
169
169
  */
170
170
  size?: Size;
171
+ /**
172
+ * Css styles for the Item
173
+ */
174
+ style?: SelectStyles;
171
175
  /**
172
176
  * other properties
173
177
  */
@@ -3854,7 +3854,7 @@ var IconSizes$4 = {
3854
3854
  xl: 16
3855
3855
  };
3856
3856
 
3857
- var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback"],
3857
+ var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
3858
3858
  _excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
3859
3859
  _excluded3$1 = ["option", "size", "removeOption"],
3860
3860
  _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"];
@@ -3866,6 +3866,7 @@ var Item = function Item(_ref) {
3866
3866
  size = _ref$size === void 0 ? 'md' : _ref$size,
3867
3867
  _ref$callback = _ref.callback,
3868
3868
  callback = _ref$callback === void 0 ? function () {} : _ref$callback,
3869
+ style = _ref.style,
3869
3870
  props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
3870
3871
  var handleOptionClick = function handleOptionClick(option) {
3871
3872
  return callback(option);
@@ -3881,12 +3882,13 @@ var Item = function Item(_ref) {
3881
3882
  listStyleType: "none",
3882
3883
  onMouseEnter: handleHover,
3883
3884
  onMouseLeave: handleHover,
3884
- fontSize: appStudio.Typography.fontSizes[size],
3885
3885
  onClick: function onClick() {
3886
3886
  return handleOptionClick(option);
3887
3887
  },
3888
3888
  backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
3889
- }, props), React__default.createElement(Text, null, " ", option));
3889
+ }, props), React__default.createElement(Text, Object.assign({
3890
+ fontSize: appStudio.Typography.fontSizes[size]
3891
+ }, style), option));
3890
3892
  };
3891
3893
  var SelectBox = function SelectBox(_ref2) {
3892
3894
  var _ref2$size = _ref2.size,
@@ -4016,13 +4018,14 @@ var DropDown$1 = function DropDown(_ref4) {
4016
4018
  return React__default.createElement(Item, Object.assign({
4017
4019
  key: option,
4018
4020
  size: size,
4021
+ style: styles['text'],
4019
4022
  option: option,
4020
4023
  callback: handleCallback,
4021
4024
  backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
4022
4025
  onMouseEnter: function onMouseEnter() {
4023
4026
  return setHighlightedIndex(index);
4024
4027
  }
4025
- }, itemStates, styles['text']));
4028
+ }, itemStates));
4026
4029
  }));
4027
4030
  };
4028
4031
  var MultiSelect = function MultiSelect(_ref5) {