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.
Files changed (41) hide show
  1. package/ButtonSelect/cjs/index.js +7 -6
  2. package/ButtonSelect/cjs/index.js.map +1 -1
  3. package/ButtonSelect/index.js +7 -6
  4. package/ButtonSelect/index.js.map +1 -1
  5. package/CalendarHeaderWithSelect/cjs/index.js +7 -6
  6. package/CalendarHeaderWithSelect/cjs/index.js.map +1 -1
  7. package/CalendarHeaderWithSelect/index.js +7 -6
  8. package/CalendarHeaderWithSelect/index.js.map +1 -1
  9. package/InputDropdown/cjs/index.js +7 -6
  10. package/InputDropdown/cjs/index.js.map +1 -1
  11. package/InputDropdown/index.js +7 -6
  12. package/InputDropdown/index.js.map +1 -1
  13. package/InputSelect/cjs/index.js +7 -6
  14. package/InputSelect/cjs/index.js.map +1 -1
  15. package/InputSelect/index.js +7 -6
  16. package/InputSelect/index.js.map +1 -1
  17. package/InputSelectDropdown/cjs/index.js +7 -6
  18. package/InputSelectDropdown/cjs/index.js.map +1 -1
  19. package/InputSelectDropdown/index.js +7 -6
  20. package/InputSelectDropdown/index.js.map +1 -1
  21. package/InputWithDatePicker/cjs/index.js +7 -6
  22. package/InputWithDatePicker/cjs/index.js.map +1 -1
  23. package/InputWithDatePicker/index.js +7 -6
  24. package/InputWithDatePicker/index.js.map +1 -1
  25. package/SelectMonth/cjs/index.js +7 -6
  26. package/SelectMonth/cjs/index.js.map +1 -1
  27. package/SelectMonth/index.js +7 -6
  28. package/SelectMonth/index.js.map +1 -1
  29. package/SelectYear/cjs/index.js +7 -6
  30. package/SelectYear/cjs/index.js.map +1 -1
  31. package/SelectYear/index.js +7 -6
  32. package/SelectYear/index.js.map +1 -1
  33. package/TestForm/cjs/index.js +7 -6
  34. package/TestForm/cjs/index.js.map +1 -1
  35. package/TestForm/index.js +7 -6
  36. package/TestForm/index.js.map +1 -1
  37. package/cjs/index.js +9 -8
  38. package/cjs/index.js.map +1 -1
  39. package/index.js +9 -8
  40. package/index.js.map +1 -1
  41. package/package.json +1 -1
