kui-complex 0.0.58 → 0.0.59
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/ButtonSelect/cjs/index.js +7 -6
- package/ButtonSelect/cjs/index.js.map +1 -1
- package/ButtonSelect/index.js +7 -6
- package/ButtonSelect/index.js.map +1 -1
- package/CalendarHeaderWithSelect/cjs/index.js +7 -6
- package/CalendarHeaderWithSelect/cjs/index.js.map +1 -1
- package/CalendarHeaderWithSelect/index.js +7 -6
- package/CalendarHeaderWithSelect/index.js.map +1 -1
- package/InputDropdown/cjs/index.js +7 -6
- package/InputDropdown/cjs/index.js.map +1 -1
- package/InputDropdown/index.js +7 -6
- package/InputDropdown/index.js.map +1 -1
- package/InputSelect/cjs/index.js +7 -6
- package/InputSelect/cjs/index.js.map +1 -1
- package/InputSelect/index.js +7 -6
- package/InputSelect/index.js.map +1 -1
- package/InputSelectDropdown/cjs/index.js +7 -6
- package/InputSelectDropdown/cjs/index.js.map +1 -1
- package/InputSelectDropdown/index.js +7 -6
- package/InputSelectDropdown/index.js.map +1 -1
- package/InputWithDatePicker/cjs/index.js +7 -6
- package/InputWithDatePicker/cjs/index.js.map +1 -1
- package/InputWithDatePicker/index.js +7 -6
- package/InputWithDatePicker/index.js.map +1 -1
- package/SelectMonth/cjs/index.js +7 -6
- package/SelectMonth/cjs/index.js.map +1 -1
- package/SelectMonth/index.js +7 -6
- package/SelectMonth/index.js.map +1 -1
- package/SelectYear/cjs/index.js +7 -6
- package/SelectYear/cjs/index.js.map +1 -1
- package/SelectYear/index.js +7 -6
- package/SelectYear/index.js.map +1 -1
- package/TestForm/cjs/index.js +7 -6
- package/TestForm/cjs/index.js.map +1 -1
- package/TestForm/index.js +7 -6
- package/TestForm/index.js.map +1 -1
- package/cjs/index.js +9 -8
- package/cjs/index.js.map +1 -1
- package/index.js +9 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/TestForm/index.js
CHANGED
|
@@ -103,7 +103,7 @@ var InputDropdown = forwardRef(function (props, ref) {
|
|
|
103
103
|
if (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) {
|
|
104
104
|
if (isOpen) {
|
|
105
105
|
buttonRef.current.style.zIndex = "4";
|
|
106
|
-
var scrollContainer = (_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.children[0];
|
|
106
|
+
var scrollContainer = (_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.children[0].children[0];
|
|
107
107
|
if (scrollContainer) {
|
|
108
108
|
var hasScroll = scrollContainer.scrollHeight > scrollContainer.clientHeight;
|
|
109
109
|
setIsScrollable(hasScroll);
|
|
@@ -124,20 +124,21 @@ var InputDropdown = forwardRef(function (props, ref) {
|
|
|
124
124
|
ref.current = elem;
|
|
125
125
|
dropdownRef.current = elem;
|
|
126
126
|
};
|
|
127
|
-
return (jsxs(StyledDropdown$1, __assign({ "data-testid": "input_dropdown", container: true, ref: forwardedRef, isOpen: isOpen, isScrollable: isScrollable },
|
|
127
|
+
return (jsxs(StyledDropdown$1, __assign({ "data-testid": "input_dropdown", container: true, ref: forwardedRef, isOpen: isOpen }, otherProps, { children: [jsx(StyledWrapper, __assign({ isScrollable: isScrollable }, { children: jsx(ScrollingContainer, __assign({ isScrollable: isScrollable, className: "KUI-InputDropdown_scroll" }, { children: children })) })), endComponent] })));
|
|
128
128
|
});
|
|
129
|
-
var StyledDropdown$1 = styled(Grid)(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n width: 100%;\n display: ", ";\n position: absolute;\n background: ", ";\n z-index: 3;\n top: 50px;\n box-shadow: 0px 26px 34px 0px #0000001a;\n border-radius: 0 0 8px 8px;\n user-select: none;\n
|
|
129
|
+
var StyledDropdown$1 = styled(Grid)(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n width: 100%;\n display: ", ";\n position: absolute;\n background: ", ";\n z-index: 3;\n top: 50px;\n box-shadow: 0px 26px 34px 0px #0000001a;\n border-radius: 0 0 8px 8px;\n user-select: none;\n"], ["\n width: 100%;\n display: ", ";\n position: absolute;\n background: ", ";\n z-index: 3;\n top: 50px;\n box-shadow: 0px 26px 34px 0px #0000001a;\n border-radius: 0 0 8px 8px;\n user-select: none;\n"])), function (_a) {
|
|
130
130
|
var isOpen = _a.isOpen;
|
|
131
131
|
return (isOpen ? "flex" : "none");
|
|
132
|
-
}, theme.palette.grey.zero
|
|
132
|
+
}, theme.palette.grey.zero);
|
|
133
|
+
var StyledWrapper = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n width: 100%;\n box-sizing: border-box;\n padding: ", ";\n"], ["\n width: 100%;\n box-sizing: border-box;\n padding: ", ";\n"])), function (_a) {
|
|
133
134
|
var isScrollable = _a.isScrollable;
|
|
134
135
|
return isScrollable ? "14px 8px 8px 0" : "14px 0px 8px 0";
|
|
135
136
|
});
|
|
136
|
-
var ScrollingContainer = styled.div(
|
|
137
|
+
var ScrollingContainer = styled.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n width: 100%;\n max-height: 389px;\n box-sizing: border-box;\n z-index: 3;\n overflow: auto;\n -ms-overflow-style: none;\n overflow-y: scroll;\n overflow-x: hidden;\n user-select: none;\n ::-webkit-scrollbar {\n width: ", ";\n position: absolute;\n right: 8px;\n }\n ::-webkit-scrollbar-track,\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n transition: all ease-out 0.3s;\n }\n\n ::-webkit-resizer,\n ::-webkit-scrollbar-button,\n ::-webkit-scrollbar-corner {\n display: none;\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n"], ["\n width: 100%;\n max-height: 389px;\n box-sizing: border-box;\n z-index: 3;\n overflow: auto;\n -ms-overflow-style: none;\n overflow-y: scroll;\n overflow-x: hidden;\n user-select: none;\n ::-webkit-scrollbar {\n width: ", ";\n position: absolute;\n right: 8px;\n }\n ::-webkit-scrollbar-track,\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n transition: all ease-out 0.3s;\n }\n\n ::-webkit-resizer,\n ::-webkit-scrollbar-button,\n ::-webkit-scrollbar-corner {\n display: none;\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n"])), function (_a) {
|
|
137
138
|
var isScrollable = _a.isScrollable;
|
|
138
139
|
return (isScrollable ? "4px" : "0px");
|
|
139
140
|
}, theme.palette.grey.fifteenB, theme.palette.grey.thirty);
|
|
140
|
-
var templateObject_1$d, templateObject_2$7;
|
|
141
|
+
var templateObject_1$d, templateObject_2$7, templateObject_3$4;
|
|
141
142
|
|
|
142
143
|
var InputSelectDropdown = forwardRef(function (_a, ref) {
|
|
143
144
|
var options = _a.options, inputRef = _a.inputRef, isOpenDropdown = _a.isOpenDropdown, handleCloseDropdown = _a.handleCloseDropdown, handleSelect = _a.handleSelect, selectedValue = _a.selectedValue;
|