@windstream/react-shared-components 0.2.7 → 0.2.9
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/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js +1 -1
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/next/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/list/index.tsx +96 -88
- package/src/components/material-icon/index.tsx +48 -47
- package/src/contentful/blocks/callout/index.tsx +2 -2
- package/src/contentful/blocks/cards/floating-image-card/index.tsx +5 -5
- package/src/contentful/blocks/image-promo-bar/index.tsx +277 -277
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { cx } from "../../utils/cx";
|
|
3
|
-
import type { IconProps } from "./types";
|
|
4
|
-
|
|
5
|
-
const MaterialIcon: React.FC<IconProps> = ({
|
|
6
|
-
name,
|
|
7
|
-
fill = 0,
|
|
8
|
-
opticalSize = "48dp",
|
|
9
|
-
weight = "200",
|
|
10
|
-
emphasis = 145,
|
|
11
|
-
size = 24,
|
|
12
|
-
color = "currentColor",
|
|
13
|
-
style = {},
|
|
14
|
-
className,
|
|
15
|
-
onClick,
|
|
16
|
-
dataTestId,
|
|
17
|
-
}) => {
|
|
18
|
-
const fontVariationSettings = `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${emphasis}, 'opsz' ${opticalSize.substring(0, 2)}`;
|
|
19
|
-
|
|
20
|
-
const combinedStyle: React.CSSProperties = {
|
|
21
|
-
fontVariationSettings,
|
|
22
|
-
fontSize: `${size}px`,
|
|
23
|
-
fontFamily: "'Material Symbols Rounded'",
|
|
24
|
-
color: color || "currentColor",
|
|
25
|
-
...style,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<span
|
|
30
|
-
style={combinedStyle}
|
|
31
|
-
className={cx(
|
|
32
|
-
"material-symbols-rounded inline-block max-w-[52px] overflow-hidden",
|
|
33
|
-
className
|
|
34
|
-
)}
|
|
35
|
-
onClick={onClick}
|
|
36
|
-
data-testid={dataTestId}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { cx } from "../../utils/cx";
|
|
3
|
+
import type { IconProps } from "./types";
|
|
4
|
+
|
|
5
|
+
const MaterialIcon: React.FC<IconProps> = ({
|
|
6
|
+
name,
|
|
7
|
+
fill = 0,
|
|
8
|
+
opticalSize = "48dp",
|
|
9
|
+
weight = "200",
|
|
10
|
+
emphasis = 145,
|
|
11
|
+
size = 24,
|
|
12
|
+
color = "currentColor",
|
|
13
|
+
style = {},
|
|
14
|
+
className,
|
|
15
|
+
onClick,
|
|
16
|
+
dataTestId,
|
|
17
|
+
}) => {
|
|
18
|
+
const fontVariationSettings = `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${emphasis}, 'opsz' ${opticalSize.substring(0, 2)}`;
|
|
19
|
+
|
|
20
|
+
const combinedStyle: React.CSSProperties = {
|
|
21
|
+
fontVariationSettings,
|
|
22
|
+
fontSize: `${size}px`,
|
|
23
|
+
fontFamily: "'Material Symbols Rounded'",
|
|
24
|
+
color: color || "currentColor",
|
|
25
|
+
...style,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<span
|
|
30
|
+
style={combinedStyle}
|
|
31
|
+
className={cx(
|
|
32
|
+
"material-symbols-rounded inline-block max-w-[52px] overflow-hidden",
|
|
33
|
+
className
|
|
34
|
+
)}
|
|
35
|
+
onClick={onClick}
|
|
36
|
+
data-testid={dataTestId}
|
|
37
|
+
aria-hidden={"true"}
|
|
38
|
+
>
|
|
39
|
+
{name}
|
|
40
|
+
</span>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { MaterialIcon };
|
|
45
|
+
|
|
46
|
+
MaterialIcon.displayName = "MaterialIcon";
|
|
47
|
+
|
|
48
|
+
export type { IconProps, IconName, Size } from "./types";
|
|
@@ -195,7 +195,7 @@ export const Callout: React.FC<CalloutProps> = ({
|
|
|
195
195
|
>
|
|
196
196
|
<div
|
|
197
197
|
className={cx(
|
|
198
|
-
noGutter ? "p-0" : "mx-5
|
|
198
|
+
noGutter ? "p-0" : "mx-5 mb-5 mt-12 md:mx-0 md:mb-0 md:mt-0 md:px-6 md:pb-8 md:pt-16 lg:px-0 lg:py-20",
|
|
199
199
|
maxWidth && "max-w-120 xl:mx-auto",
|
|
200
200
|
color === "dark" ? "text-text" : "text-white",
|
|
201
201
|
innerClassName
|
|
@@ -214,7 +214,7 @@ export const Callout: React.FC<CalloutProps> = ({
|
|
|
214
214
|
{subtitle && (
|
|
215
215
|
<Text
|
|
216
216
|
as={enableHeading ? "h2" : "h3"}
|
|
217
|
-
className="subheading3 mt-
|
|
217
|
+
className="subheading3 mt-2 md:subheading1 md:text-center lg:mt-3"
|
|
218
218
|
>
|
|
219
219
|
{subtitle}
|
|
220
220
|
</Text>
|
|
@@ -61,7 +61,7 @@ export const FloatingImageCard: React.FC<FloatingImageCardProps> = ({
|
|
|
61
61
|
<section
|
|
62
62
|
aria-labelledby="Image Card"
|
|
63
63
|
className={cx(
|
|
64
|
-
"callout-card relative flex h-full w-full flex-col gap-4
|
|
64
|
+
"callout-card relative flex h-full w-full flex-col gap-5 px-0 pb-4 pt-0 md:items-start md:gap-6 lg:pb-0",
|
|
65
65
|
shadow && "rounded-3xl shadow-card",
|
|
66
66
|
mdWidth,
|
|
67
67
|
lgWidth,
|
|
@@ -71,7 +71,7 @@ export const FloatingImageCard: React.FC<FloatingImageCardProps> = ({
|
|
|
71
71
|
{image?.href ? (
|
|
72
72
|
<div
|
|
73
73
|
className={cx(
|
|
74
|
-
"relative
|
|
74
|
+
"relative h-[233px] w-full overflow-hidden sm:mb-1 md:h-[274px] md:flex-none lg:h-[330px] lg:mb-0",
|
|
75
75
|
imageClassName
|
|
76
76
|
)}
|
|
77
77
|
>
|
|
@@ -82,7 +82,7 @@ export const FloatingImageCard: React.FC<FloatingImageCardProps> = ({
|
|
|
82
82
|
height={image.height || 330}
|
|
83
83
|
onClick={handleImageClick}
|
|
84
84
|
className={cx(
|
|
85
|
-
"h-full
|
|
85
|
+
"h-full w-full rounded-[40px] object-cover",
|
|
86
86
|
imageLinkAvailableClass
|
|
87
87
|
)}
|
|
88
88
|
/>
|
|
@@ -90,13 +90,13 @@ export const FloatingImageCard: React.FC<FloatingImageCardProps> = ({
|
|
|
90
90
|
) : null}
|
|
91
91
|
|
|
92
92
|
{header ? (
|
|
93
|
-
<Text as="h6" className="heading6
|
|
93
|
+
<Text as="h6" className="heading6 text-text">
|
|
94
94
|
{header}
|
|
95
95
|
</Text>
|
|
96
96
|
) : null}
|
|
97
97
|
|
|
98
98
|
{body ? (
|
|
99
|
-
<Text as="div" className="
|
|
99
|
+
<Text as="div" className="body1 -mt-1 mb-0 flex-1 text-text md:-mt-2 lg:mt-2">
|
|
100
100
|
{body}
|
|
101
101
|
</Text>
|
|
102
102
|
) : null}
|