@codacy/ui-components 0.64.16 → 0.64.18

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 (223) hide show
  1. package/lib/Avatar/Avatar.js +25 -19
  2. package/lib/Avatar/Avatar.types.js +5 -1
  3. package/lib/Avatar/gravatar.js +17 -13
  4. package/lib/Avatar/index.js +16 -1
  5. package/lib/Banner/Banner.js +45 -32
  6. package/lib/Banner/Banner.styles.d.ts +11 -12
  7. package/lib/Banner/Banner.styles.js +26 -15
  8. package/lib/Banner/Banner.types.js +5 -1
  9. package/lib/Banner/index.js +27 -2
  10. package/lib/Button/Button.js +54 -51
  11. package/lib/Button/index.js +27 -2
  12. package/lib/Button/styles.d.ts +16 -12
  13. package/lib/Button/styles.js +58 -44
  14. package/lib/Button/types.js +5 -1
  15. package/lib/Checkbox/Checkbox.js +63 -54
  16. package/lib/Checkbox/CheckboxFilterList.js +46 -32
  17. package/lib/Checkbox/index.js +38 -3
  18. package/lib/Checkbox/styles.d.ts +25 -22
  19. package/lib/Checkbox/styles.js +52 -37
  20. package/lib/Checkbox/types.js +5 -1
  21. package/lib/CloseButton/index.js +27 -16
  22. package/lib/Divider/Divider.js +23 -13
  23. package/lib/Divider/Divider.styles.d.ts +16 -19
  24. package/lib/Divider/Divider.styles.js +24 -11
  25. package/lib/Divider/Divider.types.js +5 -1
  26. package/lib/Divider/index.js +16 -1
  27. package/lib/Dropdown/Content/DropdownInput.js +20 -8
  28. package/lib/Dropdown/Content/DropdownItem.js +29 -21
  29. package/lib/Dropdown/Content/DropdownSeparator.js +19 -7
  30. package/lib/Dropdown/Content/index.js +38 -3
  31. package/lib/Dropdown/Dropdown.js +89 -85
  32. package/lib/Dropdown/Dropdown.styles.d.ts +37 -34
  33. package/lib/Dropdown/Dropdown.styles.js +62 -43
  34. package/lib/Dropdown/Dropdown.types.js +5 -1
  35. package/lib/Dropdown/Triggers/DropdownButtonTrigger.js +30 -20
  36. package/lib/Dropdown/Triggers/DropdownLinkTrigger.js +29 -19
  37. package/lib/Dropdown/Triggers/InputTrigger.js +18 -10
  38. package/lib/Dropdown/Triggers/SelectTrigger.js +19 -12
  39. package/lib/Dropdown/Triggers/hooks.js +18 -14
  40. package/lib/Dropdown/Triggers/index.js +60 -5
  41. package/lib/Dropdown/Triggers/types.js +5 -1
  42. package/lib/Dropdown/index.js +49 -4
  43. package/lib/Flexbox/Flexbox.d.ts +31 -17
  44. package/lib/Flexbox/Flexbox.js +36 -16
  45. package/lib/Flexbox/index.js +16 -1
  46. package/lib/Group/Group.js +17 -8
  47. package/lib/Group/Group.styles.d.ts +8 -10
  48. package/lib/Group/Group.styles.js +17 -7
  49. package/lib/Group/Group.types.js +5 -1
  50. package/lib/Group/index.js +16 -1
  51. package/lib/Icon/Icon.js +24 -14
  52. package/lib/Icon/Icon.styles.d.ts +9 -11
  53. package/lib/Icon/Icon.styles.js +39 -44
  54. package/lib/Icon/Icon.types.js +5 -1
  55. package/lib/Icon/index.js +16 -1
  56. package/lib/IconAndText/IconAndText.js +33 -21
  57. package/lib/IconAndText/IconAndText.styles.d.ts +8 -10
  58. package/lib/IconAndText/IconAndText.styles.js +20 -10
  59. package/lib/IconAndText/IconAndText.types.js +5 -1
  60. package/lib/IconAndText/index.js +16 -1
  61. package/lib/Icons/Chevrons.js +53 -41
  62. package/lib/Icons/CodacyIcon.js +17 -8
  63. package/lib/Icons/Messages.js +54 -35
  64. package/lib/Icons/Search.js +16 -7
  65. package/lib/Icons/Severities.js +117 -106
  66. package/lib/Icons/Sorting.js +23 -13
  67. package/lib/Icons/Spinner.js +19 -10
  68. package/lib/Icons/Symbols.js +73 -58
  69. package/lib/Icons/index.js +93 -8
  70. package/lib/Img/Img.js +44 -37
  71. package/lib/Img/Img.styles.d.ts +12 -11
  72. package/lib/Img/Img.styles.js +37 -32
  73. package/lib/Img/Img.types.js +5 -1
  74. package/lib/Img/index.js +16 -1
  75. package/lib/InlineMessage/InlineMessage.js +47 -34
  76. package/lib/InlineMessage/index.js +16 -1
  77. package/lib/InlineMessage/types.js +5 -1
  78. package/lib/Input/Input.js +148 -126
  79. package/lib/Input/hooks.js +149 -178
  80. package/lib/Input/index.js +27 -2
  81. package/lib/Input/styles.d.ts +55 -104
  82. package/lib/Input/styles.js +85 -54
  83. package/lib/Input/types.js +5 -1
  84. package/lib/Labeled/Labeled.js +34 -22
  85. package/lib/Labeled/index.js +16 -1
  86. package/lib/Labeled/styles.d.ts +16 -12
  87. package/lib/Labeled/styles.js +27 -11
  88. package/lib/Labeled/types.js +5 -1
  89. package/lib/LeftMenu/LeftMenu.js +20 -11
  90. package/lib/LeftMenu/LeftMenu.styles.d.ts +8 -10
  91. package/lib/LeftMenu/LeftMenu.styles.js +20 -10
  92. package/lib/LeftMenu/LeftMenu.types.js +5 -1
  93. package/lib/LeftMenu/index.js +16 -1
  94. package/lib/Link/Link.js +43 -33
  95. package/lib/Link/Link.styles.d.ts +4 -1
  96. package/lib/Link/Link.styles.js +21 -11
  97. package/lib/Link/Link.types.js +5 -1
  98. package/lib/Link/index.js +38 -3
  99. package/lib/Message/Message.js +32 -24
  100. package/lib/Message/Message.styles.d.ts +8 -10
  101. package/lib/Message/Message.styles.js +17 -7
  102. package/lib/Message/Message.types.js +5 -1
  103. package/lib/Message/index.js +16 -1
  104. package/lib/Modal/ConfirmationModal.js +64 -40
  105. package/lib/Modal/Modal.js +120 -107
  106. package/lib/Modal/index.js +27 -2
  107. package/lib/Modal/styles.d.ts +44 -61
  108. package/lib/Modal/styles.js +97 -85
  109. package/lib/Modal/types.js +5 -1
  110. package/lib/MoreInfo/MoreInfo.js +45 -39
  111. package/lib/MoreInfo/index.js +16 -1
  112. package/lib/MoreInfo/types.js +5 -1
  113. package/lib/Panel/Panel.js +18 -9
  114. package/lib/Panel/Panel.styles.d.ts +8 -11
  115. package/lib/Panel/Panel.styles.js +15 -5
  116. package/lib/Panel/Panel.types.js +5 -1
  117. package/lib/Panel/index.js +27 -2
  118. package/lib/PillLabel/PillLabel.js +28 -21
  119. package/lib/PillLabel/PillLabel.styles.d.ts +8 -10
  120. package/lib/PillLabel/PillLabel.styles.js +25 -16
  121. package/lib/PillLabel/PillLabel.types.js +5 -1
  122. package/lib/PillLabel/index.js +16 -1
  123. package/lib/Popup/Popup.js +55 -45
  124. package/lib/Popup/index.js +16 -1
  125. package/lib/Popup/styles.d.ts +12 -11
  126. package/lib/Popup/styles.js +21 -8
  127. package/lib/Popup/types.js +5 -1
  128. package/lib/ProgressBar/ProgressBar.js +30 -20
  129. package/lib/ProgressBar/index.js +27 -2
  130. package/lib/ProgressBar/styles.d.ts +24 -28
  131. package/lib/ProgressBar/styles.js +30 -14
  132. package/lib/ProgressBar/types.js +5 -1
  133. package/lib/Radio/Radio.js +53 -48
  134. package/lib/Radio/index.js +16 -1
  135. package/lib/Radio/styles.d.ts +25 -22
  136. package/lib/Radio/styles.js +49 -30
  137. package/lib/Radio/types.js +5 -1
  138. package/lib/ScrollableContent/ScrollableContent.js +35 -24
  139. package/lib/ScrollableContent/ScrollableContent.styles.d.ts +9 -11
  140. package/lib/ScrollableContent/ScrollableContent.styles.js +23 -13
  141. package/lib/ScrollableContent/ScrollableContent.types.js +5 -1
  142. package/lib/ScrollableContent/index.js +27 -2
  143. package/lib/ScrollableContent/useScrollContainer.js +29 -24
  144. package/lib/Select/Select.js +31 -20
  145. package/lib/Select/index.js +16 -1
  146. package/lib/Select/types.js +5 -1
  147. package/lib/Skeleton/Skeleton.js +30 -25
  148. package/lib/Skeleton/Skeleton.styles.d.ts +8 -10
  149. package/lib/Skeleton/Skeleton.styles.js +21 -14
  150. package/lib/Skeleton/Skeleton.types.js +5 -1
  151. package/lib/Skeleton/index.js +20 -2
  152. package/lib/Stepper/Stepper.js +49 -40
  153. package/lib/Stepper/Stepper.styles.d.ts +24 -29
  154. package/lib/Stepper/Stepper.styles.js +35 -19
  155. package/lib/Stepper/Stepper.types.js +5 -1
  156. package/lib/Stepper/index.js +16 -1
  157. package/lib/Switcher/Switcher.js +32 -23
  158. package/lib/Switcher/Switcher.styles.d.ts +13 -13
  159. package/lib/Switcher/Switcher.styles.js +27 -15
  160. package/lib/Switcher/Switcher.types.js +5 -1
  161. package/lib/Switcher/index.js +16 -1
  162. package/lib/Tab/Tab.js +31 -23
  163. package/lib/Tab/Tab.styles.d.ts +13 -12
  164. package/lib/Tab/Tab.styles.js +30 -21
  165. package/lib/Tab/Tab.types.js +5 -1
  166. package/lib/Tab/index.js +16 -1
  167. package/lib/Table/NewSelectableTable.js +77 -56
  168. package/lib/Table/SelectableTable.js +138 -118
  169. package/lib/Table/Table.js +126 -111
  170. package/lib/Table/Table.styles.d.ts +32 -16
  171. package/lib/Table/Table.styles.js +79 -59
  172. package/lib/Table/Table.types.js +5 -1
  173. package/lib/Table/index.js +27 -2
  174. package/lib/TagsInput/TagsInput.js +44 -33
  175. package/lib/TagsInput/index.js +16 -1
  176. package/lib/TagsInput/style.d.ts +16 -19
  177. package/lib/TagsInput/style.js +22 -9
  178. package/lib/TagsInput/types.js +5 -1
  179. package/lib/Textarea/Textarea.js +75 -58
  180. package/lib/Textarea/Textarea.styles.d.ts +28 -22
  181. package/lib/Textarea/Textarea.styles.js +55 -32
  182. package/lib/Textarea/Textarea.types.js +5 -1
  183. package/lib/Textarea/index.js +16 -1
  184. package/lib/ThemeProvider/ThemeProvider.d.ts +5 -2
  185. package/lib/ThemeProvider/ThemeProvider.js +48 -30
  186. package/lib/ThemeProvider/index.js +16 -1
  187. package/lib/Toast/Toast.js +56 -53
  188. package/lib/Toast/index.js +16 -1
  189. package/lib/Toast/styles.d.ts +4 -2
  190. package/lib/Toast/styles.js +13 -3
  191. package/lib/Toast/types.js +5 -1
  192. package/lib/Toggle/Toggle.js +59 -50
  193. package/lib/Toggle/index.js +16 -1
  194. package/lib/Toggle/styles.d.ts +21 -14
  195. package/lib/Toggle/styles.js +51 -34
  196. package/lib/Toggle/types.js +5 -1
  197. package/lib/Tooltip/Tooltip.js +100 -102
  198. package/lib/Tooltip/index.js +16 -1
  199. package/lib/Tooltip/styles.d.ts +14 -8
  200. package/lib/Tooltip/styles.js +33 -25
  201. package/lib/Tooltip/types.js +5 -1
  202. package/lib/Typography/Typography.js +96 -85
  203. package/lib/Typography/Typography.styles.d.ts +48 -54
  204. package/lib/Typography/Typography.styles.js +70 -45
  205. package/lib/Typography/Typography.types.js +5 -1
  206. package/lib/Typography/index.js +38 -3
  207. package/lib/emotion.d.js +3 -0
  208. package/lib/hooks/index.js +38 -3
  209. package/lib/hooks/useForwardedRef.js +11 -6
  210. package/lib/hooks/useInfiniteScroll.js +24 -20
  211. package/lib/hooks/useStatefulRef.js +18 -14
  212. package/lib/index.js +489 -44
  213. package/lib/system-props/color.js +8 -2
  214. package/lib/system-props/index.js +27 -2
  215. package/lib/system-props/types.js +5 -1
  216. package/lib/theme/ColorSchemes/codacy.js +11 -4
  217. package/lib/theme/ColorSchemes/pulse.js +17 -9
  218. package/lib/theme/index.js +38 -3
  219. package/lib/theme/theme.js +42 -69
  220. package/lib/types.js +5 -1
  221. package/lib/utils/hash.js +8 -6
  222. package/lib/utils/reactNodeToText.js +13 -14
  223. package/package.json +32 -32
