@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.
- package/dist/components/Form/Select/Select/Select.props.d.ts +4 -0
- package/dist/web.cjs.development.js +7 -4
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +7 -4
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/web.esm.js
CHANGED
|
@@ -3847,7 +3847,7 @@ var IconSizes$4 = {
|
|
|
3847
3847
|
xl: 16
|
|
3848
3848
|
};
|
|
3849
3849
|
|
|
3850
|
-
var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3850
|
+
var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3851
3851
|
_excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3852
3852
|
_excluded3$1 = ["option", "size", "removeOption"],
|
|
3853
3853
|
_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 +3859,7 @@ var Item = function Item(_ref) {
|
|
|
3859
3859
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3860
3860
|
_ref$callback = _ref.callback,
|
|
3861
3861
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3862
|
+
style = _ref.style,
|
|
3862
3863
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
3863
3864
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3864
3865
|
return callback(option);
|
|
@@ -3874,12 +3875,13 @@ var Item = function Item(_ref) {
|
|
|
3874
3875
|
listStyleType: "none",
|
|
3875
3876
|
onMouseEnter: handleHover,
|
|
3876
3877
|
onMouseLeave: handleHover,
|
|
3877
|
-
fontSize: Typography.fontSizes[size],
|
|
3878
3878
|
onClick: function onClick() {
|
|
3879
3879
|
return handleOptionClick(option);
|
|
3880
3880
|
},
|
|
3881
3881
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
3882
|
-
}, props), React.createElement(Text,
|
|
3882
|
+
}, props), React.createElement(Text, Object.assign({
|
|
3883
|
+
fontSize: Typography.fontSizes[size]
|
|
3884
|
+
}, style), option));
|
|
3883
3885
|
};
|
|
3884
3886
|
var SelectBox = function SelectBox(_ref2) {
|
|
3885
3887
|
var _ref2$size = _ref2.size,
|
|
@@ -4009,13 +4011,14 @@ var DropDown$1 = function DropDown(_ref4) {
|
|
|
4009
4011
|
return React.createElement(Item, Object.assign({
|
|
4010
4012
|
key: option,
|
|
4011
4013
|
size: size,
|
|
4014
|
+
style: styles['text'],
|
|
4012
4015
|
option: option,
|
|
4013
4016
|
callback: handleCallback,
|
|
4014
4017
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
4015
4018
|
onMouseEnter: function onMouseEnter() {
|
|
4016
4019
|
return setHighlightedIndex(index);
|
|
4017
4020
|
}
|
|
4018
|
-
}, itemStates
|
|
4021
|
+
}, itemStates));
|
|
4019
4022
|
}));
|
|
4020
4023
|
};
|
|
4021
4024
|
var MultiSelect = function MultiSelect(_ref5) {
|