@codacy/ui-components 0.64.16 → 0.64.17

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,27 +1,35 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
- var _excluded = ["children", "size"],
3
- _excluded2 = ["children", "size"],
4
- _excluded3 = ["children", "size", "as"],
5
- _excluded4 = ["children", "as", "size", "bold", "fontWeight"],
6
- _excluded5 = ["children", "size", "as", "value", "showPercentage", "format"],
7
- _excluded6 = ["children", "size", "as"];
8
- import React from 'react';
9
- import numeral from 'numeral';
10
- import { StyledTitle, StyledSubheader, StyledParagraph, StyledCaption, StyledList, StyledDataPoint } from './Typography.styles';
1
+ "use strict";
11
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Title = exports.Subheader = exports.Paragraph = exports.DataPoint = exports.Caption = exports.BulletedList = 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 _numeral = _interopRequireDefault(require("numeral"));
12
+ var _Typography = require("./Typography.styles");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ var _excluded = ["children", "size"],
15
+ _excluded2 = ["children", "size"],
16
+ _excluded3 = ["children", "size", "as"],
17
+ _excluded4 = ["children", "as", "size", "bold", "fontWeight"],
18
+ _excluded5 = ["children", "size", "as", "value", "showPercentage", "format"],
19
+ _excluded6 = ["children", "size", "as"];
12
20
  /** Title */
13
- export var Title = React.forwardRef(function (_ref, ref) {
21
+ var Title = exports.Title = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
14
22
  var children = _ref.children,
15
- _ref$size = _ref.size,
16
- size = _ref$size === void 0 ? 'md' : _ref$size,
17
- props = _objectWithoutProperties(_ref, _excluded);
18
-
19
- return /*#__PURE__*/React.createElement(StyledTitle, Object.assign({
23
+ _ref$size = _ref.size,
24
+ size = _ref$size === void 0 ? 'md' : _ref$size,
25
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.StyledTitle, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
20
27
  as: "h1",
21
28
  textSize: size
22
- }, props, {
23
- ref: ref
24
- }), children);
29
+ }, props), {}, {
30
+ ref: ref,
31
+ children: children
32
+ }));
25
33
  });
26
34
  var tagBySize = {
27
35
  xl: 'h2',
@@ -30,96 +38,99 @@ var tagBySize = {
30
38
  sm: 'h5',
31
39
  xs: 'h6'
32
40
  };
33
- /** Subheader */
34
41
 
35
- export var Subheader = React.forwardRef(function (_ref2, ref) {
42
+ /** Subheader */
43
+ var Subheader = exports.Subheader = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, ref) {
36
44
  var children = _ref2.children,
37
- _ref2$size = _ref2.size,
38
- size = _ref2$size === void 0 ? 'xl' : _ref2$size,
39
- props = _objectWithoutProperties(_ref2, _excluded2);
40
-
41
- return /*#__PURE__*/React.createElement(StyledSubheader, Object.assign({
45
+ _ref2$size = _ref2.size,
46
+ size = _ref2$size === void 0 ? 'xl' : _ref2$size,
47
+ props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.StyledSubheader, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
42
49
  as: tagBySize[size],
43
50
  textSize: size
44
- }, props, {
45
- ref: ref
46
- }), children);
51
+ }, props), {}, {
52
+ ref: ref,
53
+ children: children
54
+ }));
47
55
  });
48
- /** Paragraph */
49
56
 
50
- export var Paragraph = React.forwardRef(function (_ref3, ref) {
57
+ /** Paragraph */
58
+ var Paragraph = exports.Paragraph = /*#__PURE__*/_react["default"].forwardRef(function (_ref3, ref) {
51
59
  var children = _ref3.children,
52
- _ref3$size = _ref3.size,
53
- size = _ref3$size === void 0 ? 'md' : _ref3$size,
54
- _ref3$as = _ref3.as,
55
- as = _ref3$as === void 0 ? 'p' : _ref3$as,
56
- props = _objectWithoutProperties(_ref3, _excluded3);
57
-
58
- return /*#__PURE__*/React.createElement(StyledParagraph, Object.assign({
60
+ _ref3$size = _ref3.size,
61
+ size = _ref3$size === void 0 ? 'md' : _ref3$size,
62
+ _ref3$as = _ref3.as,
63
+ as = _ref3$as === void 0 ? 'p' : _ref3$as,
64
+ props = (0, _objectWithoutProperties2["default"])(_ref3, _excluded3);
65
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.StyledParagraph, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
59
66
  as: as,
60
67
  textSize: size
61
- }, props, {
62
- ref: ref
63
- }), children);
68
+ }, props), {}, {
69
+ ref: ref,
70
+ children: children
71
+ }));
64
72
  });
65
- /** Caption */
66
73
 