@@ -1,47 +1,71 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ConfirmationModal = void 0;
9
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+ var _react = _interopRequireWildcard(require("react"));
12
+ var _ = require(".");
13
+ var _2 = require("..");
14
+ var _jsxRuntime = require("react/jsx-runtime");
2
15
  var _excluded = ["title", "confirmText", "onConfirm", "cancelText", "onCancel", "variant", "icon", "isLoading", "children"];
3
- import React, { useCallback, useRef } from 'react';
4
- import { Modal } from '.';
5
- import { Button, ButtonGroup, IconAndText, Subheader } from '..';
6
- export var ConfirmationModal = function ConfirmationModal(_ref) {
16
+ var ConfirmationModal = exports.ConfirmationModal = function ConfirmationModal(_ref) {
7
17
  var title = _ref.title,
8
- confirmText = _ref.confirmText,
9
- onConfirm = _ref.onConfirm,
10
- _ref$cancelText = _ref.cancelText,
11
- cancelText = _ref$cancelText === void 0 ? 'Cancel' : _ref$cancelText,
12
- onCancel = _ref.onCancel,
13
- _ref$variant = _ref.variant,
14
- variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
15
- icon = _ref.icon,
16
- isLoading = _ref.isLoading,
17
- children = _ref.children,
18
- dialog = _objectWithoutProperties(_ref, _excluded);
19
-
20
- var cancelRef = useRef(null);
21
- var handleCancel = useCallback(function () {
18
+ confirmText = _ref.confirmText,
19
+ onConfirm = _ref.onConfirm,
20
+ _ref$cancelText = _ref.cancelText,
21
+ cancelText = _ref$cancelText === void 0 ? 'Cancel' : _ref$cancelText,
22
+ onCancel = _ref.onCancel,
23
+ _ref$variant = _ref.variant,
24
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
25
+ icon = _ref.icon,
26
+ isLoading = _ref.isLoading,
27
+ children = _ref.children,
28
+ dialog = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
+ var cancelRef = (0, _react.useRef)(null);
30
+ var handleCancel = (0, _react.useCallback)(function () {
22
31
  if (onCancel) onCancel();
23
32
  dialog.hide();
24
33
  }, [onCancel, dialog]);
25
- return /*#__PURE__*/React.createElement(Modal, Object.assign({
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.Modal, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
26
35
  focusRef: cancelRef
27
- }, dialog), /*#__PURE__*/React.createElement(Modal.Header, null, /*#__PURE__*/React.createElement(Subheader, null, icon ? /*#__PURE__*/React.createElement(IconAndText, {
28
- icon: icon,
29
- iconProps: {
30
- color: "icon-".concat(variant)
31
- }
32
- }, title) : /*#__PURE__*/React.createElement(React.Fragment, null, title))), /*#__PURE__*/React.createElement(Modal.Body, {
33
- mt: 4
34
- }, children), /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement(ButtonGroup, {
35
- mt: 5
36
- }, /*#__PURE__*/React.createElement(Button, {
37
- variant: "primary",
38
- color: variant,
39
- onClick: onConfirm,
40
- isLoading: isLoading
41
- }, confirmText), /*#__PURE__*/React.createElement(Button, {
42
- variant: "link",
43
- color: "subtle",
44
- onClick: handleCancel,
45
- ref: cancelRef
46
- }, cancelText))));
36
+ }, dialog), {}, {
37
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.Modal.Header, {
38
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_2.Subheader, {
39
+ children: icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_2.IconAndText, {
40
+ icon: icon,
41
+ iconProps: {
42
+ color: "icon-".concat(variant)
43
+ },
44
+ children: title
45
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
46
+ children: title
47
+ })
48
+ })
49
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Modal.Body, {
50
+ mt: 4,
51
+ children: children
52
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Modal.Footer, {
53
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_2.ButtonGroup, {
54
+ mt: 5,
55
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_2.Button, {
56
+ variant: "primary",
57
+ color: variant,
58
+ onClick: onConfirm,
59
+ isLoading: isLoading,
60
+ children: confirmText
61
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_2.Button, {
62
+ variant: "link",
63
+ color: "subtle",
64
+ onClick: handleCancel,
65
+ ref: cancelRef,
66
+ children: cancelText
67
+ })]
68
+ })
69
+ })]
70
+ }));
47
71
  };
