@codacy/ui-components 0.58.5 → 0.59.2
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/README.md +7 -7
- package/lib/Avatar/Avatar.js +2 -1
- package/lib/Avatar/Avatar.types.js +1 -0
- package/lib/Avatar/gravatar.js +2 -1
- package/lib/Button/Button.js +2 -1
- package/lib/Button/styles.d.ts +3 -3
- package/lib/Button/types.js +1 -0
- package/lib/Checkbox/Checkbox.js +2 -1
- package/lib/Checkbox/CheckboxFilterList.js +2 -1
- package/lib/Checkbox/styles.d.ts +7 -7
- package/lib/Checkbox/types.js +1 -0
- package/lib/Divider/Divider.js +2 -1
- package/lib/Divider/Divider.styles.d.ts +7 -7
- package/lib/Divider/Divider.types.js +1 -0
- package/lib/Dropdown/Content/DropdownItem.js +2 -1
- package/lib/Dropdown/Dropdown.js +2 -1
- package/lib/Dropdown/Dropdown.styles.d.ts +9 -9
- package/lib/Dropdown/Dropdown.types.js +1 -0
- package/lib/Dropdown/Triggers/DropdownButtonTrigger.js +2 -1
- package/lib/Dropdown/Triggers/DropdownLinkTrigger.js +2 -1
- package/lib/Dropdown/Triggers/SelectTrigger.js +2 -1
- package/lib/Dropdown/Triggers/hooks.d.ts +2 -2
- package/lib/Dropdown/Triggers/types.js +1 -0
- package/lib/Flexbox/Flexbox.d.ts +6 -6
- package/lib/Group/Group.js +2 -1
- package/lib/Group/Group.styles.d.ts +3 -3
- package/lib/Group/Group.types.js +1 -0
- package/lib/Icon/Icon.js +2 -1
- package/lib/Icon/Icon.styles.d.ts +6 -6
- package/lib/Icon/Icon.styles.js +3 -21
- package/lib/Icon/Icon.types.js +1 -0
- package/lib/IconAndText/IconAndText.js +2 -1
- package/lib/IconAndText/IconAndText.styles.d.ts +3 -3
- package/lib/IconAndText/IconAndText.types.js +1 -0
- package/lib/Img/Img.js +2 -1
- package/lib/Img/Img.styles.d.ts +4 -4
- package/lib/Img/Img.types.js +1 -0
- package/lib/InlineMessage/InlineMessage.js +2 -1
- package/lib/InlineMessage/types.js +1 -0
- package/lib/Input/Input.js +5 -2
- package/lib/Input/hooks.d.ts +4 -4
- package/lib/Input/hooks.js +5 -3
- package/lib/Input/styles.d.ts +30 -30
- package/lib/Input/types.d.ts +1 -0
- package/lib/Input/types.js +1 -0
- package/lib/Labeled/Labeled.js +2 -1
- package/lib/Labeled/styles.d.ts +3 -3
- package/lib/Labeled/types.js +1 -0
- package/lib/LeftMenu/LeftMenu.js +2 -1
- package/lib/LeftMenu/LeftMenu.styles.d.ts +3 -3
- package/lib/LeftMenu/LeftMenu.types.js +1 -0
- package/lib/Link/Link.js +2 -1
- package/lib/Link/Link.types.js +1 -0
- package/lib/Message/Message.js +2 -1
- package/lib/Message/Message.styles.d.ts +3 -3
- package/lib/Message/Message.types.js +1 -0
- package/lib/Modal/ConfirmationModal.js +2 -1
- package/lib/Modal/Modal.d.ts +1 -1
- package/lib/Modal/Modal.js +10 -5
- package/lib/Modal/styles.d.ts +20 -20
- package/lib/Modal/types.js +1 -0
- package/lib/MoreInfo/MoreInfo.js +2 -1
- package/lib/MoreInfo/types.js +1 -0
- package/lib/Panel/styles.d.ts +3 -3
- package/lib/PillLabel/PillLabel.js +2 -1
- package/lib/PillLabel/PillLabel.styles.d.ts +3 -3
- package/lib/PillLabel/PillLabel.types.js +1 -0
- package/lib/Popup/Popup.js +2 -1
- package/lib/Popup/styles.d.ts +3 -3
- package/lib/Popup/types.js +1 -0
- package/lib/Radio/Radio.js +2 -1
- package/lib/Radio/styles.d.ts +4 -4
- package/lib/Radio/types.js +1 -0
- package/lib/ScrollableContent/ScrollableContent.js +4 -2
- package/lib/ScrollableContent/ScrollableContent.styles.d.ts +3 -3
- package/lib/ScrollableContent/ScrollableContent.types.js +1 -0
- package/lib/Select/Select.js +2 -1
- package/lib/Select/types.js +1 -0
- package/lib/Skeleton/Skeleton.js +4 -2
- package/lib/Skeleton/Skeleton.styles.d.ts +3 -3
- package/lib/Skeleton/Skeleton.styles.js +2 -10
- package/lib/Skeleton/Skeleton.types.js +1 -0
- package/lib/Stepper/Stepper.js +4 -2
- package/lib/Stepper/Stepper.styles.d.ts +9 -9
- package/lib/Stepper/Stepper.types.js +1 -0
- package/lib/Switcher/Switcher.js +2 -1
- package/lib/Switcher/Switcher.styles.d.ts +3 -3
- package/lib/Switcher/Switcher.types.js +1 -0
- package/lib/Tab/Tab.d.ts +2 -2
- package/lib/Tab/Tab.js +4 -2
- package/lib/Tab/Tab.styles.d.ts +3 -3
- package/lib/Tab/Tab.types.js +1 -0
- package/lib/Table/NewSelectableTable.js +4 -2
- package/lib/Table/SelectableTable.js +6 -3
- package/lib/Table/Table.js +14 -7
- package/lib/Table/Table.styles.d.ts +4 -4
- package/lib/Table/Table.types.js +1 -0
- package/lib/TagsInput/TagsInput.js +2 -1
- package/lib/TagsInput/style.d.ts +6 -6
- package/lib/TagsInput/types.js +1 -0
- package/lib/Textarea/Textarea.js +2 -1
- package/lib/Textarea/Textarea.styles.d.ts +5 -5
- package/lib/Textarea/Textarea.types.js +1 -0
- package/lib/Toast/Toast.d.ts +1 -1
- package/lib/Toast/types.js +1 -0
- package/lib/Toggle/Toggle.js +2 -1
- package/lib/Toggle/styles.d.ts +6 -6
- package/lib/Toggle/types.js +1 -0
- package/lib/Tooltip/types.js +1 -0
- package/lib/Typography/Typography.js +12 -6
- package/lib/Typography/Typography.styles.d.ts +18 -18
- package/lib/Typography/Typography.types.js +1 -0
- package/lib/system-props/types.js +1 -0
- package/lib/theme/theme.d.ts +1 -1
- package/lib/types.js +1 -0
- package/package.json +21 -14
package/lib/Toggle/Toggle.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children", "id", "disabled", "name", "size", "value", "checked", "inline", "onChange", "onFocus", "onBlur"];
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { HiddenCheckboxInput, ToggleSwitch, ToggleHandler, LabelWrap } from './styles';
|
|
4
5
|
import { Paragraph, Icon, CheckIcon, CloseIcon } from '../';
|
|
@@ -21,7 +22,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
21
22
|
onChange = _ref.onChange,
|
|
22
23
|
onFocus = _ref.onFocus,
|
|
23
24
|
onBlur = _ref.onBlur,
|
|
24
|
-
props = _objectWithoutProperties(_ref,
|
|
25
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
26
|
|
|
26
27
|
var isIndeterminate = checked === 'indeterminate';
|
|
27
28
|
var isChecked = !isIndeterminate && !!checked;
|
package/lib/Toggle/styles.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CodacyTheme } from '../theme';
|
|
3
3
|
import { ToggleProps } from './types';
|
|
4
|
-
export declare const HiddenCheckboxInput: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Pick<import("react").
|
|
5
|
-
export declare const ToggleHandler: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").
|
|
6
|
-
export declare const LabelWrap: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
4
|
+
export declare const HiddenCheckboxInput: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Pick<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>, keyof import("react").InputHTMLAttributes<HTMLInputElement>>, object>;
|
|
5
|
+
export declare const ToggleHandler: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
6
|
+
export declare const LabelWrap: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
7
7
|
theme?: object | undefined;
|
|
8
|
-
}, "
|
|
8
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
10
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
11
11
|
theme?: object | undefined;
|
|
12
|
-
}, Pick<ToggleProps, "
|
|
12
|
+
}, Pick<ToggleProps, "inline" | "disabled">, CodacyTheme>;
|
|
13
13
|
export declare const ToggleSwitch: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
14
|
checked: boolean | 'indeterminate';
|
|
15
15
|
size: 'md' | 'sm';
|
package/lib/Toggle/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/Tooltip/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children", "size"],
|
|
3
|
+
_excluded2 = ["children", "size"],
|
|
4
|
+
_excluded3 = ["children", "as"],
|
|
5
|
+
_excluded4 = ["children", "as"],
|
|
6
|
+
_excluded5 = ["children", "as", "value", "showPercentage", "format"],
|
|
7
|
+
_excluded6 = ["children", "as"];
|
|
2
8
|
import React from 'react';
|
|
3
9
|
import numeral from 'numeral';
|
|
4
10
|
import { StyledTitle, StyledSubheader, StyledParagraph, StyledCaption, StyledList, StyledDataPoint } from './Typography.styles';
|
|
@@ -8,7 +14,7 @@ export var Title = React.forwardRef(function (_ref, ref) {
|
|
|
8
14
|
var children = _ref.children,
|
|
9
15
|
_ref$size = _ref.size,
|
|
10
16
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
11
|
-
props = _objectWithoutProperties(_ref,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
18
|
|
|
13
19
|
return /*#__PURE__*/React.createElement(StyledTitle, Object.assign({
|
|
14
20
|
as: "h1",
|
|
@@ -30,7 +36,7 @@ export var Subheader = React.forwardRef(function (_ref2, ref) {
|
|
|
30
36
|
var children = _ref2.children,
|
|
31
37
|
_ref2$size = _ref2.size,
|
|
32
38
|
size = _ref2$size === void 0 ? 'xl' : _ref2$size,
|
|
33
|
-
props = _objectWithoutProperties(_ref2,
|
|
39
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
34
40
|
|
|
35
41
|
return /*#__PURE__*/React.createElement(StyledSubheader, Object.assign({
|
|
36
42
|
as: tagBySize[size],
|
|
@@ -45,7 +51,7 @@ export var Paragraph = React.forwardRef(function (_ref3, ref) {
|
|
|
45
51
|
var children = _ref3.children,
|
|
46
52
|
_ref3$as = _ref3.as,
|
|
47
53
|
as = _ref3$as === void 0 ? 'p' : _ref3$as,
|
|
48
|
-
props = _objectWithoutProperties(_ref3,
|
|
54
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
49
55
|
|
|
50
56
|
return /*#__PURE__*/React.createElement(StyledParagraph, Object.assign({
|
|
51
57
|
as: as
|
|
@@ -59,7 +65,7 @@ export var Caption = React.forwardRef(function (_ref4, ref) {
|
|
|
59
65
|
var children = _ref4.children,
|
|
60
66
|
_ref4$as = _ref4.as,
|
|
61
67
|
as = _ref4$as === void 0 ? 'p' : _ref4$as,
|
|
62
|
-
props = _objectWithoutProperties(_ref4,
|
|
68
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
63
69
|
|
|
64
70
|
return /*#__PURE__*/React.createElement(StyledCaption, Object.assign({
|
|
65
71
|
as: as
|
|
@@ -74,7 +80,7 @@ export var DataPoint = React.forwardRef(function (_ref5, ref) {
|
|
|
74
80
|
value = _ref5.value,
|
|
75
81
|
showPercentage = _ref5.showPercentage,
|
|
76
82
|
format = _ref5.format,
|
|
77
|
-
props = _objectWithoutProperties(_ref5,
|
|
83
|
+
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
78
84
|
|
|
79
85
|
if (value === undefined) return /*#__PURE__*/React.createElement(StyledDataPoint, Object.assign({
|
|
80
86
|
as: as
|
|
@@ -93,7 +99,7 @@ export var BulletedList = React.forwardRef(function (_ref6, ref) {
|
|
|
93
99
|
var children = _ref6.children,
|
|
94
100
|
_ref6$as = _ref6.as,
|
|
95
101
|
as = _ref6$as === void 0 ? 'ul' : _ref6$as,
|
|
96
|
-
props = _objectWithoutProperties(_ref6,
|
|
102
|
+
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
97
103
|
|
|
98
104
|
return /*#__PURE__*/React.createElement(StyledList, Object.assign({
|
|
99
105
|
as: as
|
|
@@ -2,45 +2,45 @@
|
|
|
2
2
|
import { CodacyTheme } from '../theme';
|
|
3
3
|
import { TitleProps, SubheaderProps, ParagraphProps, CaptionProps, ListProps, TextSize, TextColor, DataPointProps } 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("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
5
|
+
export declare const StyledTitle: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
6
6
|
theme?: object | undefined;
|
|
7
|
-
}, "
|
|
7
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
9
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
10
10
|
theme?: object | undefined;
|
|
11
11
|
}, TitleProps, CodacyTheme>;
|
|
12
|
-
export declare const StyledSubheader: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
12
|
+
export declare const StyledSubheader: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
13
13
|
theme?: object | undefined;
|
|
14
|
-
}, "
|
|
14
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
15
15
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
16
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
17
17
|
theme?: object | undefined;
|
|
18
18
|
}, SubheaderProps, CodacyTheme>;
|
|
19
|
-
export declare const StyledParagraph: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
19
|
+
export declare const StyledParagraph: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
20
20
|
theme?: object | undefined;
|
|
21
|
-
}, "
|
|
21
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
22
22
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
23
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
24
24
|
theme?: object | undefined;
|
|
25
25
|
}, ParagraphProps, CodacyTheme>;
|
|
26
|
-
export declare const StyledCaption: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
26
|
+
export declare const StyledCaption: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
27
27
|
theme?: object | undefined;
|
|
28
|
-
}, "
|
|
28
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
29
29
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
30
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
30
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
31
31
|
theme?: object | undefined;
|
|
32
32
|
}, CaptionProps, CodacyTheme>;
|
|
33
|
-
export declare const StyledList: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
33
|
+
export declare const StyledList: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
34
34
|
theme?: object | undefined;
|
|
35
|
-
}, "
|
|
35
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
36
36
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
37
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
38
38
|
theme?: object | undefined;
|
|
39
39
|
}, ListProps, CodacyTheme>;
|
|
40
|
-
export declare const StyledDataPoint: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "
|
|
40
|
+
export declare const StyledDataPoint: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("../system-props/types").ColorProps & import("../system-props/types").LayoutProps & import("../system-props/types").SpaceProps & import("../system-props/types").BorderProps & import("../system-props/types").PositionProps & import("../system-props/types").ShadowProps & import("../system-props/types").TextAlignProps & import("../Flexbox").As, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
41
41
|
theme?: object | undefined;
|
|
42
|
-
}, "
|
|
42
|
+
}, "key" | "textAlign" | "as" | "theme" | keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps> & {
|
|
43
43
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
44
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
44
|
+
} & Pick<import("../Flexbox").BoxProps, "textAlign" | "as" | keyof import("../system-props/types").ColorProps | keyof import("../system-props/types").LayoutProps | keyof import("../system-props/types").SpaceProps | keyof import("../system-props/types").BorderProps | keyof import("../system-props/types").PositionProps | keyof import("../system-props/types").ShadowProps | keyof import("../system-props/types").FlexboxProps | keyof import("../system-props/types").GridboxProps> & {
|
|
45
45
|
theme?: object | undefined;
|
|
46
46
|
}, Pick<DataPointProps, "color" | "size">, CodacyTheme>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/theme/theme.d.ts
CHANGED
|
@@ -24,4 +24,4 @@ export declare type CodacyTheme = {
|
|
|
24
24
|
breakpoints: string[];
|
|
25
25
|
};
|
|
26
26
|
export declare const theme: CodacyTheme;
|
|
27
|
-
export declare const transition: (properties: string[], speed?:
|
|
27
|
+
export declare const transition: (properties: string[], speed?: Speed) => string;
|
package/lib/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|