@allurereport/web-summary 3.0.0-beta.22 → 3.0.0-beta.24

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.
@@ -1,37 +0,0 @@
1
- import { SvgIcon, Text, TooltipWrapper } from "@allurereport/web-components";
2
- import cx from "clsx";
3
- import type { FunctionalComponent } from "preact";
4
- import * as styles from "./styles.scss";
5
-
6
- export type IconLabelProps = {
7
- icon: string;
8
- tooltip?: string;
9
- className?: string;
10
- };
11
-
12
- export const IconLabel: FunctionalComponent<IconLabelProps> = ({ icon, children, tooltip, className, ...rest }) => {
13
- const content = (
14
- <div className={cx(styles["icon-label-wrapper"], className)}>
15
- <SvgIcon className={styles["icon-label-icon"]} id={icon} />
16
- <Text className={styles["icon-label-text"]} type="ui" size="s" bold>
17
- {children}
18
- </Text>
19
- </div>
20
- );
21
-
22
- if (tooltip) {
23
- return (
24
- <div className={styles["icon-label"]} {...rest}>
25
- <TooltipWrapper tooltipText={tooltip}>{content}</TooltipWrapper>
26
- </div>
27
- );
28
- }
29
-
30
- return (
31
- <div className={styles["icon-label"]} {...rest}>
32
- {content}
33
- </div>
34
- );
35
- };
36
-
37
- export default IconLabel;
@@ -1,17 +0,0 @@
1
- .icon-label {
2
- display: inline-block;
3
- }
4
-
5
- .icon-label-wrapper {
6
- display: flex;
7
- align-items: center;
8
- gap: 6px;
9
- }
10
-
11
- .icon-label-icon {
12
- color: var(--on-icon-secondary);
13
- }
14
-
15
- .icon-label-text {
16
- color: var(--on-text-secondary);
17
- }