@@ -1,45 +1,51 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.useModal = exports.Modal = void 0;
8
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _CloseButton = require("../CloseButton");
12
+ var _styles = require("./styles");
13
+ var _Dialog = require("reakit/Dialog");
14
+ var _Typography = require("../Typography");
15
+ var _Flexbox = require("../Flexbox");
16
+ var _ = require("..");
17
+ var _lodash = require("lodash");
18
+ var _ScrollableContent = require("../ScrollableContent");
19
+ var _jsxRuntime = require("react/jsx-runtime");
2
20
  var _excluded = ["title", "description", "role", "headerImg", "size", "vPos", "focusRef", "children", "tabIndex", "showCloseButton", "p"],
3
- _excluded2 = ["headerImg", "title", "description", "id", "children"],
4
- _excluded3 = ["children"],
5
- _excluded4 = ["atTop", "atBottom", "scroll", "height"],
6
- _excluded5 = ["children"];
7
- import React from 'react';
8
- import { CloseButton } from '../CloseButton';
9
- import { Overlay, ModalBox, CloseBtnLocation, ModalHeaderBox, ModalBodyBox, ModalFooterBox } from './styles';
10
- import { useDialogState, Dialog, DialogBackdrop } from 'reakit/Dialog';
11
- import { Subheader, Paragraph } from '../Typography';
12
- import { Box } from '../Flexbox';
13
- import { Img } from '..';
14
- import { isObject } from 'lodash';
15
- import { useScrollContainer } from '../ScrollableContent';
21
+ _excluded2 = ["headerImg", "title", "description", "id", "children"],
22
+ _excluded3 = ["children"],
23
+ _excluded4 = ["atTop", "atBottom", "scroll", "height"],
24
+ _excluded5 = ["children"];
16
25
  var defaultModalPadding = 6;
