@codacy/ui-components 0.58.4 → 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 +4 -4
- 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 +9 -9
- package/lib/Checkbox/types.js +1 -0
- package/lib/Divider/Divider.js +2 -1
- package/lib/Divider/Divider.styles.d.ts +8 -8
- package/lib/Divider/Divider.types.d.ts +2 -2
- 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 +12 -12
- 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 +4 -4
- package/lib/Group/Group.types.d.ts +2 -2
- 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 +4 -4
- 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 +33 -45
- 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 +4 -4
- package/lib/Labeled/types.js +1 -0
- package/lib/LeftMenu/LeftMenu.js +2 -1
- package/lib/LeftMenu/LeftMenu.styles.d.ts +4 -4
- 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 +4 -4
- package/lib/Message/Message.types.js +1 -0
- package/lib/Modal/ConfirmationModal.js +2 -1
- package/lib/Modal/Modal.d.ts +2 -4
- package/lib/Modal/Modal.js +10 -5
- package/lib/Modal/styles.d.ts +22 -22
- package/lib/Modal/types.d.ts +4 -3
- 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 +4 -4
- package/lib/PillLabel/PillLabel.js +2 -1
- package/lib/PillLabel/PillLabel.styles.d.ts +4 -4
- package/lib/PillLabel/PillLabel.types.js +1 -0
- package/lib/Popup/Popup.d.ts +2 -1
- package/lib/Popup/Popup.js +2 -1
- package/lib/Popup/styles.d.ts +4 -4
- package/lib/Popup/types.d.ts +2 -2
- package/lib/Popup/types.js +1 -0
- package/lib/Radio/Radio.js +2 -1
- package/lib/Radio/styles.d.ts +5 -5
- package/lib/Radio/types.js +1 -0
- package/lib/ScrollableContent/ScrollableContent.js +4 -2
- package/lib/ScrollableContent/ScrollableContent.styles.d.ts +4 -4
- 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 +4 -4
- 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 +12 -12
- package/lib/Stepper/Stepper.types.d.ts +3 -3
- package/lib/Stepper/Stepper.types.js +1 -0
- package/lib/Switcher/Switcher.js +2 -1
- package/lib/Switcher/Switcher.styles.d.ts +4 -4
- 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 +4 -4
- 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 +5 -5
- package/lib/Table/Table.types.js +1 -0
- package/lib/TagsInput/TagsInput.js +2 -1
- package/lib/TagsInput/style.d.ts +8 -8
- package/lib/TagsInput/types.js +1 -0
- package/lib/Textarea/Textarea.js +2 -1
- package/lib/Textarea/Textarea.styles.d.ts +8 -8
- package/lib/Textarea/Textarea.types.js +1 -0
- package/lib/ThemeProvider/ThemeProvider.d.ts +1 -0
- package/lib/ThemeProvider/ThemeProvider.js +1 -1
- package/lib/Toast/Toast.d.ts +1 -1
- package/lib/Toast/Toast.js +5 -5
- 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 +24 -24
- 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 +27 -19
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CodacyTheme } from '../theme';
|
|
3
3
|
import { TextareaProps } from './Textarea.types';
|
|
4
|
-
export declare const TextareaWrapper: import("@emotion/styled-base").StyledComponent<
|
|
4
|
+
export declare const TextareaWrapper: 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> & {
|
|
5
5
|
theme?: object | undefined;
|
|
6
|
-
}
|
|
6
|
+
}, "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> & {
|
|
7
7
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
-
} & Pick<import("../Flexbox").BoxProps, "
|
|
8
|
+
} & 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> & {
|
|
9
9
|
theme?: object | undefined;
|
|
10
|
-
}
|
|
10
|
+
}, Pick<TextareaProps, "size">, CodacyTheme>;
|
|
11
11
|
export declare const StyledTextarea: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, Pick<TextareaProps, "disabled" | "hasError">, CodacyTheme>;
|
|
12
|
-
export declare const TextareaHelp: import("@emotion/styled-base").StyledComponent<Pick<import("react").
|
|
12
|
+
export declare const TextareaHelp: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & Pick<{}, never> & {
|
|
13
13
|
theme?: CodacyTheme | undefined;
|
|
14
|
-
}
|
|
14
|
+
}, "key" | "theme" | keyof import("react").HTMLAttributes<HTMLParagraphElement>> & {
|
|
15
15
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
16
16
|
}, {}, CodacyTheme>;
|
|
17
|
-
export declare const TextareaErrorMessage: import("@emotion/styled-base").StyledComponent<Pick<import("react").
|
|
17
|
+
export declare const TextareaErrorMessage: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & Pick<{}, never> & {
|
|
18
18
|
theme?: CodacyTheme | undefined;
|
|
19
|
-
}
|
|
19
|
+
}, "key" | "theme" | keyof import("react").HTMLAttributes<HTMLParagraphElement>> & {
|
|
20
20
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
21
21
|
}, {}, CodacyTheme>;
|
|
22
22
|
export declare const IconRight: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<TextareaProps, "hasError">, CodacyTheme>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -24,7 +24,7 @@ export var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
24
24
|
}), /*#__PURE__*/React.createElement(Global, {
|
|
25
25
|
styles: _objectSpread({}, overrides)
|
|
26
26
|
}), /*#__PURE__*/React.createElement(Global, {
|
|
27
|
-
styles: /*#__PURE__*/css("body,html{font-family:", theme.fonts['normal'], ";font-size:", theme.remScale, "px;line-height:", theme.baseLineHeight, ";text-size-adjust:100%;-webkit-font-smoothing:antialiased;box-sizing:border-box;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
27
|
+
styles: /*#__PURE__*/css("body,html{font-family:", theme.fonts['normal'], ";font-size:", theme.remScale, "px;line-height:", theme.baseLineHeight, ";text-size-adjust:100%;-webkit-font-smoothing:antialiased;box-sizing:border-box;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9UaGVtZVByb3ZpZGVyL1RoZW1lUHJvdmlkZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9CaUIiLCJmaWxlIjoiLi4vLi4vc3JjL1RoZW1lUHJvdmlkZXIvVGhlbWVQcm92aWRlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBUaGVtZVByb3ZpZGVyIGFzIEVtb3Rpb25UaGVtZVByb3ZpZGVyLCB1c2VUaGVtZSB9IGZyb20gJ2Vtb3Rpb24tdGhlbWluZydcbmltcG9ydCB7IEdsb2JhbCwgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSdcblxuaW1wb3J0IHsgQ29kYWN5VGhlbWUsIHRoZW1lIGFzIGNvZGFjeVRoZW1lIH0gZnJvbSAnLi4vdGhlbWUnXG5pbXBvcnQgeyBub3JtYWxpemUgfSBmcm9tICdwb2xpc2hlZCdcbmltcG9ydCB7IGluamVjdFN0eWxlIH0gZnJvbSAncmVhY3QtdG9hc3RpZnkvZGlzdC9pbmplY3Qtc3R5bGUnXG5cbmluamVjdFN0eWxlKClcblxuY29uc3QgW2Jhc2UsIG92ZXJyaWRlc10gPSBub3JtYWxpemUoKVxuXG5leHBvcnQgY29uc3QgVGhlbWVQcm92aWRlcjogUmVhY3QuRkM8eyBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZTsgdGhlbWU/OiBDb2RhY3lUaGVtZSB9PiA9ICh7XG4gIHRoZW1lID0gY29kYWN5VGhlbWUsXG4gIGNoaWxkcmVuLFxufSkgPT4gKFxuICA8RW1vdGlvblRoZW1lUHJvdmlkZXIgdGhlbWU9e3RoZW1lfT5cbiAgICA8R2xvYmFsIHN0eWxlcz17eyAuLi5iYXNlIH19IC8+XG4gICAgPEdsb2JhbCBzdHlsZXM9e3sgLi4ub3ZlcnJpZGVzIH19IC8+XG4gICAgPEdsb2JhbFxuICAgICAgc3R5bGVzPXtjc3NgXG4gICAgICAgIGJvZHksXG4gICAgICAgIGh0bWwge1xuICAgICAgICAgIGZvbnQtZmFtaWx5OiAke3RoZW1lLmZvbnRzWydub3JtYWwnXX07XG4gICAgICAgICAgZm9udC1zaXplOiAke3RoZW1lLnJlbVNjYWxlfXB4OyAvKiogMXJlbSAqL1xuICAgICAgICAgIGxpbmUtaGVpZ2h0OiAke3RoZW1lLmJhc2VMaW5lSGVpZ2h0fTtcbiAgICAgICAgICB0ZXh0LXNpemUtYWRqdXN0OiAxMDAlO1xuICAgICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkO1xuICAgICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgICAgIH1cbiAgICAgIGB9XG4gICAgLz5cbiAgICB7Y2hpbGRyZW59XG4gIDwvRW1vdGlvblRoZW1lUHJvdmlkZXI+XG4pXG5cbmV4cG9ydCBjb25zdCB1c2VDb2RhY3lUaGVtZSA9ICgpID0+IHtcbiAgcmV0dXJuIHVzZVRoZW1lPENvZGFjeVRoZW1lPigpXG59XG4iXX0= */"))
|
|
28
28
|
}), children);
|
|
29
29
|
};
|
|
30
30
|
export var useCodacyTheme = function useCodacyTheme() {
|
package/lib/Toast/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ToastContent, ToastConfig } from './types';
|
|
3
|
-
declare const useToast: (defaultOptions?: ToastConfig
|
|
3
|
+
declare const useToast: (defaultOptions?: ToastConfig) => (content: ToastContent, options?: ToastConfig) => void;
|
|
4
4
|
declare const ToastContainer: () => JSX.Element;
|
|
5
5
|
export { useToast, ToastContainer };
|
package/lib/Toast/Toast.js
CHANGED
|
@@ -6,11 +6,11 @@ import { toast as launchToast, ToastContainer as ToastifyContainer } from 'react
|
|
|
6
6
|
import { Subheader, Paragraph } from '../Typography';
|
|
7
7
|
var DEFAULT_TOAST_TYPE = 'success';
|
|
8
8
|
var TypeIcons = {
|
|
9
|
-
"default": SuccessIcon,
|
|
10
|
-
success: SuccessIcon,
|
|
11
|
-
error: ErrorIcon,
|
|
12
|
-
info: InfoIcon,
|
|
13
|
-
warning: WarningIcon
|
|
9
|
+
"default": /*#__PURE__*/React.createElement(SuccessIcon, null),
|
|
10
|
+
success: /*#__PURE__*/React.createElement(SuccessIcon, null),
|
|
11
|
+
error: /*#__PURE__*/React.createElement(ErrorIcon, null),
|
|
12
|
+
info: /*#__PURE__*/React.createElement(InfoIcon, null),
|
|
13
|
+
warning: /*#__PURE__*/React.createElement(WarningIcon, null)
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
var ToastContentWrapper = function ToastContentWrapper(_ref) {
|
package/lib/Toast/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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<
|
|
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
|
-
}
|
|
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
|