glints-aries 4.0.301 → 4.0.302
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/es/@next/Portal/index.d.ts +1 -0
- package/es/@next/Portal/index.js +1 -0
- package/es/@next/Select/components/SearchableSelectInput/SearchableSelectInput.js +7 -1
- package/es/@next/index.d.ts +1 -0
- package/es/@next/index.js +1 -0
- package/lib/@next/Portal/index.d.ts +1 -0
- package/lib/@next/Portal/index.js +9 -0
- package/lib/@next/Select/components/SearchableSelectInput/SearchableSelectInput.js +7 -1
- package/lib/@next/index.d.ts +1 -0
- package/lib/@next/index.js +4 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Portal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Portal';
|
|
@@ -36,11 +36,13 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
|
|
|
36
36
|
isSelectedClicked = _useState2[0],
|
|
37
37
|
setIsSelectedClicked = _useState2[1];
|
|
38
38
|
var handleFocus = function handleFocus(e) {
|
|
39
|
+
if (disabled) return;
|
|
39
40
|
setIsSelectedClicked(false);
|
|
40
41
|
setShowClear(false);
|
|
41
42
|
onFocus(e);
|
|
42
43
|
};
|
|
43
44
|
var handleClearIconClick = function handleClearIconClick() {
|
|
45
|
+
if (disabled) return;
|
|
44
46
|
setShowClear(false);
|
|
45
47
|
updateSearchableSelectState({
|
|
46
48
|
showSelected: false,
|
|
@@ -50,6 +52,7 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
|
|
|
50
52
|
updateMenuOptions(options);
|
|
51
53
|
};
|
|
52
54
|
var handleInputChange = function handleInputChange(e) {
|
|
55
|
+
if (disabled) return;
|
|
53
56
|
var str = e.currentTarget.value;
|
|
54
57
|
if (onInputChange) {
|
|
55
58
|
onInputChange(str);
|
|
@@ -64,6 +67,7 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
|
|
|
64
67
|
});
|
|
65
68
|
};
|
|
66
69
|
var handleSelectedClick = function handleSelectedClick(e) {
|
|
70
|
+
if (disabled) return;
|
|
67
71
|
e.stopPropagation();
|
|
68
72
|
setIsSelectedClicked(true);
|
|
69
73
|
updateSearchableSelectState({
|
|
@@ -75,6 +79,7 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
|
|
|
75
79
|
updateMenuOptions(options);
|
|
76
80
|
};
|
|
77
81
|
var handleInputBlur = function handleInputBlur() {
|
|
82
|
+
if (disabled) return;
|
|
78
83
|
setIsSelectedClicked(false);
|
|
79
84
|
if (selectedValue) {
|
|
80
85
|
// allow onClick event handler in Menu before onBlur of input
|
|
@@ -128,11 +133,12 @@ export var SearchableSelectInput = /*#__PURE__*/forwardRef(function SearchableSe
|
|
|
128
133
|
})) == null ? void 0 : _options$find.label) || selectedValue)), showInput && /*#__PURE__*/React.createElement(InputContainer, null, /*#__PURE__*/React.createElement(StyledInput, _extends({
|
|
129
134
|
ref: inputRef,
|
|
130
135
|
onChange: handleInputChange,
|
|
136
|
+
disabled: disabled,
|
|
131
137
|
placeholder: showPlaceholder ? placeholder : null,
|
|
132
138
|
value: inputValue,
|
|
133
139
|
onBlur: handleInputBlur,
|
|
134
140
|
onFocus: handleFocus
|
|
135
|
-
}, props))), showClear && /*#__PURE__*/React.createElement(ClearSelected, {
|
|
141
|
+
}, props))), showClear && !disabled && /*#__PURE__*/React.createElement(ClearSelected, {
|
|
136
142
|
onSelect: onSelect,
|
|
137
143
|
handleClearIconClick: handleClearIconClick,
|
|
138
144
|
updateInputValue: updateInputValue
|
package/es/@next/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { NumberInput, NumberInputProps } from './NumberInput';
|
|
|
29
29
|
export { IconPagination, IconPaginationProps, Pagination, PaginationProps, SimplePagination, } from './Pagination';
|
|
30
30
|
export { PasswordInput, PasswordInputProps } from './PasswordInput';
|
|
31
31
|
export { Popover, PopoverProps } from './Popover';
|
|
32
|
+
export { Portal } from './Portal';
|
|
32
33
|
export { RadioButton, RadioButtonProps } from './RadioButton';
|
|
33
34
|
export { Select, SelectProps } from './Select';
|
|
34
35
|
export { SideSheet, SideSheetProps } from './SideSheet';
|
package/es/@next/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export { NumberInput, NumberInputProps } from './NumberInput';
|
|
|
30
30
|
export { IconPagination, IconPaginationProps, Pagination, PaginationProps, SimplePagination } from './Pagination';
|
|
31
31
|
export { PasswordInput, PasswordInputProps } from './PasswordInput';
|
|
32
32
|
export { Popover, PopoverProps } from './Popover';
|
|
33
|
+
export { Portal } from './Portal';
|
|
33
34
|
export { RadioButton, RadioButtonProps } from './RadioButton';
|
|
34
35
|
export { Select, SelectProps } from './Select';
|
|
35
36
|
export { SideSheet, SideSheetProps } from './SideSheet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Portal';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _Portal = require("./Portal");
|
|
5
|
+
Object.keys(_Portal).forEach(function (key) {
|
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
|
7
|
+
if (key in exports && exports[key] === _Portal[key]) return;
|
|
8
|
+
exports[key] = _Portal[key];
|
|
9
|
+
});
|
|
@@ -43,11 +43,13 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
|
|
|
43
43
|
isSelectedClicked = _useState2[0],
|
|
44
44
|
setIsSelectedClicked = _useState2[1];
|
|
45
45
|
var handleFocus = function handleFocus(e) {
|
|
46
|
+
if (disabled) return;
|
|
46
47
|
setIsSelectedClicked(false);
|
|
47
48
|
setShowClear(false);
|
|
48
49
|
onFocus(e);
|
|
49
50
|
};
|
|
50
51
|
var handleClearIconClick = function handleClearIconClick() {
|
|
52
|
+
if (disabled) return;
|
|
51
53
|
setShowClear(false);
|
|
52
54
|
updateSearchableSelectState({
|
|
53
55
|
showSelected: false,
|
|
@@ -57,6 +59,7 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
|
|
|
57
59
|
updateMenuOptions(options);
|
|
58
60
|
};
|
|
59
61
|
var handleInputChange = function handleInputChange(e) {
|
|
62
|
+
if (disabled) return;
|
|
60
63
|
var str = e.currentTarget.value;
|
|
61
64
|
if (onInputChange) {
|
|
62
65
|
onInputChange(str);
|
|
@@ -71,6 +74,7 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
|
|
|
71
74
|
});
|
|
72
75
|
};
|
|
73
76
|
var handleSelectedClick = function handleSelectedClick(e) {
|
|
77
|
+
if (disabled) return;
|
|
74
78
|
e.stopPropagation();
|
|
75
79
|
setIsSelectedClicked(true);
|
|
76
80
|
updateSearchableSelectState({
|
|
@@ -82,6 +86,7 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
|
|
|
82
86
|
updateMenuOptions(options);
|
|
83
87
|
};
|
|
84
88
|
var handleInputBlur = function handleInputBlur() {
|
|
89
|
+
if (disabled) return;
|
|
85
90
|
setIsSelectedClicked(false);
|
|
86
91
|
if (selectedValue) {
|
|
87
92
|
// allow onClick event handler in Menu before onBlur of input
|
|
@@ -135,11 +140,12 @@ var SearchableSelectInput = /*#__PURE__*/(0, _react.forwardRef)(function Searcha
|
|
|
135
140
|
})) == null ? void 0 : _options$find.label) || selectedValue)), showInput && /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.InputContainer, null, /*#__PURE__*/_react["default"].createElement(_InputStyle.StyledInput, (0, _extends2["default"])({
|
|
136
141
|
ref: inputRef,
|
|
137
142
|
onChange: handleInputChange,
|
|
143
|
+
disabled: disabled,
|
|
138
144
|
placeholder: showPlaceholder ? placeholder : null,
|
|
139
145
|
value: inputValue,
|
|
140
146
|
onBlur: handleInputBlur,
|
|
141
147
|
onFocus: handleFocus
|
|
142
|
-
}, props))), showClear && /*#__PURE__*/_react["default"].createElement(_ClearSelected.ClearSelected, {
|
|
148
|
+
}, props))), showClear && !disabled && /*#__PURE__*/_react["default"].createElement(_ClearSelected.ClearSelected, {
|
|
143
149
|
onSelect: onSelect,
|
|
144
150
|
handleClearIconClick: handleClearIconClick,
|
|
145
151
|
updateInputValue: updateInputValue
|
package/lib/@next/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { NumberInput, NumberInputProps } from './NumberInput';
|
|
|
29
29
|
export { IconPagination, IconPaginationProps, Pagination, PaginationProps, SimplePagination, } from './Pagination';
|
|
30
30
|
export { PasswordInput, PasswordInputProps } from './PasswordInput';
|
|
31
31
|
export { Popover, PopoverProps } from './Popover';
|
|
32
|
+
export { Portal } from './Portal';
|
|
32
33
|
export { RadioButton, RadioButtonProps } from './RadioButton';
|
|
33
34
|
export { Select, SelectProps } from './Select';
|
|
34
35
|
export { SideSheet, SideSheetProps } from './SideSheet';
|
package/lib/@next/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
exports.useModal = exports.useIndexResourceState = exports.useAlert = exports.UploadProps = exports.Upload = exports.TypographyProps = exports.Typography = exports.TooltipProps = exports.TooltipPosition = exports.Tooltip = exports.TextInputProps = void 0;
|
|
4
|
+
exports.TextAreaProps = exports.TextArea = exports.TagProps = exports.Tag = exports.TabsProps = exports.Tabs = exports.TableRowProps = exports.TableHeaderProps = exports.TableCellProps = exports.TabProps = exports.TabModel = exports.Tab = exports.Switch = exports.SpinnerProps = exports.Spinner = exports.Spacing = exports.SkeletonTextProps = exports.SkeletonText = exports.SkeletonImageSquareProps = exports.SkeletonImageSquare = exports.SkeletonImageCircleProps = exports.SkeletonImageCircle = exports.SimplePagination = exports.SideSheetProps = exports.SideSheet = exports.SelectProps = exports.Select = exports.RadioButtonProps = exports.RadioButton = exports.PrimaryButton = exports.Portal = exports.PopoverProps = exports.Popover = exports.PasswordInputProps = exports.PasswordInput = exports.PaginationProps = exports.Pagination = exports.OutlineMonochromeButton = exports.OutlineButton = exports.NumberInputProps = exports.NumberInput = exports.ModalWithProvider = exports.ModalProvider = exports.ModalProps = exports.ModalContext = exports.Modal = exports.MenuProps = exports.Menu = exports.LinkProps = exports.Link = exports.InlineErrorProps = exports.InlineError = exports.IndexTableProps = exports.IndexTable = exports.IconProps = exports.IconPaginationProps = exports.IconPagination = exports.Icon = exports.Fonts = exports.EmptyState = exports.DropShadow = exports.Divider = exports.DestructiveButton = exports.DataTableProps = exports.DataTable = exports.CurrencyInputProps = exports.CurrencyInput = exports.ComboboxProps = exports.Combobox = exports.Colors = exports.CheckboxProps = exports.Checkbox = exports.CarouselProps = exports.Carousel = exports.CardProps = exports.Card = exports.ButtonProps = exports.ButtonGroupProps = exports.ButtonGroup = exports.Button = exports.Breakpoints = exports.BorderRadius = exports.BarProps = exports.Bar = exports.BannerProps = exports.Banner = exports.BadgeProps = exports.Badge = exports.AvatarProps = exports.Avatar = exports.AlertWithProvider = exports.AlertProvider = exports.AlertProps = exports.AlertContextProps = exports.AlertContext = exports.Alert = exports.ActionListSection = exports.ActionListProps = exports.ActionListItem = exports.ActionList = void 0;
|
|
5
|
+
exports.useModal = exports.useIndexResourceState = exports.useAlert = exports.UploadProps = exports.Upload = exports.TypographyProps = exports.Typography = exports.TooltipProps = exports.TooltipPosition = exports.Tooltip = exports.TextInputProps = exports.TextInput = void 0;
|
|
6
6
|
var BorderRadius = _interopRequireWildcard(require("./utilities/borderRadius"));
|
|
7
7
|
exports.BorderRadius = BorderRadius;
|
|
8
8
|
var Breakpoints = _interopRequireWildcard(require("./utilities/breakpoints"));
|
|
@@ -110,6 +110,8 @@ exports.PasswordInputProps = _PasswordInput.PasswordInputProps;
|
|
|
110
110
|
var _Popover = require("./Popover");
|
|
111
111
|
exports.Popover = _Popover.Popover;
|
|
112
112
|
exports.PopoverProps = _Popover.PopoverProps;
|
|
113
|
+
var _Portal = require("./Portal");
|
|
114
|
+
exports.Portal = _Portal.Portal;
|
|
113
115
|
var _RadioButton = require("./RadioButton");
|
|
114
116
|
exports.RadioButton = _RadioButton.RadioButton;
|
|
115
117
|
exports.RadioButtonProps = _RadioButton.RadioButtonProps;
|