17
-
18
26
  function findChild(ofType, children) {
19
- return React.Children.toArray(children).find(function (child) {
20
- return child && isObject(child) && 'type' in child && isObject(child.type) && child.type.name === ofType.name;
27
+ return _react["default"].Children.toArray(children).find(function (child) {
28
+ return child && (0, _lodash.isObject)(child) && 'type' in child && (0, _lodash.isObject)(child.type) && child.type.name === ofType.name;
21
29
  });
22
30
  }
23
-
24
31
  var ModalComponent = function ModalComponent(_ref) {
25
32
  var title = _ref.title,
26
- description = _ref.description,
27
- _ref$role = _ref.role,
28
- role = _ref$role === void 0 ? 'dialog' : _ref$role,
29
- headerImg = _ref.headerImg,
30
- _ref$size = _ref.size,
31
- size = _ref$size === void 0 ? 'xs' : _ref$size,
32
- _ref$vPos = _ref.vPos,
33
- vPos = _ref$vPos === void 0 ? 'top' : _ref$vPos,
34
- focusRef = _ref.focusRef,
35
- children = _ref.children,
36
- tabIndex = _ref.tabIndex,
37
- _ref$showCloseButton = _ref.showCloseButton,
38
- showCloseButton = _ref$showCloseButton === void 0 ? false : _ref$showCloseButton,
39
- _ref$p = _ref.p,
40
- p = _ref$p === void 0 ? defaultModalPadding : _ref$p,
41
- dialog = _objectWithoutProperties(_ref, _excluded);
42
-
33
+ description = _ref.description,
34
+ _ref$role = _ref.role,
35
+ role = _ref$role === void 0 ? 'dialog' : _ref$role,
36
+ headerImg = _ref.headerImg,
37
+ _ref$size = _ref.size,
38
+ size = _ref$size === void 0 ? 'xs' : _ref$size,
39
+ _ref$vPos = _ref.vPos,
40
+ vPos = _ref$vPos === void 0 ? 'top' : _ref$vPos,
41
+ focusRef = _ref.focusRef,
42
+ children = _ref.children,
43
+ tabIndex = _ref.tabIndex,
44
+ _ref$showCloseButton = _ref.showCloseButton,
45
+ showCloseButton = _ref$showCloseButton === void 0 ? false : _ref$showCloseButton,
46
+ _ref$p = _ref.p,
47
+ p = _ref$p === void 0 ? defaultModalPadding : _ref$p,
48
+ dialog = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
43
49
  var labelProps = {
44
50
  'aria-labelledby': "modal-title-".concat(dialog.baseId)
45
51
  };
@@ -47,105 +53,112 @@ var ModalComponent = function ModalComponent(_ref) {
47
53
  var childHeader = findChild(ModalHeader, children);
48
54
  var childBody = findChild(ModalBody, children);
49
55
  var childFooter = findChild(ModalFooter, children);
50
- return /*#__PURE__*/React.createElement(DialogBackdrop, Object.assign({
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.DialogBackdrop, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
51
57
  role: "presentation",
52
- as: Overlay
53
- }, dialog), /*#__PURE__*/React.createElement(Dialog, Object.assign({}, dialog, labelProps, {
54
- as: ModalBox,
55
- id: dialog.baseId,
56
- role: role,
57
- hideOnEsc: !isAlert,
58
- hideOnClickOutside: !isAlert,
59
- unstable_initialFocusRef: focusRef,
60
- tabIndex: tabIndex,
61
- size: size,
62
- vPos: vPos
63
- }), !!childHeader ? childHeader : /*#__PURE__*/React.createElement(ModalHeader, {
64
- headerImg: headerImg,
65
- title: title,
66
- description: description,
67
- pt: defaultModalPadding,
68
- px: defaultModalPadding,
69
- id: dialog.baseId
70
- }), childBody ? childBody : /*#__PURE__*/React.createElement(ModalBody, {
71
- pt: defaultModalPadding / 2,
72
- pb: defaultModalPadding
73
- }, children), childFooter, (!isAlert || showCloseButton) && /*#__PURE__*/React.createElement(CloseBtnLocation, {
74
- padding: defaultModalPadding
75
- }, /*#__PURE__*/React.createElement(CloseButton, {
76
- onClick: dialog.hide
77
- }))));
58
+ as: _styles.Overlay
59
+ }, dialog), {}, {
60
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Dialog.Dialog, (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, dialog), labelProps), {}, {
61
+ as: _styles.ModalBox,
62
+ id: dialog.baseId,
63
+ role: role,
64
+ hideOnEsc: !isAlert,
65
+ hideOnClickOutside: !isAlert,
66
+ unstable_initialFocusRef: focusRef,
67
+ tabIndex: tabIndex,
68
+ size: size,
69
+ vPos: vPos,
70
+ children: [!!childHeader ? childHeader : /*#__PURE__*/(0, _jsxRuntime.jsx)(ModalHeader, {
71
+ headerImg: headerImg,
72
+ title: title,
73
+ description: description,
74
+ pt: defaultModalPadding,
75
+ px: defaultModalPadding,
76
+ id: dialog.baseId
77
+ }), childBody ? childBody : /*#__PURE__*/(0, _jsxRuntime.jsx)(ModalBody, {
78
+ pt: defaultModalPadding / 2,
79
+ pb: defaultModalPadding,
80
+ children: children
81
+ }), childFooter, (!isAlert || showCloseButton) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.CloseBtnLocation, {
82
+ padding: defaultModalPadding,
83
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CloseButton.CloseButton, {
84
+ onClick: dialog.hide
85
+ })
86
+ })]
87
+ }))
88
+ }));
78
89
  };
