@codacy/ui-components 0.64.15 → 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.
- package/lib/Avatar/Avatar.js +25 -19
- package/lib/Avatar/Avatar.types.js +5 -1
- package/lib/Avatar/gravatar.js +17 -13
- package/lib/Avatar/index.js +16 -1
- package/lib/Banner/Banner.js +45 -32
- package/lib/Banner/Banner.styles.d.ts +11 -12
- package/lib/Banner/Banner.styles.js +26 -15
- package/lib/Banner/Banner.types.js +5 -1
- package/lib/Banner/index.js +27 -2
- package/lib/Button/Button.js +54 -51
- package/lib/Button/index.js +27 -2
- package/lib/Button/styles.d.ts +16 -12
- package/lib/Button/styles.js +58 -44
- package/lib/Button/types.js +5 -1
- package/lib/Checkbox/Checkbox.js +63 -54
- package/lib/Checkbox/CheckboxFilterList.js +46 -32
- package/lib/Checkbox/index.js +38 -3
- package/lib/Checkbox/styles.d.ts +25 -22
- package/lib/Checkbox/styles.js +52 -37
- package/lib/Checkbox/types.js +5 -1
- package/lib/CloseButton/index.js +27 -16
- package/lib/Divider/Divider.js +23 -13
- package/lib/Divider/Divider.styles.d.ts +16 -19
- package/lib/Divider/Divider.styles.js +24 -11
- package/lib/Divider/Divider.types.js +5 -1
- package/lib/Divider/index.js +16 -1
- package/lib/Dropdown/Content/DropdownInput.js +20 -8
- package/lib/Dropdown/Content/DropdownItem.js +29 -21
- package/lib/Dropdown/Content/DropdownSeparator.js +19 -7
- package/lib/Dropdown/Content/index.js +38 -3
- package/lib/Dropdown/Dropdown.js +89 -85
- package/lib/Dropdown/Dropdown.styles.d.ts +37 -34
- package/lib/Dropdown/Dropdown.styles.js +62 -43
- package/lib/Dropdown/Dropdown.types.js +5 -1
- package/lib/Dropdown/Triggers/DropdownButtonTrigger.js +30 -20
- package/lib/Dropdown/Triggers/DropdownLinkTrigger.js +29 -19
- package/lib/Dropdown/Triggers/InputTrigger.js +18 -10
- package/lib/Dropdown/Triggers/SelectTrigger.js +19 -12
- package/lib/Dropdown/Triggers/hooks.js +18 -14
- package/lib/Dropdown/Triggers/index.js +60 -5
- package/lib/Dropdown/Triggers/types.js +5 -1
- package/lib/Dropdown/index.js +49 -4
- package/lib/Flexbox/Flexbox.d.ts +31 -17
- package/lib/Flexbox/Flexbox.js +36 -16
- package/lib/Flexbox/index.js +16 -1
- package/lib/Group/Group.js +17 -8
- package/lib/Group/Group.styles.d.ts +8 -10
- package/lib/Group/Group.styles.js +17 -7
- package/lib/Group/Group.types.js +5 -1
- package/lib/Group/index.js +16 -1
- package/lib/Icon/Icon.js +24 -14
- package/lib/Icon/Icon.styles.d.ts +9 -11
- package/lib/Icon/Icon.styles.js +39 -44
- package/lib/Icon/Icon.types.js +5 -1
- package/lib/Icon/index.js +16 -1
- package/lib/IconAndText/IconAndText.js +33 -21
- package/lib/IconAndText/IconAndText.styles.d.ts +8 -10
- package/lib/IconAndText/IconAndText.styles.js +20 -10
- package/lib/IconAndText/IconAndText.types.js +5 -1
- package/lib/IconAndText/index.js +16 -1
- package/lib/Icons/Chevrons.js +53 -41
- package/lib/Icons/CodacyIcon.js +17 -8
- package/lib/Icons/Messages.js +54 -35
- package/lib/Icons/Search.js +16 -7
- package/lib/Icons/Severities.js +117 -106
- package/lib/Icons/Sorting.js +23 -13
- package/lib/Icons/Spinner.js +19 -10
- package/lib/Icons/Symbols.js +73 -58
- package/lib/Icons/index.js +93 -8
- package/lib/Img/Img.js +44 -37
- package/lib/Img/Img.styles.d.ts +12 -11
- package/lib/Img/Img.styles.js +37 -32
- package/lib/Img/Img.types.js +5 -1
- package/lib/Img/index.js +16 -1
- package/lib/InlineMessage/InlineMessage.js +47 -34
- package/lib/InlineMessage/index.js +16 -1
- package/lib/InlineMessage/types.js +5 -1
- package/lib/Input/Input.js +148 -126
- package/lib/Input/hooks.js +149 -178
- package/lib/Input/index.js +27 -2
- package/lib/Input/styles.d.ts +55 -104
- package/lib/Input/styles.js +85 -54
- package/lib/Input/types.js +5 -1
- package/lib/Labeled/Labeled.js +34 -22
- package/lib/Labeled/index.js +16 -1
- package/lib/Labeled/styles.d.ts +16 -12
- package/lib/Labeled/styles.js +27 -11
- package/lib/Labeled/types.js +5 -1
- package/lib/LeftMenu/LeftMenu.js +20 -11
- package/lib/LeftMenu/LeftMenu.styles.d.ts +8 -10
- package/lib/LeftMenu/LeftMenu.styles.js +20 -10
- package/lib/LeftMenu/LeftMenu.types.js +5 -1
- package/lib/LeftMenu/index.js +16 -1
- package/lib/Link/Link.js +43 -33
- package/lib/Link/Link.styles.d.ts +4 -1
- package/lib/Link/Link.styles.js +21 -11
- package/lib/Link/Link.types.js +5 -1
- package/lib/Link/index.js +38 -3
- package/lib/Message/Message.js +32 -24
- package/lib/Message/Message.styles.d.ts +8 -10
- package/lib/Message/Message.styles.js +17 -7
- package/lib/Message/Message.types.js +5 -1
- package/lib/Message/index.js +16 -1
- package/lib/Modal/ConfirmationModal.js +65 -39
- package/lib/Modal/Modal.js +120 -107
- package/lib/Modal/index.js +27 -2
- package/lib/Modal/styles.d.ts +44 -61
- package/lib/Modal/styles.js +97 -85
- package/lib/Modal/types.d.ts +1 -0
- package/lib/Modal/types.js +5 -1
- package/lib/MoreInfo/MoreInfo.js +45 -39
- package/lib/MoreInfo/index.js +16 -1
- package/lib/MoreInfo/types.js +5 -1
- package/lib/Panel/Panel.js +18 -9
- package/lib/Panel/Panel.styles.d.ts +8 -11
- package/lib/Panel/Panel.styles.js +15 -5
- package/lib/Panel/Panel.types.js +5 -1
- package/lib/Panel/index.js +27 -2
- package/lib/PillLabel/PillLabel.js +28 -21
- package/lib/PillLabel/PillLabel.styles.d.ts +8 -10
- package/lib/PillLabel/PillLabel.styles.js +25 -16
- package/lib/PillLabel/PillLabel.types.js +5 -1
- package/lib/PillLabel/index.js +16 -1
- package/lib/Popup/Popup.js +55 -45
- package/lib/Popup/index.js +16 -1
- package/lib/Popup/styles.d.ts +12 -11
- package/lib/Popup/styles.js +21 -8
- package/lib/Popup/types.js +5 -1
- package/lib/ProgressBar/ProgressBar.js +30 -20
- package/lib/ProgressBar/index.js +27 -2
- package/lib/ProgressBar/styles.d.ts +24 -28
- package/lib/ProgressBar/styles.js +30 -14
- package/lib/ProgressBar/types.js +5 -1
- package/lib/Radio/Radio.js +53 -48
- package/lib/Radio/index.js +16 -1
- package/lib/Radio/styles.d.ts +25 -22
- package/lib/Radio/styles.js +49 -30
- package/lib/Radio/types.js +5 -1
- package/lib/ScrollableContent/ScrollableContent.js +35 -24
- package/lib/ScrollableContent/ScrollableContent.styles.d.ts +9 -11
- package/lib/ScrollableContent/ScrollableContent.styles.js +23 -13
- package/lib/ScrollableContent/ScrollableContent.types.js +5 -1
- package/lib/ScrollableContent/index.js +27 -2
- package/lib/ScrollableContent/useScrollContainer.js +29 -24
- package/lib/Select/Select.js +31 -20
- package/lib/Select/index.js +16 -1
- package/lib/Select/types.js +5 -1
- package/lib/Skeleton/Skeleton.js +30 -25
- package/lib/Skeleton/Skeleton.styles.d.ts +8 -10
- package/lib/Skeleton/Skeleton.styles.js +21 -14
- package/lib/Skeleton/Skeleton.types.js +5 -1
- package/lib/Skeleton/index.js +20 -2
- package/lib/Stepper/Stepper.js +49 -40
- package/lib/Stepper/Stepper.styles.d.ts +24 -29
- package/lib/Stepper/Stepper.styles.js +35 -19
- package/lib/Stepper/Stepper.types.js +5 -1
- package/lib/Stepper/index.js +16 -1
- package/lib/Switcher/Switcher.js +32 -23
- package/lib/Switcher/Switcher.styles.d.ts +13 -13
- package/lib/Switcher/Switcher.styles.js +27 -15
- package/lib/Switcher/Switcher.types.js +5 -1
- package/lib/Switcher/index.js +16 -1
- package/lib/Tab/Tab.js +31 -23
- package/lib/Tab/Tab.styles.d.ts +13 -12
- package/lib/Tab/Tab.styles.js +30 -21
- package/lib/Tab/Tab.types.js +5 -1
- package/lib/Tab/index.js +16 -1
- package/lib/Table/NewSelectableTable.js +77 -56
- package/lib/Table/SelectableTable.js +138 -118
- package/lib/Table/Table.js +126 -111
- package/lib/Table/Table.styles.d.ts +32 -16
- package/lib/Table/Table.styles.js +79 -59
- package/lib/Table/Table.types.js +5 -1
- package/lib/Table/index.js +27 -2
- package/lib/TagsInput/TagsInput.js +44 -33
- package/lib/TagsInput/index.js +16 -1
- package/lib/TagsInput/style.d.ts +16 -19
- package/lib/TagsInput/style.js +22 -9
- package/lib/TagsInput/types.js +5 -1
- package/lib/Textarea/Textarea.js +75 -58
- package/lib/Textarea/Textarea.styles.d.ts +28 -22
- package/lib/Textarea/Textarea.styles.js +55 -32
- package/lib/Textarea/Textarea.types.js +5 -1
- package/lib/Textarea/index.js +16 -1
- package/lib/ThemeProvider/ThemeProvider.d.ts +5 -2
- package/lib/ThemeProvider/ThemeProvider.js +48 -30
- package/lib/ThemeProvider/index.js +16 -1
- package/lib/Toast/Toast.js +56 -53
- package/lib/Toast/index.js +16 -1
- package/lib/Toast/styles.d.ts +4 -2
- package/lib/Toast/styles.js +13 -3
- package/lib/Toast/types.js +5 -1
- package/lib/Toggle/Toggle.js +59 -50
- package/lib/Toggle/index.js +16 -1
- package/lib/Toggle/styles.d.ts +21 -14
- package/lib/Toggle/styles.js +51 -34
- package/lib/Toggle/types.js +5 -1
- package/lib/Tooltip/Tooltip.js +100 -102
- package/lib/Tooltip/index.js +16 -1
- package/lib/Tooltip/styles.d.ts +14 -8
- package/lib/Tooltip/styles.js +33 -25
- package/lib/Tooltip/types.js +5 -1
- package/lib/Typography/Typography.js +96 -85
- package/lib/Typography/Typography.styles.d.ts +48 -54
- package/lib/Typography/Typography.styles.js +70 -45
- package/lib/Typography/Typography.types.js +5 -1
- package/lib/Typography/index.js +38 -3
- package/lib/emotion.d.js +3 -0
- package/lib/hooks/index.js +38 -3
- package/lib/hooks/useForwardedRef.js +11 -6
- package/lib/hooks/useInfiniteScroll.js +24 -20
- package/lib/hooks/useStatefulRef.js +18 -14
- package/lib/index.js +489 -44
- package/lib/system-props/color.js +8 -2
- package/lib/system-props/index.js +27 -2
- package/lib/system-props/types.js +5 -1
- package/lib/theme/ColorSchemes/codacy.js +11 -4
- package/lib/theme/ColorSchemes/pulse.js +17 -9
- package/lib/theme/index.js +38 -3
- package/lib/theme/theme.js +42 -69
- package/lib/types.js +5 -1
- package/lib/utils/hash.js +8 -6
- package/lib/utils/reactNodeToText.js +13 -14
- package/package.json +32 -32
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
21
|
+
var Title = exports.Title = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
14
22
|
var children = _ref.children,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
42
|
+
/** Subheader */
|
|
43
|
+
var Subheader = exports.Subheader = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, ref) {
|
|
36
44
|
var children = _ref2.children,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
51
|
+
}, props), {}, {
|
|
52
|
+
ref: ref,
|
|
53
|
+
children: children
|
|
54
|
+
}));
|
|
47
55
|
});
|
|
48
|
-
/** Paragraph */
|
|
49
56
|
|
|
50
|
-
|
|
57
|
+
/** Paragraph */
|
|
58
|
+
var Paragraph = exports.Paragraph = /*#__PURE__*/_react["default"].forwardRef(function (_ref3, ref) {
|
|
51
59
|
var children = _ref3.children,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
68
|
+
}, props), {}, {
|
|
69
|
+
ref: ref,
|
|
70
|
+
children: children
|
|
71
|
+
}));
|
|
64
72
|
});
|
|
65
|
-
/** Caption */
|
|
66
73
|
|
|
67
|
-
|
|
74
|
+
/** Caption */
|
|
75
|
+
var Caption = exports.Caption = /*#__PURE__*/_react["default"].forwardRef(function (_ref4, ref) {
|
|
68
76
|
var children = _ref4.children,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
88
|
+
}, props), {}, {
|
|
89
|
+
ref: ref,
|
|
90
|
+
children: children
|
|
91
|
+
}));
|
|
84
92
|
});
|
|
85
|
-
|
|
93
|
+
var DataPoint = exports.DataPoint = /*#__PURE__*/_react["default"].forwardRef(function (_ref5, ref) {
|
|
86
94
|
var children = _ref5.children,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
121
|
+
/** BulletedList */
|
|
122
|
+
var BulletedList = exports.BulletedList = /*#__PURE__*/_react["default"].forwardRef(function (_ref6, ref) {
|
|
112
123
|
var children = _ref6.children,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
}
|
|
8
|
-
theme?:
|
|
9
|
-
}
|
|
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
|
-
},
|
|
16
|
-
export declare const StyledSubheader: import("@emotion/styled
|
|
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
|
-
}
|
|
19
|
-
theme?:
|
|
20
|
-
}
|
|
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
|
-
},
|
|
27
|
-
export declare const StyledParagraph: import("@emotion/styled
|
|
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
|
-
}
|
|
30
|
-
theme?:
|
|
31
|
-
}
|
|
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
|
-
},
|
|
38
|
-
export declare const StyledCaption: import("@emotion/styled
|
|
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
|
-
}
|
|
41
|
-
theme?:
|
|
42
|
-
}
|
|
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
|
-
},
|
|
49
|
-
export declare const StyledList: import("@emotion/styled
|
|
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
|
-
}
|
|
52
|
-
theme?:
|
|
53
|
-
}
|
|
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
|
-
},
|
|
60
|
-
export declare const StyledDataPoint: import("@emotion/styled
|
|
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
|
-
}
|
|
63
|
-
theme?:
|
|
64
|
-
}
|
|
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
|
-
},
|
|
64
|
+
}, {}, {}>;
|