67
- export var Caption = React.forwardRef(function (_ref4, ref) {
74
+ /** Caption */
75
+ var Caption = exports.Caption = /*#__PURE__*/_react["default"].forwardRef(function (_ref4, ref) {
68
76
  var children = _ref4.children,
69
- _ref4$as = _ref4.as,
70
- as = _ref4$as === void 0 ? 'p' : _ref4$as,
71
- _ref4$size = _ref4.size,
72
- size = _ref4$size === void 0 ? 'sm' : _ref4$size,
73
- bold = _ref4.bold,
74
- fontWeight = _ref4.fontWeight,
75
- props = _objectWithoutProperties(_ref4, _excluded4);
76
-
77
- return /*#__PURE__*/React.createElement(StyledCaption, Object.assign({
77
+ _ref4$as = _ref4.as,
78
+ as = _ref4$as === void 0 ? 'p' : _ref4$as,
79
+ _ref4$size = _ref4.size,
80
+ size = _ref4$size === void 0 ? 'sm' : _ref4$size,
81
+ bold = _ref4.bold,
82
+ fontWeight = _ref4.fontWeight,
83
+ props = (0, _objectWithoutProperties2["default"])(_ref4, _excluded4);
84
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.StyledCaption, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
78
85
  as: as,
79
86
  textSize: size,
80
87
  fontWeight: fontWeight || (bold ? 2 : 1)
81
- }, props, {
82
- ref: ref
83
- }), children);
88
+ }, props), {}, {
89
+ ref: ref,
90
+ children: children
91
+ }));
84
92
  });
85
- export var DataPoint = React.forwardRef(function (_ref5, ref) {
93
+ var DataPoint = exports.DataPoint = /*#__PURE__*/_react["default"].forwardRef(function (_ref5, ref) {
86
94
  var children = _ref5.children,
87
- _ref5$size = _ref5.size,
88
- size = _ref5$size === void 0 ? 'sm' : _ref5$size,
89
- _ref5$as = _ref5.as,
90
- as = _ref5$as === void 0 ? 'p' : _ref5$as,
91
- value = _ref5.value,
92
- showPercentage = _ref5.showPercentage,
93
- format = _ref5.format,
94
- props = _objectWithoutProperties(_ref5, _excluded5);
95
-
96
- if (value === undefined) return /*#__PURE__*/React.createElement(StyledDataPoint, Object.assign({
95
+ _ref5$size = _ref5.size,
96
+ size = _ref5$size === void 0 ? 'sm' : _ref5$size,
97
+ _ref5$as = _ref5.as,
98
+ as = _ref5$as === void 0 ? 'p' : _ref5$as,
99
+ value = _ref5.value,
100
+ showPercentage = _ref5.showPercentage,
101
+ format = _ref5.format,
102
+ props = (0, _objectWithoutProperties2["default"])(_ref5, _excluded5);
103
+ if (value === undefined) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.StyledDataPoint, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
97
104
  textSize: size,
98
105
  as: as
99
- }, props, {
100
- ref: ref
101
- }), "-");
102
- return /*#__PURE__*/React.createElement(StyledDataPoint, Object.assign({
106
+ }, props), {}, {
107
+ ref: ref,
108
+ children: "-"
109
+ }));
110
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Typography.StyledDataPoint, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
103
111
  textSize: size,
104
112
  as: as
105
- }, props, {
106
- ref: ref
107
- }), format ? numeral(value).format(format) : value, showPercentage ? /*#__PURE__*/React.createElement("small", null, " %") : null);
113
+ }, props), {}, {
114
+ ref: ref,
115
+ children: [format ? (0, _numeral["default"])(value).format(format) : value, showPercentage ? /*#__PURE__*/(0, _jsxRuntime.jsx)("small", {
116
+ children: " %"
117
+ }) : null]
118
+ }));
108
119
  });
109
- /** BulletedList */
110
120
 
111
- export var BulletedList = React.forwardRef(function (_ref6, ref) {
121
+ /** BulletedList */
122
+ var BulletedList = exports.BulletedList = /*#__PURE__*/_react["default"].forwardRef(function (_ref6, ref) {
112
123
  var children = _ref6.children,
113
- _ref6$size = _ref6.size,
114
- size = _ref6$size === void 0 ? 'md' : _ref6$size,
115
- _ref6$as = _ref6.as,
116
- as = _ref6$as === void 0 ? 'ul' : _ref6$as,
117
- props = _objectWithoutProperties(_ref6, _excluded6);
118
-
119
- return /*#__PURE__*/React.createElement(StyledList, Object.assign({
124
+ _ref6$size = _ref6.size,
125
+ size = _ref6$size === void 0 ? 'md' : _ref6$size,
126
+ _ref6$as = _ref6.as,
127
+ as = _ref6$as === void 0 ? 'ul' : _ref6$as,
128
+ props = (0, _objectWithoutProperties2["default"])(_ref6, _excluded6);
129
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.StyledList, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
120
130
  as: as,
121
131
  textSize: size
122
- }, props, {
123
- ref: ref
124
- }), children);
132
+ }, props), {}, {
133
+ ref: ref,
134
+ children: children
135
+ }));
125
136
  });