79
-
80
90
  var ModalHeader = function ModalHeader(_ref2) {
81
91
  var headerImg = _ref2.headerImg,
82
- title = _ref2.title,
83
- description = _ref2.description,
84
- id = _ref2.id,
85
- children = _ref2.children,
86
- props = _objectWithoutProperties(_ref2, _excluded2);
87
-
92
+ title = _ref2.title,
93
+ description = _ref2.description,
94
+ id = _ref2.id,
95
+ children = _ref2.children,
96
+ props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
88
97
  var titleProps = id && {
89
98
  id: "modal-title-".concat(id)
90
99
  };
91
- return /*#__PURE__*/React.createElement(ModalHeaderBox, Object.assign({
100
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ModalHeaderBox, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
92
101
  px: defaultModalPadding,
93
102
  pt: defaultModalPadding
94
- }, props), headerImg && /*#__PURE__*/React.createElement(Img, {
95
- src: headerImg.src,
96
- alt: headerImg.alt,
97
- width: headerImg.width,
98
- transparent: true,
99
- mr: 4
100
- }), /*#__PURE__*/React.createElement(Box, {
101
- pr: 5,
102
- flexGrow: 1
103
- }, title && /*#__PURE__*/React.createElement(Subheader, titleProps, title), description && /*#__PURE__*/React.createElement(Paragraph, {
104
- mt: 2,
105
- as: "div"
106
- }, description), children));
107
- }; // On future usages we should start using these components
103
+ }, props), {}, {
104
+ children: [headerImg && /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Img, {
105
+ src: headerImg.src,
106
+ alt: headerImg.alt,
107
+ width: headerImg.width,
108
+ transparent: true,
109
+ mr: 4
110
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flexbox.Box, {
111
+ pr: 5,
112
+ flexGrow: 1,
113
+ children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.Subheader, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, titleProps), {}, {
114
+ children: title
115
+ })), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.Paragraph, {
116
+ mt: 2,
117
+ as: "div",
118
+ children: description
119
+ }), children]
120
+ })]
121
+ }));
122
+ };
108
123
 
