@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/components/Form/Select/Select/Select.props.d.ts +4 -0
- package/dist/web.cjs.development.js +8 -7
- 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 +8 -7
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3544,9 +3544,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
3544
3544
|
onFocus: handleFocus,
|
|
3545
3545
|
disabled: isDisabled,
|
|
3546
3546
|
readOnly: isReadOnly
|
|
3547
|
-
}, fieldStyles, props, {
|
|
3548
|
-
value: date
|
|
3549
|
-
}, onChangeText && {
|
|
3547
|
+
}, fieldStyles, props, onChangeText && {
|
|
3550
3548
|
onChangeText: handleDateChange
|
|
3551
3549
|
}, {
|
|
3552
3550
|
onChange: handleDateChange
|
|
@@ -3854,7 +3852,7 @@ var IconSizes$4 = {
|
|
|
3854
3852
|
xl: 16
|
|
3855
3853
|
};
|
|
3856
3854
|
|
|
3857
|
-
var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3855
|
+
var _excluded$v = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3858
3856
|
_excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3859
3857
|
_excluded3$1 = ["option", "size", "removeOption"],
|
|
3860
3858
|
_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 +3864,7 @@ var Item = function Item(_ref) {
|
|
|
3866
3864
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3867
3865
|
_ref$callback = _ref.callback,
|
|
3868
3866
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3867
|
+
style = _ref.style,
|
|
3869
3868
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
3870
3869
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3871
3870
|
return callback(option);
|
|
@@ -3881,12 +3880,13 @@ var Item = function Item(_ref) {
|
|
|
3881
3880
|
listStyleType: "none",
|
|
3882
3881
|
onMouseEnter: handleHover,
|
|
3883
3882
|
onMouseLeave: handleHover,
|
|
3884
|
-
fontSize: appStudio.Typography.fontSizes[size],
|
|
3885
3883
|
onClick: function onClick() {
|
|
3886
3884
|
return handleOptionClick(option);
|
|
3887
3885
|
},
|
|
3888
3886
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
3889
|
-
}, props), React__default.createElement(Text,
|
|
3887
|
+
}, props), React__default.createElement(Text, Object.assign({
|
|
3888
|
+
fontSize: appStudio.Typography.fontSizes[size]
|
|
3889
|
+
}, style), option));
|
|
3890
3890
|
};
|
|
3891
3891
|
var SelectBox = function SelectBox(_ref2) {
|
|
3892
3892
|
var _ref2$size = _ref2.size,
|
|
@@ -4016,13 +4016,14 @@ var DropDown$1 = function DropDown(_ref4) {
|
|
|
4016
4016
|
return React__default.createElement(Item, Object.assign({
|
|
4017
4017
|
key: option,
|
|
4018
4018
|
size: size,
|
|
4019
|
+
style: styles['text'],
|
|
4019
4020
|
option: option,
|
|
4020
4021
|
callback: handleCallback,
|
|
4021
4022
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
4022
4023
|
onMouseEnter: function onMouseEnter() {
|
|
4023
4024
|
return setHighlightedIndex(index);
|
|
4024
4025
|
}
|
|
4025
|
-
}, itemStates
|
|
4026
|
+
}, itemStates));
|
|
4026
4027
|
}));
|
|
4027
4028
|
};
|
|
4028
4029
|
var MultiSelect = function MultiSelect(_ref5) {
|