@@ -2,69 +2,63 @@
2
2
  import { CodacyTheme, Size } from '../theme';
3
3
  import { TitleProps, SubheaderProps, ParagraphProps, CaptionProps, ListProps, TextSize, TextColor, DataPointProps, TitleSize, DataPointTextSize } from './Typography.types';
4
4
  export declare const BaseTextStyle: (theme: CodacyTheme, size: TextSize, color: TextColor) => import("@emotion/utils").SerializedStyles;
5
- export declare const StyledTitle: 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("../Flexbox").As & {
5
+ export declare const StyledTitle: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
6
9
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
7
- }, "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> & {
8
- theme?: object | undefined;
9
- }, "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> & {
10
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
- } & Pick<import("../Flexbox").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> & {
12
- theme?: object | undefined;
13
- }, Omit<TitleProps, "size"> & {
10
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ } & import("..").FlexboxProps & import("..").GridboxProps & Omit<TitleProps, "size"> & {
14
13
  textSize?: TitleSize | undefined;
15
- }, CodacyTheme>;
16
- export declare const StyledSubheader: 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("../Flexbox").As & {
14
+ }, {}, {}>;
15
+ export declare const StyledSubheader: import("@emotion/styled").StyledComponent<{
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
17
19
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
18
- }, "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> & {
19
- theme?: object | undefined;
20
- }, "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> & {
21
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
- } & Pick<import("../Flexbox").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> & {
23
- theme?: object | undefined;
24
- }, Omit<SubheaderProps, "size"> & {
20
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ } & import("..").FlexboxProps & import("..").GridboxProps & Omit<SubheaderProps, "size"> & {
25
23
  textSize?: Size | undefined;
26
- }, CodacyTheme>;
27
- export declare const StyledParagraph: 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("../Flexbox").As & {
24
+ }, {}, {}>;
25
+ export declare const StyledParagraph: 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("../Flexbox").As & {
28
29
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
29
- }, "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> & {
30
- theme?: object | undefined;
31
- }, "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> & {
32
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
33
- } & Pick<import("../Flexbox").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> & {
34
- theme?: object | undefined;
35
- }, Omit<ParagraphProps, "size"> & {
30
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ } & import("..").FlexboxProps & import("..").GridboxProps & Omit<ParagraphProps, "size"> & {
36
33
  textSize?: TextSize | undefined;
37
- }, CodacyTheme>;
38
- export declare const StyledCaption: 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("../Flexbox").As & {
34
+ }, {}, {}>;
35
+ export declare const StyledCaption: import("@emotion/styled").StyledComponent<{
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ as?: import("react").ElementType<any> | undefined;
38
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
39
39
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
40
- }, "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> & {
41
- theme?: object | undefined;
42
- }, "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> & {
43
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
44
- } & Pick<import("../Flexbox").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> & {
45
- theme?: object | undefined;
46
- }, Omit<CaptionProps, "bold" | "size"> & {
40
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
41
+ theme?: import("@emotion/react").Theme | undefined;
42
+ } & import("..").FlexboxProps & import("..").GridboxProps & Omit<CaptionProps, "bold" | "size"> & {
47
43
  textSize?: TextSize | undefined;
48
- }, CodacyTheme>;
49
- export declare const StyledList: 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("../Flexbox").As & {
44
+ }, {}, {}>;
45
+ export declare const StyledList: import("@emotion/styled").StyledComponent<{
46
+ theme?: import("@emotion/react").Theme | undefined;
47
+ as?: import("react").ElementType<any> | undefined;
48
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
50
49
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
51
- }, "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> & {
52
- theme?: object | undefined;
53
- }, "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> & {
54
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
55
- } & Pick<import("../Flexbox").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> & {
56
- theme?: object | undefined;
57
- }, Omit<ListProps, "size"> & {
50
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
51
+ theme?: import("@emotion/react").Theme | undefined;
52
+ } & import("..").FlexboxProps & import("..").GridboxProps & Omit<ListProps, "size"> & {
58
53
  textSize?: TextSize | undefined;
59
- }, CodacyTheme>;
60
- export declare const StyledDataPoint: 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("../Flexbox").As & {
54
+ }, {}, {}>;
55
+ export declare const StyledDataPoint: import("@emotion/styled").StyledComponent<{
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
+ } & import("..").ColorProps & Omit<import("..").LayoutProps, "size"> & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
61
59
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
62
- }, "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> & {
63
- theme?: object | undefined;
64
- }, "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> & {
65
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
66
- } & Pick<import("../Flexbox").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> & {
67
- theme?: object | undefined;
68
- }, Pick<DataPointProps, "color"> & {
60
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
61
+ theme?: import("@emotion/react").Theme | undefined;
62
+ } & import("..").FlexboxProps & import("..").GridboxProps & Pick<DataPointProps, "color"> & {
69
63
  textSize?: DataPointTextSize | undefined;
70
- }, CodacyTheme>;
64
+ }, {}, {}>;