124
+ // On future usages we should start using these components
109
125
 
110
126
  var ModalBody = function ModalBody(_ref3) {
111
127
  var children = _ref3.children,
112
- props = _objectWithoutProperties(_ref3, _excluded3);
113
-
114
- var _useScrollContainer = useScrollContainer(),
115
- atTop = _useScrollContainer.atTop,
116
- atBottom = _useScrollContainer.atBottom,
117
- scroll = _useScrollContainer.scroll,
118
- height = _useScrollContainer.height,
119
- divProps = _objectWithoutProperties(_useScrollContainer, _excluded4);
120
-
121
- return /*#__PURE__*/React.createElement(ModalBodyBox, Object.assign({
128
+ props = (0, _objectWithoutProperties2["default"])(_ref3, _excluded3);
129
+ var _useScrollContainer = (0, _ScrollableContent.useScrollContainer)(),
130
+ atTop = _useScrollContainer.atTop,
131
+ atBottom = _useScrollContainer.atBottom,
132
+ scroll = _useScrollContainer.scroll,
133
+ height = _useScrollContainer.height,
134
+ divProps = (0, _objectWithoutProperties2["default"])(_useScrollContainer, _excluded4);
135
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ModalBodyBox, (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({
122
136
  px: defaultModalPadding,
123
137
  moreTop: !atTop,
124
138
  moreBottom: !atBottom
125
- }, props, divProps), children);
139
+ }, props), divProps), {}, {
140
+ children: children
141
+ }));
126
142
  };
