kui-complex 0.0.103 → 0.0.105

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 (43) hide show
  1. package/CheckboxGroupWithTitle/cjs/index.js +1 -1
  2. package/CheckboxGroupWithTitle/cjs/index.js.map +1 -1
  3. package/CheckboxGroupWithTitle/index.js +1 -1
  4. package/CheckboxGroupWithTitle/index.js.map +1 -1
  5. package/FileItem/cjs/index.js +1 -1
  6. package/FileItem/cjs/index.js.map +1 -1
  7. package/FileItem/index.js +1 -1
  8. package/FileItem/index.js.map +1 -1
  9. package/InputFile/cjs/index.js +1 -1
  10. package/InputFile/cjs/index.js.map +1 -1
  11. package/InputFile/index.js +1 -1
  12. package/InputFile/index.js.map +1 -1
  13. package/Popper/cjs/index.js +5 -2
  14. package/Popper/cjs/index.js.map +1 -1
  15. package/Popper/index.d.ts +8 -8
  16. package/Popper/index.js +5 -2
  17. package/Popper/index.js.map +1 -1
  18. package/PopperBase/cjs/index.js +5 -2
  19. package/PopperBase/cjs/index.js.map +1 -1
  20. package/PopperBase/index.d.ts +8 -8
  21. package/PopperBase/index.js +5 -2
  22. package/PopperBase/index.js.map +1 -1
  23. package/PopperWithPortal/cjs/index.js +5 -2
  24. package/PopperWithPortal/cjs/index.js.map +1 -1
  25. package/PopperWithPortal/index.d.ts +8 -8
  26. package/PopperWithPortal/index.js +5 -2
  27. package/PopperWithPortal/index.js.map +1 -1
  28. package/StaticPopper/cjs/index.js +5 -2
  29. package/StaticPopper/cjs/index.js.map +1 -1
  30. package/StaticPopper/index.d.ts +8 -8
  31. package/StaticPopper/index.js +5 -2
  32. package/StaticPopper/index.js.map +1 -1
  33. package/Tooltip/cjs/index.js +5 -2
  34. package/Tooltip/cjs/index.js.map +1 -1
  35. package/Tooltip/index.d.ts +8 -8
  36. package/Tooltip/index.js +5 -2
  37. package/Tooltip/index.js.map +1 -1
  38. package/cjs/index.js +7 -4
  39. package/cjs/index.js.map +1 -1
  40. package/index.d.ts +8 -8
  41. package/index.js +7 -4
  42. package/index.js.map +1 -1
  43. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -288,14 +288,14 @@ declare const TableCell: _emotion_styled.StyledComponent<{
288
288
 
289
289
  declare const TableRow: React.ForwardRefExoticComponent<Pick<React.ClassAttributes<HTMLTableRowElement> & React.HTMLAttributes<HTMLTableRowElement>, "key" | keyof React.HTMLAttributes<HTMLTableRowElement>> & React.RefAttributes<HTMLTableRowElement>>;
290
290
 
291
- type PopperPlacements =
292
- | "right"
293
- | "left"
294
- | "topStart"
295
- | "topMiddle"
296
- | "topEnd"
297
- | "bottomStart"
298
- | "bottomMiddle"
291
+ type PopperPlacements =
292
+ | "right"
293
+ | "left"
294
+ | "topStart"
295
+ | "topMiddle"
296
+ | "topEnd"
297
+ | "bottomStart"
298
+ | "bottomMiddle"
299
299
  | "bottomEnd"
300
300
 
301
301
  interface TooltipProps
package/index.js CHANGED
@@ -938,11 +938,14 @@ var placementsPositions = {
938
938
 
939
939
  var PopperBase = forwardRef(function (props, ref) {
940
940
  props.placement; var open = props.open, children = props.children, spacing = props.spacing, className = props.className, style = props.style, other = __rest(props, ["placement", "open", "children", "spacing", "className", "style"]);
941
- return (jsx(StyledPopperWrapper, __assign({ ref: ref, className: classNames("KUI-Popper", className), spacing: spacing, style: style }, { children: jsx(StyledPopper, __assign({ open: !!open }, other, { children: children })) })));
941
+ return (jsx(StyledPopperWrapper, __assign({ ref: ref, className: classNames("KUI-Popper", className), spacing: spacing, style: style, open: !!open }, { children: jsx(StyledPopper, __assign({ open: !!open }, other, { children: children })) })));
942
942
  });
943
- var StyledPopperWrapper = styled.div(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n position: absolute;\n max-width: 215px;\n width: max-content;\n padding: ", ";\n z-index: 10;\n @media (max-width: ", "px) {\n position: fixed;\n bottom: 24px;\n top: auto !important;\n left: 16px !important;\n width: calc(100vw - 32px);\n max-width: unset;\n }\n"], ["\n position: absolute;\n max-width: 215px;\n width: max-content;\n padding: ", ";\n z-index: 10;\n @media (max-width: ", "px) {\n position: fixed;\n bottom: 24px;\n top: auto !important;\n left: 16px !important;\n width: calc(100vw - 32px);\n max-width: unset;\n }\n"])), function (_a) {
943
+ var StyledPopperWrapper = styled.div(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n position: absolute;\n max-width: 215px;\n width: max-content;\n padding: ", ";\n z-index: ", ";\n @media (max-width: ", "px) {\n position: fixed;\n bottom: 24px;\n top: auto !important;\n left: 16px !important;\n width: calc(100vw - 32px);\n max-width: unset;\n }\n"], ["\n position: absolute;\n max-width: 215px;\n width: max-content;\n padding: ", ";\n z-index: ", ";\n @media (max-width: ", "px) {\n position: fixed;\n bottom: 24px;\n top: auto !important;\n left: 16px !important;\n width: calc(100vw - 32px);\n max-width: unset;\n }\n"])), function (_a) {
944
944
  var spacing = _a.spacing;
945
945
  return spacing || 0;
946
+ }, function (_a) {
947
+ var open = _a.open;
948
+ return (open ? 10 : -1);
946
949
  }, theme.breakpoints.xxs);
947
950
  var StyledPopper = styled.div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n padding: 16px;\n border-radius: 12px;\n background: white;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-out;\n opacity: ", ";\n"], ["\n padding: 16px;\n border-radius: 12px;\n background: white;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-out;\n opacity: ", ";\n"])), function (_a) {
948
951
  var open = _a.open;
@@ -1457,7 +1460,7 @@ var disabledCSS = function (_a) {
1457
1460
  var disabled = _a.disabled;
1458
1461
  return disabled && css(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n background: ", ";\n "], ["\n background: ", ";\n "])), theme.palette.background.light1);
1459
1462
  };
1460
- var FileWrapper = styled.div(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n padding: 10px 12px;\n border: 1px solid\n ", ";\n display: flex;\n margin-bottom: 8px;\n cursor: pointer;\n ", ";\n ", ";\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n width: 100%;\n border-radius: 12px;\n padding: 10px 12px;\n border: 1px solid\n ", ";\n display: flex;\n margin-bottom: 8px;\n cursor: pointer;\n ", ";\n ", ";\n &:last-child {\n margin-bottom: 0;\n }\n"])), function (_a) {
1463
+ var FileWrapper = styled.div(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n padding: 10px 12px;\n border: 1px solid\n ", ";\n display: flex;\n margin-bottom: 8px;\n cursor: pointer;\n background: white;\n ", ";\n ", ";\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n width: 100%;\n border-radius: 12px;\n padding: 10px 12px;\n border: 1px solid\n ", ";\n display: flex;\n margin-bottom: 8px;\n cursor: pointer;\n background: white;\n ", ";\n ", ";\n &:last-child {\n margin-bottom: 0;\n }\n"])), function (_a) {
1461
1464
  var selected = _a.selected;
1462
1465
  return selected ? theme.palette.brand.main : theme.palette.grey.fifteenB;
1463
1466
  }, disabledCSS, errorCSS);
@@ -1609,7 +1612,7 @@ function CheckboxGroupWithTitle(_a) {
1609
1612
  return (jsxs$1(StyledWrapper, __assign({ container: true, alignItems: "center", justify: "space-between" }, { children: [jsx(Grid, __assign({ item: true }, { children: jsx(Caption, __assign({ size: "s", weight: 500, color: "fiftyP" }, { children: title })) })), jsx(Grid, __assign({ item: true }, { children: jsx(Grid, __assign({ container: true }, { children: options.map(function (option) { return (jsx(StyledCheckbox, __assign({ name: option.name, label: jsx(Caption, __assign({ size: "s", color: "fiftyP", weight: 500 }, { children: option.label })), form: form, testId: option.name }, otherProps), option.name)); }) })) }))] })));
1610
1613
  }
1611
1614
  var StyledCheckbox = styled(CheckboxWithController)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:not(:last-child) {\n margin-right: 22px;\n }\n"], ["\n &:not(:last-child) {\n margin-right: 22px;\n }\n"])));
1612
- var StyledWrapper = styled(Grid)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 3px 16px;\n border: 1px solid ", ";\n border-radius: 66px;\n height: 40px;\n"], ["\n padding: 3px 16px;\n border: 1px solid ", ";\n border-radius: 66px;\n height: 40px;\n"])), theme.palette.grey.fifteenB);
1615
+ var StyledWrapper = styled(Grid)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 3px 16px;\n border: 1px solid ", ";\n border-radius: 66px;\n height: 40px;\n background: white;\n"], ["\n padding: 3px 16px;\n border: 1px solid ", ";\n border-radius: 66px;\n height: 40px;\n background: white;\n"])), theme.palette.grey.fifteenB);
1613
1616
  var templateObject_1, templateObject_2;
1614
1617
 
1615
1618
  var settings = {