package/index.js CHANGED
@@ -86,7 +86,7 @@ var Wrapper$7 = styled.div(templateObject_1$t || (templateObject_1$t = __makeTem
86
86
  var StyledImage = styled.img(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n border-radius: 50%;\n object-fit: cover;\n"], ["\n width: 100%;\n height: 100%;\n border-radius: 50%;\n object-fit: cover;\n"])));
87
87
  var largeAvatarCSS = function (_a) {
88
88
  var avatarSize = _a.avatarSize;
89
- return avatarSize === "lg" && css(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n font-size: 32px;\n "], ["\n font-size: 32px;\n "])));
89
+ return avatarSize === "lg" && css(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n font-size: 32px;\n "], ["\n font-size: 32px;\n "])));
90
90
  };
91
91
  var StyledUndefinedAvatar = styled(UndefinedAvatar, {
92
92
  shouldForwardProp: function (prop) { return prop !== "size"; },
@@ -95,7 +95,7 @@ var sizeStyles = {
95
95
  s: css(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n width: 40px;\n height: 40px;\n @media (max-width: 600px) {\n width: 32px;\n height: 32px;\n }\n "], ["\n width: 40px;\n height: 40px;\n @media (max-width: 600px) {\n width: 32px;\n height: 32px;\n }\n "]))),
96
96
  lg: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 80px;\n height: 80px;\n "], ["\n width: 80px;\n height: 80px;\n "]))),
97
97
  };
98
- var templateObject_1$t, templateObject_2$g, templateObject_3$6, templateObject_4$4, templateObject_5$1, templateObject_6;
98
+ var templateObject_1$t, templateObject_2$g, templateObject_3$7, templateObject_4$4, templateObject_5$1, templateObject_6;
99
99
 
100
100
  var ButtonTab = forwardRef(function (_a, ref) {
101
101
  var index = _a.index, onClick = _a.onClick, isActive = _a.isActive, label = _a.label;
@@ -156,7 +156,7 @@ var InputDropdown = forwardRef(function (props, ref) {
156
156
  if (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) {
157
157
  if (isOpen) {
158
158
  buttonRef.current.style.zIndex = "4";
159
- var scrollContainer = (_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.children[0];
159
+ var scrollContainer = (_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.children[0].children[0];
160
160
  if (scrollContainer) {
161
161
  var hasScroll = scrollContainer.scrollHeight > scrollContainer.clientHeight;
162
162
  setIsScrollable(hasScroll);
@@ -177,20 +177,21 @@ var InputDropdown = forwardRef(function (props, ref) {
177
177
  ref.current = elem;
178
178
  dropdownRef.current = elem;
179
179
  };
180
- return (jsxs$1(StyledDropdown$1, __assign({ "data-testid": "input_dropdown", container: true, ref: forwardedRef, isOpen: isOpen, isScrollable: isScrollable }, otherProps, { children: [jsx(ScrollingContainer, __assign({ isScrollable: isScrollable, className: "KUI-InputDropdown_scroll" }, { children: children })), endComponent] })));
180
+ return (jsxs$1(StyledDropdown$1, __assign({ "data-testid": "input_dropdown", container: true, ref: forwardedRef, isOpen: isOpen }, otherProps, { children: [jsx(StyledWrapper$1, __assign({ isScrollable: isScrollable }, { children: jsx(ScrollingContainer, __assign({ isScrollable: isScrollable, className: "KUI-InputDropdown_scroll" }, { children: children })) })), endComponent] })));
181
181
  });
182
- var StyledDropdown$1 = styled(Grid)(templateObject_1$q || (templateObject_1$q = __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 padding: ", ";\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 padding: ", ";\n"])), function (_a) {
182
+ var StyledDropdown$1 = styled(Grid)(templateObject_1$q || (templateObject_1$q = __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) {
183
183
  var isOpen = _a.isOpen;
184
184
  return (isOpen ? "flex" : "none");
185
- }, theme.palette.grey.zero, function (_a) {
185
+ }, theme.palette.grey.zero);
186
+ var StyledWrapper$1 = styled.div(templateObject_2$d || (templateObject_2$d = __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) {
186
187
  var isScrollable = _a.isScrollable;
187
188
  return isScrollable ? "14px 8px 8px 0" : "14px 0px 8px 0";
188
189
  });
189
- var ScrollingContainer = styled.div(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n width: 100%;\n max-height: 389px;\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 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) {
190
+ var ScrollingContainer = styled.div(templateObject_3$6 || (templateObject_3$6 = __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) {
190
191
  var isScrollable = _a.isScrollable;
191
192
  return (isScrollable ? "4px" : "0px");
192
193
  }, theme.palette.grey.fifteenB, theme.palette.grey.thirty);
193
- var templateObject_1$q, templateObject_2$d;
194
+ var templateObject_1$q, templateObject_2$d, templateObject_3$6;
194
195
 
195
196
  var InputSelectDropdown = forwardRef(function (_a, ref) {
196
197
  var options = _a.options, inputRef = _a.inputRef, isOpenDropdown = _a.isOpenDropdown, handleCloseDropdown = _a.handleCloseDropdown, handleSelect = _a.handleSelect, selectedValue = _a.selectedValue;