127
-
128
143
  var ModalFooter = function ModalFooter(_ref4) {
129
144
  var children = _ref4.children,
130
- props = _objectWithoutProperties(_ref4, _excluded5);
131
-
132
- return /*#__PURE__*/React.createElement(ModalFooterBox, Object.assign({
145
+ props = (0, _objectWithoutProperties2["default"])(_ref4, _excluded5);
146
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ModalFooterBox, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
133
147
  px: defaultModalPadding,
134
148
  pb: defaultModalPadding
135
- }, props), children);
149
+ }, props), {}, {
150
+ children: children
151
+ }));
136
152
  };
137
-
138
- var useModal = function useModal(id, visibleOnMount) {
139
- return useDialogState({
153
+ var useModal = exports.useModal = function useModal(id, visibleOnMount) {
154
+ return (0, _Dialog.useDialogState)({
140
155
  baseId: id,
141
156
  animated: true,
142
157
  visible: visibleOnMount
143
158
  });
144
159
  };
145
-
146
- var Modal = Object.assign(ModalComponent, {
160
+ var Modal = exports.Modal = Object.assign(ModalComponent, {
147
161
  Header: ModalHeader,
148
162
  Body: ModalBody,
149
163
  Footer: ModalFooter
150
- });
151
- export { Modal, useModal };
164
+ });
@@ -1,2 +1,27 @@
1
- export * from './Modal';
2
- export * from './ConfirmationModal';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Modal = require("./Modal");
7
+ Object.keys(_Modal).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Modal[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _Modal[key];
14
+ }
15
+ });
16
+ });
17
+ var _ConfirmationModal = require("./ConfirmationModal");
18
+ Object.keys(_ConfirmationModal).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _ConfirmationModal[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _ConfirmationModal[key];
25
+ }
26
+ });
27
+ });
@@ -1,66 +1,49 @@
1
1
  /// <reference types="react" />
2
- import { CodacyTheme } from '../theme';
3
2
  import { ModalProps } from './types';
4
- export declare const Overlay: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>> & {
5
- theme?: CodacyTheme | undefined;
6
- }, "key" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
7
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
- }, Record<string, unknown>, CodacyTheme>;
9
- export declare const ModalBox: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
10
- fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, CodacyTheme> | undefined;
11
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
12
- theme?: object | undefined;
13
- }, "key" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
14
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
- } & Pick<import("..").FlexProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps> & {
16
- theme?: object | undefined;
17
- }, Pick<ModalProps, "size" | "vPos">, CodacyTheme>;
18
- export declare const ModalHeaderBox: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
19
- fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, CodacyTheme> | undefined;
20
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
21
- theme?: object | undefined;
22
- }, "key" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
23
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
24
- } & Pick<import("..").FlexProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps> & {
25
- theme?: object | undefined;
26
- }, Pick<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
27
- fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, CodacyTheme> | undefined;
28
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
29
- theme?: object | undefined;
30
- }, "key" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
31
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
32
- } & Pick<import("..").FlexProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps> & {
33
- theme?: object | undefined;
34
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps>, object>;
35
- export declare const ModalBodyBox: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
36
- fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, CodacyTheme> | undefined;
37
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
38
- theme?: object | undefined;
39
- }, "key" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
40
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
41
- } & Pick<import("..").BoxProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps | keyof import("..").GridboxProps> & {
42
- theme?: object | undefined;
43
- }, {
3
+ export declare const Overlay: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & import("react").HTMLAttributes<HTMLDivElement> & import("react").ClassAttributes<HTMLDivElement> & {
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ } & Record<string, unknown>, {}, {}>;
9
+ export declare const ModalBox: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
13
+ fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, import("..").CodacyTheme> | undefined;
14
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ } & import("..").FlexboxProps & Pick<ModalProps, "size" | "vPos">, {}, {}>;
17
+ export declare const ModalHeaderBox: import("@emotion/styled").StyledComponent<{
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
21
+ fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, import("..").CodacyTheme> | undefined;
22
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ } & import("..").FlexboxProps, {}, {}>;
25
+ export declare const ModalBodyBox: import("@emotion/styled").StyledComponent<{
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any> | undefined;
28
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
29
+ fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, import("..").CodacyTheme> | undefined;
30
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ } & import("..").FlexboxProps & import("..").GridboxProps & {
44
33
  moreTop: boolean;
45
34
  moreBottom: boolean;
46
- }, CodacyTheme>;
47
- export declare const ModalFooterBox: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
48
- fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, CodacyTheme> | undefined;
49
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
50
- theme?: object | undefined;
51
- }, "key" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
52
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
53
- } & Pick<import("..").BoxProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps | keyof import("..").GridboxProps> & {
54
- theme?: object | undefined;
55
- }, Pick<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
56
- fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, CodacyTheme> | undefined;
57
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
58
- theme?: object | undefined;
59
- }, "key" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
60
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
61
- } & Pick<import("..").BoxProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps | keyof import("..").GridboxProps> & {
62
- theme?: object | undefined;
63
- }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps | keyof import("..").GridboxProps>, object>;
64
- export declare const CloseBtnLocation: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
+ }, {}, {}>;
36
+ export declare const ModalFooterBox: import("@emotion/styled").StyledComponent<{
37
+ theme?: import("@emotion/react").Theme | undefined;
38
+ as?: import("react").ElementType<any> | undefined;
39
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("..").As & {
40
+ fontWeight?: import("styled-system").ResponsiveValue<number | import("..").FontWeights, import("..").CodacyTheme> | undefined;
41
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ } & import("..").FlexboxProps & import("..").GridboxProps, {}, {}>;
44
+ export declare const CloseBtnLocation: import("@emotion/styled").StyledComponent<{
45
+ theme?: import("@emotion/react").Theme | undefined;
46
+ as?: import("react").ElementType<any> | undefined;
47
+ } & {
65
48
  padding: number;
66
- }, CodacyTheme>;
49
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;